# Functions
AddressFromAgentID returns the L1 address of the AgentID, if applicable.
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
AgentIDFromString parses the human-readable string representation.
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
No description provided by the author
ChainIDFromAliasID creates new chain ID from alias address.
ChainIDFromBytes reconstructs a ChainID from its binary representation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ContractIDFromEventBytes is used by blocklog to filter out specific events per contract For performance reasons it is working directly with the event bytes.
EmptyChainID returns an empty ChainID.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Hn calculates the hname for the given string.
HnameFromAgentID returns the hname of the AgentID, or HnameNil if not applicable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsBaseToken return whether a given tokenID represents the base token.
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
No description provided by the author
NewAgentID creates an AddressAgentID if the address is not an AliasAddress; otherwise a ContractAgentID with hname = HnameNil.
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
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
NewRandomAgentID creates random AgentID.
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
No description provided by the author
only for testing.
RandomChainID creates a random chain ID.
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
No description provided by the author
No description provided by the author
No description provided by the author
RequestsInTransaction parses the transaction and extracts those outputs which are interpreted as a request to a chain.
No description provided by the author
No description provided by the author
No description provided by the author
VMErrorIs returns true if the error includes a VMErrorCode in its chain that matches the given code.
VMErrorMustBe panics unless the error includes a VMErrorCode in its chain that matches the given code.
No description provided by the author
# Constants
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
FuncInit is a name of the init function for any smart contract.
No description provided by the author
HnameNil is the value used to represent a non-existent Hname.
No description provided by the author
don't process any request which deadline will expire within 1 minute.
No description provided by the author
No description provided by the author
VMCoreErrorContractID defines that all errors with a MaxUint32 contract id will be considered as core errors.
No description provided by the author
# Structs
AddressAgentID is an AgentID backed by a non-alias address.
No description provided by the author
No description provided by the author
No description provided by the author
CallTarget the target representation of the request.
No description provided by the author
ChainInfo is an API structure containing the main parameters of the chain.
ContractAgentID is an AgentID formed by a ChainID and a contract Hname.
No description provided by the author
No description provided by the author
EthereumAddressAgentID is an AgentID formed by an Ethereum address.
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
IRC27NFTMetadata represents an NFT metadata according to IRC27.
IRC30NativeTokenMetadata represents the Native Token metadata according to IRC30.
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
Receipt represents a blocklog.RequestReceipt with a resolved error string.
No description provided by the author
No description provided by the author
RequestParameters represents parameters of the on-ledger request.
No description provided by the author
No description provided by the author
SendMetadata represents content of the data payload of the output.
No description provided by the author
StateAnchor contains properties of the anchor output/transaction in the current context.
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
# Interfaces
AgentID represents any entity that can hold assets on L2 and/or call contracts.
AgentIDWithL1Address is an AgentID backed by an L1 address (either AddressAgentID or ContractAgentID).
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
No description provided by the author
KVDecoder is interface with all kind of utility functions extracting and decoding values from the key/value map.
No description provided by the author
No description provided by the author
No description provided by the author
Privileged is a sub-interface for core contracts.
No description provided by the author
Request wraps any data which can be potentially be interpreted as a request.
No description provided by the author
Sandbox is an interface given to the processor to access the VMContext and virtual state, transaction builder and request parameters through it.
SandboxBase is the common interface of Sandbox and SandboxView.
SandboxView is an interface for read only call.
No description provided by the author
Utils implement various utilities which are faster on host side than on wasm VM Implement deterministic stateless computations.
VMErrorBase is the common interface of UnresolvedVMError and VMError.
VMProcessor is an interface to the VM processor instance.
VMProcessorEntryPoint is an abstract interface by which VM is called by passing the Sandbox interface.
# Type aliases
No description provided by the author
ChainID represents the global identifier of the chain It is wrapped AliasAddress, an address without a private key behind.
ChainID represents the global identifier of the chain It is wrapped AliasAddress, an address without a private key behind.
No description provided by the author
Hname is calculated as the first 4 bytes of the BLAKE2b hash of a string, interpreted as a little-endian uint32.
No description provided by the author
No description provided by the author
RequestLookupDigest is shortened version of the request id.
No description provided by the author
No description provided by the author