Documentation ¶
Index ¶
- Variables
- func ArgsToString(start int, method reflect.Method) (string, error)
- func ArgsToString2(args []interface{}) (string, error)
- func Pack(args []interface{}) ([]byte, error)
- func PackElement(v reflect.Value) ([]byte, error)
- func ToUint256Bytes(topics [][]byte, value reflect.Value) ([][]byte, error)
Constants ¶
This section is empty.
Variables ¶
var (
ErrInvalidType = errors.New("invalid Type")
)
Functions ¶
func ArgsToString ¶
methodToString convert the given golang method to appropriate solidity-type function contract function의 경우 index = 2 부터 실제 argument 이다. ex. router.AddLiqudity : func(*router.RounterFront, *types.ContractContext, common.Address, common.Address, *amount.Amount, *amount.Amount, *amount.Amount, *amount.Amount) (*amount.Amount, *amount.Amount, *amount.Amount, common.Address, error)
func ArgsToString2 ¶
ArgsToString2 convert the given arguments to appropriate solidity-type function arguments
func Pack ¶
Pack packs MethodCallEvent arguments. When unpacking, the function(event) definition is necessary
func PackElement ¶
PackElement packs the given reflect value according to the abi specification in v.
Types ¶
This section is empty.