accounts

package
v0.45.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddContractCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "add-contract <filename>",
		Short:   "Deploy a new contract to an account",
		Example: `flow accounts add-contract ./FungibleToken.cdc`,
		Args:    cobra.MinimumNArgs(1),
	},
	Flags: &addContractFlags,
	RunS:  addContract,
}
View Source
var Cmd = &cobra.Command{
	Use:              "accounts",
	Short:            "Create and retrieve accounts and deploy contracts",
	TraverseChildren: true,
	GroupID:          "resources",
}
View Source
var CreateCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "create",
		Short:   "Create a new account on network",
		Example: `flow accounts create --key d651f1931a2...8745`,
	},
	Flags: &createFlags,
	RunS:  create,
}
View Source
var GetCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "get <address>",
		Short:   "Gets an account by address",
		Example: "flow accounts get f8d6e0586b0a20c7",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &getFlags,
	Run:   get,
}
View Source
var RemoveCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "remove-contract <name>",
		Short:   "Remove a contract deployed to an account",
		Example: `flow accounts remove-contract FungibleToken`,
		Args:    cobra.ExactArgs(1),
	},
	Flags: &flagsRemove,
	RunS:  removeContract,
}
View Source
var StakingCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "staking-info <address>",
		Short:   "Get account staking info",
		Example: "flow accounts staking-info f8d6e0586b0a20c7",
		Args:    cobra.ExactArgs(1),
	},
	Flags: &stakingFlags,
	Run:   stakingInfo,
}
View Source
var UpdateCommand = &command.Command{
	Cmd: &cobra.Command{
		Use:     "update-contract <filename>",
		Short:   "Update a contract deployed to an account",
		Example: `flow accounts update-contract ./FungibleToken.cdc`,
		Args:    cobra.MinimumNArgs(1),
	},
	Flags: &updateContractFlags,
	RunS:  updateContract,
}

Functions

This section is empty.

Types

type AccountResult

type AccountResult struct {
	*flow.Account
	// contains filtered or unexported fields
}

AccountResult represent result from all account commands.

func (*AccountResult) JSON

func (r *AccountResult) JSON() interface{}

func (*AccountResult) Oneliner

func (r *AccountResult) Oneliner() string

func (*AccountResult) String

func (r *AccountResult) String() string

type StakingResult

type StakingResult struct {
	// contains filtered or unexported fields
}

func (*StakingResult) JSON

func (r *StakingResult) JSON() interface{}

func (*StakingResult) Oneliner

func (r *StakingResult) Oneliner() string

func (*StakingResult) String

func (r *StakingResult) String() string

Jump to

Keyboard shortcuts

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