Crate xand_api_client
source ·Expand description
Provides a trait and implementation of that trait for interacting with the xand-api
(as
well as a fake version you can use in your tests in the mock
module).
If you are talking with xand-api
over the wire, this is what you should use.
Modules
- The types in here represent chain-agnostic versions of the data one might fetch or send with the xand-api client. They are not the actual wire types, but are more usable representations.
- Serialization of a byte sequence to an hexadecimal string
Structs
- IPv4 CIDR Block, with first four indices the ip address and last being the suffix
- An id for correlating a create/redeem request. Exactly 16 bytes.
- A Encryption key representing the public portion of some private key, and hence a (potential) sender or receiver of encrypted messages.
- A wrapper around something async that will re-attempt initialization automatically
- A gRPC status describing the result of an RPC call.
- Wraps a stream of
TransactionStatus
updates to simplify common operations - Wrapper type for any type implementing
XandAPIClientTrait
that adds a timeout to all requests. - Default implementation of the
XandApiClientTrait
Enums
- Some bank account information associated with create and redeem requests. Depending on where in their lifecycle they are, the information may or may not be encrypted yet.
- Represents the stage of a proposal. Proposals can only ever change stage once, from
Proposed
to another stage. All other stages are final, and any subsequent changes should be considered a bug. - gRPC status codes used by
Status
. - A chain-implementation agnostic representation of the status of a transaction/extrinsic/whatever that a client has submitted (or tried to submit) to the network.
- Auto-generated discriminant enum variants
- Chain-agnostic versions of all of our transaction types wrapped up in an enum
Constants
- Default page size for paginated results.
Traits
- Trait that exposes all of the functionality provided by the xand-api as a simple client interface