zakura-client-sqlite 0.1.0-rc8

An SQLite-based Zcash light client
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Codes persisted in the detail tables: lookup outcomes and display address kinds.

/// Outcome codes of `transparent_detail_work.last_outcome`, one per
/// `TransparentDetailOutcome` variant.
pub(super) const UNAVAILABLE: i64 = 0;
pub(super) const ABSENT: i64 = 1;
pub(super) const NOT_COVERED: i64 = 2;
pub(super) const UNSUPPORTED: i64 = 3;
pub(super) const PROTOCOL: i64 = 4;
pub(super) const CONTRADICTION: i64 = 5;
pub(super) const NOT_YET_PUBLISHED: i64 = 6;

/// Address kind codes of `transparent_tx_display.sender_kind` and
/// `transparent_tx_display_outputs.address_kind`, as the display publisher encodes them.
pub(super) const KIND_ABSENT: i64 = 0;
pub(super) const KIND_P2PKH: i64 = 1;
pub(super) const KIND_P2SH: i64 = 2;
pub(super) const KIND_NON_STANDARD: i64 = 3;