GMXVaultProduct
Documentation for eth_defi.gmx.vault_catalog.GMXVaultProduct Python class.
- class GMXVaultProduct
Bases:
objectCurrent onchain identity and composition of one GMX V2 share token.
The catalogue synchroniser converts this protocol-native description into a common vault metadata row without losing GM/GLV composition details.
Attributes summary
EVM chain where the product is deployed.
GM market-token or GLV share-token address.
"gm"for a market token or"glv"for a multi-market share.ERC-20 share-token symbol.
ERC-20 share-token name.
ERC-20 share-token decimals.
GM market, index, long and short addresses, or GLV share, long, short and supported GM market addresses.
GMX long and short token addresses accepted for this product.
Current GMX DataStore status.
Methods summary
__init__(chain_id, token_address, ...)- chain_id: int
EVM chain where the product is deployed.
- token_address: eth_typing.evm.HexAddress
GM market-token or GLV share-token address.
- product_type: str
"gm"for a market token or"glv"for a multi-market share.
- symbol: str
ERC-20 share-token symbol.
- name: str
ERC-20 share-token name.
- decimals: int
ERC-20 share-token decimals.
- component_addresses: tuple[eth_typing.evm.HexAddress, ...]
GM market, index, long and short addresses, or GLV share, long, short and supported GM market addresses.
- accepted_deposit_tokens: tuple[eth_typing.evm.HexAddress, ...]
GMX long and short token addresses accepted for this product.
- is_enabled: bool
Current GMX DataStore status. Disabled products remain present so later metadata synchronisation does not orphan historical rows.
- __init__(chain_id, token_address, product_type, symbol, name, decimals, component_addresses, accepted_deposit_tokens, is_enabled)
- Parameters
chain_id (int) –
token_address (eth_typing.evm.HexAddress) –
product_type (str) –
symbol (str) –
name (str) –
decimals (int) –
component_addresses (tuple[eth_typing.evm.HexAddress, ...]) –
accepted_deposit_tokens (tuple[eth_typing.evm.HexAddress, ...]) –
is_enabled (bool) –
- Return type
None