action

package
v1.14.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

View Source
var ActionCmd = &cobra.Command{
	Use:   "action",
	Short: config.TranslateInLang(_actionCmdShorts, config.UILanguage),
}

ActionCmd represents the action command

View Source
var Stake2Cmd = &cobra.Command{
	Use:   "stake2",
	Short: config.TranslateInLang(_stake2CmdShorts, config.UILanguage),
}

Stake2Cmd represent stake2 command

View Source
var Xrc20Cmd = &cobra.Command{
	Use:   "xrc20",
	Short: config.TranslateInLang(_xrc20CmdShorts, config.UILanguage),
}

Xrc20Cmd represent xrc20 standard command-line

Functions

func Execute added in v0.8.1

func Execute(contract string, amount *big.Int, bytecode []byte) error

Execute sends signed execution transaction to blockchain

func ExecuteAndResponse added in v1.13.0

func ExecuteAndResponse(contract string, amount *big.Int, bytecode []byte) (*iotexapi.SendActionResponse, error)

ExecuteAndResponse sends signed execution transaction to blockchain and with response and error return

func Match

func Match(in string, matchType string) string

Match returns human readable expression

func Read added in v0.8.1

func Read(contract address.Address, amount string, bytecode []byte) (string, error)

Read reads smart contract on IoTeX blockchain

func RegisterWriteCommand added in v1.1.0

func RegisterWriteCommand(cmd *cobra.Command)

RegisterWriteCommand registers action flags for command

func SendAction added in v0.8.1

func SendAction(elp action.Envelope, signer string) error

SendAction sends signed action to blockchain

func SendActionAndResponse added in v1.13.0

func SendActionAndResponse(elp action.Envelope, signer string) (*iotexapi.SendActionResponse, error)

SendActionAndResponse sends signed action to blockchain with response and error return

func SendRaw added in v0.8.1

func SendRaw(selp *iotextypes.Action) error

SendRaw sends raw action to blockchain

func SendRawAndRespond added in v1.13.0

func SendRawAndRespond(selp *iotextypes.Action) (*iotexapi.SendActionResponse, error)

SendRawAndRespond sends raw action to blockchain with response and error return

func Signer added in v1.1.0

func Signer() (address string, err 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