mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 05:05:48 +00:00
add check for windows eol on commit
removes windows eols from some files
This commit is contained in:
@@ -1599,18 +1599,18 @@ paths | string | The paths of trustlines and orders to use in executing the paym
|
|||||||
### Example
|
### Example
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
const pathfind = {
|
const pathfind = {
|
||||||
"source": {
|
"source": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
||||||
"amount": {
|
"amount": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
||||||
"value": "100"
|
"value": "100"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return api.getPaths(pathfind)
|
return api.getPaths(pathfind)
|
||||||
.then(paths => {/* ... */});
|
.then(paths => {/* ... */});
|
||||||
|
|||||||
18
scripts/checkeol.sh
Executable file
18
scripts/checkeol.sh
Executable file
@@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function checkEOL {
|
||||||
|
local changedFiles=$(git --no-pager diff --name-only -M100% --diff-filter=AM --relative $(git merge-base FETCH_HEAD origin/HEAD) FETCH_HEAD)
|
||||||
|
local result=0
|
||||||
|
for name in $changedFiles; do
|
||||||
|
grep -c -U -q $'\r' $name
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "windows eol found in $name" >&2
|
||||||
|
result=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
if [ $result -eq 1 ]; then
|
||||||
|
false
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
checkEOL
|
||||||
@@ -3,6 +3,10 @@
|
|||||||
NODE_INDEX="$1"
|
NODE_INDEX="$1"
|
||||||
TOTAL_NODES="$2"
|
TOTAL_NODES="$2"
|
||||||
|
|
||||||
|
function checkEOL {
|
||||||
|
./scripts/checkeol.sh
|
||||||
|
}
|
||||||
|
|
||||||
typecheck() {
|
typecheck() {
|
||||||
npm install -g flow-bin
|
npm install -g flow-bin
|
||||||
flow --version
|
flow --version
|
||||||
@@ -47,6 +51,7 @@ doctest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
oneNode() {
|
oneNode() {
|
||||||
|
checkEOL
|
||||||
doctest
|
doctest
|
||||||
lint
|
lint
|
||||||
typecheck
|
typecheck
|
||||||
@@ -57,7 +62,7 @@ oneNode() {
|
|||||||
twoNodes() {
|
twoNodes() {
|
||||||
case "$NODE_INDEX" in
|
case "$NODE_INDEX" in
|
||||||
0) doctest; lint; integrationtest;;
|
0) doctest; lint; integrationtest;;
|
||||||
1) typecheck; unittest;;
|
1) checkEOL; typecheck; unittest;;
|
||||||
*) echo "ERROR: invalid usage"; exit 2;;
|
*) echo "ERROR: invalid usage"; exit 2;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@@ -65,7 +70,7 @@ twoNodes() {
|
|||||||
threeNodes() {
|
threeNodes() {
|
||||||
case "$NODE_INDEX" in
|
case "$NODE_INDEX" in
|
||||||
0) doctest; lint; integrationtest;;
|
0) doctest; lint; integrationtest;;
|
||||||
1) typecheck;;
|
1) checkEOL; typecheck;;
|
||||||
2) unittest;;
|
2) unittest;;
|
||||||
*) echo "ERROR: invalid usage"; exit 2;;
|
*) echo "ERROR: invalid usage"; exit 2;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@@ -1,55 +1,55 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export type RippledAmountIOU = {
|
export type RippledAmountIOU = {
|
||||||
currency: string,
|
currency: string,
|
||||||
value: string,
|
value: string,
|
||||||
issuer?: string
|
issuer?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type RippledAmount = string | RippledAmountIOU
|
export type RippledAmount = string | RippledAmountIOU
|
||||||
|
|
||||||
|
|
||||||
export type Amount = {
|
export type Amount = {
|
||||||
value: string,
|
value: string,
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty?: string
|
counterparty?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Amount where counterparty and value are optional
|
// Amount where counterparty and value are optional
|
||||||
export type LaxLaxAmount = {
|
export type LaxLaxAmount = {
|
||||||
currency: string,
|
currency: string,
|
||||||
value?: string,
|
value?: string,
|
||||||
counterparty?: string
|
counterparty?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
// A currency-counterparty pair, or just currency if it's XRP
|
// A currency-counterparty pair, or just currency if it's XRP
|
||||||
export type Issue = {
|
export type Issue = {
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty?: string
|
counterparty?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Adjustment = {
|
export type Adjustment = {
|
||||||
address: string,
|
address: string,
|
||||||
amount: Amount,
|
amount: Amount,
|
||||||
tag?: number
|
tag?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MaxAdjustment = {
|
export type MaxAdjustment = {
|
||||||
address: string,
|
address: string,
|
||||||
maxAmount: Amount,
|
maxAmount: Amount,
|
||||||
tag?: number
|
tag?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type MinAdjustment = {
|
export type MinAdjustment = {
|
||||||
address: string,
|
address: string,
|
||||||
minAmount: Amount,
|
minAmount: Amount,
|
||||||
tag?: number
|
tag?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Memo = {
|
export type Memo = {
|
||||||
type?: string,
|
type?: string,
|
||||||
format?: string,
|
format?: string,
|
||||||
data?: string
|
data?: string
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,135 +1,135 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import type {Amount, Memo} from '../common/types.js';
|
import type {Amount, Memo} from '../common/types.js';
|
||||||
|
|
||||||
type Outcome = {
|
type Outcome = {
|
||||||
result: string,
|
result: string,
|
||||||
ledgerVersion: number,
|
ledgerVersion: number,
|
||||||
indexInLedger: number,
|
indexInLedger: number,
|
||||||
fee: string,
|
fee: string,
|
||||||
balanceChanges: {
|
balanceChanges: {
|
||||||
[key: string]: [{
|
[key: string]: [{
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty?: string,
|
counterparty?: string,
|
||||||
value: string
|
value: string
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
orderbookChanges: Object,
|
orderbookChanges: Object,
|
||||||
timestamp?: string
|
timestamp?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type Adjustment = {
|
type Adjustment = {
|
||||||
address: string,
|
address: string,
|
||||||
amount: {
|
amount: {
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty?: string,
|
counterparty?: string,
|
||||||
value: string
|
value: string
|
||||||
},
|
},
|
||||||
tag?: number
|
tag?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
type Trustline = {
|
type Trustline = {
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty: string,
|
counterparty: string,
|
||||||
limit: string,
|
limit: string,
|
||||||
qualityIn?: number,
|
qualityIn?: number,
|
||||||
qualityOut?: number,
|
qualityOut?: number,
|
||||||
ripplingDisabled?: boolean,
|
ripplingDisabled?: boolean,
|
||||||
authorized?: boolean,
|
authorized?: boolean,
|
||||||
frozen?: boolean
|
frozen?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type Settings = {
|
type Settings = {
|
||||||
passwordSpent?: boolean,
|
passwordSpent?: boolean,
|
||||||
requireDestinationTag?: boolean,
|
requireDestinationTag?: boolean,
|
||||||
requireAuthorization?: boolean,
|
requireAuthorization?: boolean,
|
||||||
disallowIncomingXRP?: boolean,
|
disallowIncomingXRP?: boolean,
|
||||||
disableMasterKey?: boolean,
|
disableMasterKey?: boolean,
|
||||||
enableTransactionIDTracking?: boolean,
|
enableTransactionIDTracking?: boolean,
|
||||||
noFreeze?: boolean,
|
noFreeze?: boolean,
|
||||||
globalFreeze?: boolean,
|
globalFreeze?: boolean,
|
||||||
defaultRipple?: boolean,
|
defaultRipple?: boolean,
|
||||||
emailHash?: string,
|
emailHash?: string,
|
||||||
messageKey?: string,
|
messageKey?: string,
|
||||||
domain?: string,
|
domain?: string,
|
||||||
transferRate?: number,
|
transferRate?: number,
|
||||||
regularKey?: string
|
regularKey?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderCancellation = {
|
type OrderCancellation = {
|
||||||
orderSequence: number
|
orderSequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
type Payment = {
|
type Payment = {
|
||||||
source: Adjustment,
|
source: Adjustment,
|
||||||
destination: Adjustment,
|
destination: Adjustment,
|
||||||
paths?: string,
|
paths?: string,
|
||||||
memos?: Array<Memo>,
|
memos?: Array<Memo>,
|
||||||
invoiceID?: string,
|
invoiceID?: string,
|
||||||
allowPartialPayment?: boolean,
|
allowPartialPayment?: boolean,
|
||||||
noDirectRipple?: boolean,
|
noDirectRipple?: boolean,
|
||||||
limitQuality?: boolean
|
limitQuality?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type PaymentTransaction = {
|
type PaymentTransaction = {
|
||||||
type: string,
|
type: string,
|
||||||
specification: Payment,
|
specification: Payment,
|
||||||
outcome: Outcome,
|
outcome: Outcome,
|
||||||
id: string,
|
id: string,
|
||||||
address: string,
|
address: string,
|
||||||
sequence: number
|
sequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Order = {
|
export type Order = {
|
||||||
direction: string,
|
direction: string,
|
||||||
quantity: Amount,
|
quantity: Amount,
|
||||||
totalPrice: Amount,
|
totalPrice: Amount,
|
||||||
immediateOrCancel?: boolean,
|
immediateOrCancel?: boolean,
|
||||||
fillOrKill?: boolean,
|
fillOrKill?: boolean,
|
||||||
passive?: boolean
|
passive?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderTransaction = {
|
type OrderTransaction = {
|
||||||
type: string,
|
type: string,
|
||||||
specification: Order,
|
specification: Order,
|
||||||
outcome: Outcome,
|
outcome: Outcome,
|
||||||
id: string,
|
id: string,
|
||||||
address: string,
|
address: string,
|
||||||
sequence: number
|
sequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderCancellationTransaction = {
|
type OrderCancellationTransaction = {
|
||||||
type: string,
|
type: string,
|
||||||
specification: OrderCancellation,
|
specification: OrderCancellation,
|
||||||
outcome: Outcome,
|
outcome: Outcome,
|
||||||
id: string,
|
id: string,
|
||||||
address: string,
|
address: string,
|
||||||
sequence: number
|
sequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
type TrustlineTransaction = {
|
type TrustlineTransaction = {
|
||||||
type: string,
|
type: string,
|
||||||
specification: Trustline,
|
specification: Trustline,
|
||||||
outcome: Outcome,
|
outcome: Outcome,
|
||||||
id: string,
|
id: string,
|
||||||
address: string,
|
address: string,
|
||||||
sequence: number
|
sequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
type SettingsTransaction = {
|
type SettingsTransaction = {
|
||||||
type: string,
|
type: string,
|
||||||
specification: Settings,
|
specification: Settings,
|
||||||
outcome: Outcome,
|
outcome: Outcome,
|
||||||
id: string,
|
id: string,
|
||||||
address: string,
|
address: string,
|
||||||
sequence: number
|
sequence: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TransactionOptions = {
|
export type TransactionOptions = {
|
||||||
minLedgerVersion?: number,
|
minLedgerVersion?: number,
|
||||||
maxLedgerVersion?: number
|
maxLedgerVersion?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TransactionType = PaymentTransaction | OrderTransaction |
|
export type TransactionType = PaymentTransaction | OrderTransaction |
|
||||||
OrderCancellationTransaction | TrustlineTransaction | SettingsTransaction
|
OrderCancellationTransaction | TrustlineTransaction | SettingsTransaction
|
||||||
|
|||||||
@@ -1,33 +1,33 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export type TrustLineSpecification = {
|
export type TrustLineSpecification = {
|
||||||
currency: string,
|
currency: string,
|
||||||
counterparty: string,
|
counterparty: string,
|
||||||
limit: string,
|
limit: string,
|
||||||
qualityIn?: number,
|
qualityIn?: number,
|
||||||
qualityOut?: number,
|
qualityOut?: number,
|
||||||
ripplingDisabled?: boolean,
|
ripplingDisabled?: boolean,
|
||||||
authorized?: boolean,
|
authorized?: boolean,
|
||||||
frozen?: boolean
|
frozen?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Trustline = {
|
export type Trustline = {
|
||||||
specification: TrustLineSpecification,
|
specification: TrustLineSpecification,
|
||||||
counterparty: {
|
counterparty: {
|
||||||
limit: string,
|
limit: string,
|
||||||
ripplingDisabled?: boolean,
|
ripplingDisabled?: boolean,
|
||||||
frozen?: boolean,
|
frozen?: boolean,
|
||||||
authorized?: boolean
|
authorized?: boolean
|
||||||
},
|
},
|
||||||
state: {
|
state: {
|
||||||
balance: string
|
balance: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TrustlinesOptions = {
|
export type TrustlinesOptions = {
|
||||||
counterparty?: string,
|
counterparty?: string,
|
||||||
currency?: string,
|
currency?: string,
|
||||||
limit?: number,
|
limit?: number,
|
||||||
ledgerVersion?: number
|
ledgerVersion?: number
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,50 +1,50 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import type {Amount} from '../common/types.js';
|
import type {Amount} from '../common/types.js';
|
||||||
|
|
||||||
export type OrdersOptions = {
|
export type OrdersOptions = {
|
||||||
limit?: number,
|
limit?: number,
|
||||||
ledgerVersion?: number
|
ledgerVersion?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type OrderSpecification = {
|
export type OrderSpecification = {
|
||||||
direction: string,
|
direction: string,
|
||||||
quantity: Amount,
|
quantity: Amount,
|
||||||
totalPrice: Amount,
|
totalPrice: Amount,
|
||||||
immediateOrCancel?: boolean,
|
immediateOrCancel?: boolean,
|
||||||
fillOrKill?: boolean,
|
fillOrKill?: boolean,
|
||||||
// If enabled, the offer will not consume offers that exactly match it, and
|
// If enabled, the offer will not consume offers that exactly match it, and
|
||||||
// instead becomes an Offer node in the ledger. It will still consume offers
|
// instead becomes an Offer node in the ledger. It will still consume offers
|
||||||
// that cross it.
|
// that cross it.
|
||||||
passive?: boolean
|
passive?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Order = {
|
export type Order = {
|
||||||
specification: OrderSpecification,
|
specification: OrderSpecification,
|
||||||
properties: {
|
properties: {
|
||||||
maker: string,
|
maker: string,
|
||||||
sequence: number,
|
sequence: number,
|
||||||
makerExchangeRate: string
|
makerExchangeRate: string
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GetLedger = {
|
export type GetLedger = {
|
||||||
accepted: boolean,
|
accepted: boolean,
|
||||||
closed: boolean,
|
closed: boolean,
|
||||||
stateHash: string,
|
stateHash: string,
|
||||||
closeTime: number,
|
closeTime: number,
|
||||||
closeTimeResolution: number,
|
closeTimeResolution: number,
|
||||||
closeFlags: number,
|
closeFlags: number,
|
||||||
ledgerHash: string,
|
ledgerHash: string,
|
||||||
ledgerVersion: number,
|
ledgerVersion: number,
|
||||||
parentLedgerHash: string,
|
parentLedgerHash: string,
|
||||||
parentCloseTime: number,
|
parentCloseTime: number,
|
||||||
totalDrops: string,
|
totalDrops: string,
|
||||||
transactionHash: string,
|
transactionHash: string,
|
||||||
transactions?: Array<Object>,
|
transactions?: Array<Object>,
|
||||||
rawTransactions?: string,
|
rawTransactions?: string,
|
||||||
transactionHashes?: Array<string>,
|
transactionHashes?: Array<string>,
|
||||||
rawState?: string,
|
rawState?: string,
|
||||||
stateHashes?: Array<string>
|
stateHashes?: Array<string>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,53 +1,53 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
type SettingPasswordSpent = {
|
type SettingPasswordSpent = {
|
||||||
passwordSpent?: boolean,
|
passwordSpent?: boolean,
|
||||||
}
|
}
|
||||||
type SettingRequireDestinationTag = {
|
type SettingRequireDestinationTag = {
|
||||||
requireDestinationTag?: boolean,
|
requireDestinationTag?: boolean,
|
||||||
}
|
}
|
||||||
type SettingRequireAuthorization = {
|
type SettingRequireAuthorization = {
|
||||||
requireAuthorization?: boolean,
|
requireAuthorization?: boolean,
|
||||||
}
|
}
|
||||||
type SettingDisallowIncomingXRP = {
|
type SettingDisallowIncomingXRP = {
|
||||||
disallowIncomingXRP?: boolean,
|
disallowIncomingXRP?: boolean,
|
||||||
}
|
}
|
||||||
type SettingDisableMasterKey = {
|
type SettingDisableMasterKey = {
|
||||||
disableMasterKey?: boolean,
|
disableMasterKey?: boolean,
|
||||||
}
|
}
|
||||||
type SettingEnableTransactionIDTracking = {
|
type SettingEnableTransactionIDTracking = {
|
||||||
enableTransactionIDTracking?: boolean,
|
enableTransactionIDTracking?: boolean,
|
||||||
}
|
}
|
||||||
type SettingNoFreeze = {
|
type SettingNoFreeze = {
|
||||||
noFreeze?: boolean,
|
noFreeze?: boolean,
|
||||||
}
|
}
|
||||||
type SettingGlobalFreeze = {
|
type SettingGlobalFreeze = {
|
||||||
globalFreeze?: boolean,
|
globalFreeze?: boolean,
|
||||||
}
|
}
|
||||||
type SettingDefaultRipple = {
|
type SettingDefaultRipple = {
|
||||||
defaultRipple?: boolean,
|
defaultRipple?: boolean,
|
||||||
}
|
}
|
||||||
type SettingEmailHash = {
|
type SettingEmailHash = {
|
||||||
emailHash?: ?string,
|
emailHash?: ?string,
|
||||||
}
|
}
|
||||||
type SettingMessageKey = {
|
type SettingMessageKey = {
|
||||||
messageKey?: string,
|
messageKey?: string,
|
||||||
}
|
}
|
||||||
type SettingDomain = {
|
type SettingDomain = {
|
||||||
domain?: string,
|
domain?: string,
|
||||||
}
|
}
|
||||||
type SettingTransferRate = {
|
type SettingTransferRate = {
|
||||||
transferRate?: ?number,
|
transferRate?: ?number,
|
||||||
}
|
}
|
||||||
type SettingRegularKey = {
|
type SettingRegularKey = {
|
||||||
regularKey?: string
|
regularKey?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Settings = SettingRegularKey |
|
export type Settings = SettingRegularKey |
|
||||||
SettingTransferRate | SettingDomain | SettingMessageKey |
|
SettingTransferRate | SettingDomain | SettingMessageKey |
|
||||||
SettingEmailHash | SettingDefaultRipple |
|
SettingEmailHash | SettingDefaultRipple |
|
||||||
SettingGlobalFreeze | SettingNoFreeze | SettingEnableTransactionIDTracking |
|
SettingGlobalFreeze | SettingNoFreeze | SettingEnableTransactionIDTracking |
|
||||||
SettingDisableMasterKey | SettingDisallowIncomingXRP |
|
SettingDisableMasterKey | SettingDisallowIncomingXRP |
|
||||||
SettingRequireAuthorization | SettingRequireDestinationTag |
|
SettingRequireAuthorization | SettingRequireDestinationTag |
|
||||||
SettingPasswordSpent
|
SettingPasswordSpent
|
||||||
|
|||||||
@@ -1,19 +1,19 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
export type Instructions = {
|
export type Instructions = {
|
||||||
sequence?: number,
|
sequence?: number,
|
||||||
fee?: string,
|
fee?: string,
|
||||||
maxFee?: string,
|
maxFee?: string,
|
||||||
maxLedgerVersion?: number,
|
maxLedgerVersion?: number,
|
||||||
maxLedgerVersionOffset?: number
|
maxLedgerVersionOffset?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Prepare = {
|
export type Prepare = {
|
||||||
txJSON: string,
|
txJSON: string,
|
||||||
instructions: {
|
instructions: {
|
||||||
fee: string,
|
fee: string,
|
||||||
sequence: number,
|
sequence: number,
|
||||||
maxLedgerVersion?: number
|
maxLedgerVersion?: number
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"base": {
|
"base": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"counterparty": "rp8rJYTpodf8qbSCHVTNacf8nSW8mRakFw"
|
"counterparty": "rp8rJYTpodf8qbSCHVTNacf8nSW8mRakFw"
|
||||||
},
|
},
|
||||||
"counter": {
|
"counter": {
|
||||||
"currency": "XRP"
|
"currency": "XRP"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
24
test/fixtures/requests/getpaths/normal.json
vendored
24
test/fixtures/requests/getpaths/normal.json
vendored
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59"
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
||||||
"amount": {
|
"amount": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
||||||
"value": "100"
|
"value": "100"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
30
test/fixtures/requests/getpaths/send-all.json
vendored
30
test/fixtures/requests/getpaths/send-all.json
vendored
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"amount": {
|
"amount": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"value": "5"
|
"value": "5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
|
"address": "ra5nK24KXen9AHvsdFTKHSANinZseWnPcX",
|
||||||
"amount": {
|
"amount": {
|
||||||
"currency": "USD"
|
"currency": "USD"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
38
test/fixtures/requests/getpaths/usd2usd.json
vendored
38
test/fixtures/requests/getpaths/usd2usd.json
vendored
@@ -1,20 +1,20 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
||||||
"currencies": [
|
"currencies": [
|
||||||
{
|
{
|
||||||
"currency": "LTC"
|
"currency": "LTC"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"currency": "USD"
|
"currency": "USD"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"amount": {
|
"amount": {
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"value": "0.000001"
|
"value": "0.000001"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
24
test/fixtures/requests/getpaths/xrp2xrp.json
vendored
24
test/fixtures/requests/getpaths/xrp2xrp.json
vendored
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "rwBYyfufTzk77zUSKEu4MvixfarC35av1J"
|
"address": "rwBYyfufTzk77zUSKEu4MvixfarC35av1J"
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"amount": {
|
"amount": {
|
||||||
"value": "0.000002",
|
"value": "0.000002",
|
||||||
"currency": "XRP"
|
"currency": "XRP"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
"address": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM",
|
||||||
"amount": {
|
"amount": {
|
||||||
"value": "0.01",
|
"value": "0.01",
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
|
"counterparty": "rMH4UxPrbuMa1spCBR98hLLyNJp4d8p4tM"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
||||||
"minAmount": {
|
"minAmount": {
|
||||||
"value": "0.01",
|
"value": "0.01",
|
||||||
"currency": "XRP"
|
"currency": "XRP"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"source": {
|
"source": {
|
||||||
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"amount": {
|
"amount": {
|
||||||
"value": "0.01",
|
"value": "0.01",
|
||||||
"currency": "XRP"
|
"currency": "XRP"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"destination": {
|
"destination": {
|
||||||
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
"address": "rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo",
|
||||||
"minAmount": {
|
"minAmount": {
|
||||||
"value": "0.01",
|
"value": "0.01",
|
||||||
"currency": "XRP"
|
"currency": "XRP"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"allowPartialPayment": true
|
"allowPartialPayment": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,4 +31,4 @@
|
|||||||
"ledgerVersion": 14,
|
"ledgerVersion": 14,
|
||||||
"indexInLedger": 0
|
"indexInLedger": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,4 +32,4 @@
|
|||||||
"ledgerVersion": 14,
|
"ledgerVersion": 14,
|
||||||
"indexInLedger": 0
|
"indexInLedger": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,4 +331,4 @@
|
|||||||
"balance": "0"
|
"balance": "0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"txJSON": "{\"Flags\":2147942400,\"TransactionType\":\"Payment\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":{\"value\":\"0.01\",\"currency\":\"LTC\",\"issuer\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\"},\"InvoiceID\":\"A98FD36C17BE2B8511AD36DC335478E7E89F06262949F36EB88E2D683BBCC50A\",\"SourceTag\":14,\"DestinationTag\":58,\"Memos\":[{\"Memo\":{\"MemoType\":\"74657374\",\"MemoFormat\":\"706C61696E2F74657874\",\"MemoData\":\"7465787465642064617461\"}}],\"SendMax\":{\"value\":\"0.01\",\"currency\":\"USD\",\"issuer\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\"},\"Paths\":[[{\"account\":\"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q\",\"issuer\":\"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q\",\"currency\":\"USD\"},{\"issuer\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"currency\":\"LTC\"},{\"account\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"issuer\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"currency\":\"LTC\"}]],\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
"txJSON": "{\"Flags\":2147942400,\"TransactionType\":\"Payment\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"Destination\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\",\"Amount\":{\"value\":\"0.01\",\"currency\":\"LTC\",\"issuer\":\"rpZc4mVfWUif9CRoHRKKcmhu1nx2xktxBo\"},\"InvoiceID\":\"A98FD36C17BE2B8511AD36DC335478E7E89F06262949F36EB88E2D683BBCC50A\",\"SourceTag\":14,\"DestinationTag\":58,\"Memos\":[{\"Memo\":{\"MemoType\":\"74657374\",\"MemoFormat\":\"706C61696E2F74657874\",\"MemoData\":\"7465787465642064617461\"}}],\"SendMax\":{\"value\":\"0.01\",\"currency\":\"USD\",\"issuer\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\"},\"Paths\":[[{\"account\":\"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q\",\"issuer\":\"rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q\",\"currency\":\"USD\"},{\"issuer\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"currency\":\"LTC\"},{\"account\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"issuer\":\"rfYv1TXnwgDDK4WQNbFALykYuEBnrR4pDX\",\"currency\":\"LTC\"}]],\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
||||||
"instructions": {
|
"instructions": {
|
||||||
"fee": "0.000012",
|
"fee": "0.000012",
|
||||||
"sequence": 23,
|
"sequence": 23,
|
||||||
"maxLedgerVersion": 8820051
|
"maxLedgerVersion": 8820051
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"AccountSet\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"WalletLocator\":\"0\",\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"AccountSet\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"WalletLocator\":\"0\",\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
||||||
"instructions": {
|
"instructions": {
|
||||||
"fee": "0.000012",
|
"fee": "0.000012",
|
||||||
"sequence": 23,
|
"sequence": 23,
|
||||||
"maxLedgerVersion": 8820051
|
"maxLedgerVersion": 8820051
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"AccountSet\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"TransferRate\":1000000000,\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
"txJSON": "{\"Flags\":2147483648,\"TransactionType\":\"AccountSet\",\"Account\":\"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59\",\"TransferRate\":1000000000,\"LastLedgerSequence\":8820051,\"Fee\":\"12\",\"Sequence\":23}",
|
||||||
"instructions": {
|
"instructions": {
|
||||||
"fee": "0.000012",
|
"fee": "0.000012",
|
||||||
"sequence": 23,
|
"sequence": 23,
|
||||||
"maxLedgerVersion": 8820051
|
"maxLedgerVersion": 8820051
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,4 +29,4 @@
|
|||||||
},
|
},
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response"
|
"type": "response"
|
||||||
}
|
}
|
||||||
|
|||||||
22
test/fixtures/rippled/ledger-close-newer.json
vendored
22
test/fixtures/rippled/ledger-close-newer.json
vendored
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"fee_base": 10,
|
"fee_base": 10,
|
||||||
"fee_ref": 10,
|
"fee_ref": 10,
|
||||||
"ledger_hash": "9141FA171F2C0CE63E609466AF728FF66C12F7ACD4B4B50B0947A7F3409D593A",
|
"ledger_hash": "9141FA171F2C0CE63E609466AF728FF66C12F7ACD4B4B50B0947A7F3409D593A",
|
||||||
"ledger_index": 14804627,
|
"ledger_index": 14804627,
|
||||||
"ledger_time": 490945840,
|
"ledger_time": 490945840,
|
||||||
"reserve_base": 20000000,
|
"reserve_base": 20000000,
|
||||||
"reserve_inc": 5000000,
|
"reserve_inc": 5000000,
|
||||||
"txn_count": 19,
|
"txn_count": 19,
|
||||||
"type": "ledgerClosed",
|
"type": "ledgerClosed",
|
||||||
"validated_ledgers": "13983423-14804627"
|
"validated_ledgers": "13983423-14804627"
|
||||||
}
|
}
|
||||||
24
test/fixtures/rippled/ledger-not-found.json
vendored
24
test/fixtures/rippled/ledger-not-found.json
vendored
@@ -1,13 +1,13 @@
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"status": "error",
|
"status": "error",
|
||||||
"type": "response",
|
"type": "response",
|
||||||
"error": "lgrNotFound",
|
"error": "lgrNotFound",
|
||||||
"error_code": 20,
|
"error_code": 20,
|
||||||
"error_message": "ledgerNotFound",
|
"error_message": "ledgerNotFound",
|
||||||
"request": {
|
"request": {
|
||||||
"command": "ledger",
|
"command": "ledger",
|
||||||
"id": 3,
|
"id": 3,
|
||||||
"ledger_index": 34
|
"ledger_index": 34
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
190
test/fixtures/rippled/tx/offer-cancel.json
vendored
190
test/fixtures/rippled/tx/offer-cancel.json
vendored
@@ -1,95 +1,95 @@
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response",
|
"type": "response",
|
||||||
"result": {
|
"result": {
|
||||||
"TransactionType": "OfferCancel",
|
"TransactionType": "OfferCancel",
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"Sequence": 466,
|
"Sequence": 466,
|
||||||
"OfferSequence": 465,
|
"OfferSequence": 465,
|
||||||
"LastLedgerSequence": 14661888,
|
"LastLedgerSequence": 14661888,
|
||||||
"Fee": "12000",
|
"Fee": "12000",
|
||||||
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
||||||
"TxnSignature": "3045022100E4148E9809C5CE13BC5583E8CA665614D9FF02D6589D13BA7FBB67CF45EAC0BF02201B84DC18A921260BCEE685908260888BC20D4375DB4A8702F25B346CAD7F3387",
|
"TxnSignature": "3045022100E4148E9809C5CE13BC5583E8CA665614D9FF02D6589D13BA7FBB67CF45EAC0BF02201B84DC18A921260BCEE685908260888BC20D4375DB4A8702F25B346CAD7F3387",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||||
"hash": "809335DD3B0B333865096217AA2F55A4DF168E0198080B3A090D12D88880FF0E",
|
"hash": "809335DD3B0B333865096217AA2F55A4DF168E0198080B3A090D12D88880FF0E",
|
||||||
"ledger_index": 14661789,
|
"ledger_index": 14661789,
|
||||||
"inLedger": 14661789,
|
"inLedger": 14661789,
|
||||||
"meta": {
|
"meta": {
|
||||||
"TransactionIndex": 4,
|
"TransactionIndex": 4,
|
||||||
"AffectedNodes": [
|
"AffectedNodes": [
|
||||||
{
|
{
|
||||||
"ModifiedNode": {
|
"ModifiedNode": {
|
||||||
"LedgerEntryType": "AccountRoot",
|
"LedgerEntryType": "AccountRoot",
|
||||||
"PreviousTxnLgrSeq": 14661788,
|
"PreviousTxnLgrSeq": 14661788,
|
||||||
"PreviousTxnID": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
"PreviousTxnID": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
||||||
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
||||||
"PreviousFields": {
|
"PreviousFields": {
|
||||||
"Sequence": 466,
|
"Sequence": 466,
|
||||||
"OwnerCount": 4,
|
"OwnerCount": 4,
|
||||||
"Balance": "71827095"
|
"Balance": "71827095"
|
||||||
},
|
},
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"Sequence": 467,
|
"Sequence": 467,
|
||||||
"OwnerCount": 3,
|
"OwnerCount": 3,
|
||||||
"Balance": "71815095",
|
"Balance": "71815095",
|
||||||
"Domain": "726970706C652E636F6D",
|
"Domain": "726970706C652E636F6D",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModifiedNode": {
|
"ModifiedNode": {
|
||||||
"LedgerEntryType": "DirectoryNode",
|
"LedgerEntryType": "DirectoryNode",
|
||||||
"LedgerIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
"LedgerIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"RootIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
"RootIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
||||||
"Owner": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Owner": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DeletedNode": {
|
"DeletedNode": {
|
||||||
"LedgerEntryType": "DirectoryNode",
|
"LedgerEntryType": "DirectoryNode",
|
||||||
"LedgerIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"LedgerIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"ExchangeRate": "550435C0500F1000",
|
"ExchangeRate": "550435C0500F1000",
|
||||||
"RootIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"RootIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
||||||
"TakerPaysIssuer": "DD39C650A96EDA48334E70CC4A85B8B2E8502CD3",
|
"TakerPaysIssuer": "DD39C650A96EDA48334E70CC4A85B8B2E8502CD3",
|
||||||
"TakerGetsCurrency": "0000000000000000000000000000000000000000",
|
"TakerGetsCurrency": "0000000000000000000000000000000000000000",
|
||||||
"TakerGetsIssuer": "0000000000000000000000000000000000000000"
|
"TakerGetsIssuer": "0000000000000000000000000000000000000000"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"DeletedNode": {
|
"DeletedNode": {
|
||||||
"LedgerEntryType": "Offer",
|
"LedgerEntryType": "Offer",
|
||||||
"LedgerIndex": "D0BEA7E310CDCEED282911314B0D6D00BB7E3B985EAA275AE2AC2DE3763AAF0C",
|
"LedgerIndex": "D0BEA7E310CDCEED282911314B0D6D00BB7E3B985EAA275AE2AC2DE3763AAF0C",
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"Sequence": 465,
|
"Sequence": 465,
|
||||||
"PreviousTxnLgrSeq": 14661788,
|
"PreviousTxnLgrSeq": 14661788,
|
||||||
"BookNode": "0000000000000000",
|
"BookNode": "0000000000000000",
|
||||||
"OwnerNode": "0000000000000000",
|
"OwnerNode": "0000000000000000",
|
||||||
"PreviousTxnID": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
"PreviousTxnID": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
||||||
"BookDirectory": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"BookDirectory": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"TakerPays": {
|
"TakerPays": {
|
||||||
"value": "237",
|
"value": "237",
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
||||||
},
|
},
|
||||||
"TakerGets": "200",
|
"TakerGets": "200",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TransactionResult": "tesSUCCESS"
|
"TransactionResult": "tesSUCCESS"
|
||||||
},
|
},
|
||||||
"validated": true
|
"validated": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,4 +48,4 @@
|
|||||||
},
|
},
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response"
|
"type": "response"
|
||||||
}
|
}
|
||||||
|
|||||||
184
test/fixtures/rippled/tx/offer-create.json
vendored
184
test/fixtures/rippled/tx/offer-create.json
vendored
@@ -1,92 +1,92 @@
|
|||||||
{
|
{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response",
|
"type": "response",
|
||||||
"result": {
|
"result": {
|
||||||
"TransactionType": "OfferCreate",
|
"TransactionType": "OfferCreate",
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"Sequence": 465,
|
"Sequence": 465,
|
||||||
"LastLedgerSequence": 14661886,
|
"LastLedgerSequence": 14661886,
|
||||||
"TakerPays": {
|
"TakerPays": {
|
||||||
"value": "237",
|
"value": "237",
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
||||||
},
|
},
|
||||||
"TakerGets": "200",
|
"TakerGets": "200",
|
||||||
"Fee": "12000",
|
"Fee": "12000",
|
||||||
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
||||||
"TxnSignature": "3045022100FA4CBD0A54A38906F8D4C18FBA4DBCE45B98F9C5A33BC9102CB5911E9E20E88F022032C47AC74E60042FF1517C866680A41B396D61146FBA9E60B4CF74E373CA7AD2",
|
"TxnSignature": "3045022100FA4CBD0A54A38906F8D4C18FBA4DBCE45B98F9C5A33BC9102CB5911E9E20E88F022032C47AC74E60042FF1517C866680A41B396D61146FBA9E60B4CF74E373CA7AD2",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||||
"hash": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
"hash": "5D9B0B246255815B63983C188B4C23325B3544F605CDBE3004769EE9E990D2F2",
|
||||||
"ledger_index": 14661788,
|
"ledger_index": 14661788,
|
||||||
"inLedger": 14661788,
|
"inLedger": 14661788,
|
||||||
"meta": {
|
"meta": {
|
||||||
"TransactionIndex": 2,
|
"TransactionIndex": 2,
|
||||||
"AffectedNodes": [
|
"AffectedNodes": [
|
||||||
{
|
{
|
||||||
"ModifiedNode": {
|
"ModifiedNode": {
|
||||||
"LedgerEntryType": "AccountRoot",
|
"LedgerEntryType": "AccountRoot",
|
||||||
"PreviousTxnLgrSeq": 14660978,
|
"PreviousTxnLgrSeq": 14660978,
|
||||||
"PreviousTxnID": "566D4DE22972C5BAD2506CFFA928B21D2BD33FA52FE16712D17D727681FAA4B1",
|
"PreviousTxnID": "566D4DE22972C5BAD2506CFFA928B21D2BD33FA52FE16712D17D727681FAA4B1",
|
||||||
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
||||||
"PreviousFields": {
|
"PreviousFields": {
|
||||||
"Sequence": 465,
|
"Sequence": 465,
|
||||||
"OwnerCount": 3,
|
"OwnerCount": 3,
|
||||||
"Balance": "71839095"
|
"Balance": "71839095"
|
||||||
},
|
},
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"Sequence": 466,
|
"Sequence": 466,
|
||||||
"OwnerCount": 4,
|
"OwnerCount": 4,
|
||||||
"Balance": "71827095",
|
"Balance": "71827095",
|
||||||
"Domain": "726970706C652E636F6D",
|
"Domain": "726970706C652E636F6D",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ModifiedNode": {
|
"ModifiedNode": {
|
||||||
"LedgerEntryType": "DirectoryNode",
|
"LedgerEntryType": "DirectoryNode",
|
||||||
"LedgerIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
"LedgerIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
||||||
"FinalFields": {
|
"FinalFields": {
|
||||||
"Flags": 0,
|
"Flags": 0,
|
||||||
"RootIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
"RootIndex": "6FCB8B0AF9F22ACF762B7712BF44C6CF172FD2BECD849509604EB7DB3AD2C250",
|
||||||
"Owner": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Owner": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CreatedNode": {
|
"CreatedNode": {
|
||||||
"LedgerEntryType": "DirectoryNode",
|
"LedgerEntryType": "DirectoryNode",
|
||||||
"LedgerIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"LedgerIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"NewFields": {
|
"NewFields": {
|
||||||
"ExchangeRate": "550435C0500F1000",
|
"ExchangeRate": "550435C0500F1000",
|
||||||
"RootIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"RootIndex": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
"TakerPaysCurrency": "0000000000000000000000005553440000000000",
|
||||||
"TakerPaysIssuer": "DD39C650A96EDA48334E70CC4A85B8B2E8502CD3"
|
"TakerPaysIssuer": "DD39C650A96EDA48334E70CC4A85B8B2E8502CD3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"CreatedNode": {
|
"CreatedNode": {
|
||||||
"LedgerEntryType": "Offer",
|
"LedgerEntryType": "Offer",
|
||||||
"LedgerIndex": "D0BEA7E310CDCEED282911314B0D6D00BB7E3B985EAA275AE2AC2DE3763AAF0C",
|
"LedgerIndex": "D0BEA7E310CDCEED282911314B0D6D00BB7E3B985EAA275AE2AC2DE3763AAF0C",
|
||||||
"NewFields": {
|
"NewFields": {
|
||||||
"Sequence": 465,
|
"Sequence": 465,
|
||||||
"BookDirectory": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
"BookDirectory": "CF8D13399C6ED20BA82740CFA78E928DC8D498255249BA63550435C0500F1000",
|
||||||
"TakerPays": {
|
"TakerPays": {
|
||||||
"value": "237",
|
"value": "237",
|
||||||
"currency": "USD",
|
"currency": "USD",
|
||||||
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
"issuer": "rMwjYedjc7qqtKYVLiAccJSmCwih4LnE2q"
|
||||||
},
|
},
|
||||||
"TakerGets": "200",
|
"TakerGets": "200",
|
||||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TransactionResult": "tesSUCCESS"
|
"TransactionResult": "tesSUCCESS"
|
||||||
},
|
},
|
||||||
"validated": true
|
"validated": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,4 +96,4 @@
|
|||||||
},
|
},
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response"
|
"type": "response"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,4 +97,4 @@
|
|||||||
},
|
},
|
||||||
"status": "success",
|
"status": "success",
|
||||||
"type": "response"
|
"type": "response"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user