syscontracts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

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

func ParseLog

func ParseLog(out interface{}, abi *ethabi.ABI, log *ethtypes.Log, event string) (err error)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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