mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Add support for Checks (#853)
- See https://github.com/ripple/rippled/pull/2245 * Add support for depositAuth flag * Upgrade ripple-binary-codec to 0.1.13
This commit is contained in:
11
test/fixtures/requests/index.js
vendored
11
test/fixtures/requests/index.js
vendored
@@ -38,6 +38,17 @@ module.exports = {
|
||||
normal: require('./prepare-escrow-cancellation'),
|
||||
memos: require('./prepare-escrow-cancellation-memos')
|
||||
},
|
||||
prepareCheckCreate: {
|
||||
normal: require('./prepare-check-create'),
|
||||
full: require('./prepare-check-create-full')
|
||||
},
|
||||
prepareCheckCash: {
|
||||
amount: require('./prepare-check-cash-amount'),
|
||||
deliverMin: require('./prepare-check-cash-delivermin')
|
||||
},
|
||||
prepareCheckCancel: {
|
||||
normal: require('./prepare-check-cancel')
|
||||
},
|
||||
preparePaymentChannelCreate: {
|
||||
normal: require('./prepare-payment-channel-create'),
|
||||
full: require('./prepare-payment-channel-create-full')
|
||||
|
||||
3
test/fixtures/requests/prepare-check-cancel.json
vendored
Normal file
3
test/fixtures/requests/prepare-check-cancel.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"checkID": "49647F0D748DC3FE26BDACBC57F251AADEFFF391403EC9BF87C97F67E9977FB0"
|
||||
}
|
||||
7
test/fixtures/requests/prepare-check-cash-amount.json
vendored
Normal file
7
test/fixtures/requests/prepare-check-cash-amount.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"amount": {
|
||||
"currency": "XRP",
|
||||
"value": "1"
|
||||
},
|
||||
"checkID": "838766BA2B995C00744175F69A1B11E32C3DBC40E64801A4056FCBD657F57334"
|
||||
}
|
||||
7
test/fixtures/requests/prepare-check-cash-delivermin.json
vendored
Normal file
7
test/fixtures/requests/prepare-check-cash-delivermin.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"deliverMin": {
|
||||
"currency": "XRP",
|
||||
"value": "0.8"
|
||||
},
|
||||
"checkID": "838766BA2B995C00744175F69A1B11E32C3DBC40E64801A4056FCBD657F57334"
|
||||
}
|
||||
10
test/fixtures/requests/prepare-check-create-full.json
vendored
Normal file
10
test/fixtures/requests/prepare-check-create-full.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"destination": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW",
|
||||
"sendMax": {
|
||||
"currency": "XRP",
|
||||
"value": "1"
|
||||
},
|
||||
"destinationTag": 2,
|
||||
"expiration": "2018-09-24T21:21:50.000Z",
|
||||
"invoiceID": "1F40FC92DA241694750979EE6CF582F2D5D7D28E18335DE05ABC54D0560E0F53"
|
||||
}
|
||||
7
test/fixtures/requests/prepare-check-create.json
vendored
Normal file
7
test/fixtures/requests/prepare-check-create.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"destination": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW",
|
||||
"sendMax": {
|
||||
"currency": "XRP",
|
||||
"value": "1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user