chains

package
v0.0.0-...-14c196c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ARBITRUM = TChain{
	ID:            42161,
	Name:          `Arbitrum`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/42161/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://arbitrum.public-rpc.com`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/42161/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  42161,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var AVALANCHE = TChain{
	ID:            43114,
	Name:          `Avax`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/43114/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://1rpc.io/avax/c`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/43114/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  43114,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var BASE = TChain{
	ID:            8453,
	Name:          `Base`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/8453/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://mainnet.base.org/`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/8453/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  8453,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var BINANCE_SMART_CHAIN = TChain{
	ID:            56,
	Name:          `BSC`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/56/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://1rpc.io/bnb`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.75,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Binance Smart Chain`,
		Symbol:   `BNB`,
		LogoURI:  `https://assets.smold.app/api/token/56/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  56,
		Decimals: 18,
	},
	IgnoredTokens: []string{
		`0xc00e94Cb662C3520282E6f5717214004A7f26888`,
	},
}
View Source
var BLAST = TChain{
	ID:            81457,
	Name:          `Blast`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/81457/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.blast.io`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/81457/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  81457,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
	ExtraTokens: []string{
		`0x6d5564584b70240691bd6ff7a834b9fab844e0d4`,
		`0x38aD23b0902D0d86c2F3949BC505194D70B762F5`,
	},
}
View Source
var CELO = TChain{
	ID:            42220,
	Name:          `Celo`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/42220/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://1rpc.io/celo`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000`,
		Name:     `CELO`,
		Symbol:   `CELO`,
		LogoURI:  `https://assets.smold.app/api/token/42220/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/logo-128.png`,
		Decimals: 18,
		ChainID:  42220,
	},
	IgnoredTokens: []string{},
}
View Source
var CHAINS = map[uint64]TChain{
	1:                ETHEREUM,
	5:                GOERLI,
	10:               OPTIMISM,
	56:               BINANCE_SMART_CHAIN,
	100:              GNOSIS,
	137:              POLYGON,
	250:              FANTOM,
	314:              FILECOIN,
	324:              ZKSYNC,
	1088:             METIS,
	1101:             POLYGON_ZKEVM,
	5000:             MANTLE,
	8453:             BASE,
	42161:            ARBITRUM,
	42220:            CELO,
	43114:            AVALANCHE,
	59144:            LINEA,
	81457:            BLAST,
	534352:           SCROLL,
	7777777:          ZORA,
	1380012617:       RARI,
	1151111081099710: SOLANA,
}

CHAINS is the list of supported chains

View Source
var DEFAULT_COIN_ADDRESS = common.HexToAddress(`0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`)
View Source
var ETHEREUM = TChain{
	ID:            1,
	Name:          `Ethereum`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/1/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://eth.public-rpc.com`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.99,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/1/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  1,
		Decimals: 18,
	},
	IgnoredTokens: []string{
		`0xdF5e0e81Dff6FAF3A7e52BA697820c5e32D806A8`,
	},
	ExtraTokens: []string{
		`0x9a96ec9B57Fb64FbC60B423d1f4da7691Bd35079`,
		`0x6df0e641fc9847c0c6fde39be6253045440c14d3`,
	},
}
View Source
var FANTOM = TChain{
	ID:            250,
	Name:          `Fantom`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/250/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.ftm.tools`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0x470ADB45f5a9ac3550bcFFaD9D990Bf7e2e941c9`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Fantom`,
		Symbol:   `FTM`,
		LogoURI:  `https://assets.smold.app/api/token/250/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  250,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var FILECOIN = TChain{
	ID:            314,
	Name:          `Filecoin`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/314/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.ankr.com/filecoin`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.2,
	MulticallContract: TContractData{
		Address: `0xcA11bde05977b3631167028862bE2a173976CA11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Filecoin`,
		Symbol:   `FIL`,
		LogoURI:  `https://assets.smold.app/api/token/314/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  314,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var GNOSIS = TChain{
	ID:            100,
	Name:          `Gnosis`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/100/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.gnosis.gateway.fm`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.3,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `xDai`,
		Symbol:   `xDAI`,
		LogoURI:  `https://assets.smold.app/api/token/100/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  100,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var GOERLI = TChain{
	ID:            5,
	Name:          `Goerli`,
	Type:          `EVM`,
	RpcURI:        `https://gateway.tenderly.co/public/goerli`,
	LogoURI:       `https://assets.smold.app/chains/1/logo-128.png`,
	IsTestNet:     true,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/5/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  1,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var LINEA = TChain{
	ID:            59144,
	Name:          `Linea`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/59144/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.linea.build`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.0001,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/59144/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  59144,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var MANTLE = TChain{
	ID:            5000,
	Name:          `Mantle`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/5000/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.mantle.xyz`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000`,
		Name:     `Mantle`,
		Symbol:   `MNT`,
		LogoURI:  `https://assets.smold.app/api/token/5000/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/logo-128.png`,
		Decimals: 18,
		ChainID:  5000,
	},
	IgnoredTokens: []string{},
}
View Source
var METIS = TChain{
	ID:            1088,
	Name:          `Metis`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/1088/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://metis-mainnet.public.blastapi.io`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.1,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000`,
		Name:     `Metis`,
		Symbol:   `METIS`,
		LogoURI:  `https://assets.smold.app/api/token/1088/0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000/logo-128.png`,
		Decimals: 18,
		ChainID:  1088,
	},
	IgnoredTokens: []string{},
}
View Source
var OPTIMISM = TChain{
	ID:            10,
	Name:          `Optimism`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/10/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://mainnet.optimism.io`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.5,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/10/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  1,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var POLYGON = TChain{
	ID:            137,
	Name:          `Polygon`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/137/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://polygon.llamarpc.com`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.8,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Matic`,
		Symbol:   `MATIC`,
		LogoURI:  `https://assets.smold.app/api/token/137/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  137,
		Decimals: 18,
	},
	IgnoredTokens: []string{
		`0xec6432B90e7fD4d9f872cc5C781f05B617DB861E`,
	},
	ExtraTokens: []string{
		`0x3c499c542cef5e3811e1192ce70d8cc03d5c3359`,
	},
}
View Source
var POLYGON_ZKEVM = TChain{
	ID:            1101,
	Name:          `Polygon ZKEvm`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/1101/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://endpoints.omniatech.io/v1/polygon-zkevm/mainnet/public`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Matic`,
		Symbol:   `MATIC`,
		LogoURI:  `https://assets.smold.app/api/token/1101/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  1101,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var RARI = TChain{
	ID:            1380012617,
	Name:          `Rari`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/1380012617/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://mainnet.rpc.rarichain.org/http`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.0,
	MulticallContract: TContractData{
		Address: `0xb6D5B39F96d379569d47cC84024f3Cd78c5Ef651`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/1380012617/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  1380012617,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var SCROLL = TChain{
	ID:            534352,
	Name:          `Scroll`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/534352/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://1rpc.io/scroll`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/534352/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  534352,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var SOLANA = TChain{
	ID:                1151111081099710,
	Name:              `Solana`,
	Type:              `SVM`,
	LogoURI:           `https://assets.smold.app/chains/1151111081099710/logo-128.png`,
	IsTestNet:         false,
	RpcURI:            `https://api.mainnet-beta.solana.com`,
	MaxBlockRange:     100_000_000,
	MaxBatchSize:      math.MaxInt64,
	WeightRatio:       0.0,
	MulticallContract: TContractData{},
	Coin: models.TokenListToken{
		Address:  `11111111111111111111111111111111`,
		Name:     `Solana`,
		Symbol:   `SOL`,
		LogoURI:  `https://assets.smold.app/api/token/1151111081099710/11111111111111111111111111111111/logo-128.png`,
		ChainID:  1151111081099710,
		Decimals: 9,
	},
	IgnoredTokens: []string{},
}
View Source
var SUPPORTED_CHAIN_IDS = []uint64{}
View Source
var ZKSYNC = TChain{
	ID:            324,
	Name:          `ZKSync`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/324/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://mainnet.era.zksync.io`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.1,
	MulticallContract: TContractData{
		Address: `0xF9cda624FBC7e059355ce98a31693d299FACd963`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/324/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  324,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}
View Source
var ZORA = TChain{
	ID:            7777777,
	Name:          `Zora`,
	Type:          `EVM`,
	LogoURI:       `https://assets.smold.app/chains/7777777/logo-128.png`,
	IsTestNet:     false,
	RpcURI:        `https://rpc.zora.energy`,
	MaxBlockRange: 100_000_000,
	MaxBatchSize:  math.MaxInt64,
	WeightRatio:   0.05,
	MulticallContract: TContractData{
		Address: `0xca11bde05977b3631167028862be2a173976ca11`,
		Block:   0,
	},
	Coin: models.TokenListToken{
		Address:  `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`,
		Name:     `Ethereum`,
		Symbol:   `ETH`,
		LogoURI:  `https://assets.smold.app/api/token/7777777/0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE/logo-128.png`,
		ChainID:  7777777,
		Decimals: 18,
	},
	IgnoredTokens: []string{},
}

Functions

func IsChainIDSupported

func IsChainIDSupported(chainID uint64) bool

IsChainIDSupported returns true if the chainID is supported by our program

func IsTokenIgnored

func IsTokenIgnored(chainId uint64, address string) bool

Types

type TChain

type TChain struct {
	ID                uint64
	Name              string
	Type              string
	LogoURI           string
	RpcURI            string
	MaxBlockRange     uint64
	MaxBatchSize      uint64
	WeightRatio       float64
	IsTestNet         bool
	MulticallContract TContractData
	Coin              models.TokenListToken
	BlacklistedVaults []string
	ExtraTokens       []string
	IgnoredTokens     []string
}

type TCoin

type TCoin struct {
	Address  string `json:"address"`
	Name     string `json:"name"`
	Symbol   string `json:"symbol"`
	LogoURI  string `json:"logoURI"`
	ChainID  uint64 `json:"chainId"`
	Decimals int    `json:"decimals"`
}

type TContractData

type TContractData struct {
	Address string // Address of the contract
	Block   uint64 // Block number where the contract was deployed
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL