Documentation ¶
Index ¶
- func AddContractVar(cmd *cobra.Command)
- func MustAddress2Bytes20(address string) [20]byte
- func MustCall(contract *sdk.Contract, resultPtr interface{}, method string, ...)
- func MustCallAddress(contract *sdk.Contract, method string, args ...interface{}) string
- func MustCreateContract(abiJSON string) *sdk.Contract
- func MustExecuteTx(contract *sdk.Contract, option *types.ContractMethodSendOption, method string, ...) string
- func MustGetCTokenContract(contractAddress string) *sdk.Contract
- func MustGetContract(abiJSON string, contractAddress string) *sdk.Contract
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddContractVar ¶
AddContractVar adds contract variable for specified command.
func MustAddress2Bytes20 ¶
MustAddress2Bytes20 converts address in HEX format to [20]byte.
func MustCallAddress ¶
MustCallAddress call contract and return address value for the specified method and arguments.
func MustCreateContract ¶
MustCreateContract creates an instance to interact with contract.
func MustExecuteTx ¶
func MustExecuteTx(contract *sdk.Contract, option *types.ContractMethodSendOption, method string, args ...interface{}) string
MustExecuteTx call contract and wait for the succeeded receipt.
func MustGetCTokenContract ¶ added in v1.0.4
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.