Crate t3rn_primitives
source ·Expand description
A crate that hosts a common definitions that are relevant for the pallet-contracts.
Re-exports
pub use gateway_inbound_protocol::GatewayInboundProtocol;
Modules
Macros
Structs
- Inbound Steps that specifie expected data deposited by relayers back to the Circuit after each step
- Outbound Step that specifies expected transmission medium for relayers connecting with that gateway. Request message format that derivative of could be compatible with JSON-RPC API with either signed or unsigned payload or custom transmission medium like XCMP protocol
- A struct that encodes RPC parameters required for a call to a smart-contract.
- Outbound Step that specifies expected transmission medium for relayers connecting with that gateway. Extra payload in case the message is signed ro has other custom parameters required by linking protocol.
- Structure used at gateway registration as a starting point for multi-finality-verifier
- Simple blob to hold an extrinsic without committing to its format and ensure it is serialized correctly.
Enums
- The possible errors that can happen querying the storage of a contract.
- Inbound Steps that specifie expected data deposited by relayers back to the Circuit after each step
- Inclusion proofs of different tries
- Read latest height of gateway known to a light client
Constants
Traits
Functions
- Retrieves all available gateways for a given ChainId. Currently returns a vector with a single hardcoded result. Eventually this will search all known gateways on pallet-xdns.
Type Definitions
- Alias to the public key used for this chain, actually a
MultiSigner
. Like the signature, this also isn’t a fixed size when encoded, as different cryptos have different size public keys. - Balance of an account.
- Common types across all runtimes
- A result type of a get storage call.
- A hash of some data used by the chain.
- Index of a transaction in the chain. 32-bit should be plenty.