utils

package
v1.5.53 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ElementaryName

func ElementaryName(name string) string

Convert from short to canonical names

func EventID

func EventID(method string, paramTypes []string) []byte

'baz', [ 'uint32', 'bool' ]

func MethodID

func MethodID(method string, paramTypes []string) []byte

'baz', [ 'uint32', 'bool' ]

func RawEncode

func RawEncode(paramTypes []string, values []interface{}) []byte

[ 'uint32', 'bool' ], [ 69, 1 ]

Types

type CallData

type CallData struct {
	Method string            `json:"method"`
	Args   []json.RawMessage `json:"args,omitempty"`
}

type Signature

type Signature struct {
	Method  string
	Args    []string
	Retargs []string
}

func ParseSignature

func ParseSignature(sig string) (*Signature, error)

someMethod(bytes,uint)

type WasmInput

type WasmInput struct {
	Method string
	Sink   []byte
}

Jump to

Keyboard shortcuts

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