Documentation ¶
Overview ¶
Copyright (c) 2018 Clearmatics Technologies Ltd
Index ¶
- func CallContract(ctx context.Context, client bind.ContractCaller, contract *compiler.Contract, ...) (res interface{}, err error)
- func CompileContract(contract string) (compiledContract *compiler.Contract, err error)
- func CompileContractAt(contractPath string) (compiledContract *compiler.Contract, err error)
- func CompileContractWithLibraries(contractPath string, libraries map[string]common.Address) (compiledContract *compiler.Contract, err error)
- func CompilePayload(binStr string, abiStr string, constructorArgs ...interface{}) []byte
- func DeployContract(ctx context.Context, backend bind.ContractBackend, userKey *ecdsa.PrivateKey, ...) (*types.Transaction, error)
- func GetContractBytecodeAndABI(c *compiler.Contract) (string, string)
- func TransactionContract(ctx context.Context, backend bind.ContractBackend, userKey *ecdsa.PrivateKey, ...) (*types.Transaction, error)
- type ContractInstance
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallContract ¶
func CallContract( ctx context.Context, client bind.ContractCaller, contract *compiler.Contract, from, to common.Address, methodName string, out interface{}, args ...interface{}, ) (res interface{}, err error)
CallContract without changing the state
func CompileContract ¶
func CompileContractAt ¶
func CompilePayload ¶
func DeployContract ¶
func DeployContract( ctx context.Context, backend bind.ContractBackend, userKey *ecdsa.PrivateKey, payload []byte, amount *big.Int, gasLimit uint64, ) (*types.Transaction, error)
func TransactionContract ¶
func TransactionContract( ctx context.Context, backend bind.ContractBackend, userKey *ecdsa.PrivateKey, contract *compiler.Contract, to common.Address, amount *big.Int, gasLimit uint64, methodName string, args ...interface{}, ) (*types.Transaction, error)
TransactionContract execute function in contract
Types ¶
Click to show internal directories.
Click to hide internal directories.