Documentation
¶
Overview ¶
Package call aids in calling into smart contracts
Index ¶
Constants ¶
View Source
const ( FindByName findMode = iota FindBySelector )
Variables ¶
View Source
var ErrAbiNotFound = errors.New("abi not found ")
Functions ¶
func FindAbiFunction ¶
func FindAbiFunction(mode findMode, identifier string, arguments []*parser.ContractArgument, abiMap *abi.SelectorSyncMap) (fn *types.Function, suggestions []string, err error)
FindAbiFunction returns either the function to call or a list of suggestions (function signatures with the same name, but different argument count)
Types ¶
type ContractCall ¶
type ContractCall struct {
Conn *rpc.Connection
Address base.Address
Method *types.Function
Arguments []any
BlockNumber base.Blknum
// contains filtered or unexported fields
}
func NewContractCall ¶
func NewContractCall(conn *rpc.Connection, callAddress base.Address, theCall string) (*ContractCall, []string, error)
func NewContractCallWithAbi ¶
func NewContractCallWithAbi(conn *rpc.Connection, callAddress base.Address, theCall string, abiMap *abi.SelectorSyncMap) (*ContractCall, []string, error)
Click to show internal directories.
Click to hide internal directories.