package
1.14.2
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.
CalculateIntrinsicGas returns the intrinsic gas of an action.
DecodeEtherTx decodes raw data string into eth tx.
DecodeRawTx decodes raw data string into eth tx.
ExtractTypeSigPubkey extracts tx type, signature, and pubkey.
FakeSeal creates a SealedActionEnvelope without signature.
IsSystemAction determine whether input action belongs to system action.
IsValidCandidateName check if a candidate name string is valid.
LoadErrorDescription loads corresponding description related to the error.
MsgHash calculate the hash of msg.
NewCandidateActivate returns a CandidateActivate action.
NewCandidateActivateFromABIBinary parses the smart contract input and creates an action.
NewCandidateEndorsement returns a CandidateEndorsement action.
NewCandidateEndorsementFromABIBinary parses the smart contract input and creates an action.
NewCandidateRegister creates a CandidateRegister instance.
NewCandidateRegisterFromABIBinary decodes data into CandidateRegister action.
NewCandidateUpdate creates a CandidateUpdate instance.
NewCandidateUpdateFromABIBinary decodes data into CandidateUpdate action.
NewChangeCandidate returns a ChangeCandidate instance.
NewChangeCandidateFromABIBinary decodes data into ChangeCandidate action.
NewClaimFromRewardingFundFromABIBinary decodes data into action.
NewConsignJSON creates a consignment JSON from inputs.
NewConsignment creates a consignment from data.
NewConsignMsg creates a consignment message from inputs.
NewCreateStake returns a CreateStake instance.
NewCreateStakeFromABIBinary decodes data into createStake action.
NewDepositToRewardingFundFromABIBinary decodes data into action.
NewDepositToStake returns a DepositToStake instance.
NewDepositToStakeFromABIBinary decodes data into depositToStake action.
NewEthSigner returns the proper signer for Eth-compatible tx.
NewExecution returns an Execution instance (w/o access list).
NewExecutionWithAccessList returns an Execution instance with access list.
NewPutPollResult instantiates a putting poll result action struct.
NewRestake returns a Restake instance.
NewRestakeFromABIBinary decodes data into Restake action.
NewTransfer returns a Transfer instance.
NewTransferStake returns a TransferStake instance.
NewTransferStakeFromABIBinary decodes data into TransferStake action.
NewUnstake returns a Unstake instance.
NewUnstakeFromABIBinary decodes data into WithdrawStake action.
NewWithdrawStake returns a WithdrawStake instance.
NewWithdrawStakeFromABIBinary decodes data into WithdrawStake action.
RawTxToSignedTx converts the raw tx to corresponding signed tx.
RecoverPubkeyFromEccSig recovers public key from ECC signature.
Sign signs the action using sender's private key.
SignedCandidateActivate returns a signed candidate selfstake.
SignedCandidateEndorsement returns a signed candidate endorsement.
SignedCandidateRegister returns a signed candidate register.
SignedCandidateUpdate returns a signed candidate update.
SignedChangeCandidate returns a signed change candidate.
SignedCreateStake returns a signed create stake.
SignedDepositToStake returns a signed deposit to stake.
SignedExecution return a signed execution.
SignedReclaimStake returns a signed unstake or withdraw stake.
SignedRestake returns a signed restake.
SignedTransfer return a signed transfer.
SignedTransferStake returns a signed transfer stake.

# Constants

BlockReward indicates that the action is to grant block reward.
CandidateActivateBaseIntrinsicGas represents the base intrinsic gas for CandidateActivate.
CandidateEndorsementBaseIntrinsicGas represents the base intrinsic gas for CandidateEndorsement.
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.
const.
EpochReward indicates that the action is to grant epoch reward.
base intrinsic gas for execution.
per-byte execution data gas.
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.
Per address specified in EIP 2930 access list.
Per storage key specified in EIP 2930 access list.

# 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.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
ErrInvalidAmount represents that amount is 0 or negative.
ErrInvalidCanName represents that candidate name is invalid.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
Errors.
vars.
vars.
vars.
vars.
vars.
vars.
vars.

# Structs

AbstractAction is an abstract implementation of Action interface.
Builder is used to build an action.
CandidateActivate is the action to update a candidate's bucket.
CandidateEndorsement is the action to endorse or unendorse a candidate.
CandidateRegister is the action to register a candidate.
CandidateUpdate is the action to update 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.
No description provided by the author
No description provided by the author
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.
Deserializer de-serializes an action It's a wrapper to set certain parameters in order to correctly de-serialize an action Currently the parameter is EVM network ID for tx in web3 format, it is called like act, err := (&Deserializer{}).SetEvmNetworkID(id).ActionToSealedEnvelope(pbAction).
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.
No description provided by the author
PutPollResult represents put the poll result from gravity chain.
No description provided by the author
Restake defines the action of stake again.
SealedEnvelope is a signed action envelope.
No description provided by the author
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

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SealedEnvelopeValidator is the interface of validating an SealedEnvelope action.

# Type aliases

No description provided by the author