Documentation ¶
Index ¶
- Constants
- Variables
- func Execute(contract string, amount *big.Int, bytecode []byte) error
- func ExecuteAndResponse(contract string, amount *big.Int, bytecode []byte) (*iotexapi.SendActionResponse, error)
- func Match(in string, matchType string) string
- func Read(contract address.Address, amount string, bytecode []byte) (string, error)
- func RegisterWriteCommand(cmd *cobra.Command)
- func SendAction(elp action.Envelope, signer string) error
- func SendActionAndResponse(elp action.Envelope, signer string) (*iotexapi.SendActionResponse, error)
- func SendRaw(selp *iotextypes.Action) error
- func SendRawAndRespond(selp *iotextypes.Action) (*iotexapi.SendActionResponse, error)
- func Signer() (address string, err error)
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 ExecuteAndResponse ¶
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 RegisterWriteCommand ¶
RegisterWriteCommand registers action flags for command
func SendAction ¶
SendAction sends signed action to blockchain
func SendActionAndResponse ¶
func SendActionAndResponse(elp action.Envelope, signer string) (*iotexapi.SendActionResponse, error)
SendActionAndResponse sends signed action to blockchain with response and error return
func SendRawAndRespond ¶
func SendRawAndRespond(selp *iotextypes.Action) (*iotexapi.SendActionResponse, error)
SendRawAndRespond sends raw action to blockchain with response and error return
Types ¶
This section is empty.
Source Files ¶
- action.go
- actionclaim.go
- actiondeploy.go
- actiondeposit.go
- actionhash.go
- actioninvoke.go
- actionread.go
- actionsendraw.go
- actiontransfer.go
- stake2.go
- stake2Transfer.go
- stake2Withdraw.go
- stake2activate.go
- stake2add.go
- stake2change.go
- stake2create.go
- stake2endorse.go
- stake2migrate.go
- stake2reclaim.go
- stake2register.go
- stake2release.go
- stake2renew.go
- stake2transfer_ownership.go
- stake2update.go
- xrc20.go
- xrc20allowance.go
- xrc20approve.go
- xrc20balanceof.go
- xrc20const.go
- xrc20totalsupply.go
- xrc20transfer.go
- xrc20transferfrom.go
Click to show internal directories.
Click to hide internal directories.