cmd

package
v0.0.0-...-ddeaac2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: CC0-1.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeysCmd

func AddKeysCmd() *cobra.Command

AddKeysCmd adds keys to the account via batch transaction

func DeleteKeysCmd

func DeleteKeysCmd() *cobra.Command

DeleteKeysCmd deletes keys from the account via batch transaction

func GenerateKeysCmd

func GenerateKeysCmd() *cobra.Command

GenerateKeysCmd generates a new key pair and attempts to save it to the file

Types

type Config

type Config struct {
	Signer                   string `mapstructure:"signer"`
	SignerKey                string `mapstructure:"signerKey"`
	FunctionKeyPrefixPattern string `mapstructure:"functionKeyPrefixPattern"`
	NearNetworkID            string `mapstructure:"networkID"`
	NearNodeURL              string `mapstructure:"nearNodeURL"`
	NearArchivalNodeURL      string `mapstructure:"nearArchivalNodeURL"`
	NearConfig               near.Config
}

type KeyFile

type KeyFile struct {
	AccountID string `json:"account_id"`
	PublicKey string `json:"public_key"`
	SecretKey string `json:"secret_key"`
}

Jump to

Keyboard shortcuts

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