Versions in this module Expand all Collapse all v1 v1.0.5 Dec 26, 2020 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 ReadFixedBytes(t Type, word []byte) (interface{}, error) + func ReadInteger(typ byte, kind reflect.Kind, b []byte) interface + func ToCamelCase(input string) string + func ToGoType(index int, t Type, output []byte) (interface{}, error) + func U256(n *big.Int) []byte + type ABI struct + Constructor Method + 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(v interface{}, name string, data []byte) (err 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) LengthNonIndexed() int + 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(v interface{}, data []byte) error + func (arguments Arguments) UnpackIntoMap(v map[string]interface{}, data []byte) error + func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) + type Event struct + Anonymous bool + Inputs Arguments + Name string + RawName string + func (e Event) ID() common.Hash + func (e Event) Sig() string + func (e Event) String() string + type Method struct + Constant bool + Inputs Arguments + IsFallback bool + IsReceive bool + Name string + Outputs Arguments + Payable bool + RawName string + StateMutability string + func (method Method) ID() []byte + func (method Method) IsConstant() bool + func (method Method) IsPayable() bool + func (method Method) Sig() string + func (method Method) String() string + type Type struct + Elem *Type + Kind reflect.Kind + Size int + T byte + TupleElems []*Type + TupleRawName string + TupleRawNames []string + Type reflect.Type + func NewType(t string, internalType string, components []ArgumentMarshaling) (typ Type, err error) + func (t Type) String() (out string)