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
- Root
Connection - Specific connection that is signed by the sudo key.
- Signed
Connection - Any connection that is signed by some key.
- Submittable
Extrinsic - A signed extrinsics ready to be submitted.
- TxInfo
- Data regarding submitted transaction.
Enums§
- Aleph
Config - An alias for a configuration of live chain, e.g. block index type, hash type.
- Public
Error - 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.
- Connection
Api - Any connection should be able to request storage and submit RPC calls
- Pair
- Trait suitable for typical cryptographic PKI key pair type.
- Signed
Connection Api - Signed connection should be able to sends transactions to chain
- Signed
Connection ApiExt - Extensions to Signed Connections
- Ss58
Codec - Key that can be encoded to/from SS58.
- Sudo
Call - 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
AlephKeyPairobject. - keypair_
from_ string - Converts given seed phrase to a sr25519
KeyPairobject. - raw_
keypair_ from_ string - Converts given seed phrase to a sr25519
RawKeyPairobject.
Type Aliases§
- Account
Id - An alias for an account id type.
- Aleph
KeyPair - An alias for a pallet aleph keys.
- Block
Hash - An alias for a block hash type.
- Code
Hash - An alias for a hash type.
- RawKey
Pair - An alias for a type of a key pair that signs chain transactions.
- Subxt
Client - An alias for an RPC client type.
- TxHash
- An alias for a transaction hash type.