package
0.3.13-beta.0
Repository: https://github.com/spacemeshos/go-spacemesh.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.

# Functions

ComputePrincipal address as the last 20 bytes from blake3(scale(template || args)).
IntrinsicGas computes intrinsic gas from base gas and storage cost.
MaxGas computes total gas cost by adding fixed gas to intrinsic gas cost.
NewStagedCache returns instance of the staged cache.
No description provided by the author
SizeGas computes total gas cost for a value of the specific size.
No description provided by the author

# Constants

ACCOUNT_ACCESS is a cost of the account access.
No description provided by the author
includes balance (8), nonce (8) and template address (24).
EDVERIFY is a cost for running ed25519 single signature verification.
LOAD is a cost for loading immutable and mutable state from disk.
MethodSpawn ...
MethodSpend ...
No description provided by the author
SPAWN is an intrinsic cost for every spawn, on top of TX cost.
STORE is a cost for storing new data, in precompiles charged only for SPAWN.
TX is an intrinsic cost for every transaction.
TXDATA is a cost for storing transaction data included into the block.
No description provided by the author
UPDATE is a cost of updating mutable state (nonce, amount of coins, precompile specific state).

# Variables

ErrInternal raised on any unexpected error due to internal conditions.
ErrInvalidNonce raised due to the expected nonce mismatch.
ErrMalformed raised if transaction cannot be decoded properly.
ErrMaxGas raised if tx consumed over MaxGas value.
ErrMaxSpend raised if tx transferred over MaxSpend value.
ErrNoBalance raised if transaction run out of balance during execution.
ErrNotSpawned raised if account is not spawned.
ErrSpawned raised if account already spawned.
ErrMismatchedTemplate raised if target account doesn't match template account.
ErrTxLimit overflows max tx size.

# Structs

Context serves 2 purposes: - maintains changes to the system state, that will be applied only after succeful execution - accumulates set of reusable objects and data.
No description provided by the author
ParseOutput contains all fields that are returned by Parse call.
Payload is a generic payload for all transactions.
RemoteContext ...
StagedCache is a passthrough cache for accounts state and enforces order for updated accounts.

# Interfaces

AccountLoader is an interface for loading accounts.
AccountUpdater is an interface for updating accounts.
Handler provides set of static templates method that are not directly attached to the state.
HandlerRegistry stores handlers for templates.
Host API with methods and data that are required by templates.
Template is a concrete Template type initialized with mutable and immutable state.

# Type aliases

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
No description provided by the author
No description provided by the author