util

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix = "FLOW"

Variables

View Source
var TestID = flow.HexToID("24993fc99f81641c45c0afa307e683b4f08d407d90041aa9439f487acb33d633")

Functions

func AddCDCExtension added in v1.20.0

func AddCDCExtension(name string) string

func AddToGitIgnore

func AddToGitIgnore(filename string, loader flowkit.ReaderWriter) error

AddToGitIgnore adds a new line to the .gitignore if one doesn't exist it creates it.

func CreateTabWriter

func CreateTabWriter(b *bytes.Buffer) *tabwriter.Writer

func Exit

func Exit(code int, msg string)

func GetAddressNetwork

func GetAddressNetwork(address flowsdk.Address) (flowsdk.ChainID, error)

GetAddressNetwork returns the chain ID for an address.

func MessageWithEmojiPrefix added in v1.18.0

func MessageWithEmojiPrefix(emoji string, message string) string

func NormalizeLineEndings added in v1.19.0

func NormalizeLineEndings(s string) string

func PrintEmoji added in v1.18.0

func PrintEmoji(emoji string) string

func StripCDCExtension added in v1.20.0

func StripCDCExtension(name string) string

func TestMocks

TestMocks creates mock flowkit services, an empty state and a mock reader writer

func ValidateECDSAP256Pub

func ValidateECDSAP256Pub(key string) error

ValidateECDSAP256Pub attempt to decode the hex string representation of a ECDSA P256 public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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