Class MitoQueryTransformer
Methods
Static contractMarketingInfoResponseToContractMarketingInfo
- contractMarketingInfoResponseToContractMarketingInfo(response: WasmContractQueryResponse): { description: string; logo: string; marketing: string; project: string }
Parameters
Returns { description: string; logo: string; marketing: string; project: string }
description: string
logo: string
marketing: string
project: string
Static contractTokenInfoResponseToContractTokenInfo
- contractTokenInfoResponseToContractTokenInfo(response: WasmContractQueryResponse): { decimals: number; name: string; symbol: string; totalSupply: string }
Parameters
Returns { decimals: number; name: string; symbol: string; totalSupply: string }
decimals: number
name: string
symbol: string
totalSupply: string
Static masterContractConfigResponseToMasterContractConfig
- masterContractConfigResponseToMasterContractConfig(response: WasmContractQueryResponse): { distributionContract: string; ninjaToken: string; owner: string }
Parameters
Returns { distributionContract: string; ninjaToken: string; owner: string }
distributionContract: string
ninjaToken: string
owner: string
Static registeredVaultsResponseToRegisteredVaults
- registeredVaultsResponseToRegisteredVaults(response: WasmContractQueryResponse): { isDerivative: boolean; masterSubaccountId: string; vaultAddress: undefined | string }[]
Parameters
Returns { isDerivative: boolean; masterSubaccountId: string; vaultAddress: undefined | string }[]
Static vaultContractBaseConfigResponseToBaseConfig
Static vaultContractConfigResponseToAMMVaultConfig
Static vaultContractConfigResponseToDerivativeVaultConfig
Static vaultContractConfigResponseToSpotVaultContractConfig
Static vaultContractMarketMakingResponseToMarketMaking
Static vaultMarketIdResponseToVaultMarketId
Parameters
Returns { marketId: string }
Static vaultTotalLpSupplyResponseToVaultTotalLpSupply
Parameters
Returns { totalSupply: string }
Static vaultUserLockedLpFundsResponseToVaultUserLockedLpFunds
- vaultUserLockedLpFundsResponseToVaultUserLockedLpFunds(response: WasmContractQueryResponse): { amount: string; lockTime: string }
Parameters
Returns { amount: string; lockTime: string }
amount: string
lockTime: string
Static vaultUserLpAllowanceResponseToVaultUserLpAllowance
Parameters
Returns { allowance: string }
Static vaultUserLpBalanceResponseToVaultUserLpBalance
Parameters
Returns { balance: string }