mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Add transactions for payment channels
This commit is contained in:
committed by
wilsonianb
parent
af687a6aed
commit
a574e1158a
15
test/fixtures/requests/index.js
vendored
15
test/fixtures/requests/index.js
vendored
@@ -36,6 +36,21 @@ module.exports = {
|
||||
normal: require('./prepare-escrow-cancellation'),
|
||||
memos: require('./prepare-escrow-cancellation-memos')
|
||||
},
|
||||
preparePaymentChannelCreate: {
|
||||
normal: require('./prepare-payment-channel-create'),
|
||||
full: require('./prepare-payment-channel-create-full')
|
||||
},
|
||||
preparePaymentChannelFund: {
|
||||
normal: require('./prepare-payment-channel-fund'),
|
||||
full: require('./prepare-payment-channel-fund-full')
|
||||
},
|
||||
preparePaymentChannelClaim: {
|
||||
normal: require('./prepare-payment-channel-claim'),
|
||||
full: require('./prepare-payment-channel-claim-full'),
|
||||
close: require('./prepare-payment-channel-claim-close'),
|
||||
renew: require('./prepare-payment-channel-claim-renew'),
|
||||
noSignature: require('./prepare-payment-channel-claim-no-signature')
|
||||
},
|
||||
prepareTrustline: {
|
||||
simple: require('./prepare-trustline-simple'),
|
||||
complex: require('./prepare-trustline'),
|
||||
|
||||
8
test/fixtures/requests/prepare-payment-channel-claim-close.json
vendored
Normal file
8
test/fixtures/requests/prepare-payment-channel-claim-close.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"balance": "1",
|
||||
"amount": "1",
|
||||
"signature": "30440220718D264EF05CAED7C781FF6DE298DCAC68D002562C9BF3A07C1E721B420C0DAB02203A5A4779EF4D2CCC7BC3EF886676D803A9981B928D3B8ACA483B80ECA3CD7B9B",
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A",
|
||||
"close": true
|
||||
}
|
||||
9
test/fixtures/requests/prepare-payment-channel-claim-full.json
vendored
Normal file
9
test/fixtures/requests/prepare-payment-channel-claim-full.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"balance": "1",
|
||||
"amount": "1",
|
||||
"signature": "30440220718D264EF05CAED7C781FF6DE298DCAC68D002562C9BF3A07C1E721B420C0DAB02203A5A4779EF4D2CCC7BC3EF886676D803A9981B928D3B8ACA483B80ECA3CD7B9B",
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A",
|
||||
"renew": true,
|
||||
"close": true
|
||||
}
|
||||
6
test/fixtures/requests/prepare-payment-channel-claim-no-signature.json
vendored
Normal file
6
test/fixtures/requests/prepare-payment-channel-claim-no-signature.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"balance": "1",
|
||||
"amount": "1",
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A"
|
||||
}
|
||||
8
test/fixtures/requests/prepare-payment-channel-claim-renew.json
vendored
Normal file
8
test/fixtures/requests/prepare-payment-channel-claim-renew.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"balance": "1",
|
||||
"amount": "1",
|
||||
"signature": "30440220718D264EF05CAED7C781FF6DE298DCAC68D002562C9BF3A07C1E721B420C0DAB02203A5A4779EF4D2CCC7BC3EF886676D803A9981B928D3B8ACA483B80ECA3CD7B9B",
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A",
|
||||
"renew": true
|
||||
}
|
||||
3
test/fixtures/requests/prepare-payment-channel-claim.json
vendored
Normal file
3
test/fixtures/requests/prepare-payment-channel-claim.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198"
|
||||
}
|
||||
9
test/fixtures/requests/prepare-payment-channel-create-full.json
vendored
Normal file
9
test/fixtures/requests/prepare-payment-channel-create-full.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"amount": "1",
|
||||
"destination": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW",
|
||||
"settleDelay": 86400,
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A",
|
||||
"cancelAfter": "2017-02-17T15:04:57Z",
|
||||
"destinationTag": 23480,
|
||||
"sourceTag": 11747
|
||||
}
|
||||
6
test/fixtures/requests/prepare-payment-channel-create.json
vendored
Normal file
6
test/fixtures/requests/prepare-payment-channel-create.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"amount": "1",
|
||||
"destination": "rsA2LpzuawewSBQXkiju3YQTMzW13pAAdW",
|
||||
"settleDelay": 86400,
|
||||
"publicKey": "32D2471DB72B27E3310F355BB33E339BF26F8392D5A93D3BC0FC3B566612DA0F0A"
|
||||
}
|
||||
5
test/fixtures/requests/prepare-payment-channel-fund-full.json
vendored
Normal file
5
test/fixtures/requests/prepare-payment-channel-fund-full.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"amount": "1",
|
||||
"expiration": "2017-02-17T15:04:57Z"
|
||||
}
|
||||
4
test/fixtures/requests/prepare-payment-channel-fund.json
vendored
Normal file
4
test/fixtures/requests/prepare-payment-channel-fund.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"channel": "C1AE6DDDEEC05CF2978C0BAD6FE302948E9533691DC749DCDD3B9E5992CA6198",
|
||||
"amount": "1"
|
||||
}
|
||||
Reference in New Issue
Block a user