Versions in this module Expand all Collapse all v0 v0.4.2 Aug 4, 2022 v0.4.1 Mar 23, 2022 v0.4.0 Mar 21, 2022 v0.3.3 Feb 26, 2022 v0.3.2 Feb 22, 2022 v0.3.1 Feb 19, 2022 v0.3.0 Feb 8, 2022 v0.2.8 Jan 18, 2022 v0.2.7 Jan 17, 2022 v0.2.5 Jan 17, 2022 v0.2.4 Jan 17, 2022 v0.2.3 Jan 7, 2022 v0.2.2 Jan 4, 2022 v0.2.1 Dec 28, 2021 v0.2.0 Dec 23, 2021 v0.1.9 Dec 16, 2021 v0.1.8 Nov 24, 2021 v0.1.7 Nov 24, 2021 v0.1.6 Nov 15, 2021 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 + 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) 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) String() string + func (e *Error) Unpack(data []byte) (interface{}, error) + 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 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)