utils

package
v0.0.0-...-917f730 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFailWithError

func ExtractFailWithError(output string) (ast.Node, error)

ExtractFailWithError extracts the Micheline value emitted by (FAILWITH) instruction

func FormatRFC3339Timestamp

func FormatRFC3339Timestamp(timestamp time.Time) string

FormatRFC3339Timestamp format timestamp to RFC3339

func GenerateKey

func GenerateKey() (tezos.PrivateKey, error)

GenerateKey generates a tezos wallet with Ed25519 curve

func ParseRFC3339Timestamp

func ParseRFC3339Timestamp(timestamp string) (time.Time, error)

ParseRFC3339Timestamp parse RFC3339 timestamp

func ValidateChainID

func ValidateChainID(chainID string) bool

ValidateChainID validate chain_id hash

func ValidateString

func ValidateString(regex string, name string) error

ValidateString validates string against regex expression

Types

This section is empty.

Jump to

Keyboard shortcuts

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