Versions in this module Expand all Collapse all v1 v1.0.1 Jul 9, 2024 Changes in this version + const AddressTy + const ArrayTy + const BoolTy + const BytesTy + const FixedBytesTy + const FixedPointTy + const FunctionTy + const HashTy + const IntTy + const SliceTy + const StringTy + const TupleTy + const UintTy + var MaxInt256 = new(big.Int).Sub(new(big.Int).Lsh(common.Big1, 255), common.Big1) + var MaxUint256 = new(big.Int).Sub(new(big.Int).Lsh(common.Big1, 256), common.Big1) + func ConvertType(in interface{}, proto interface{}) interface + func MakeTopics(query ...[]interface{}) ([][]common.Hash, error) + func ParseTopics(out interface{}, fields Arguments, topics []common.Hash) error + func ParseTopicsIntoMap(out map[string]interface{}, fields Arguments, topics []common.Hash) error + func ReadFixedBytes(t Type, word []byte) (interface{}, error) + func ReadInteger(typ Type, b []byte) (interface{}, error) + func ResolveNameConflict(rawName string, used func(string) bool) string + func ToCamelCase(input string) string + func UnpackRevert(data []byte) (string, error) + type ABI struct + Constructor Method + Errors map[string]Error + Events map[string]Event + Fallback Method + Methods map[string]Method + Receive Method + func JSON(reader io.Reader) (ABI, error) + func (abi *ABI) ErrorByID(sigdata [4]byte) (*Error, error) + func (abi *ABI) EventByID(topic common.Hash) (*Event, error) + func (abi *ABI) HasFallback() bool + func (abi *ABI) HasReceive() bool + func (abi *ABI) MethodById(sigdata []byte) (*Method, error) + func (abi *ABI) UnmarshalJSON(data []byte) error + func (abi ABI) Pack(name string, args ...interface{}) ([]byte, error) + func (abi ABI) Unpack(name string, data []byte) ([]interface{}, error) + func (abi ABI) UnpackIntoInterface(v interface{}, name string, data []byte) error + func (abi ABI) UnpackIntoMap(v map[string]interface{}, name string, data []byte) (err error) + type Argument struct + Indexed bool + Name string + Type Type + func (argument *Argument) UnmarshalJSON(data []byte) error + type ArgumentMarshaling struct + Components []ArgumentMarshaling + Indexed bool + InternalType string + Name string + Type string + type Arguments []Argument + func (arguments Arguments) Copy(v interface{}, values []interface{}) error + func (arguments Arguments) NonIndexed() Arguments + func (arguments Arguments) Pack(args ...interface{}) ([]byte, error) + func (arguments Arguments) PackValues(args []interface{}) ([]byte, error) + func (arguments Arguments) Unpack(data []byte) ([]interface{}, error) + func (arguments Arguments) UnpackIntoMap(v map[string]interface{}, data []byte) error + func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) + type Error struct + ID common.Hash + Inputs Arguments + Name string + Sig string + func NewError(name string, inputs Arguments) Error + func (e *Error) Unpack(data []byte) (interface{}, error) + func (e Error) String() string + type Event struct + Anonymous bool + ID common.Hash + Inputs Arguments + Name string + RawName string + Sig string + func NewEvent(name, rawName string, anonymous bool, inputs Arguments) Event + func (e Event) String() string + type FunctionType int + const Constructor + const Fallback + const Function + const Receive + type Method struct + Constant bool + ID []byte + Inputs Arguments + Name string + Outputs Arguments + Payable bool + RawName string + Sig string + StateMutability string + Type FunctionType + func NewMethod(name string, rawName string, funType FunctionType, mutability string, ...) Method + func (method Method) IsConstant() bool + func (method Method) IsPayable() bool + func (method Method) String() string + type SelectorMarshaling struct + Inputs []ArgumentMarshaling + Name string + Type string + func ParseSelector(unescapedSelector string) (SelectorMarshaling, error) + type Type struct + Elem *Type + Size int + T byte + TupleElems []*Type + TupleRawName string + TupleRawNames []string + TupleType reflect.Type + func NewType(t string, internalType string, components []ArgumentMarshaling) (typ Type, err error) + func (t Type) GetType() reflect.Type + func (t Type) String() (out string)