# Packages
Package protocol is a generated GoMock package.
# Functions
AssembleSealedEnvelope assembles a SealedEnvelope use Envelope, Sender Address and Signature.
CalculateIntrinsicGas returns the intrinsic gas of an action.
No description provided by the author
No description provided by the author
DecodeEtherTx decodes raw data string into eth tx.
EffectiveGas returns the effective gas.
No description provided by the author
ExtractTypeSigPubkey extracts tx type, signature, and pubkey.
FakeSeal creates a SealedActionEnvelope without signature.
No description provided by the author
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.
NewAccessListTx creates a new access list transaction.
NewBlobTx creates a new blob transaction.
No description provided by the author
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.
NewCandidateEndorsementLegacy returns a CandidateEndorsement action.
NewCandidateRegister creates a CandidateRegister instance.
NewCandidateRegisterFromABIBinary decodes data into CandidateRegister action.
NewCandidateTransferOwnership returns a CandidateTransferOwnership action.
NewCandidateTransferOwnershipFromABIBinary decode data to CandidateTransferOwnership.
NewCandidateUpdate creates a CandidateUpdate instance.
NewCandidateUpdateFromABIBinary decodes data into CandidateUpdate action.
NewChangeCandidate returns a ChangeCandidate instance.
NewChangeCandidateFromABIBinary decodes data into ChangeCandidate action.
No description provided by the author
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.
No description provided by the author
NewDepositToRewardingFundFromABIBinary decodes data into action.
NewDepositToStake returns a DepositToStake instance.
NewDepositToStakeFromABIBinary decodes data into depositToStake action.
NewDynamicFeeTx creates a new dynamic fee transaction.
NewEnvelope creates a new envelope.
NewEthSigner returns the proper signer for Eth-compatible tx.
NewExecution returns an Execution instance (w/o access list).
No description provided by the author
NewLegacyTx creates a new legacy transaction.
NewMigrateStake returns a MigrateStake instance.
NewMigrateStakeFromABIBinary decodes data into MigrateStake.
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.
SignedCandidateEndorsementLegacy returns a signed candidate endorsement.
SignedCandidateRegister returns a signed candidate register.
SignedCandidateTransferOwnership returns a signed candidate transfer ownership.
SignedCandidateUpdate returns a signed candidate update.
SignedChangeCandidate returns a signed change candidate.
No description provided by the author
No description provided by the author
SignedCreateStake returns a signed create stake.
SignedDepositToStake returns a signed deposit to stake.
SignedExecution return a signed execution.
No description provided by the author
SignedReclaimStake returns a signed unstake or withdraw stake.
SignedRestake returns a signed restake.
SignedTransfer return a signed transfer.
SignedTransferStake returns a signed transfer stake.
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
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.
CandidateEndorsementOpEndorse is the operation to endorse a candidate.
CandidateEndorsementOpIntentToRevoke is the operation to intent to revoke an endorsement.
CandidateEndorsementOpLegacy is the operation to endorse or unendorse a candidate in legacy version.
CandidateEndorsementOpRevoke is the operation to revoke an endorsement.
CandidateRegisterBaseIntrinsicGas represents the base intrinsic gas for CandidateRegister.
CandidateRegisterPayloadGas represents the CandidateRegister payload gas per uint.
CandidateTransferOwnershipBaseIntrinsicGas represents the base intrinsic gas for CandidateTransferOwnership.
CandidateTransferOwnershipPayloadGas represents the CandidateTransferOwnership 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.
Bounds the amount the base fee can change between blocks.
Bounds the maximum gas limit an EIP-1559 block may have.
DepositToStakeBaseIntrinsicGas represents the base intrinsic gas for DepositToStake.
DepositToStakePayloadGas represents the DepositToStake payload gas per uint.
No description provided by the author
const.
EpochReward indicates that the action is to grant epoch reward.
base intrinsic gas for execution.
per-byte execution data gas.
Initial base fee for EIP-1559 blocks.
No description provided by the author
MigrateStakeBaseIntrinsicGas represents the base intrinsic gas for MigrateStake.
MigrateStakePayloadGas represents the MigrateStake payload 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.
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.
vars.
vars.
ErrInvalidAmount represents that amount is 0 or negative.
ErrInvalidCanName represents that candidate name is invalid.
ErrInvalidOwner represents that owner address is invalid.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
Errors.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
vars.
# Structs
AbstractAction is an abstract implementation of Action interface.
AccessListTx represents EIP-2930 access list transaction.
BlobTx represents EIP-4844 blob transaction.
BlobTxData represents an EIP-4844 transaction.
Builder is used to build an action.
CandidateActivate is the action to update a candidate's bucket.
No description provided by the author
CandidateRegister is the action to register a candidate.
CandidateTransferOwnership is the action to transfer ownership of 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.
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.
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).
DynamicFeeTx is a transaction type with dynamic fee cap and tip cap.
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.
LegacyTx is the legacy transaction.
No description provided by the author
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.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author