Skip to main content

Crate zera_sc

Crate zera_sc 

Source

Modules§

call
context
crypto
query
state
transfer
txn
wallet

Structs§

CoinDenomination
CoinTXN
Full coin-transfer transaction, mirroring the network’s CoinTXN proto (minus base, which the network fills in from the transaction context).
Compliance
ContractFees
ContractUpdateTXN
ExpenseRatio
Governance
InputTransfers
Describes which signer (by index into TransferAuthentication.public_key) is sending, how much, and how fees are split. Mirrors InputTransfers.
InstrumentContractTXN
KeyValuePair
MaxSupplyRelease
MintTXN
Full mint transaction, mirroring the network’s MintTXN proto (minus base, which the network fills in).
MultiKey
MultiPatterns
OutputTransfers
A single coin-transfer output. Mirrors OutputTransfers.
PreMintWallet
ProtoTimestamp
PublicKey
RestrictedKey
Stage
TokenCompliance
TransferAuthentication
Sender authentication for a CoinTXN. Mirrors the network’s TransferAuthentication proto. Each position in public_key, signature, and nonce refers to the same signer.
U256
Little-endian large integer type

Enums§

ContractFeeType
ContractType
GovernanceType
ProposalPeriod
TransactionType
TxnSender

Functions§

decode
Decode a postcard-serialized, base64-encoded string back into T.
emit
Emit a log message from the contract. Visible in transaction results.
emit_block
Emit a block-level log message from the contract.
encode
Encode value as a postcard-serialized, base64-encoded string.
is_valid_u256
string_to_u256
u256_to_string

Attribute Macros§

wasmedge_bindgen