Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ChainIDToContractAddresses = map[int]ContractAddresses{ 8217: ContractAddresses{ ERC20Proxy: common.HexToAddress("0x437d7d1abf47ea16d34d8bc001589cda1f499130"), ERC721Proxy: common.HexToAddress("0x36881d577b92a82e0988e18080ba5a25a802f826"), ERC1155Proxy: common.HexToAddress("0xce6e104855d5db828145e77cea9ce5720a515365"), Exchange: common.HexToAddress("0xaadefaa2b05fc765902a92121abb6ad9e8233c2c"), Coordinator: common.HexToAddress("0x90ae17fd13592d7da39157be6b83f606dcbe5558"), CoordinatorRegistry: common.HexToAddress("0xe8f9d7eb0771250d7298d8a20aad6a19b2aaa1c6"), DevUtils: common.HexToAddress("0xa6c6876df955041de683c094980a2250a983c267"), WKLAY: common.HexToAddress("0x43f9ce2ad0e98a6946154bef37b182b5915ed13d"), }, 1001: ContractAddresses{ ERC20Proxy: common.HexToAddress("0x301cde1146a0d18422ce43ee673279246bc0738f"), ERC721Proxy: common.HexToAddress("0xac0442d7fd9d3459264bb8de332ee7968ca38d1c"), ERC1155Proxy: common.HexToAddress("0x990aa8c502a6a7f72b4b068883c791d9400ad4af"), Exchange: common.HexToAddress("0x0fcb7a50b891cb76c638c00527811a2deae66baa"), Coordinator: constants.NullAddress, CoordinatorRegistry: common.HexToAddress("0xa3d347674088864f52b9ae7cce50dbe971b9b80c"), DevUtils: common.HexToAddress("0x0590d5e23e39c47789559f0369851285bbb1d14f"), WKLAY: common.HexToAddress("0x9330dd6713c8328a8d82b14e3f60a0f0b4cc7bfb"), }, 1337: ContractAddresses{ ERC20Proxy: constants.NullAddress, ERC721Proxy: constants.NullAddress, ERC1155Proxy: constants.NullAddress, Exchange: constants.NullAddress, Coordinator: constants.NullAddress, CoordinatorRegistry: constants.NullAddress, DevUtils: constants.NullAddress, WKLAY: constants.NullAddress, }, }
ChainIDToContractAddresses maps chainId to a mapping of contract name to Klaytn address on that given chain
Functions ¶
func AddContractAddressesForChainID ¶
func AddContractAddressesForChainID(chainID int, addresses ContractAddresses) error
Types ¶
type ContractAddresses ¶
type ContractAddresses struct { ERC20Proxy common.Address `json:"erc20Proxy"` ERC721Proxy common.Address `json:"erc721Proxy"` ERC1155Proxy common.Address `json:"erc1155Proxy"` Exchange common.Address `json:"exchange"` Coordinator common.Address `json:"coordinator"` CoordinatorRegistry common.Address `json:"coordinatorRegistry"` DevUtils common.Address `json:"devUtils"` WKLAY common.Address `json:"WKLAY"` }
ContractAddresses maps a contract's name to it's Klaytn address
func GetContractAddressesForChainID ¶
func GetContractAddressesForChainID(chainID int) (ContractAddresses, error)
GetContractAddressesForChainID returns the contract name mapping for the given chain. It returns an error if the chain doesn't exist.
Click to show internal directories.
Click to hide internal directories.