Documentation ¶
Index ¶
Constants ¶
View Source
const ( // system contracts StakingContractAddress = "0x0000000000000000000000000000000010000001" GovContractAddress = "0x0000000000000000000000000000000010000002" // xibc core contracts PacketContractAddress = "0x0000000000000000000000000000000020000001" // xibc app contracts TransferContractAddress = "0x0000000000000000000000000000000030000001" RCCContractAddress = "0x0000000000000000000000000000000030000002" MultiCallContractAddress = "0x0000000000000000000000000000000030000003" // app contracts AgentContractAddress = "0x0000000000000000000000000000000040000001" // token contracts WTELEContractAddress = "0x0000000000000000000000000000000050000001" )
Variables ¶
View Source
var ( //go:embed contracts_compiled/Staking.json StakingJSON []byte // nolint: golint //go:embed contracts_compiled/Gov.json GovJSON []byte // nolint: golint //go:embed contracts_compiled/ERC20Burnable.json ERC20BurnableJSON []byte //go:embed contracts_compiled/ERC20DirectBalanceManipulation.json ERC20DirectBalanceManipulationJSON []byte // nolint: golint //go:embed contracts_compiled/ERC20MaliciousDelayed.json ERC20MaliciousDelayedJSON []byte // nolint: golint //go:embed contracts_compiled/ERC20MinterBurnerDecimals.json ERC20MinterBurnerDecimalsJSON []byte // nolint: golint //go:embed contracts_compiled/WTELE.json WTELEJSON []byte // nolint: golint )
Functions ¶
Types ¶
type CompiledContract ¶
type CompiledContract struct { ABI abi.ABI `json:"abi"` Bin evmtypes.HexString `json:"bin-runtime"` }
CompiledContract contains compiled bytecode and abi
func (CompiledContract) MarshalJSON ¶
func (s CompiledContract) MarshalJSON() ([]byte, error)
MarshalJSON serializes ByteArray to hex
func (*CompiledContract) UnmarshalJSON ¶
func (s *CompiledContract) UnmarshalJSON(data []byte) error
UnmarshalJSON deserializes ByteArray to hex
Click to show internal directories.
Click to hide internal directories.