Expand description
On-chain operations-related API traits.
Structs§
- Account
Entry - Represents a node announcement entry on the block chain. This contains node’s public key and optional announcement information (multiaddress).
- Account
Selector - Selector for on-chain node accounts.
- Balance
- Represents a non-negative balance of some
Currency. - Batch
Redemption Result - Result of [
redeem_tickets_via_selector]. - Chain
Info - Contains information about the HOPR on-chain network deployment.
- Chain
Path Resolver - [
PathAddressResolver] which uses the HOPR chain API to resolve addresses and channels. - Channel
Entry - Overall description of a channel
- Channel
Selector - Selector for channels.
- Contract
Addresses - Holds addresses of all smart contracts.
- Domain
Separators - Contains domain separator information.
- Hopr
Sphinx Header Spec - Current Sphinx header specification for the HOPR protocol.
- Multiaddr
- Representation of a Multiaddr.
- Redeemable
Ticket - Represents a winning ticket that can be successfully redeemed on-chain.
- Utc
- The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).
- Verified
Ticket - Holds a ticket that has been already verified.
This structure guarantees that
Ticket::get_hash()ofVerifiedTicket::verified_ticket()is always equal toVerifiedTicket::verified_hash - Winning
Probability - Represents a ticket winning probability.
Enums§
- Announcement
Error - Error that can occur when making a node announcement.
- Chain
Event - Enumeration of HOPR chain events.
- Channel
Direction - Describes a direction of node’s own channel. The direction of a channel that is not own is undefined.
- Channel
Status Discriminants - Safe
Registration Error - Error that can occur when registering node with a Safe.
- State
Sync Options - Indicates if the current state should be emitted in the form of events in the subscription stream.
- Ticket
Redeem Error - Errors that can occur during ticket redemption.
Traits§
- Chain
Events - Allows subscribing to on-chain events.
- Chain
KeyOperations - Operations for offchain keys.
- Chain
Read Account Operations - Chain operations that read on-chain node accounts.
- Chain
Read Channel Operations - On-chain read operations regarding channels.
- Chain
Values - Retrieves various on-chain information.
- Chain
Write Account Operations - On-chain write operations regarding on-chain node accounts.
- Chain
Write Channel Operations - On-chain write operations regarding channels.
- Chain
Write Ticket Operations - On-chain write operations with tickets.
- Currency
- Represents a general currency - like a token or a coin.
- Hopr
Chain Api - Complete set of HOPR on-chain operation APIs.
- KeyId
Mapper - Trait that defines 1:1 mapper between key identifiers and the actual public keys.
Type Aliases§
- Chain
Receipt - Receipt of an on-chain operation.
- Channel
Id - Alias for the
Hashrepresenting a channel ID. - Date
Time - Hopr
Balance - Hopr
KeyIdent - Type alias for 32-bit HOPR Offchain Public Key Identifier.
- Hopr
Sphinx Suite - Currently used public key cipher suite for Sphinx.