encodings

package
v0.0.0-...-11d313d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABIUnpack

func ABIUnpack(v map[string]interface{}, name string, data []byte) (er error)

func FormatData

func FormatData(abi ethAbi.ABI,
	methodName string, args SCArgs) (ret []byte, er error)

func MethodTakesSingleBytes32Param

func MethodTakesSingleBytes32Param(methodName string) bool

func MethodTakesSingleBytesParam

func MethodTakesSingleBytesParam(methodName string) bool

func NewMethodsOfInterest

func NewMethodsOfInterest() (q *QuickSearch)

func Process

func Process(data, methodSignature string) (a []byte, er error)

func Unpack

func Unpack(input string) (inter interface{}, er error)

Types

type MSig

type MSig string

func (MSig) IsMethodOfInterest

func (m MSig) IsMethodOfInterest() (tf bool)

func (MSig) TakesBytes

func (m MSig) TakesBytes() (tf bool)

func (MSig) TakesBytes32

func (m MSig) TakesBytes32() (tf bool)

func (MSig) VoidParams

func (m MSig) VoidParams() (tf bool)

func (MSig) WithoutParams

func (m MSig) WithoutParams() (wo string)

type SCArgs

type SCArgs struct {
	Params [][]byte
}

type UnpackedTx

type UnpackedTx struct {
	MethodSig string
	Data      []byte
	Address   string // will be used later in the prot
	Value     uint64 // will be used later in the prot
	Gas       uint64 // will be used later in the prot
	GasPrice  uint64 // will be used later in the prot
}

Jump to

Keyboard shortcuts

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