Types
The following definitions expand on parameters seen elsewhere within the SDK standard and are provided for clarity and completeness.
Account
Structure representing a user's Account, stored in global state.
Required Parameters:
AccountHash
The AccountHash is a 32-byte hash derived from a supported PublicKey. Its role is to standardize keys that can vary in length.
ActionThresholds
Thresholds that have to be met when executing an action of a certain type.
Required Parameters:
-
deployment
-
key_management
ActivationPoint
The first era to which the associated protocol version applies.
Approval
A struct containing a signature and the public key of the signer.
Required Parameters:
AssociatedKey
A key granted limited permissions to an Account, for purposes such as multisig.
Required Parameters:
-
weight
AuctionState
Data structure summarizing auction contract data.
Required Parameters:
-
bids
All bids contained within a vector. -
block_height
Block height. -
era_validators
Era validators. -
state_root_hash
Global state hash.
AvailableBlockRange
-
low
The inclusive lower bound of the range. -
high
The inclusive upper bound of the range.
Bid
An entry in the validator map.
Required Parameters:
-
bonding_purse
The purse that was used for bonding. -
delegation_rate
The delegation rate. -
delegators
The validator's delegators, indexed by their public keys. -
inactive
true
if validator has been "evicted". -
staked_amount
The amount of tokens staked by a validator (not including delegators). -
validator_public_key
Validator's public key.
Additional Parameters:
vesting_schedule
Vesting schedule for a genesis validator.None
if non-genesis validator.
BlockHash
A cryptographic hash identifying a Block
.
BlockIdentifier
Identifier for possible ways to retrieve a Block.
-
Hash
Identify and retrieve the Block with its hash. -
Height
Identify and retrieve the Block with its height.
BlockSynchronizerStatus
The status of the block synchronizer.
-
Historical
The status of syncing a historical block, if any.-
block_hash
The block hash. -
block_height
The height of the block, if known. -
acquisition_state
The state of acquisition of the data associated with the block.
-
-
Forward
The status of syncing a forward block, if any.-
block_hash
The block hash. -
block_height
The height of the block, if known. -
acquisition_state
The state of acquisition of the data associated with the block.
-
ChainspecRawBytes
The raw bytes of the chainspec.toml, genesis accounts.toml, and global_state.toml files.
-
chainspec_bytes
Hex-encoded raw bytes of the current chainspec.toml file. -
maybe_genesis_accounts_bytes
Hex-encoded raw bytes of the current genesis accounts.toml file. -
maybe_global_state_bytes
Hex-encoded raw bytes of the current global_state.toml file.
Contract
A contract struct that can be serialized as a JSON object.
Required Parameters:
protocol_version
ContractHash
The hash address of the contract.
ContractPackage
Contract definition, metadata and security container.
Required Parameters:
ContractPackageHash
The hash address of the contract package.