Skip to main content

Crate gsdk

Crate gsdk 

Source
Expand description

Gear api

Re-exports§

pub use crate::config::GearConfig;
pub use crate::gear::Event;
pub use crate::gear::runtime_types::vara_runtime::RuntimeError;
pub use crate::result::Error;
pub use crate::result::Result;
pub use crate::subscription::PayloadFilter;
pub use crate::subscription::ProgramStateChange;
pub use crate::subscription::ProgramStateChanges;
pub use crate::subscription::UserMessageSent;
pub use crate::subscription::UserMessageSentFilter;
pub use crate::subscription::UserMessageSentSubscription;

Modules§

backtrace
Backtrace support for gsdk
blocks
This module provides useful functions for working with block stream.
config
Gear config
events
This module provides useful functions for working with event stream.
ext
gear
Generated runtime API types.
result
GSdk Results
subscription
Subscription implementation.

Structs§

Api
Gear API wrapper.
ApiBuilder
GasInfo
Pre-calculated gas consumption estimate for a message.
PairSigner
A Signer implementation that can be constructed from an sp_core::Pair.
SignedApi
Signed Gear API wrapper.
TxOutput
Transaction with its output value.
Value
Value holds a representation of some value that has been decoded, as well as some arbitrary context.

Enums§

AccountKeyring
Set of test accounts.
Program
Gear Program

Traits§

AsGear
Helper traits to decoding subxt types into Gear-specific types.
IntoAccountId32
Helper trait for different equivalents of AccountId32.
IntoSubstrate
Trait for subxt types convertible to their Substrate counterpart.
IntoSubxt
Trait for Substrate types convertible to their subxt counterpart.

Type Aliases§

BlockNumber
Block number type
GearGasNode
Gear gas node.
GearGasNodeId
Gear gas node id.
GearPages
Gear pages.
Signer
TxInBlock
Transaction in block.
TxInBlockResult
Transaction in block with result wrapper.
TxStatus
Transaction status.