Documentation ¶
Index ¶
- Constants
- func BinRead(buf *bytes.Buffer, data interface{})
- func BinWrite(buf *bytes.Buffer, data interface{})
- func IntTo4Bytes(num int) []byte
- func IsAddressType(str string) bool
- func JsonParamsToSlc(jsonParam json.RawMessage) ([]interface{}, error)
- func JsonParamsToSlcV1(jsonParam json.RawMessage) ([]interface{}, error)
- func ParseAddress(value interface{}) (common.Address, error)
- func ParseAddressSlice(value interface{}, size int) ([]common.Address, error)
- func ParseArg(input abi.Argument, value interface{}) (interface{}, error)
- func ParseArgs(methodName string, abiDef *abi.ABI, params []interface{}) ([]interface{}, error)
- func ParseBigInt(value interface{}) (*big.Int, error)
- func ParseBigIntSlice(value interface{}, size int) ([]*big.Int, error)
- func ParseBool(value interface{}) (bool, error)
- func ParseBoolSlice(value interface{}, size int) ([]bool, error)
- func ParseBytes(value interface{}) ([]byte, error)
- func ParseBytesM(value interface{}, m int) ([]byte, error)
- func ParseBytesMSlice(value interface{}, m, size int) ([][]byte, error)
- func ParseData(methodName string, abiDef abi.ABI, params []interface{}) (string, error)
- func ParseInt16(value interface{}) (int16, error)
- func ParseInt16Slice(value interface{}, size int) ([]int16, error)
- func ParseInt32(value interface{}) (int32, error)
- func ParseInt32Slice(value interface{}, size int) ([]int32, error)
- func ParseInt64(value interface{}) (int64, error)
- func ParseInt64Slice(value interface{}, size int) ([]int64, error)
- func ParseInt8(value interface{}) (int8, error)
- func ParseInt8Slice(value interface{}, size int) ([]int8, error)
- func ParseString(value interface{}) (string, error)
- func ParseUint16(value interface{}) (uint16, error)
- func ParseUint16Slice(value interface{}, size int) ([]uint16, error)
- func ParseUint32(value interface{}) (uint32, error)
- func ParseUint32Slice(value interface{}, size int) ([]uint32, error)
- func ParseUint64(value interface{}) (uint64, error)
- func ParseUint64Slice(value interface{}, size int) ([]uint64, error)
- func ParseUint8(value interface{}) (uint8, error)
- func ParseUint8Slice(value interface{}, size int) ([]uint8, error)
- func SignTx(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) (*ethtypes.Transaction, error)
- func StringToSlc(jsonParam string) ([]interface{}, int, error)
- func TxSignToBytes(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) ([]byte, common.Hash, error)
Constants ¶
View Source
const TRIM_SET = " \n\t"
Variables ¶
This section is empty.
Functions ¶
func IntTo4Bytes ¶
func IsAddressType ¶
func JsonParamsToSlc ¶
func JsonParamsToSlc(jsonParam json.RawMessage) ([]interface{}, error)
func JsonParamsToSlcV1 ¶
func JsonParamsToSlcV1(jsonParam json.RawMessage) ([]interface{}, error)
@Deprecated, has quotation trouble
func ParseAddress ¶
func ParseAddressSlice ¶
func ParseBigInt ¶
func ParseBoolSlice ¶
func ParseBytes ¶
func ParseBytesM ¶
func ParseBytesMSlice ¶
func ParseInt16 ¶
func ParseInt16Slice ¶
func ParseInt32 ¶
func ParseInt32Slice ¶
func ParseInt64 ¶
func ParseInt64Slice ¶
func ParseInt8Slice ¶
func ParseString ¶
func ParseUint16 ¶
func ParseUint16Slice ¶
func ParseUint32 ¶
func ParseUint32Slice ¶
func ParseUint64 ¶
func ParseUint64Slice ¶
func ParseUint8 ¶
func ParseUint8Slice ¶
func SignTx ¶
func SignTx(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) (*ethtypes.Transaction, error)
func TxSignToBytes ¶
func TxSignToBytes(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) ([]byte, common.Hash, error)
TxSignToBytes returns txBytes,txHashBytes,error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.