package
0.11.1
Repository: https://github.com/iotexproject/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.
IsSystemLog checks whether a log is system log lowerBound chooses the largest system log topic, which is InContractTransfer currently.
NewCandidateRegister creates a CandidateRegister instance.
NewCandidateUpdate creates a CandidateUpdate instance.
NewChangeCandidate returns a ChangeCandidate instance.
NewCreateStake returns a CreateStake instance.
NewDepositToStake returns a DepositToStake instance.
NewExecution returns a Execution instance.
NewPutPollResult instantiates a putting poll result action struct.
NewRestake returns a Restake instance.
NewTransfer returns a Transfer instance.
NewTransferStake returns a TransferStake instance.
NewUnstake returns a Unstake instance.
NewWithdrawStake returns a WithdrawStake 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.
CandidateRegisterBaseIntrinsicGas represents the base intrinsic gas for CandidateRegister.
CandidateRegisterPayloadGas represents the CandidateRegister payload gas per uint.
CandidateUpdateBaseIntrinsicGas represents the base intrinsic gas for CandidateUpdate.
CreateStakeBaseIntrinsicGas represents the base intrinsic gas for CreateStake.
CreateStakePayloadGas represents the CreateStake payload gas per uint.
DepositToStakeBaseIntrinsicGas represents the base intrinsic gas for DepositToStake.
DepositToStakePayloadGas represents the DepositToStake payload gas per uint.
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.
MoveStakeBaseIntrinsicGas represents the base intrinsic gas for stake move.
MoveStakePayloadGas represents the stake move payload gas per uint.
ReclaimStakeBaseIntrinsicGas represents the base intrinsic gas for stake reclaim.
ReclaimStakePayloadGas represents the stake reclaim payload gas per uint.
RestakeBaseIntrinsicGas represents the base intrinsic gas for stake again.
RestakePayloadGas represents the Restake payload gas per uint.
TransferBaseIntrinsicGas represents the base intrinsic gas for transfer.
TransferPayloadGas represents the transfer payload gas per uint.

# 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.
ErrGasPrice indicates the error of gas price.
ErrHitGasLimit is the error when hit gas limit.
ErrInsufficientBalanceForGas is the error that the balance in executor account is lower than gas.
ErrInvalidAmount represents that amount is 0 or negative.
ErrNonce indicates the error of nonce.
ErrNotFound indicates the nonexistence of action.
ErrOutOfGas is the error when running out of gas.
ErrTransfer indicates the error of transfer.
ErrVotee indicates the error of votee.
32 bytes with all zeros.

# Structs

AbstractAction is an abstract implementation of Action interface.
Builder is used to build an action.
CandidateRegister is the action to register a candidate.
CandidateUpdate is the action to register a candidate.
ChangeCandidate defines the action of changing stake candidate ts the other.
ClaimFromRewardingFund is the action to claim reward from the rewarding fund.
ClaimFromRewardingFundBuilder is the struct to build ClaimFromRewardingFund.
CreateStake defines the action of CreateStake creation.
DepositToRewardingFund is the action to deposit to the rewarding fund.
DepositToRewardingFundBuilder is the struct to build DepositToRewardingFund.
DepositToStake defines the action of stake add deposit.
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.
PutPollResult represents put the poll result from gravity chain.
Receipt represents the result of a contract.
Restake defines the action of stake again.
SealedEnvelope is a signed action envelope.
Transfer defines the struct of account-based transfer.
TransferStake defines the action of transfering stake ownership ts the other.
Unstake defines the action of unstake.
WithdrawStake defines the action of stake withdraw.

# Interfaces

Action is the action can be Executed in protocols.
SealedEnvelopeValidator is the interface of validating an SealedEnvelope action.