ethtools

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2019 License: Apache-2.0, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TRIM_SET = " \n\t"

Variables

This section is empty.

Functions

func BinRead

func BinRead(buf *bytes.Buffer, data interface{})

func BinWrite

func BinWrite(buf *bytes.Buffer, data interface{})

func IntTo4Bytes

func IntTo4Bytes(num int) []byte

func IsAddressType

func IsAddressType(str string) bool

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 ParseAddress(value interface{}) (common.Address, error)

func ParseAddressSlice

func ParseAddressSlice(value interface{}, size int) ([]common.Address, error)

func ParseArg

func ParseArg(input abi.Argument, value interface{}) (interface{}, error)

func ParseArgs

func ParseArgs(methodName string, abiDef *abi.ABI, params []interface{}) ([]interface{}, error)

func ParseBigInt

func ParseBigInt(value interface{}) (*big.Int, error)

func ParseBigIntSlice

func ParseBigIntSlice(value interface{}, size int) ([]*big.Int, error)

func ParseBool

func ParseBool(value interface{}) (bool, error)

func ParseBoolSlice

func ParseBoolSlice(value interface{}, size int) ([]bool, error)

func ParseBytes

func ParseBytes(value interface{}) ([]byte, error)

func ParseBytesM

func ParseBytesM(value interface{}, m int) ([]byte, error)

func ParseBytesMSlice

func ParseBytesMSlice(value interface{}, m, size int) ([][]byte, error)

func ParseData

func ParseData(methodName string, abiDef abi.ABI, params []interface{}) (string, error)

func ParseInt16

func ParseInt16(value interface{}) (int16, error)

func ParseInt16Slice

func ParseInt16Slice(value interface{}, size int) ([]int16, error)

func ParseInt32

func ParseInt32(value interface{}) (int32, error)

func ParseInt32Slice

func ParseInt32Slice(value interface{}, size int) ([]int32, error)

func ParseInt64

func ParseInt64(value interface{}) (int64, error)

func ParseInt64Slice

func ParseInt64Slice(value interface{}, size int) ([]int64, error)

func ParseInt8

func ParseInt8(value interface{}) (int8, error)

func ParseInt8Slice

func ParseInt8Slice(value interface{}, size int) ([]int8, error)

func ParseString

func ParseString(value interface{}) (string, error)

func ParseUint16

func ParseUint16(value interface{}) (uint16, error)

func ParseUint16Slice

func ParseUint16Slice(value interface{}, size int) ([]uint16, error)

func ParseUint32

func ParseUint32(value interface{}) (uint32, error)

func ParseUint32Slice

func ParseUint32Slice(value interface{}, size int) ([]uint32, error)

func ParseUint64

func ParseUint64(value interface{}) (uint64, error)

func ParseUint64Slice

func ParseUint64Slice(value interface{}, size int) ([]uint64, error)

func ParseUint8

func ParseUint8(value interface{}) (uint8, error)

func ParseUint8Slice

func ParseUint8Slice(value interface{}, size int) ([]uint8, error)

func SignTx

func SignTx(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) (*ethtypes.Transaction, error)

func StringToSlc

func StringToSlc(jsonParam string) ([]interface{}, int, error)

continue...TODO

func TxSignToBytes

func TxSignToBytes(tx *ethtypes.Transaction, privkey *ecdsa.PrivateKey) ([]byte, common.Hash, error)

TxSignToBytes returns txBytes,txHashBytes,error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL