Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Testnet = ChainConfig{ ChainID: abi.TestnetChainID, PostageStampStartBlock: abi.TestnetPostageStampBlockNumber, NativeTokenSymbol: "ETH", SwarmTokenSymbol: "gBZZ", StakingAddress: common.HexToAddress(abi.TestnetStakingAddress), PostageStampAddress: common.HexToAddress(abi.TestnetPostageStampStampAddress), RedistributionAddress: common.HexToAddress(abi.TestnetRedistributionAddress), SwapPriceOracleAddress: common.HexToAddress("0x0c9de531dcb38b758fe8a2c163444a5e54ee0db2"), CurrentFactoryAddress: common.HexToAddress("0x73c412512E1cA0be3b89b77aB3466dA6A1B9d273"), LegacyFactoryAddresses: []common.Address{ common.HexToAddress("0xf0277caffea72734853b834afc9892461ea18474"), }, StakingABI: abi.TestnetStakingABI, PostageStampABI: abi.TestnetPostageStampStampABI, RedistributionABI: abi.TestnetRedistributionABI, } Mainnet = ChainConfig{ ChainID: abi.MainnetChainID, PostageStampStartBlock: abi.MainnetPostageStampBlockNumber, NativeTokenSymbol: "xDAI", SwarmTokenSymbol: "xBZZ", StakingAddress: common.HexToAddress(abi.MainnetStakingAddress), PostageStampAddress: common.HexToAddress(abi.MainnetPostageStampStampAddress), RedistributionAddress: common.HexToAddress(abi.MainnetRedistributionAddress), SwapPriceOracleAddress: common.HexToAddress("0x0FDc5429C50e2a39066D8A94F3e2D2476fcc3b85"), CurrentFactoryAddress: common.HexToAddress("0xc2d5a532cf69aa9a1378737d8ccdef884b6e7420"), StakingABI: abi.MainnetStakingABI, PostageStampABI: abi.MainnetPostageStampStampABI, RedistributionABI: abi.MainnetRedistributionABI, } )
Functions ¶
This section is empty.
Types ¶
type ChainConfig ¶
type ChainConfig struct { // General. ChainID int64 PostageStampStartBlock uint64 NativeTokenSymbol string SwarmTokenSymbol string // Addresses. StakingAddress common.Address PostageStampAddress common.Address RedistributionAddress common.Address SwapPriceOracleAddress common.Address CurrentFactoryAddress common.Address LegacyFactoryAddresses []common.Address // ABIs. StakingABI string PostageStampABI string RedistributionABI string }
func GetByChainID ¶
func GetByChainID(chainID int64) (ChainConfig, bool)
Click to show internal directories.
Click to hide internal directories.