-
Notifications
You must be signed in to change notification settings - Fork 525
/
Copy pathOffer.ts
52 lines (49 loc) · 1.56 KB
/
Offer.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Amount } from '../common'
import BaseLedgerEntry from './BaseLedgerEntry'
export default interface Offer extends BaseLedgerEntry {
LedgerEntryType: 'Offer'
/** A bit-map of boolean flags enabled for this Offer. */
Flags: number
/** The address of the account that placed this Offer. */
Account: string
/**
* The Sequence value of the OfferCreate transaction that created this Offer
* object. Used in combination with the Account to identify this Offer.
*/
Sequence: number
/** The remaining amount and type of currency requested by the Offer creator. */
TakerPays: Amount
/**
* The remaining amount and type of currency being provided by the Offer
* creator.
*/
TakerGets: Amount
/** The ID of the Offer Directory that links to this Offer. */
BookDirectory: string
/**
* A hint indicating which page of the Offer Directory links to this object,
* in case the directory consists of multiple pages.
*/
BookNode: string
/**
* A hint indicating which page of the Owner Directory links to this object,
* in case the directory consists of multiple pages.
*/
OwnerNode: string
/**
* The identifying hash of the transaction that most recently modified this
* object.
*/
PreviousTxnID: string
/**
* The index of the ledger that contains the transaction that most recently
* modified this object.
*/
PreviousTxnLgrSeq: number
/** The time this Offer expires, in seconds since the Ripple Epoch. */
Expiration?: number
}
export enum OfferFlags {
lsfPassive = 0x00010000,
lsfSell = 0x00020000,
}