action

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 31 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

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

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

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

NewActionClaimCmd represents the action claim command

func NewActionCmd

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

NewActionCmd represents the action command

func NewActionDepositCmd

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

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

NewActionReadCmd represents the action Read command

func NewActionSendRawCmd

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

NewActionSendRawCmd represents the action send raw transaction command

func NewActionTransferCmd

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

NewActionTransferCmd represents the action transfer command

func NewStake2WithdrawCmd

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

NewStake2WithdrawCmd represents the stake2 withdraw command

func NewXrc20Cmd

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

NewXrc20Cmd represent xrc20 standard command-line

func NewXrc20TransferFromCmd

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

NewXrc20TransferFromCmd represent xrc20TransferFrom command

func Read

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

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

RegisterWriteCommand registers action flags for command

func SendAction

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

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

SendRaw sends raw action to blockchain

func Signer

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