xrpl 1.0.1-mpt-beta → 1.0.3-mpt-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/xrpl-latest.js +528 -314
- package/build/xrpl-latest.js.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.d.ts +1 -2
- package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/Wallet/defaultFaucets.js +0 -5
- package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/client/RequestManager.d.ts +5 -4
- package/dist/npm/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/client/RequestManager.js.map +1 -1
- package/dist/npm/client/connection.d.ts +2 -2
- package/dist/npm/client/connection.d.ts.map +1 -1
- package/dist/npm/client/connection.js.map +1 -1
- package/dist/npm/client/index.d.ts +4 -3
- package/dist/npm/client/index.d.ts.map +1 -1
- package/dist/npm/client/index.js +17 -10
- package/dist/npm/client/index.js.map +1 -1
- package/dist/npm/client/partialPayment.d.ts +2 -1
- package/dist/npm/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/client/partialPayment.js +10 -3
- package/dist/npm/client/partialPayment.js.map +1 -1
- package/dist/npm/models/common/index.d.ts +13 -0
- package/dist/npm/models/common/index.d.ts.map +1 -1
- package/dist/npm/models/common/index.js +4 -0
- package/dist/npm/models/common/index.js.map +1 -1
- package/dist/npm/models/ledger/AMM.d.ts +2 -2
- package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts +3 -3
- package/dist/npm/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/models/ledger/Ledger.d.ts +10 -2
- package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerEntry.d.ts +3 -2
- package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/models/ledger/Oracle.d.ts +12 -0
- package/dist/npm/models/ledger/Oracle.d.ts.map +1 -0
- package/dist/npm/models/ledger/Oracle.js +3 -0
- package/dist/npm/models/ledger/Oracle.js.map +1 -0
- package/dist/npm/models/ledger/RippleState.d.ts +2 -1
- package/dist/npm/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/models/ledger/RippleState.js +1 -0
- package/dist/npm/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/models/ledger/index.d.ts +3 -2
- package/dist/npm/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/models/ledger/index.js.map +1 -1
- package/dist/npm/models/methods/accountChannels.d.ts +1 -1
- package/dist/npm/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/models/methods/accountInfo.d.ts +17 -4
- package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/models/methods/accountTx.d.ts +11 -5
- package/dist/npm/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/models/methods/getAggregatePrice.d.ts +31 -0
- package/dist/npm/models/methods/getAggregatePrice.d.ts.map +1 -0
- package/dist/npm/models/methods/getAggregatePrice.js +3 -0
- package/dist/npm/models/methods/getAggregatePrice.js.map +1 -0
- package/dist/npm/models/methods/index.d.ts +14 -11
- package/dist/npm/models/methods/index.d.ts.map +1 -1
- package/dist/npm/models/methods/ledger.d.ts +17 -5
- package/dist/npm/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/models/methods/ledgerEntry.d.ts +5 -0
- package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/models/methods/nftsByIssuer.d.ts +19 -0
- package/dist/npm/models/methods/nftsByIssuer.d.ts.map +1 -0
- package/dist/npm/models/methods/nftsByIssuer.js +3 -0
- package/dist/npm/models/methods/nftsByIssuer.js.map +1 -0
- package/dist/npm/models/methods/submitMultisigned.d.ts +16 -5
- package/dist/npm/models/methods/submitMultisigned.d.ts.map +1 -1
- package/dist/npm/models/methods/tx.d.ts +20 -8
- package/dist/npm/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.d.ts +3 -1
- package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/models/transactions/AMMDeposit.js +1 -0
- package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/models/transactions/index.d.ts +2 -0
- package/dist/npm/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/models/transactions/index.js.map +1 -1
- package/dist/npm/models/transactions/metadata.d.ts +3 -0
- package/dist/npm/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/models/transactions/metadata.js.map +1 -1
- package/dist/npm/models/transactions/oracleDelete.d.ts +7 -0
- package/dist/npm/models/transactions/oracleDelete.d.ts.map +1 -0
- package/dist/npm/models/transactions/oracleDelete.js +10 -0
- package/dist/npm/models/transactions/oracleDelete.js.map +1 -0
- package/dist/npm/models/transactions/oracleSet.d.ts +13 -0
- package/dist/npm/models/transactions/oracleSet.d.ts.map +1 -0
- package/dist/npm/models/transactions/oracleSet.js +59 -0
- package/dist/npm/models/transactions/oracleSet.js.map +1 -0
- package/dist/npm/models/transactions/payment.d.ts +2 -2
- package/dist/npm/models/transactions/payment.js +1 -1
- package/dist/npm/models/transactions/transaction.d.ts +3 -1
- package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/models/transactions/transaction.js +8 -0
- package/dist/npm/models/transactions/transaction.js.map +1 -1
- package/dist/npm/snippets/src/claimPayChannel.js +1 -1
- package/dist/npm/snippets/src/claimPayChannel.js.map +1 -1
- package/dist/npm/snippets/src/sendEscrow.js +1 -1
- package/dist/npm/snippets/src/sendEscrow.js.map +1 -1
- package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -2
- package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
- package/dist/npm/src/Wallet/defaultFaucets.js +0 -5
- package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
- package/dist/npm/src/client/RequestManager.d.ts +5 -4
- package/dist/npm/src/client/RequestManager.d.ts.map +1 -1
- package/dist/npm/src/client/RequestManager.js.map +1 -1
- package/dist/npm/src/client/connection.d.ts +2 -2
- package/dist/npm/src/client/connection.d.ts.map +1 -1
- package/dist/npm/src/client/connection.js.map +1 -1
- package/dist/npm/src/client/index.d.ts +4 -3
- package/dist/npm/src/client/index.d.ts.map +1 -1
- package/dist/npm/src/client/index.js +17 -10
- package/dist/npm/src/client/index.js.map +1 -1
- package/dist/npm/src/client/partialPayment.d.ts +2 -1
- package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
- package/dist/npm/src/client/partialPayment.js +10 -3
- package/dist/npm/src/client/partialPayment.js.map +1 -1
- package/dist/npm/src/models/common/index.d.ts +13 -0
- package/dist/npm/src/models/common/index.d.ts.map +1 -1
- package/dist/npm/src/models/common/index.js +4 -0
- package/dist/npm/src/models/common/index.js.map +1 -1
- package/dist/npm/src/models/ledger/AMM.d.ts +2 -2
- package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
- package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts +3 -3
- package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts +2 -2
- package/dist/npm/src/models/ledger/DirectoryNode.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -2
- package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Ledger.d.ts +10 -2
- package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts +3 -2
- package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts +2 -2
- package/dist/npm/src/models/ledger/LedgerHashes.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts +2 -2
- package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/Oracle.d.ts +12 -0
- package/dist/npm/src/models/ledger/Oracle.d.ts.map +1 -0
- package/dist/npm/src/models/ledger/Oracle.js +3 -0
- package/dist/npm/src/models/ledger/Oracle.js.map +1 -0
- package/dist/npm/src/models/ledger/RippleState.d.ts +2 -1
- package/dist/npm/src/models/ledger/RippleState.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/RippleState.js +1 -0
- package/dist/npm/src/models/ledger/RippleState.js.map +1 -1
- package/dist/npm/src/models/ledger/index.d.ts +3 -2
- package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
- package/dist/npm/src/models/ledger/index.js.map +1 -1
- package/dist/npm/src/models/methods/accountChannels.d.ts +1 -1
- package/dist/npm/src/models/methods/accountChannels.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountInfo.d.ts +17 -4
- package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
- package/dist/npm/src/models/methods/accountTx.d.ts +11 -5
- package/dist/npm/src/models/methods/accountTx.d.ts.map +1 -1
- package/dist/npm/src/models/methods/getAggregatePrice.d.ts +31 -0
- package/dist/npm/src/models/methods/getAggregatePrice.d.ts.map +1 -0
- package/dist/npm/src/models/methods/getAggregatePrice.js +3 -0
- package/dist/npm/src/models/methods/getAggregatePrice.js.map +1 -0
- package/dist/npm/src/models/methods/index.d.ts +14 -11
- package/dist/npm/src/models/methods/index.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledger.d.ts +17 -5
- package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
- package/dist/npm/src/models/methods/ledgerEntry.d.ts +5 -0
- package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
- package/dist/npm/src/models/methods/nftsByIssuer.d.ts +19 -0
- package/dist/npm/src/models/methods/nftsByIssuer.d.ts.map +1 -0
- package/dist/npm/src/models/methods/nftsByIssuer.js +3 -0
- package/dist/npm/src/models/methods/nftsByIssuer.js.map +1 -0
- package/dist/npm/src/models/methods/submitMultisigned.d.ts +16 -5
- package/dist/npm/src/models/methods/submitMultisigned.d.ts.map +1 -1
- package/dist/npm/src/models/methods/tx.d.ts +20 -8
- package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts +3 -1
- package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/AMMDeposit.js +1 -0
- package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
- package/dist/npm/src/models/transactions/index.d.ts +2 -0
- package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/index.js.map +1 -1
- package/dist/npm/src/models/transactions/metadata.d.ts +3 -0
- package/dist/npm/src/models/transactions/metadata.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/metadata.js.map +1 -1
- package/dist/npm/src/models/transactions/oracleDelete.d.ts +7 -0
- package/dist/npm/src/models/transactions/oracleDelete.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/oracleDelete.js +10 -0
- package/dist/npm/src/models/transactions/oracleDelete.js.map +1 -0
- package/dist/npm/src/models/transactions/oracleSet.d.ts +13 -0
- package/dist/npm/src/models/transactions/oracleSet.d.ts.map +1 -0
- package/dist/npm/src/models/transactions/oracleSet.js +59 -0
- package/dist/npm/src/models/transactions/oracleSet.js.map +1 -0
- package/dist/npm/src/models/transactions/payment.d.ts +2 -2
- package/dist/npm/src/models/transactions/payment.js +1 -1
- package/dist/npm/src/models/transactions/transaction.d.ts +3 -1
- package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
- package/dist/npm/src/models/transactions/transaction.js +8 -0
- package/dist/npm/src/models/transactions/transaction.js.map +1 -1
- package/dist/npm/src/sugar/autofill.d.ts +1 -1
- package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/src/sugar/autofill.js +2 -4
- package/dist/npm/src/sugar/autofill.js.map +1 -1
- package/dist/npm/src/sugar/getFeeXrp.d.ts +1 -1
- package/dist/npm/src/sugar/getFeeXrp.d.ts.map +1 -1
- package/dist/npm/src/sugar/getFeeXrp.js +3 -2
- package/dist/npm/src/sugar/getFeeXrp.js.map +1 -1
- package/dist/npm/src/sugar/submit.d.ts.map +1 -1
- package/dist/npm/src/sugar/submit.js.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.d.ts +4 -3
- package/dist/npm/src/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/src/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/src/utils/index.d.ts +2 -1
- package/dist/npm/src/utils/index.d.ts.map +1 -1
- package/dist/npm/src/utils/index.js.map +1 -1
- package/dist/npm/sugar/autofill.d.ts +1 -1
- package/dist/npm/sugar/autofill.d.ts.map +1 -1
- package/dist/npm/sugar/autofill.js +2 -4
- package/dist/npm/sugar/autofill.js.map +1 -1
- package/dist/npm/sugar/getFeeXrp.d.ts +1 -1
- package/dist/npm/sugar/getFeeXrp.d.ts.map +1 -1
- package/dist/npm/sugar/getFeeXrp.js +3 -2
- package/dist/npm/sugar/getFeeXrp.js.map +1 -1
- package/dist/npm/sugar/submit.d.ts.map +1 -1
- package/dist/npm/sugar/submit.js.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.d.ts +4 -3
- package/dist/npm/utils/hashes/hashLedger.d.ts.map +1 -1
- package/dist/npm/utils/hashes/hashLedger.js.map +1 -1
- package/dist/npm/utils/index.d.ts +2 -1
- package/dist/npm/utils/index.d.ts.map +1 -1
- package/dist/npm/utils/index.js.map +1 -1
- package/package.json +5 -5
- package/src/Wallet/defaultFaucets.ts +0 -6
- package/src/client/RequestManager.ts +17 -12
- package/src/client/connection.ts +7 -5
- package/src/client/index.ts +79 -21
- package/src/client/partialPayment.ts +34 -13
- package/src/models/common/index.ts +41 -0
- package/src/models/ledger/AMM.ts +2 -2
- package/src/models/ledger/Amendments.ts +2 -2
- package/src/models/ledger/BaseLedgerEntry.ts +9 -5
- package/src/models/ledger/DirectoryNode.ts +2 -2
- package/src/models/ledger/FeeSettings.ts +4 -2
- package/src/models/ledger/Ledger.ts +40 -8
- package/src/models/ledger/LedgerEntry.ts +3 -0
- package/src/models/ledger/LedgerHashes.ts +2 -4
- package/src/models/ledger/NegativeUNL.ts +2 -2
- package/src/models/ledger/Oracle.ts +43 -0
- package/src/models/ledger/RippleState.ts +2 -0
- package/src/models/ledger/index.ts +4 -1
- package/src/models/methods/accountChannels.ts +64 -1
- package/src/models/methods/accountInfo.ts +58 -12
- package/src/models/methods/accountTx.ts +49 -8
- package/src/models/methods/getAggregatePrice.ts +119 -0
- package/src/models/methods/index.ts +63 -23
- package/src/models/methods/ledger.ts +41 -5
- package/src/models/methods/ledgerEntry.ts +16 -0
- package/src/models/methods/nftsByIssuer.ts +68 -0
- package/src/models/methods/submitMultisigned.ts +48 -16
- package/src/models/methods/tx.ts +74 -22
- package/src/models/transactions/AMMDeposit.ts +2 -0
- package/src/models/transactions/index.ts +2 -0
- package/src/models/transactions/metadata.ts +1 -0
- package/src/models/transactions/oracleDelete.ts +32 -0
- package/src/models/transactions/oracleSet.ts +176 -0
- package/src/models/transactions/payment.ts +2 -2
- package/src/models/transactions/transaction.ts +12 -0
- package/src/sugar/autofill.ts +4 -10
- package/src/sugar/getFeeXrp.ts +6 -3
- package/src/sugar/submit.ts +5 -3
- package/src/utils/hashes/hashLedger.ts +8 -5
- package/src/utils/index.ts +2 -1
@@ -1,17 +1,80 @@
|
|
1
1
|
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
2
2
|
|
3
|
+
/**
|
4
|
+
* Represents a payment channel in the XRP Ledger.
|
5
|
+
*/
|
3
6
|
export interface Channel {
|
7
|
+
/** The owner of the channel, as an Address. */
|
4
8
|
account: string
|
9
|
+
|
10
|
+
/** The total amount of XRP, in drops allocated to this channel. */
|
5
11
|
amount: string
|
12
|
+
|
13
|
+
/**
|
14
|
+
* The total amount of XRP, in drops, paid out from this channel,
|
15
|
+
* as of the ledger version used. (You can calculate the amount of
|
16
|
+
* XRP left in the channel by subtracting balance from amount.)
|
17
|
+
*/
|
6
18
|
balance: string
|
19
|
+
|
20
|
+
/**
|
21
|
+
* A unique ID for this channel, as a 64-character hexadecimal string.
|
22
|
+
* This is also the ID of the channel object in the ledger's state data.
|
23
|
+
*/
|
7
24
|
channel_id: string
|
25
|
+
|
26
|
+
/**
|
27
|
+
* The destination account of the channel, as an Address.
|
28
|
+
* Only this account can receive the XRP in the channel while it is open.
|
29
|
+
*/
|
8
30
|
destination_account: string
|
31
|
+
|
32
|
+
/**
|
33
|
+
* The number of seconds the payment channel must stay open after the owner
|
34
|
+
* of the channel requests to close it.
|
35
|
+
*/
|
9
36
|
settle_delay: number
|
37
|
+
|
38
|
+
/**
|
39
|
+
* The public key for the payment channel in the XRP Ledger's base58 format.
|
40
|
+
* Signed claims against this channel must be redeemed with the matching key pair.
|
41
|
+
*/
|
10
42
|
public_key?: string
|
43
|
+
|
44
|
+
/**
|
45
|
+
* The public key for the payment channel in hexadecimal format, if one was
|
46
|
+
* specified at channel creation. Signed claims against this channel must be
|
47
|
+
* redeemed with the matching key pair.
|
48
|
+
*/
|
11
49
|
public_key_hex?: string
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Time, in seconds since the Ripple Epoch, when this channel is set to expire.
|
53
|
+
* This expiration date is mutable. If this is before the close time of the most
|
54
|
+
* recent validated ledger, the channel is expired.
|
55
|
+
*/
|
12
56
|
expiration?: number
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Time, in seconds since the Ripple Epoch, of this channel's immutable expiration,
|
60
|
+
* if one was specified at channel creation. If this is before the close time of the
|
61
|
+
* most recent validated ledger, the channel is expired.
|
62
|
+
*/
|
13
63
|
cancel_after?: number
|
14
|
-
|
64
|
+
|
65
|
+
/**
|
66
|
+
* A 32-bit unsigned integer to use as a source tag for payments through this payment channel,
|
67
|
+
* if one was specified at channel creation. This indicates the payment channel's originator or
|
68
|
+
* other purpose at the source account. Conventionally, if you bounce payments from this channel,
|
69
|
+
* you should specify this value in the DestinationTag of the return payment.
|
70
|
+
*/
|
71
|
+
source_tag?: number
|
72
|
+
|
73
|
+
/**
|
74
|
+
* A 32-bit unsigned integer to use as a destination tag for payments through this channel,
|
75
|
+
* if one was specified at channel creation. This indicates the payment channel's beneficiary
|
76
|
+
* or other purpose at the destination account.
|
77
|
+
*/
|
15
78
|
destination_tag?: number
|
16
79
|
}
|
17
80
|
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { APIVersion, DEFAULT_API_VERSION, RIPPLED_API_V1 } from '../common'
|
1
2
|
import { AccountRoot, SignerList } from '../ledger'
|
2
3
|
|
3
4
|
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
@@ -133,23 +134,13 @@ export interface AccountInfoAccountFlags {
|
|
133
134
|
allowTrustLineClawback: boolean
|
134
135
|
}
|
135
136
|
|
136
|
-
|
137
|
-
* Response expected from an {@link AccountInfoRequest}.
|
138
|
-
*
|
139
|
-
* @category Responses
|
140
|
-
*/
|
141
|
-
export interface AccountInfoResponse extends BaseResponse {
|
137
|
+
interface BaseAccountInfoResponse extends BaseResponse {
|
142
138
|
result: {
|
143
139
|
/**
|
144
140
|
* The AccountRoot ledger object with this account's information, as stored
|
145
141
|
* in the ledger.
|
146
|
-
* If requested, also includes Array of SignerList ledger objects
|
147
|
-
* associated with this account for Multi-Signing. Since an account can own
|
148
|
-
* at most one SignerList, this array must have exactly one member if it is
|
149
|
-
* present.
|
150
142
|
*/
|
151
|
-
account_data: AccountRoot
|
152
|
-
|
143
|
+
account_data: AccountRoot
|
153
144
|
/**
|
154
145
|
* A map of account flags parsed out. This will only be available for rippled nodes 1.11.0 and higher.
|
155
146
|
*/
|
@@ -180,3 +171,58 @@ export interface AccountInfoResponse extends BaseResponse {
|
|
180
171
|
validated?: boolean
|
181
172
|
}
|
182
173
|
}
|
174
|
+
|
175
|
+
/**
|
176
|
+
* Response expected from a {@link AccountInfoRequest}.
|
177
|
+
*
|
178
|
+
* @category Responses
|
179
|
+
*/
|
180
|
+
export interface AccountInfoResponse extends BaseAccountInfoResponse {
|
181
|
+
result: BaseAccountInfoResponse['result'] & {
|
182
|
+
/**
|
183
|
+
* If requested, array of SignerList ledger objects associated with this account for Multi-Signing.
|
184
|
+
* Since an account can own at most one SignerList, this array must have exactly one
|
185
|
+
* member if it is present.
|
186
|
+
*/
|
187
|
+
signer_lists?: SignerList[]
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Response expected from a {@link AccountInfoRequest} using API version 1.
|
193
|
+
*
|
194
|
+
* @category ResponsesV1
|
195
|
+
*/
|
196
|
+
export interface AccountInfoV1Response extends BaseAccountInfoResponse {
|
197
|
+
result: BaseAccountInfoResponse['result'] & {
|
198
|
+
/**
|
199
|
+
* The AccountRoot ledger object with this account's information, as stored
|
200
|
+
* in the ledger.
|
201
|
+
* If requested, also includes Array of SignerList ledger objects
|
202
|
+
* associated with this account for Multi-Signing. Since an account can own
|
203
|
+
* at most one SignerList, this array must have exactly one member if it is
|
204
|
+
* present.
|
205
|
+
*/
|
206
|
+
account_data: BaseAccountInfoResponse['result']['account_data'] & {
|
207
|
+
/**
|
208
|
+
* Array of SignerList ledger objects associated with this account for Multi-Signing.
|
209
|
+
* Since an account can own at most one SignerList, this array must have exactly one
|
210
|
+
* member if it is present.
|
211
|
+
* Quirk: In API version 1, this field is nested under account_data. For this method,
|
212
|
+
* Clio implements the API version 2 behavior where is field is not nested under account_data.
|
213
|
+
*/
|
214
|
+
signer_lists?: SignerList[]
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
/**
|
220
|
+
* Type to map between the API version and the response type.
|
221
|
+
*
|
222
|
+
* @category Responses
|
223
|
+
*/
|
224
|
+
export type AccountInfoVersionResponseMap<
|
225
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
226
|
+
> = Version extends typeof RIPPLED_API_V1
|
227
|
+
? AccountInfoV1Response
|
228
|
+
: AccountInfoResponse
|
@@ -1,4 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import {
|
2
|
+
APIVersion,
|
3
|
+
DEFAULT_API_VERSION,
|
4
|
+
RIPPLED_API_V1,
|
5
|
+
RIPPLED_API_V2,
|
6
|
+
ResponseOnlyTxInfo,
|
7
|
+
} from '../common'
|
2
8
|
import { Transaction, TransactionMetadata } from '../transactions'
|
3
9
|
|
4
10
|
import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
|
@@ -49,7 +55,9 @@ export interface AccountTxRequest extends BaseRequest, LookupByLedgerRequest {
|
|
49
55
|
marker?: unknown
|
50
56
|
}
|
51
57
|
|
52
|
-
export interface AccountTxTransaction
|
58
|
+
export interface AccountTxTransaction<
|
59
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
60
|
+
> {
|
53
61
|
/** The ledger index of the ledger version that included this transaction. */
|
54
62
|
ledger_index: number
|
55
63
|
/**
|
@@ -58,7 +66,15 @@ export interface AccountTxTransaction {
|
|
58
66
|
*/
|
59
67
|
meta: string | TransactionMetadata
|
60
68
|
/** JSON object defining the transaction. */
|
61
|
-
|
69
|
+
tx_json?: Version extends typeof RIPPLED_API_V2
|
70
|
+
? Transaction & ResponseOnlyTxInfo
|
71
|
+
: never
|
72
|
+
/** JSON object defining the transaction in rippled API v1. */
|
73
|
+
tx?: Version extends typeof RIPPLED_API_V1
|
74
|
+
? Transaction & ResponseOnlyTxInfo
|
75
|
+
: never
|
76
|
+
/** The hash of the transaction. */
|
77
|
+
hash?: Version extends typeof RIPPLED_API_V2 ? string : never
|
62
78
|
/** Unique hashed String representing the transaction. */
|
63
79
|
tx_blob?: string
|
64
80
|
/**
|
@@ -69,11 +85,11 @@ export interface AccountTxTransaction {
|
|
69
85
|
}
|
70
86
|
|
71
87
|
/**
|
72
|
-
*
|
73
|
-
*
|
74
|
-
* @category Responses
|
88
|
+
* Base interface for account transaction responses.
|
75
89
|
*/
|
76
|
-
|
90
|
+
interface AccountTxResponseBase<
|
91
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
92
|
+
> extends BaseResponse {
|
77
93
|
result: {
|
78
94
|
/** Unique Address identifying the related account. */
|
79
95
|
account: string
|
@@ -98,7 +114,7 @@ export interface AccountTxResponse extends BaseResponse {
|
|
98
114
|
* Array of transactions matching the request's criteria, as explained
|
99
115
|
* below.
|
100
116
|
*/
|
101
|
-
transactions: AccountTxTransaction
|
117
|
+
transactions: Array<AccountTxTransaction<Version>>
|
102
118
|
/**
|
103
119
|
* If included and set to true, the information in this response comes from
|
104
120
|
* a validated ledger version. Otherwise, the information is subject to
|
@@ -107,3 +123,28 @@ export interface AccountTxResponse extends BaseResponse {
|
|
107
123
|
validated?: boolean
|
108
124
|
}
|
109
125
|
}
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Expected response from an {@link AccountTxRequest}.
|
129
|
+
*
|
130
|
+
* @category Responses
|
131
|
+
*/
|
132
|
+
export type AccountTxResponse = AccountTxResponseBase
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Expected response from an {@link AccountTxRequest} with `api_version` set to 1.
|
136
|
+
*
|
137
|
+
* @category ResponsesV1
|
138
|
+
*/
|
139
|
+
export type AccountTxV1Response = AccountTxResponseBase<typeof RIPPLED_API_V1>
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Type to map between the API version and the response type.
|
143
|
+
*
|
144
|
+
* @category Responses
|
145
|
+
*/
|
146
|
+
export type AccountTxVersionResponseMap<
|
147
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
148
|
+
> = Version extends typeof RIPPLED_API_V1
|
149
|
+
? AccountTxV1Response
|
150
|
+
: AccountTxResponse
|
@@ -0,0 +1,119 @@
|
|
1
|
+
import { BaseRequest, BaseResponse } from './baseMethod'
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The `get_aggregate_price` method retrieves the aggregate price of specified Oracle objects,
|
5
|
+
* returning three price statistics: mean, median, and trimmed mean.
|
6
|
+
* Returns an {@link GetAggregatePriceResponse}.
|
7
|
+
*
|
8
|
+
* @category Requests
|
9
|
+
*/
|
10
|
+
export interface GetAggregatePriceRequest extends BaseRequest {
|
11
|
+
command: 'get_aggregate_price'
|
12
|
+
|
13
|
+
/**
|
14
|
+
* The currency code of the asset to be priced.
|
15
|
+
*/
|
16
|
+
base_asset: string
|
17
|
+
|
18
|
+
/**
|
19
|
+
* The currency code of the asset to quote the price of the base asset.
|
20
|
+
*/
|
21
|
+
quote_asset: string
|
22
|
+
|
23
|
+
/**
|
24
|
+
* The oracle identifier.
|
25
|
+
*/
|
26
|
+
oracles: Array<{
|
27
|
+
/**
|
28
|
+
* The XRPL account that controls the Oracle object.
|
29
|
+
*/
|
30
|
+
account: string
|
31
|
+
|
32
|
+
/**
|
33
|
+
* A unique identifier of the price oracle for the Account
|
34
|
+
*/
|
35
|
+
oracle_document_id: string | number
|
36
|
+
}>
|
37
|
+
|
38
|
+
/**
|
39
|
+
* The percentage of outliers to trim. Valid trim range is 1-25. If included, the API returns statistics for the trimmed mean.
|
40
|
+
*/
|
41
|
+
trim?: number
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Defines a time range in seconds for filtering out older price data. Default value is 0, which doesn't filter any data.
|
45
|
+
*/
|
46
|
+
trim_threshold?: number
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Response expected from an {@link GetAggregatePriceRequest}.
|
51
|
+
*
|
52
|
+
* @category Responses
|
53
|
+
*/
|
54
|
+
export interface GetAggregatePriceResponse extends BaseResponse {
|
55
|
+
result: {
|
56
|
+
/**
|
57
|
+
* The statistics from the collected oracle prices.
|
58
|
+
*/
|
59
|
+
entire_set: {
|
60
|
+
/**
|
61
|
+
* The simple mean.
|
62
|
+
*/
|
63
|
+
mean: string
|
64
|
+
|
65
|
+
/**
|
66
|
+
* The size of the data set to calculate the mean.
|
67
|
+
*/
|
68
|
+
size: number
|
69
|
+
|
70
|
+
/**
|
71
|
+
* The standard deviation.
|
72
|
+
*/
|
73
|
+
standard_deviation: string
|
74
|
+
}
|
75
|
+
|
76
|
+
/**
|
77
|
+
* The trimmed statistics from the collected oracle prices. Only appears if the trim field was specified in the request.
|
78
|
+
*/
|
79
|
+
trimmed_set?: {
|
80
|
+
/**
|
81
|
+
* The simple mean of the trimmed data.
|
82
|
+
*/
|
83
|
+
mean: string
|
84
|
+
|
85
|
+
/**
|
86
|
+
* The size of the data to calculate the trimmed mean.
|
87
|
+
*/
|
88
|
+
size: number
|
89
|
+
|
90
|
+
/**
|
91
|
+
* The standard deviation of the trimmed data.
|
92
|
+
*/
|
93
|
+
standard_deviation: string
|
94
|
+
}
|
95
|
+
|
96
|
+
/**
|
97
|
+
* The median of the collected oracle prices.
|
98
|
+
*/
|
99
|
+
median: string
|
100
|
+
|
101
|
+
/**
|
102
|
+
* The most recent timestamp out of all LastUpdateTime values.
|
103
|
+
*/
|
104
|
+
time: number
|
105
|
+
|
106
|
+
/**
|
107
|
+
* The ledger index of the ledger version that was used to generate this
|
108
|
+
* response.
|
109
|
+
*/
|
110
|
+
ledger_current_index: number
|
111
|
+
|
112
|
+
/**
|
113
|
+
* If included and set to true, the information in this response comes from
|
114
|
+
* a validated ledger version. Otherwise, the information is subject to
|
115
|
+
* change.
|
116
|
+
*/
|
117
|
+
validated: boolean
|
118
|
+
}
|
119
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/* eslint-disable no-inline-comments -- Necessary for important note */
|
2
2
|
/* eslint-disable max-lines -- There is a lot to export */
|
3
|
+
import type { APIVersion, DEFAULT_API_VERSION } from '../common'
|
4
|
+
|
3
5
|
import {
|
4
6
|
AccountChannelsRequest,
|
5
7
|
AccountChannelsResponse,
|
@@ -13,6 +15,8 @@ import {
|
|
13
15
|
AccountInfoAccountFlags,
|
14
16
|
AccountInfoRequest,
|
15
17
|
AccountInfoResponse,
|
18
|
+
AccountInfoV1Response,
|
19
|
+
AccountInfoVersionResponseMap,
|
16
20
|
AccountQueueData,
|
17
21
|
AccountQueueTransaction,
|
18
22
|
} from './accountInfo'
|
@@ -40,6 +44,8 @@ import {
|
|
40
44
|
import {
|
41
45
|
AccountTxRequest,
|
42
46
|
AccountTxResponse,
|
47
|
+
AccountTxV1Response,
|
48
|
+
AccountTxVersionResponseMap,
|
43
49
|
AccountTxTransaction,
|
44
50
|
} from './accountTx'
|
45
51
|
import { AMMInfoRequest, AMMInfoResponse } from './ammInfo'
|
@@ -66,17 +72,23 @@ import {
|
|
66
72
|
GatewayBalancesRequest,
|
67
73
|
GatewayBalancesResponse,
|
68
74
|
} from './gatewayBalances'
|
75
|
+
import {
|
76
|
+
GetAggregatePriceRequest,
|
77
|
+
GetAggregatePriceResponse,
|
78
|
+
} from './getAggregatePrice'
|
69
79
|
import {
|
70
80
|
LedgerBinary,
|
71
81
|
LedgerModifiedOfferCreateTransaction,
|
72
82
|
LedgerQueueData,
|
73
83
|
LedgerRequest,
|
74
84
|
LedgerResponse,
|
85
|
+
LedgerV1Response,
|
75
86
|
LedgerRequestExpandedTransactionsOnly,
|
76
87
|
LedgerResponseExpanded,
|
77
88
|
LedgerRequestExpandedAccountsAndTransactions,
|
78
89
|
LedgerRequestExpandedAccountsOnly,
|
79
90
|
LedgerRequestExpandedTransactionsBinary,
|
91
|
+
LedgerVersionResponseMap,
|
80
92
|
} from './ledger'
|
81
93
|
import { LedgerClosedRequest, LedgerClosedResponse } from './ledgerClosed'
|
82
94
|
import { LedgerCurrentRequest, LedgerCurrentResponse } from './ledgerCurrent'
|
@@ -96,6 +108,7 @@ import {
|
|
96
108
|
NFTHistoryTransaction,
|
97
109
|
} from './nftHistory'
|
98
110
|
import { NFTInfoRequest, NFTInfoResponse } from './nftInfo'
|
111
|
+
import { NFTsByIssuerRequest, NFTsByIssuerResponse } from './nftsByIssuer'
|
99
112
|
import { NFTSellOffersRequest, NFTSellOffersResponse } from './nftSellOffers'
|
100
113
|
import { NoRippleCheckRequest, NoRippleCheckResponse } from './norippleCheck'
|
101
114
|
import {
|
@@ -131,6 +144,8 @@ import { SubmitRequest, SubmitResponse } from './submit'
|
|
131
144
|
import {
|
132
145
|
SubmitMultisignedRequest,
|
133
146
|
SubmitMultisignedResponse,
|
147
|
+
SubmitMultisignedV1Response,
|
148
|
+
SubmitMultisignedVersionResponseMap,
|
134
149
|
} from './submitMultisigned'
|
135
150
|
import {
|
136
151
|
BooksSnapshot,
|
@@ -151,7 +166,7 @@ import {
|
|
151
166
|
TransactionEntryRequest,
|
152
167
|
TransactionEntryResponse,
|
153
168
|
} from './transactionEntry'
|
154
|
-
import { TxRequest, TxResponse } from './tx'
|
169
|
+
import { TxRequest, TxResponse, TxV1Response, TxVersionResponseMap } from './tx'
|
155
170
|
import {
|
156
171
|
UnsubscribeBook,
|
157
172
|
UnsubscribeRequest,
|
@@ -208,33 +223,36 @@ type Request =
|
|
208
223
|
// clio only methods
|
209
224
|
| NFTInfoRequest
|
210
225
|
| NFTHistoryRequest
|
226
|
+
| NFTsByIssuerRequest
|
211
227
|
// AMM methods
|
212
228
|
| AMMInfoRequest
|
229
|
+
// Price Oracle methods
|
230
|
+
| GetAggregatePriceRequest
|
213
231
|
|
214
232
|
/**
|
215
233
|
* @category Responses
|
216
234
|
*/
|
217
|
-
type Response =
|
235
|
+
type Response<Version extends APIVersion = typeof DEFAULT_API_VERSION> =
|
218
236
|
// account methods
|
219
237
|
| AccountChannelsResponse
|
220
238
|
| AccountCurrenciesResponse
|
221
|
-
|
|
239
|
+
| AccountInfoVersionResponseMap<Version>
|
222
240
|
| AccountLinesResponse
|
223
241
|
| AccountNFTsResponse
|
224
242
|
| AccountObjectsResponse
|
225
243
|
| AccountOffersResponse
|
226
|
-
|
|
244
|
+
| AccountTxVersionResponseMap<Version>
|
227
245
|
| GatewayBalancesResponse
|
228
246
|
| NoRippleCheckResponse
|
229
247
|
// ledger methods
|
230
|
-
|
|
248
|
+
| LedgerVersionResponseMap<Version>
|
231
249
|
| LedgerClosedResponse
|
232
250
|
| LedgerCurrentResponse
|
233
251
|
| LedgerDataResponse
|
234
252
|
| LedgerEntryResponse
|
235
253
|
// transaction methods
|
236
254
|
| SubmitResponse
|
237
|
-
|
|
255
|
+
| SubmitMultisignedVersionResponseMap<Version>
|
238
256
|
| TransactionEntryResponse
|
239
257
|
| TxResponse
|
240
258
|
// path and order book methods
|
@@ -262,15 +280,21 @@ type Response =
|
|
262
280
|
// clio only methods
|
263
281
|
| NFTInfoResponse
|
264
282
|
| NFTHistoryResponse
|
283
|
+
| NFTsByIssuerResponse
|
265
284
|
// AMM methods
|
266
285
|
| AMMInfoResponse
|
286
|
+
// Price Oracle methods
|
287
|
+
| GetAggregatePriceResponse
|
267
288
|
|
268
|
-
export type RequestResponseMap<
|
289
|
+
export type RequestResponseMap<
|
290
|
+
T,
|
291
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
292
|
+
> = T extends AccountChannelsRequest
|
269
293
|
? AccountChannelsResponse
|
270
294
|
: T extends AccountCurrenciesRequest
|
271
295
|
? AccountCurrenciesResponse
|
272
296
|
: T extends AccountInfoRequest
|
273
|
-
?
|
297
|
+
? AccountInfoVersionResponseMap<Version>
|
274
298
|
: T extends AccountLinesRequest
|
275
299
|
? AccountLinesResponse
|
276
300
|
: T extends AccountNFTsRequest
|
@@ -280,11 +304,13 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
280
304
|
: T extends AccountOffersRequest
|
281
305
|
? AccountOffersResponse
|
282
306
|
: T extends AccountTxRequest
|
283
|
-
?
|
307
|
+
? AccountTxVersionResponseMap<Version>
|
284
308
|
: T extends AMMInfoRequest
|
285
309
|
? AMMInfoResponse
|
286
310
|
: T extends GatewayBalancesRequest
|
287
311
|
? GatewayBalancesResponse
|
312
|
+
: T extends GetAggregatePriceRequest
|
313
|
+
? GetAggregatePriceResponse
|
288
314
|
: T extends NoRippleCheckRequest
|
289
315
|
? NoRippleCheckResponse
|
290
316
|
: // NOTE: The order of these LedgerRequest types is important
|
@@ -344,15 +370,15 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
344
370
|
// then we'd get the wrong response type, LedgerResponse, instead of
|
345
371
|
// LedgerResponseExpanded.
|
346
372
|
T extends LedgerRequestExpandedTransactionsBinary
|
347
|
-
?
|
373
|
+
? LedgerVersionResponseMap<Version>
|
348
374
|
: T extends LedgerRequestExpandedAccountsAndTransactions
|
349
|
-
? LedgerResponseExpanded
|
375
|
+
? LedgerResponseExpanded<Version>
|
350
376
|
: T extends LedgerRequestExpandedTransactionsOnly
|
351
|
-
? LedgerResponseExpanded
|
377
|
+
? LedgerResponseExpanded<Version>
|
352
378
|
: T extends LedgerRequestExpandedAccountsOnly
|
353
|
-
? LedgerResponseExpanded
|
379
|
+
? LedgerResponseExpanded<Version>
|
354
380
|
: T extends LedgerRequest
|
355
|
-
?
|
381
|
+
? LedgerVersionResponseMap<Version>
|
356
382
|
: T extends LedgerClosedRequest
|
357
383
|
? LedgerClosedResponse
|
358
384
|
: T extends LedgerCurrentRequest
|
@@ -364,11 +390,11 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
364
390
|
: T extends SubmitRequest
|
365
391
|
? SubmitResponse
|
366
392
|
: T extends SubmitMultisignedRequest
|
367
|
-
?
|
393
|
+
? SubmitMultisignedVersionResponseMap<Version>
|
368
394
|
: T extends TransactionEntryRequest
|
369
395
|
? TransactionEntryResponse
|
370
396
|
: T extends TxRequest
|
371
|
-
?
|
397
|
+
? TxVersionResponseMap<Version>
|
372
398
|
: T extends BookOffersRequest
|
373
399
|
? BookOffersResponse
|
374
400
|
: T extends DepositAuthorizedRequest
|
@@ -403,22 +429,29 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
|
|
403
429
|
? NFTSellOffersResponse
|
404
430
|
: T extends NFTInfoRequest
|
405
431
|
? NFTInfoResponse
|
432
|
+
: T extends NFTsByIssuerRequest
|
433
|
+
? NFTsByIssuerResponse
|
406
434
|
: T extends NFTHistoryRequest
|
407
435
|
? NFTHistoryResponse
|
408
|
-
: Response
|
436
|
+
: Response<Version>
|
409
437
|
|
410
438
|
export type MarkerRequest = Request & {
|
411
439
|
limit?: number
|
412
440
|
marker?: unknown
|
413
441
|
}
|
414
442
|
|
415
|
-
export type MarkerResponse
|
443
|
+
export type MarkerResponse<
|
444
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
445
|
+
> = Response<Version> & {
|
416
446
|
result: {
|
417
447
|
marker?: unknown
|
418
448
|
}
|
419
449
|
}
|
420
450
|
|
421
|
-
export type RequestAllResponseMap<
|
451
|
+
export type RequestAllResponseMap<
|
452
|
+
T,
|
453
|
+
Version extends APIVersion = typeof DEFAULT_API_VERSION,
|
454
|
+
> = T extends AccountChannelsRequest
|
422
455
|
? AccountChannelsResponse
|
423
456
|
: T extends AccountLinesRequest
|
424
457
|
? AccountLinesResponse
|
@@ -427,14 +460,12 @@ export type RequestAllResponseMap<T> = T extends AccountChannelsRequest
|
|
427
460
|
: T extends AccountOffersRequest
|
428
461
|
? AccountOffersResponse
|
429
462
|
: T extends AccountTxRequest
|
430
|
-
?
|
463
|
+
? AccountTxVersionResponseMap<Version>
|
431
464
|
: T extends LedgerDataRequest
|
432
465
|
? LedgerDataResponse
|
433
|
-
: T extends AccountTxRequest
|
434
|
-
? AccountTxResponse
|
435
466
|
: T extends BookOffersRequest
|
436
467
|
? BookOffersResponse
|
437
|
-
: MarkerResponse
|
468
|
+
: MarkerResponse<Version>
|
438
469
|
|
439
470
|
export {
|
440
471
|
// Allow users to define their own requests and responses. This is useful for releasing experimental versions
|
@@ -452,6 +483,7 @@ export {
|
|
452
483
|
AccountInfoAccountFlags,
|
453
484
|
AccountInfoRequest,
|
454
485
|
AccountInfoResponse,
|
486
|
+
AccountInfoV1Response,
|
455
487
|
AccountQueueData,
|
456
488
|
AccountQueueTransaction,
|
457
489
|
AccountLinesRequest,
|
@@ -469,15 +501,19 @@ export {
|
|
469
501
|
AccountOffersResponse,
|
470
502
|
AccountTxRequest,
|
471
503
|
AccountTxResponse,
|
504
|
+
AccountTxV1Response,
|
472
505
|
AccountTxTransaction,
|
473
506
|
GatewayBalance,
|
474
507
|
GatewayBalancesRequest,
|
475
508
|
GatewayBalancesResponse,
|
509
|
+
GetAggregatePriceRequest,
|
510
|
+
GetAggregatePriceResponse,
|
476
511
|
NoRippleCheckRequest,
|
477
512
|
NoRippleCheckResponse,
|
478
513
|
// ledger methods
|
479
514
|
LedgerRequest,
|
480
515
|
LedgerResponse,
|
516
|
+
LedgerV1Response,
|
481
517
|
LedgerQueueData,
|
482
518
|
LedgerBinary,
|
483
519
|
LedgerModifiedOfferCreateTransaction,
|
@@ -497,10 +533,12 @@ export {
|
|
497
533
|
SubmitResponse,
|
498
534
|
SubmitMultisignedRequest,
|
499
535
|
SubmitMultisignedResponse,
|
536
|
+
SubmitMultisignedV1Response,
|
500
537
|
TransactionEntryRequest,
|
501
538
|
TransactionEntryResponse,
|
502
539
|
TxRequest,
|
503
540
|
TxResponse,
|
541
|
+
TxV1Response,
|
504
542
|
// path and order book methods with types
|
505
543
|
BookOffersRequest,
|
506
544
|
BookOffer,
|
@@ -570,6 +608,8 @@ export {
|
|
570
608
|
NFTHistoryRequest,
|
571
609
|
NFTHistoryResponse,
|
572
610
|
NFTHistoryTransaction,
|
611
|
+
NFTsByIssuerRequest,
|
612
|
+
NFTsByIssuerResponse,
|
573
613
|
// AMM methods
|
574
614
|
AMMInfoRequest,
|
575
615
|
AMMInfoResponse,
|