package
0.5.0
Repository: https://github.com/frankonly/iotex-core.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AssembleSealedEnvelope assembles a SealedEnvelope use Envelope, Sender Address and Signature.
ClassifyActions classfies actions.
FakeSeal creates a SealedActionEnvelope without signature.
IsExperimentalAction test it the action is experimental.
NewCreateDeposit instantiates a deposit creation to sub-chain action struct.
NewExecution returns a Execution instance.
NewPutBlock instantiates a putting sub-chain block action struct.
NewPutPollResult instantiates a putting poll result action struct.
NewSettleDeposit instantiates a deposit settlement to sub-chain action struct.
NewStartSubChain instantiates a start sub-chain action struct.
NewStopSubChain returns a StopSubChain instance.
NewTransfer returns a Transfer instance.
NewVote returns a Vote instance.
Sign signs the action using sender's private key.
Verify verifies the action using sender's public key.

# Constants

BlockReward indicates that the action is to grant block reward.
CreateDepositIntrinsicGas represents the intrinsic gas for the deposit action.
EmptyAddress is the empty string.
EpochReward indicates that the action is to grant epoch reward.
ExecutionBaseIntrinsicGas represents the base intrinsic gas for execution.
ExecutionDataGas represents the execution data gas per uint.
FailureReceiptStatus is the status that contract execution failed.
PutBlockIntrinsicGas is the instrinsic gas for put block action.
SettleDepositIntrinsicGas represents the intrinsic gas for the deposit action.
SignatureLength indicates the length of signature generated by SECP256K1 crypto library.
StartSubChainIntrinsicGas is the instrinsic gas for start sub chain action.
StopSubChainIntrinsicGas is the instrinsic gas for stop sub chain action.
SuccessReceiptStatus is the status that contract execution success.
TransferBaseIntrinsicGas represents the base intrinsic gas for transfer.
TransferPayloadGas represents the transfer payload gas per uint.
VoteIntrinsicGas represents the intrinsic gas for vote.

# Variables

ClaimFromRewardingFundBaseGas represents the base intrinsic gas for claimFromRewardingFund.
ClaimFromRewardingFundGasPerByte represents the claimFromRewardingFund payload gas per uint.
DepositToRewardingFundBaseGas represents the base intrinsic gas for depositToRewardingFund.
DepositToRewardingFundGasPerByte represents the depositToRewardingFund payload gas per uint.
ErrAction indicates error for an action.
ErrActPool indicates the error of actpool.
ErrAddress indicates error of address.
ErrBalance indicates the error of balance.
ErrGasHigherThanLimit indicates the error of gas value.
ErrGasPrice indicates the error of gas price.
ErrHash indicates the error of action's hash.
ErrHitGasLimit is the error when hit gas limit.
ErrInsufficientBalanceForGas is the error that the balance in executor account is lower than gas.
ErrNonce indicates the error of nonce.
ErrOutOfGas is the error when running out of gas.
ErrTransfer indicates the error of transfer.
ErrVotee indicates the error of votee.

# Structs

AbstractAction is an abstract implementation of Action interface.
Builder is used to build an action.
ClaimFromRewardingFund is the action to claim reward from the rewarding fund.
ClaimFromRewardingFundBuilder is the struct to build ClaimFromRewardingFund.
CreateDeposit represents the action to deposit the token from main-chain to sub-chain.
DepositToRewardingFund is the action to deposit to the rewarding fund.
DepositToRewardingFundBuilder is the struct to build DepositToRewardingFund.
Envelope defines an envelope wrapped on action with some envelope metadata.
EnvelopeBuilder is the builder to build Envelope.
Execution defines the struct of account-based contract execution.
GrantReward is the action to grant either block or epoch reward.
GrantRewardBuilder is the struct to build GrantReward.
Log stores an evm contract event.
PutBlock represents put a sub-chain block message.
PutPollResult represents put the poll result from gravity chain.
Receipt represents the result of a contract.
SealedEnvelope is a signed action envelope.
SettleDeposit represents the action to settle a deposit on the sub-chain.
StartSubChain represents start sub-chain message.
StopSubChain defines the action to stop sub chain.
Transfer defines the struct of account-based transfer.
Vote defines the struct of account-based vote.

# Interfaces

Action is the action can be Executed in protocols.