utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DecodeAccountIDFromSS58 = types.DecodeAccountIDFromSS58
	EncodeAccountIDToSS58   = types.EncodeAccountIDToSS58
)

Functions

func GenerateSalt added in v0.2.0

func GenerateSalt() string

func Hash256

func Hash256(buf []byte) []byte

func HoldToClose

func HoldToClose(waitFunc func())

func IsNameEqual

func IsNameEqual(r1 []string, r2 []string) bool

IsNameEqual is name equal

func LoadRuntimeMetadata

func LoadRuntimeMetadata(path string) *types.Metadata

func MustAccountIDFromSS58

func MustAccountIDFromSS58(address string) types.AccountID

MustAccountIDFromSS58 must account for ss58 if not panic

func MustDecodeAccountIDFromSS58

func MustDecodeAccountIDFromSS58(address string) types.AccountID

MustDecodeAccountIDFromSS58 if error panic

func NewAccountIDFromSS58

func NewAccountIDFromSS58(address string) (types.AccountID, error)

NewAccountIDFromSS58 TODO: to go-sdk

func RandStringBytesRmndr added in v0.2.0

func RandStringBytesRmndr(n int) string

func Sum256

func Sum256(buf []byte) [32]byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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