Versions in this module Expand all Collapse all v1 v1.1.2 Jul 4, 2022 v1.1.1 Apr 21, 2022 v1.1.0 Mar 30, 2022 v1.0.1 Mar 24, 2022 v1.0.0 Mar 14, 2022 Changes in this version + const AddressTy + const ArrayTy + const BoolTy + const BytesTy + const ContractTypeSolidity + const ContractTypeWasm + 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 BytesConverter(source []byte, t string) interface + func GenerateInputData(ct ContractType, input []byte) ([]byte, error) + func GetFuncParamWrap(str string) []string + func GetFuncParams(paramString string) []string + func ParseWasmCallSolInput(input []byte) ([]byte, error) + func ReadFixedBytes(t Type, word []byte) (interface{}, error) + func ReadInteger(typ Type, b []byte) interface + func SetInputLength(input []byte) (res []byte) + func Sig(funcName string, types []string) string + func SolInputStringTOInt(v string, bitSize int, hasNotPrefixU bool) (interface{}, error) + func SolInputTypeConversion(t string, v string) (interface{}, error) + func SpliceParam(param string) (paramType string, paramValue string, err error) + func StringConverter(source string, t string) ([]byte, error) + func StringConverterV2(source string, t string) ([]byte, error) + func StringToArg(source string, t string) (interface{}, error) + func ToCamelCase(input string) string + func TrimSpace(str string) string + func U256(n *big.Int) []byte + func WasmArgToBytes(arg interface{}) []byte + type ABI struct + Constructor Method + Events map[string]Event + Methods map[string]Method + func JSON(reader io.Reader) (ABI, error) + 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, output []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) PackV2(args ...interface{}) ([]byte, error) + func (arguments Arguments) PackValues(args []interface{}) ([]byte, error) + func (arguments Arguments) ReturnBytesUnpack(data string) []interface{} + func (arguments Arguments) Unpack(v interface{}, data []byte) error + func (arguments Arguments) UnpackV2(v interface{}, data []byte) error + func (arguments Arguments) UnpackValues(data []byte) ([]interface{}, error) + func (arguments Arguments) UnpackValuesV2(data []byte) ([]interface{}, error) + type ContractType interface + GenerateInputData func() ([]byte, error) + NewContractTypeFromJson func([]byte) error + type Event struct + Anonymous bool + Inputs Arguments + Name string + func (e Event) Id() common.Hash + func (e Event) String() string + type Method struct + Const bool + Inputs Arguments + Name string + Outputs Arguments + func (method Method) Id() []byte + func (method Method) Sig() string + func (method Method) String() string + type SolInput struct + FuncName string + FuncParams []string + func (s *SolInput) GenerateInputData() ([]byte, error) + func (s *SolInput) NewContractTypeFromJson(input []byte) error + type Type struct + Elem *Type + Kind reflect.Kind + Size int + T byte + TupleElems []*Type + TupleRawName string + TupleRawNames []string + TupleType reflect.Type + Type reflect.Type + func NewType(t string) (typ Type, err error) + func NewTypeV2(t string, internalType string, components []ArgumentMarshaling) (typ Type, err error) + func (t Type) GetType() reflect.Type + func (t Type) String() (out string) + func (t Type) StringConvert(value string) (interface{}, error) + type WasmInput struct + FuncName string + FuncParams []string + TxType int + func (c *WasmInput) GenerateInputData() ([]byte, error) + func (c *WasmInput) NewContractTypeFromJson(input []byte) error