package
4.0.2-stable+incompatible
Repository: https://github.com/algorand/go-algorand.git
Documentation: pkg.go.dev
# Functions
MaxSize returns a maximum valid message size for this message type.
AccumulateDeltas adds delta into base accounts map in-place.
MaxSize returns a maximum valid message size for this message type.
AssignAccountData assigns the contents of AccountData to the fields in basics.AccountData, but does not touch the AppParams, AppLocalState, AssetHolding, or AssetParams data.
AssignAccountResourceToAccountData assigns the Asset/App params/holdings contained in the AccountResource to the given basics.AccountData, creating maps if necessary.
MakeAccountDeltas creates account delta if adding new fields make sure to add them to the .reset() and .isEmpty() methods.
MakeCatchpointLabelMakerCurrent creates a catchpoint label given the catchpoint label parameters.
MakeCatchpointLabelMakerV6 creates a V6 catchpoint label given the catchpoint label parameters.
MakeCatchpointLabelMakerV7 creates a catchpoint label given the catchpoint label parameters.
MakeLabel returns the user-facing representation of this catchpoint label.
MakeLeaseInLedgerError builds a LeaseInLedgerError object.
MakeStateDelta creates a new instance of StateDelta hint is amount of transactions for evaluation, 2 * hint is for sender and receiver balance records.
MakeStateProofVerificationContext produces a new StateProofVerificationContext instance from a block header and last attested round.
MakeUnfinishedBlock creates an unfinished block.
MakeValidatedBlock creates a validated block.
MakeVotersForRound create a new VotersForRound object and initialize it's cond.
MaxSize returns a maximum valid message size for this message type.
ParseCatchpointLabel parse the given label and breaks it into the round and hash components.
MaxSize returns a maximum valid message size for this message type.
ToAccountData returns ledgercore.AccountData from basics.AccountData.
# Constants
TxGroupMalformedErrorReasonEmptyGroupID is for empty group ID but multiple transactions in a txgroup.
TxGroupMalformedErrorReasonExceedMaxSize indicates too large txgroup.
TxGroupMalformedErrorReasonGeneric is a generic (not specific) reason code.
TxGroupMalformedErrorReasonIncompleteGroup indicates expected group ID does not match to provided.
TxGroupMalformedErrorReasonInconsistentGroupID indicates different group IDs in a txgroup.
# Variables
ErrCatchpointParsingFailed is used when we attempt to parse and catchpoint label and failing doing so.
ErrNoSpace indicates insufficient space for transaction in block.
# Structs
AccountApp is used as a map key.
AccountAsset is used as a map key.
AccountBaseData contains base account info like balance, status and total number of resources.
AccountData provides users of the Balances interface per-account data (like basics.AccountData) but without any maps containing AppParams, AppLocalState, AssetHolding, or AssetParams.
AccountDeltas stores ordered accounts and allows fast lookup by address One key design aspect here was to ensure that we're able to access the written deltas in a deterministic order, while maintaining O(1) lookup.
AccountResource used to retrieve a generic resource information from the data tier.
AccountTotals represents the totals of algos in the system grouped by different account status values.
AlgoCount represents a total of algos of a certain class of accounts (split up by their Status value).
AppLocalStateDelta tracks a changed AppLocalState, and whether it was deleted.
AppParamsDelta tracks a changed AppParams, and whether it was deleted.
AppResource used to retrieve a generic app resource information from the data tier.
AppResourceRecord represents AppParams and AppLocalState in deltas.
AssetHoldingDelta records a changed AssetHolding, and whether it was deleted.
AssetParamsDelta tracks a changed AssetParams, and whether it was deleted.
AssetResource used to retrieve a generic asset resource information from the data tier.
AssetResourceRecord represents AssetParams and AssetHolding in deltas.
AssetResourceWithIDs is used to retrieve a asset resource information from the data tier, inclusive of the asset ID and creator address.
BalanceRecord is similar to basics.BalanceRecord but with decoupled base and voting data.
BlockInLedgerError is returned when a block cannot be added because it has already been done.
CatchpointLabelMakerCurrent represents a single catchpoint maker, matching catchpoints of version V7 and above.
CatchpointLabelMakerV6 represent a single catchpoint label maker, matching catchpoints of version V6 and below.
CatchpointLabelMakerV7 represents a single catchpoint maker, matching catchpoints of version V7 and above.
ErrNoEntry is used to indicate that a block is not present in the ledger.
ErrNonSequentialBlockEval provides feedback when the evaluator cannot be created for stale/future rounds.
IncludedTransactions defines the transactions included in a block, their index and last valid round.
InitState structure defines blockchain init params.
A KvValueDelta shows how the Data associated with a key in the kvstore has changed.
LeaseInLedgerError is returned when a transaction cannot be added because it has a lease that already being used in the relevant rounds.
ModifiedCreatable defines the changes to a single single creatable state.
An OnlineAccount corresponds to an account whose AccountData.Status is Online.
OnlineRoundParamsData keeps track of parameters needed for agreement from maxBalLookback ago.
StateDelta describes the delta between a given round to the previous round If adding a new field not explicitly allocated by PopulateStateDelta, make sure to reset it in .ReuseStateDelta to avoid dirty memory errors.
StateProofVerificationContext represents the context provided by the ledger to verify a state proof transaction.
TransactionInLedgerError is returned when a transaction cannot be added because it has already been committed, either to the blockchain's ledger or to the history of changes tracked by a BlockEvaluator.
TxGroupMalformedError indicates txgroup has group ID problems or too large.
A Txlease is a transaction (sender, lease) pair which uniquely specifies a transaction lease.
UnfinishedBlock represents a block that has been generated, but is not yet ready for proposing until FinishBlock is called.
ValidatedBlock represents the result of a block validation.
VotersForRound tracks the top online voting accounts as of a particular round, along with a Merkle tree commitment to those voting accounts.
# Interfaces
BlockListener represents an object that needs to get notified on new blocks.
CatchpointLabelMaker is used for abstract the creation of different catchpoints versions.
LedgerForSPBuilder captures the functionality needed for the creation of the cryptographic state proof builder.
OnlineAccountsFetcher captures the functionality of querying online accounts status.
VotersCommitListener represents an object that needs to get notified on commit stages in the voters tracker.
# Type aliases
TxGroupMalformedErrorReasonCode is a reason code for TxGroupMalformed
msgp:ignore TxGroupMalformedErrorReasonCode.
TxnNotWellFormedError indicates a transaction was not well-formed when evaluated by the BlockEvaluator
msgp:ignore TxnNotWellFormedError.