Crate selendra_client

Crate selendra_client 

Source
Expand description

This crate provides a Rust application interface for submitting transactions to selendra-node chain. Most of the pallets are common to any Substrate chain, but there are some unique to selendra-node, e.g. pallets::elections::ElectionsApi.

Re-exports§

pub use contract_transcode;
pub use subxt::ext::codec;
pub use subxt::ext::sp_core;
pub use subxt::ext::sp_runtime;
pub use primitives::*;

Modules§

api
bounded_collections
contract
Contains types and functions simplifying common contract-related operations.
frame_support
frame_system
pallet_aleph
pallet_balances
pallet_committee_management
pallet_contracts
pallet_contracts_uapi
pallet_elections
pallet_identity
pallet_multisig
pallet_nomination_pools
pallet_operations
pallet_proxy
pallet_safe_mode
pallet_scheduler
pallet_session
pallet_staking
pallet_sudo
pallet_timestamp
pallet_transaction_payment
pallet_treasury
pallet_tx_pause
pallet_utility
pallet_vesting
pallets
API for pallets.
primitives
Local primitives module containing type definitions for selendra-client Local primitives module for selendra-client
selendra_runtime
sp_arithmetic
sp_consensus_aura
sp_consensus_slots
sp_core
sp_inherents
sp_runtime
sp_staking
sp_version
sp_weights
utility
Block / session / era API.
waiting
Waiting for some events API.

Structs§

Connection
Capable of communicating with a live Aleph chain.
KeyPair
Used for signing extrinsic payload
RootConnection
Specific connection that is signed by the sudo key.
SignedConnection
Any connection that is signed by some key.
SubmittableExtrinsic
A signed extrinsics ready to be submitted.
TxInfo
Data regarding submitted transaction.

Enums§

AlephConfig
An alias for a configuration of live chain, e.g. block index type, hash type.
PublicError
An error type for SS58 decoding.
TxStatus
When submitting a transaction, wait for given status before proceeding.

Traits§

AsConnection
Castability to a plain connection.
AsSigned
Castability to a signed connection.
ConnectionApi
Any connection should be able to request storage and submit RPC calls
Pair
Trait suitable for typical cryptographic PKI key pair type.
SignedConnectionApi
Signed connection should be able to sends transactions to chain
SignedConnectionApiExt
Extensions to Signed Connections
Ss58Codec
Key that can be encoded to/from SS58.
SudoCall
API for sudo pallet.

Functions§

account_from_keypair
Converts a key pair object to AccountId.
aleph_keypair_from_string
Converts given seed phrase to a ed25519 AlephKeyPair object.
keypair_from_string
Converts given seed phrase to a sr25519 KeyPair object.
raw_keypair_from_string
Converts given seed phrase to a sr25519 RawKeyPair object.

Type Aliases§

AccountId
An alias for an account id type.
AlephKeyPair
An alias for a pallet aleph keys.
BlockHash
An alias for a block hash type.
CodeHash
An alias for a hash type.
RawKeyPair
An alias for a type of a key pair that signs chain transactions.
SubxtClient
An alias for an RPC client type.
TxHash
An alias for a transaction hash type.