Versions in this module Expand all Collapse all v0 v0.1.6 Oct 25, 2023 v0.1.5 Oct 17, 2023 Changes in this version type NetworkId + DEVELOP_TESTNET int v0.1.4 Oct 17, 2023 v0.1.3 Oct 5, 2023 Changes in this version type TokenIndexInfo + TokenIndex int v0.1.2 Oct 5, 2023 v0.1.1 Oct 5, 2023 Changes in this version + var AllowTokenIndex = map[int]bool + var BigFloat0 = big.NewFloat(0) + var BigFloatBase18 = big.NewFloat(1e18) + var BigFloatBase9 = big.NewFloat(1e9) + var BigInt0 = big.NewInt(0) + var BigInt1 = big.NewInt(1) + var BigInt10 = big.NewInt(10) + var Config = ConfigType + var NETWORK_ID = NetworkId + var TOKEN_DECIMALS = 8 + var TOKEN_INDEX = TokenIndex + func AppendUrlWithSlash(url string) string + func ConvertPriceDecimals(price *big.Int, decimals int) *big.Int + func ParseAddressFormat(address string) string + func ParseEther(wei *big.Int) *big.Float + type ChainsType map[int]struct + type ConfigType struct + Chains ChainsType + EndpointAPINodeInfo string + EndpointAPINodePrice string + EndpointAPIPrice string + EndpointAPIPricefeed string + EndpointAPITokenIndexInfo string + EndpointAPITokenIndexPrice string + XOracleAPI string + type NetworkId struct + LINEA_TESTNET int + type NodeInfo struct + NodeAddress string + NodeName string + type TokenAddressPrice struct + Price *big.Int + TokenAddress string + type TokenIndex struct + ADA int + ARB int + ATOM int + AVAX int + BNB int + BTC int + BUSD int + DAI int + DOGE int + DOT int + ETH int + FTM int + MATIC int + NEAR int + OP int + SOL int + TRX int + USDC int + USDT int + XRP int + type TokenIndexInfo struct + TokenName string + TokenSymbol string + type TokenIndexPrice struct + Price *big.Int + TokenIndex int