xrpl_std/core/
field_codes.rs

1pub const SF_ACCOUNT: i32 = 524289; // 0x80001
2pub const SF_TRANSACTION_TYPE: i32 = 65538; // 0x10002
3pub const SF_FEE: i32 = 393224; // 0x60008
4pub const SF_SEQUENCE: i32 = 131076;
5pub const SF_ACCOUNT_TXN_ID: i32 = 327689;
6pub const SF_FLAGS: i32 = 131074;
7pub const SF_LAST_LEDGER_SEQUENCE: i32 = 131099;
8pub const SF_MEMOS: i32 = 983049;
9pub const SF_NETWORK_ID: i32 = (2 << 16) + 1;
10pub const SF_HASH: i32 = 327937;
11pub const SF_LEDGER_ENTRY_TYPE: i32 = 65537; // 0x10001
12pub const SF_SIGNERS: i32 = 983043;
13pub const SF_SOURCE_TAG: i32 = 131075;
14pub const SF_SIGNING_PUB_KEY: i32 = 458755;
15pub const SF_TXN_SIGNATURE: i32 = 458756;
16pub const SF_TICKET_SEQUENCE: i32 = 131113; // 0x20029
17
18/// EscrowFinish Fields
19pub const SF_OWNER: i32 = 524290;
20pub const SF_OFFER_SEQUENCE: i32 = 131097;
21pub const SF_CONDITION: i32 = 458769;
22pub const SF_CREDENTIAL_IDS: i32 = 1245189; // TODO: Check this value.
23pub const SF_FULFILLMENT: i32 = 458768;
24
25// Transaction Field Codes
26// #[repr(i32)]
27// pub enum TransactionFieldCodes {
28//     Account = SF_ACCOUNT as i32,
29//     TransactionType = SF_TRANSACTION_TYPE as i32,
30//     Fee = SF_FEE as i32,
31//     Sequence = SF_SEQUENCE as i32,
32//     AccountTxnID = SF_ACCOUNT_TXN_ID as i32,
33//     Flags = SF_FLAGS as i32,
34//     LastLedgerSequence = SF_LAST_LEDGER_SEQUENCE as i32,
35//     Memos = SF_MEMOS as i32,
36//     NetworkID = SF_NETWORK_ID as i32,
37//     Signers = SF_SIGNERS as i32,
38//     SourceTag = SF_SOURCE_TAG as i32,
39//     SigningPubKey = SF_SIGNING_PUB_KEY as i32,
40//     TicketSequence = SF_TICKET_SEQUENCE as i32,
41//     TxnSignature = SF_TXN_SIGNATURE as i32,
42//     LedgerEntryType = SF_LEDGER_ENTRY_TYPE as i32,
43// }
44
45// /// Usage:
46// /// ```rust
47// /// // match some_escrow_finish_field_code {
48// ///  //   TransactionFieldCodes(Account) => ...,
49// ///  //   TransactionFieldCodes(TransactionType) => ...,
50// ///  //   Owner => ...
51// /// //}
52// /// ```
53// #[repr(i32)]
54// pub enum EscrowFinishFieldCodes {
55//     TransactionFieldCodes, // For extension without copy/paste.
56//     Owner = SF_OWNER as i32,
57//     OfferSequence = SF_OFFER_SEQUENCE as i32,
58//     Condition = SF_CONDITION as i32,
59//     CredentialIDs = SF_CREDENTIAL_IDS as i32,
60//     Fulfillment = SF_FULFILLMENT as i32,
61// }