action

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GasLimitFlagDefault = uint64(20000000)

	SignerFlagDefault = ""
)

Flag label, short label and defaults

View Source
const (
	// Pending action is in the action pool but not executed by blockchain
	Pending actionState = iota
	// Executed action has been run and recorded on blockchain
	Executed
)

Variables

This section is empty.

Functions

func Execute added in v1.9.0

func Execute(client ioctl.Client,
	cmd *cobra.Command,
	contract string,
	amount *big.Int,
	bytecode []byte,
	gasPrice, signer, password string,
	nonce, gasLimit uint64,
	assumeYes bool,
) error

Execute sends signed execution's transaction to blockchain

func GetWriteCommandFlag added in v1.9.0

func GetWriteCommandFlag(cmd *cobra.Command) (gasPrice, signer, password string, nonce, gasLimit uint64, assumeYes bool, err error)

GetWriteCommandFlag returns action flags for command

func Match

func Match(client ioctl.Client, in string, matchType string) string

Match returns human readable expression

func NewActionClaimCmd added in v1.9.0

func NewActionClaimCmd(client ioctl.Client) *cobra.Command

NewActionClaimCmd represents the action claim command

func NewActionCmd added in v1.9.0

func NewActionCmd(client ioctl.Client) *cobra.Command

NewActionCmd represents the action command

func NewActionDepositCmd added in v1.9.0

func NewActionDepositCmd(client ioctl.Client) *cobra.Command

NewActionDepositCmd represents the action deposit command

func NewActionHashCmd

func NewActionHashCmd(client ioctl.Client) *cobra.Command

NewActionHashCmd represents the action hash command

func NewActionReadCmd added in v1.9.0

func NewActionReadCmd(client ioctl.Client) *cobra.Command

NewActionReadCmd represents the action Read command

func NewActionSendRawCmd added in v1.9.0

func NewActionSendRawCmd(client ioctl.Client) *cobra.Command

NewActionSendRawCmd represents the action send raw transaction command

func NewActionTransferCmd added in v1.9.0

func NewActionTransferCmd(client ioctl.Client) *cobra.Command

NewActionTransferCmd represents the action transfer command

func NewStake2WithdrawCmd added in v1.9.0

func NewStake2WithdrawCmd(client ioctl.Client) *cobra.Command

NewStake2WithdrawCmd represents the stake2 withdraw command

func NewXrc20Cmd added in v1.9.0

func NewXrc20Cmd(client ioctl.Client) *cobra.Command

NewXrc20Cmd represent xrc20 standard command-line

func NewXrc20TransferFromCmd added in v1.9.0

func NewXrc20TransferFromCmd(client ioctl.Client) *cobra.Command

NewXrc20TransferFromCmd represent xrc20TransferFrom command

func Read added in v1.9.0

func Read(client ioctl.Client,
	contract address.Address,
	amount string,
	bytecode []byte,
	signer string,
	gasLimit uint64,
) (string, error)

Read reads smart contract on IoTeX blockchain

func RegisterWriteCommand added in v1.9.0

func RegisterWriteCommand(client ioctl.Client, cmd *cobra.Command)

RegisterWriteCommand registers action flags for command

func SendAction added in v1.9.0

func SendAction(client ioctl.Client,
	cmd *cobra.Command,
	elp action.Envelope,
	signer, password string,
	nonce uint64,
	assumeYes bool,
) error

SendAction sends signed action to blockchain

func SendRaw added in v1.9.0

func SendRaw(client ioctl.Client, cmd *cobra.Command, selp *iotextypes.Action) error

SendRaw sends raw action to blockchain

func Signer added in v1.9.0

func Signer(client ioctl.Client, signer string) (string, error)

Signer returns signer's address

Types

This section is empty.

Jump to

Keyboard shortcuts

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