Documentation ¶
Overview ¶
Package contracts contains contract types
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractType ¶
type ContractType interface { // ID gets the unique identifier for the contracts ID() int // Name gets a the contracts name Name() string // ContractInfo gets the contract info from the compiler contract. ContractInfo() *compiler.Contract // ContractName gets the name fo the deployed contract ContractName() string }
ContractType is a contract type interface that contracts need to comply with.
type DeployedContract ¶
type DeployedContract interface { // Address is the address where the contract has been deployed Address() common.Address // ContractHandle is the actual handle returned by deploying the contract // this must be cast to be useful ContractHandle() interface{} // Owner of the contract Owner() common.Address // DeployTx is the transaction where the contract was created DeployTx() *types.Transaction // ChainID is the chain id ChainID() *big.Int // OwnerPtr is a pointer to the owner OwnerPtr() *common.Address // String returns the string representation of the contract String() string }
DeployedContract is the contract interface.
Click to show internal directories.
Click to hide internal directories.