abispec

package
v0.128.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(bytesString string, types []string) ([]interface{}, error)

bytesString e.g. 0x000000000000000000000000000000000000000000000000000000005bc741cd00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000013b86dbf1a83c9e6a492914a0ee39e8a5b7eb60700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e516d533152484e4a57414b356e426f6f57454d34654d644268707a35666e325764557473457357754a4b79356147000000000000000000000000000000000000 types e.g. []string{"uint256","bytes","address","uint256","uint256"}

func Encode

func Encode(method string, paramsJSON string) (string, error)

func EncodeTransfer

func EncodeTransfer(to string, value string) (string, error)

func HexToNumber

func HexToNumber(hex string) string

func NumberToHex

func NumberToHex(numString string) string

func Sha3 added in v0.111.5

func Sha3(str string) string

func Utf8decode added in v0.111.5

func Utf8decode(str string) ([]byte, error)

implementation referenced from https://github.com/mathiasbynens/utf8.js/blob/2ce09544b62f2a274dbcd249473c0986e3660849/utf8.js

func Utf8encode added in v0.111.5

func Utf8encode(str string) (string, error)

implementation referenced from https://github.com/mathiasbynens/utf8.js/blob/2ce09544b62f2a274dbcd249473c0986e3660849/utf8.js

Types

This section is empty.

Jump to

Keyboard shortcuts

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