GMXVaultProduct

Documentation for eth_defi.gmx.vault_catalog.GMXVaultProduct Python class.

class GMXVaultProduct

Bases: object

Current 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

chain_id

EVM chain where the product is deployed.

token_address

GM market-token or GLV share-token address.

product_type

"gm" for a market token or "glv" for a multi-market share.

symbol

ERC-20 share-token symbol.

name

ERC-20 share-token name.

decimals

ERC-20 share-token decimals.

component_addresses

GM market, index, long and short addresses, or GLV share, long, short and supported GM market addresses.

accepted_deposit_tokens

GMX long and short token addresses accepted for this product.

is_enabled

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
Return type

None