stellar-sdk 0.7.0 → 0.8.0
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -4
- data/CHANGELOG.md +5 -0
- data/README.md +8 -7
- data/examples/07_sep10.rb +125 -0
- data/lib/stellar-sdk.rb +1 -1
- data/lib/stellar/client.rb +72 -4
- data/lib/stellar/sep10.rb +384 -0
- data/lib/stellar/version.rb +1 -1
- data/ruby-stellar-sdk.gemspec +6 -7
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_load_account/loads_successfully.yml +226 -0
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +239 -230
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +198 -135
- data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_when_the_channel_is_the_same_as_from_.yml +166 -110
- data/spec/lib/stellar/client_spec.rb +18 -1
- data/spec/lib/stellar/sep10_spec.rb +1148 -0
- metadata +25 -20
@@ -8,9 +8,13 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.
|
11
|
+
- Faraday v0.17.3
|
12
12
|
Accept:
|
13
13
|
- application/hal+json,application/problem+json,application/json
|
14
|
+
X-Client-Name:
|
15
|
+
- ruby-stellar-sdk
|
16
|
+
X-Client-Version:
|
17
|
+
- 0.7.0
|
14
18
|
response:
|
15
19
|
status:
|
16
20
|
code: 200
|
@@ -23,17 +27,17 @@ http_interactions:
|
|
23
27
|
Content-Type:
|
24
28
|
- application/hal+json; charset=utf-8
|
25
29
|
Date:
|
26
|
-
-
|
30
|
+
- Fri, 13 Mar 2020 22:04:22 GMT
|
27
31
|
Vary:
|
28
32
|
- Origin
|
29
33
|
X-Ratelimit-Limit:
|
30
|
-
- '
|
34
|
+
- '101'
|
31
35
|
X-Ratelimit-Remaining:
|
32
|
-
- '
|
36
|
+
- '100'
|
33
37
|
X-Ratelimit-Reset:
|
34
|
-
- '
|
38
|
+
- '1'
|
35
39
|
Content-Length:
|
36
|
-
- '
|
40
|
+
- '2496'
|
37
41
|
Connection:
|
38
42
|
- keep-alive
|
39
43
|
body:
|
@@ -45,6 +49,10 @@ http_interactions:
|
|
45
49
|
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
|
46
50
|
"templated": true
|
47
51
|
},
|
52
|
+
"accounts": {
|
53
|
+
"href": "https://horizon-testnet.stellar.org/accounts{?signer,asset,cursor,limit,order}",
|
54
|
+
"templated": true
|
55
|
+
},
|
48
56
|
"account_transactions": {
|
49
57
|
"href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
|
50
58
|
"templated": true
|
@@ -57,8 +65,13 @@ http_interactions:
|
|
57
65
|
"href": "https://friendbot.stellar.org/{?addr}",
|
58
66
|
"templated": true
|
59
67
|
},
|
60
|
-
"
|
61
|
-
"href": "https://horizon-testnet.stellar.org/
|
68
|
+
"offer": {
|
69
|
+
"href": "https://horizon-testnet.stellar.org/offers/{offer_id}",
|
70
|
+
"templated": true
|
71
|
+
},
|
72
|
+
"offers": {
|
73
|
+
"href": "https://horizon-testnet.stellar.org/offers{?selling,buying,seller,cursor,limit,order}",
|
74
|
+
"templated": true
|
62
75
|
},
|
63
76
|
"order_book": {
|
64
77
|
"href": "https://horizon-testnet.stellar.org/order_book{?selling_asset_type,selling_asset_code,selling_asset_issuer,buying_asset_type,buying_asset_code,buying_asset_issuer,limit}",
|
@@ -67,6 +80,14 @@ http_interactions:
|
|
67
80
|
"self": {
|
68
81
|
"href": "https://horizon-testnet.stellar.org/"
|
69
82
|
},
|
83
|
+
"strict_receive_paths": {
|
84
|
+
"href": "https://horizon-testnet.stellar.org/paths/strict-receive{?source_assets,source_account,destination_account,destination_asset_type,destination_asset_issuer,destination_asset_code,destination_amount}",
|
85
|
+
"templated": true
|
86
|
+
},
|
87
|
+
"strict_send_paths": {
|
88
|
+
"href": "https://horizon-testnet.stellar.org/paths/strict-send{?destination_account,destination_assets,source_asset_type,source_asset_issuer,source_asset_code,source_amount}",
|
89
|
+
"templated": true
|
90
|
+
},
|
70
91
|
"transaction": {
|
71
92
|
"href": "https://horizon-testnet.stellar.org/transactions/{hash}",
|
72
93
|
"templated": true
|
@@ -76,16 +97,18 @@ http_interactions:
|
|
76
97
|
"templated": true
|
77
98
|
}
|
78
99
|
},
|
79
|
-
"horizon_version": "0.
|
80
|
-
"core_version": "stellar-core
|
81
|
-
"
|
100
|
+
"horizon_version": "1.0.0-948d8d1221abd4f15cac2d3a9eb44b31633cd3b9",
|
101
|
+
"core_version": "stellar-core 12.4.0 (c0136139802ac1a1ac8899424e7888fa9366414e)",
|
102
|
+
"ingest_latest_ledger": 705776,
|
103
|
+
"history_latest_ledger": 705776,
|
82
104
|
"history_elder_ledger": 1,
|
83
|
-
"core_latest_ledger":
|
105
|
+
"core_latest_ledger": 705776,
|
84
106
|
"network_passphrase": "Test SDF Network ; September 2015",
|
85
|
-
"
|
107
|
+
"current_protocol_version": 12,
|
108
|
+
"core_supported_protocol_version": 12
|
86
109
|
}
|
87
110
|
http_version:
|
88
|
-
recorded_at:
|
111
|
+
recorded_at: Fri, 13 Mar 2020 22:04:22 GMT
|
89
112
|
- request:
|
90
113
|
method: get
|
91
114
|
uri: https://horizon-testnet.stellar.org/accounts/[source_address]
|
@@ -94,9 +117,13 @@ http_interactions:
|
|
94
117
|
string: ''
|
95
118
|
headers:
|
96
119
|
User-Agent:
|
97
|
-
- Faraday v0.
|
120
|
+
- Faraday v0.17.3
|
98
121
|
Accept:
|
99
122
|
- application/hal+json,application/problem+json,application/json
|
123
|
+
X-Client-Name:
|
124
|
+
- ruby-stellar-sdk
|
125
|
+
X-Client-Version:
|
126
|
+
- 0.7.0
|
100
127
|
response:
|
101
128
|
status:
|
102
129
|
code: 200
|
@@ -109,17 +136,19 @@ http_interactions:
|
|
109
136
|
Content-Type:
|
110
137
|
- application/hal+json; charset=utf-8
|
111
138
|
Date:
|
112
|
-
-
|
139
|
+
- Fri, 13 Mar 2020 22:04:23 GMT
|
140
|
+
Latest-Ledger:
|
141
|
+
- '705776'
|
113
142
|
Vary:
|
114
143
|
- Origin
|
115
144
|
X-Ratelimit-Limit:
|
116
|
-
- '
|
145
|
+
- '101'
|
117
146
|
X-Ratelimit-Remaining:
|
118
|
-
- '
|
147
|
+
- '100'
|
119
148
|
X-Ratelimit-Reset:
|
120
|
-
- '
|
149
|
+
- '1'
|
121
150
|
Content-Length:
|
122
|
-
- '
|
151
|
+
- '2386'
|
123
152
|
Connection:
|
124
153
|
- keep-alive
|
125
154
|
body:
|
@@ -160,10 +189,10 @@ http_interactions:
|
|
160
189
|
}
|
161
190
|
},
|
162
191
|
"id": "[source_address]",
|
163
|
-
"paging_token": "",
|
164
192
|
"account_id": "[source_address]",
|
165
|
-
"sequence": "
|
193
|
+
"sequence": "3030756557324291",
|
166
194
|
"subentry_count": 0,
|
195
|
+
"last_modified_ledger": 705763,
|
167
196
|
"thresholds": {
|
168
197
|
"low_threshold": 0,
|
169
198
|
"med_threshold": 0,
|
@@ -171,11 +200,12 @@ http_interactions:
|
|
171
200
|
},
|
172
201
|
"flags": {
|
173
202
|
"auth_required": false,
|
174
|
-
"auth_revocable": false
|
203
|
+
"auth_revocable": false,
|
204
|
+
"auth_immutable": false
|
175
205
|
},
|
176
206
|
"balances": [
|
177
207
|
{
|
178
|
-
"balance": "
|
208
|
+
"balance": "9748.9999700",
|
179
209
|
"buying_liabilities": "0.0000000",
|
180
210
|
"selling_liabilities": "0.0000000",
|
181
211
|
"asset_type": "native"
|
@@ -183,27 +213,31 @@ http_interactions:
|
|
183
213
|
],
|
184
214
|
"signers": [
|
185
215
|
{
|
186
|
-
"public_key": "[source_address]",
|
187
216
|
"weight": 1,
|
188
217
|
"key": "[source_address]",
|
189
218
|
"type": "ed25519_public_key"
|
190
219
|
}
|
191
220
|
],
|
192
|
-
"data": {}
|
221
|
+
"data": {},
|
222
|
+
"paging_token": "[source_address]"
|
193
223
|
}
|
194
224
|
http_version:
|
195
|
-
recorded_at:
|
225
|
+
recorded_at: Fri, 13 Mar 2020 22:04:23 GMT
|
196
226
|
- request:
|
197
227
|
method: post
|
198
228
|
uri: https://horizon-testnet.stellar.org/transactions
|
199
229
|
body:
|
200
230
|
encoding: UTF-8
|
201
|
-
string: tx=
|
231
|
+
string: tx=AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAEAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA9QqTNlm%2BtDLDn81hHZYRBtxwjCvWVVOdJDagVQToIXQAAAAAAJiWgAAAAAAAAAABKATZaAAAAECDB4gukzFEXTESpOMHcccTPipSdjZ4zPF1CvVcrh1Y2c9YabOGSUYbaNWnU6Aw%2Fu1Ymvr4%2BKOKYuE3GTco4XUE
|
202
232
|
headers:
|
203
233
|
User-Agent:
|
204
|
-
- Faraday v0.
|
234
|
+
- Faraday v0.17.3
|
205
235
|
Accept:
|
206
236
|
- application/hal+json,application/problem+json,application/json
|
237
|
+
X-Client-Name:
|
238
|
+
- ruby-stellar-sdk
|
239
|
+
X-Client-Version:
|
240
|
+
- 0.7.0
|
207
241
|
Content-Type:
|
208
242
|
- application/x-www-form-urlencoded
|
209
243
|
response:
|
@@ -218,15 +252,15 @@ http_interactions:
|
|
218
252
|
Content-Type:
|
219
253
|
- application/hal+json; charset=utf-8
|
220
254
|
Date:
|
221
|
-
-
|
255
|
+
- Fri, 13 Mar 2020 22:04:27 GMT
|
222
256
|
Vary:
|
223
257
|
- Origin
|
224
258
|
X-Ratelimit-Limit:
|
225
|
-
- '
|
259
|
+
- '101'
|
226
260
|
X-Ratelimit-Remaining:
|
227
|
-
- '
|
261
|
+
- '100'
|
228
262
|
X-Ratelimit-Reset:
|
229
|
-
- '
|
263
|
+
- '1'
|
230
264
|
Content-Length:
|
231
265
|
- '1307'
|
232
266
|
Connection:
|
@@ -237,17 +271,17 @@ http_interactions:
|
|
237
271
|
{
|
238
272
|
"_links": {
|
239
273
|
"transaction": {
|
240
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
274
|
+
"href": "https://horizon-testnet.stellar.org/transactions/4224b57fa72d95abb891dc6070ccf2d9cfaad84a7f8c0f4219bb0ab16c107e30"
|
241
275
|
}
|
242
276
|
},
|
243
|
-
"hash": "
|
244
|
-
"ledger":
|
245
|
-
"envelope_xdr": "
|
277
|
+
"hash": "4224b57fa72d95abb891dc6070ccf2d9cfaad84a7f8c0f4219bb0ab16c107e30",
|
278
|
+
"ledger": 705777,
|
279
|
+
"envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAAEAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA9QqTNlm+tDLDn81hHZYRBtxwjCvWVVOdJDagVQToIXQAAAAAAJiWgAAAAAAAAAABKATZaAAAAECDB4gukzFEXTESpOMHcccTPipSdjZ4zPF1CvVcrh1Y2c9YabOGSUYbaNWnU6Aw/u1Ymvr4+KOKYuE3GTco4XUE",
|
246
280
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
|
247
|
-
"result_meta_xdr": "
|
281
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE8QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsttW8AAKxHUAAAADAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE8QAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAWsttW8AAKxHUAAAAEAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMACsTxAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABay21bwAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTxAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABayQsBwAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAACsTxAAAAAAAAAAD1CpM2Wb60MsOfzWEdlhEG3HCMK9ZVU50kNqBVBOghdAAAAAAAmJaAAArE8QAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
248
282
|
}
|
249
283
|
http_version:
|
250
|
-
recorded_at:
|
284
|
+
recorded_at: Fri, 13 Mar 2020 22:04:27 GMT
|
251
285
|
- request:
|
252
286
|
method: get
|
253
287
|
uri: https://horizon-testnet.stellar.org/accounts/[channel_address]
|
@@ -256,9 +290,13 @@ http_interactions:
|
|
256
290
|
string: ''
|
257
291
|
headers:
|
258
292
|
User-Agent:
|
259
|
-
- Faraday v0.
|
293
|
+
- Faraday v0.17.3
|
260
294
|
Accept:
|
261
295
|
- application/hal+json,application/problem+json,application/json
|
296
|
+
X-Client-Name:
|
297
|
+
- ruby-stellar-sdk
|
298
|
+
X-Client-Version:
|
299
|
+
- 0.7.0
|
262
300
|
response:
|
263
301
|
status:
|
264
302
|
code: 200
|
@@ -271,17 +309,19 @@ http_interactions:
|
|
271
309
|
Content-Type:
|
272
310
|
- application/hal+json; charset=utf-8
|
273
311
|
Date:
|
274
|
-
-
|
312
|
+
- Fri, 13 Mar 2020 22:04:27 GMT
|
313
|
+
Latest-Ledger:
|
314
|
+
- '705777'
|
275
315
|
Vary:
|
276
316
|
- Origin
|
277
317
|
X-Ratelimit-Limit:
|
278
|
-
- '
|
318
|
+
- '101'
|
279
319
|
X-Ratelimit-Remaining:
|
280
|
-
- '
|
320
|
+
- '100'
|
281
321
|
X-Ratelimit-Reset:
|
282
|
-
- '
|
322
|
+
- '1'
|
283
323
|
Content-Length:
|
284
|
-
- '
|
324
|
+
- '2387'
|
285
325
|
Connection:
|
286
326
|
- keep-alive
|
287
327
|
body:
|
@@ -322,10 +362,10 @@ http_interactions:
|
|
322
362
|
}
|
323
363
|
},
|
324
364
|
"id": "[channel_address]",
|
325
|
-
"paging_token": "",
|
326
365
|
"account_id": "[channel_address]",
|
327
|
-
"sequence": "
|
366
|
+
"sequence": "3031280543334400",
|
328
367
|
"subentry_count": 0,
|
368
|
+
"last_modified_ledger": 705775,
|
329
369
|
"thresholds": {
|
330
370
|
"low_threshold": 0,
|
331
371
|
"med_threshold": 0,
|
@@ -333,11 +373,12 @@ http_interactions:
|
|
333
373
|
},
|
334
374
|
"flags": {
|
335
375
|
"auth_required": false,
|
336
|
-
"auth_revocable": false
|
376
|
+
"auth_revocable": false,
|
377
|
+
"auth_immutable": false
|
337
378
|
},
|
338
379
|
"balances": [
|
339
380
|
{
|
340
|
-
"balance": "
|
381
|
+
"balance": "10000.0000000",
|
341
382
|
"buying_liabilities": "0.0000000",
|
342
383
|
"selling_liabilities": "0.0000000",
|
343
384
|
"asset_type": "native"
|
@@ -345,27 +386,31 @@ http_interactions:
|
|
345
386
|
],
|
346
387
|
"signers": [
|
347
388
|
{
|
348
|
-
"public_key": "[channel_address]",
|
349
389
|
"weight": 1,
|
350
390
|
"key": "[channel_address]",
|
351
391
|
"type": "ed25519_public_key"
|
352
392
|
}
|
353
393
|
],
|
354
|
-
"data": {}
|
394
|
+
"data": {},
|
395
|
+
"paging_token": "[channel_address]"
|
355
396
|
}
|
356
397
|
http_version:
|
357
|
-
recorded_at:
|
398
|
+
recorded_at: Fri, 13 Mar 2020 22:04:27 GMT
|
358
399
|
- request:
|
359
400
|
method: post
|
360
401
|
uri: https://horizon-testnet.stellar.org/transactions
|
361
402
|
body:
|
362
403
|
encoding: UTF-8
|
363
|
-
string: tx=
|
404
|
+
string: tx=AAAAAFdYqivjRY8wI3xww%2FBQyzDCaEkwqgH3EovHSX%2BAiSBPAAAAZAAKxO8AAAABAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa%2FVa29KATZaAAAAAEAAAAA9QqTNlm%2BtDLDn81hHZYRBtxwjCvWVVOdJDagVQToIXQAAAAAAAAAAABT7GAAAAAAAAAAAoCJIE8AAABA%2B%2BwL%2BEN%2F34H7R7v4WiS2VnHCT4SoyGoztN8CIT6eN22DeZPRgcsYbl9z6wDTIp2I1a1qZD6dqifJyHetj%2BC3BygE2WgAAABAeD4q1wWEB314o%2BwQ3EgCx5oyYnXNwbw1H9lxHAv92GGmYYAQLA9U7AodhQ%2F5intjKdBlyBFq%2FaqZqwVptwjnBQ%3D%3D
|
364
405
|
headers:
|
365
406
|
User-Agent:
|
366
|
-
- Faraday v0.
|
407
|
+
- Faraday v0.17.3
|
367
408
|
Accept:
|
368
409
|
- application/hal+json,application/problem+json,application/json
|
410
|
+
X-Client-Name:
|
411
|
+
- ruby-stellar-sdk
|
412
|
+
X-Client-Version:
|
413
|
+
- 0.7.0
|
369
414
|
Content-Type:
|
370
415
|
- application/x-www-form-urlencoded
|
371
416
|
response:
|
@@ -380,15 +425,15 @@ http_interactions:
|
|
380
425
|
Content-Type:
|
381
426
|
- application/hal+json; charset=utf-8
|
382
427
|
Date:
|
383
|
-
-
|
428
|
+
- Fri, 13 Mar 2020 22:04:34 GMT
|
384
429
|
Vary:
|
385
430
|
- Origin
|
386
431
|
X-Ratelimit-Limit:
|
387
|
-
- '
|
432
|
+
- '101'
|
388
433
|
X-Ratelimit-Remaining:
|
389
|
-
- '
|
434
|
+
- '100'
|
390
435
|
X-Ratelimit-Reset:
|
391
|
-
- '
|
436
|
+
- '1'
|
392
437
|
Content-Length:
|
393
438
|
- '1587'
|
394
439
|
Connection:
|
@@ -399,28 +444,32 @@ http_interactions:
|
|
399
444
|
{
|
400
445
|
"_links": {
|
401
446
|
"transaction": {
|
402
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
447
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517"
|
403
448
|
}
|
404
449
|
},
|
405
|
-
"hash": "
|
406
|
-
"ledger":
|
407
|
-
"envelope_xdr": "
|
450
|
+
"hash": "23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517",
|
451
|
+
"ledger": 705778,
|
452
|
+
"envelope_xdr": "AAAAAFdYqivjRY8wI3xww/BQyzDCaEkwqgH3EovHSX+AiSBPAAAAZAAKxO8AAAABAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA9QqTNlm+tDLDn81hHZYRBtxwjCvWVVOdJDagVQToIXQAAAAAAAAAAABT7GAAAAAAAAAAAoCJIE8AAABA++wL+EN/34H7R7v4WiS2VnHCT4SoyGoztN8CIT6eN22DeZPRgcsYbl9z6wDTIp2I1a1qZD6dqifJyHetj+C3BygE2WgAAABAeD4q1wWEB314o+wQ3EgCx5oyYnXNwbw1H9lxHAv92GGmYYAQLA9U7AodhQ/5intjKdBlyBFq/aqZqwVptwjnBQ==",
|
408
453
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
409
|
-
"result_meta_xdr": "
|
454
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE8gAAAAAAAAAAV1iqK+NFjzAjfHDD8FDLMMJoSTCqAfcSi8dJf4CJIE8AAAAXSHbnnAAKxO8AAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE8gAAAAAAAAAAV1iqK+NFjzAjfHDD8FDLMMJoSTCqAfcSi8dJf4CJIE8AAAAXSHbnnAAKxO8AAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsTxAAAAAAAAAAD1CpM2Wb60MsOfzWEdlhEG3HCMK9ZVU50kNqBVBOghdAAAAAAAmJaAAArE8QAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTyAAAAAAAAAAD1CpM2Wb60MsOfzWEdlhEG3HCMK9ZVU50kNqBVBOghdAAAAAAA7ILgAArE8QAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsTxAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABayQsBwAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTyAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABax7tQQAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
|
410
455
|
}
|
411
456
|
http_version:
|
412
|
-
recorded_at:
|
457
|
+
recorded_at: Fri, 13 Mar 2020 22:04:34 GMT
|
413
458
|
- request:
|
414
459
|
method: get
|
415
|
-
uri: https://horizon-testnet.stellar.org/transactions/
|
460
|
+
uri: https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517
|
416
461
|
body:
|
417
462
|
encoding: US-ASCII
|
418
463
|
string: ''
|
419
464
|
headers:
|
420
465
|
User-Agent:
|
421
|
-
- Faraday v0.
|
466
|
+
- Faraday v0.17.3
|
422
467
|
Accept:
|
423
468
|
- application/hal+json,application/problem+json,application/json
|
469
|
+
X-Client-Name:
|
470
|
+
- ruby-stellar-sdk
|
471
|
+
X-Client-Version:
|
472
|
+
- 0.7.0
|
424
473
|
response:
|
425
474
|
status:
|
426
475
|
code: 200
|
@@ -433,17 +482,17 @@ http_interactions:
|
|
433
482
|
Content-Type:
|
434
483
|
- application/hal+json; charset=utf-8
|
435
484
|
Date:
|
436
|
-
-
|
485
|
+
- Fri, 13 Mar 2020 22:04:34 GMT
|
437
486
|
Vary:
|
438
487
|
- Origin
|
439
488
|
X-Ratelimit-Limit:
|
440
|
-
- '
|
489
|
+
- '101'
|
441
490
|
X-Ratelimit-Remaining:
|
442
|
-
- '
|
491
|
+
- '100'
|
443
492
|
X-Ratelimit-Reset:
|
444
|
-
- '
|
493
|
+
- '1'
|
445
494
|
Content-Length:
|
446
|
-
- '
|
495
|
+
- '3385'
|
447
496
|
Connection:
|
448
497
|
- keep-alive
|
449
498
|
body:
|
@@ -452,61 +501,67 @@ http_interactions:
|
|
452
501
|
{
|
453
502
|
"_links": {
|
454
503
|
"self": {
|
455
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
504
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517"
|
456
505
|
},
|
457
506
|
"account": {
|
458
507
|
"href": "https://horizon-testnet.stellar.org/accounts/[channel_address]"
|
459
508
|
},
|
460
509
|
"ledger": {
|
461
|
-
"href": "https://horizon-testnet.stellar.org/ledgers/
|
510
|
+
"href": "https://horizon-testnet.stellar.org/ledgers/705778"
|
462
511
|
},
|
463
512
|
"operations": {
|
464
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
513
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/operations{?cursor,limit,order}",
|
465
514
|
"templated": true
|
466
515
|
},
|
467
516
|
"effects": {
|
468
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
517
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/effects{?cursor,limit,order}",
|
469
518
|
"templated": true
|
470
519
|
},
|
471
520
|
"precedes": {
|
472
|
-
"href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=
|
521
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=3031293428244480"
|
473
522
|
},
|
474
523
|
"succeeds": {
|
475
|
-
"href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=
|
524
|
+
"href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=3031293428244480"
|
476
525
|
}
|
477
526
|
},
|
478
|
-
"id": "
|
479
|
-
"paging_token": "
|
480
|
-
"
|
481
|
-
"
|
482
|
-
"
|
527
|
+
"id": "23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517",
|
528
|
+
"paging_token": "3031293428244480",
|
529
|
+
"successful": true,
|
530
|
+
"hash": "23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517",
|
531
|
+
"ledger": 705778,
|
532
|
+
"created_at": "2020-03-13T22:04:31Z",
|
483
533
|
"source_account": "[channel_address]",
|
484
|
-
"source_account_sequence": "
|
485
|
-
"
|
534
|
+
"source_account_sequence": "3031280543334401",
|
535
|
+
"fee_charged": 100,
|
536
|
+
"max_fee": 100,
|
486
537
|
"operation_count": 1,
|
487
|
-
"envelope_xdr": "
|
538
|
+
"envelope_xdr": "AAAAAFdYqivjRY8wI3xww/BQyzDCaEkwqgH3EovHSX+AiSBPAAAAZAAKxO8AAAABAAAAAAAAAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA9QqTNlm+tDLDn81hHZYRBtxwjCvWVVOdJDagVQToIXQAAAAAAAAAAABT7GAAAAAAAAAAAoCJIE8AAABA++wL+EN/34H7R7v4WiS2VnHCT4SoyGoztN8CIT6eN22DeZPRgcsYbl9z6wDTIp2I1a1qZD6dqifJyHetj+C3BygE2WgAAABAeD4q1wWEB314o+wQ3EgCx5oyYnXNwbw1H9lxHAv92GGmYYAQLA9U7AodhQ/5intjKdBlyBFq/aqZqwVptwjnBQ==",
|
488
539
|
"result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
|
489
|
-
"result_meta_xdr": "
|
490
|
-
"fee_meta_xdr": "
|
540
|
+
"result_meta_xdr": "AAAAAQAAAAIAAAADAArE8gAAAAAAAAAAV1iqK+NFjzAjfHDD8FDLMMJoSTCqAfcSi8dJf4CJIE8AAAAXSHbnnAAKxO8AAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArE8gAAAAAAAAAAV1iqK+NFjzAjfHDD8FDLMMJoSTCqAfcSi8dJf4CJIE8AAAAXSHbnnAAKxO8AAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsTxAAAAAAAAAAD1CpM2Wb60MsOfzWEdlhEG3HCMK9ZVU50kNqBVBOghdAAAAAAAmJaAAArE8QAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTyAAAAAAAAAAD1CpM2Wb60MsOfzWEdlhEG3HCMK9ZVU50kNqBVBOghdAAAAAAA7ILgAArE8QAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsTxAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABayQsBwAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTyAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABax7tQQAArEdQAAAAQAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
541
|
+
"fee_meta_xdr": "AAAAAgAAAAMACsTvAAAAAAAAAABXWKor40WPMCN8cMPwUMswwmhJMKoB9xKLx0l/gIkgTwAAABdIdugAAArE7wAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTyAAAAAAAAAABXWKor40WPMCN8cMPwUMswwmhJMKoB9xKLx0l/gIkgTwAAABdIduecAArE7wAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
|
491
542
|
"memo_type": "none",
|
492
543
|
"signatures": [
|
493
|
-
"
|
494
|
-
"
|
544
|
+
"++wL+EN/34H7R7v4WiS2VnHCT4SoyGoztN8CIT6eN22DeZPRgcsYbl9z6wDTIp2I1a1qZD6dqifJyHetj+C3Bw==",
|
545
|
+
"eD4q1wWEB314o+wQ3EgCx5oyYnXNwbw1H9lxHAv92GGmYYAQLA9U7AodhQ/5intjKdBlyBFq/aqZqwVptwjnBQ=="
|
495
546
|
]
|
496
547
|
}
|
497
548
|
http_version:
|
498
|
-
recorded_at:
|
549
|
+
recorded_at: Fri, 13 Mar 2020 22:04:34 GMT
|
499
550
|
- request:
|
500
551
|
method: get
|
501
|
-
uri: https://horizon-testnet.stellar.org/transactions/
|
552
|
+
uri: https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/operations
|
502
553
|
body:
|
503
554
|
encoding: US-ASCII
|
504
555
|
string: ''
|
505
556
|
headers:
|
506
557
|
User-Agent:
|
507
|
-
- Faraday v0.
|
558
|
+
- Faraday v0.17.3
|
508
559
|
Accept:
|
509
560
|
- application/hal+json,application/problem+json,application/json
|
561
|
+
X-Client-Name:
|
562
|
+
- ruby-stellar-sdk
|
563
|
+
X-Client-Version:
|
564
|
+
- 0.7.0
|
510
565
|
response:
|
511
566
|
status:
|
512
567
|
code: 200
|
@@ -519,17 +574,17 @@ http_interactions:
|
|
519
574
|
Content-Type:
|
520
575
|
- application/hal+json; charset=utf-8
|
521
576
|
Date:
|
522
|
-
-
|
577
|
+
- Fri, 13 Mar 2020 22:04:34 GMT
|
523
578
|
Vary:
|
524
579
|
- Origin
|
525
580
|
X-Ratelimit-Limit:
|
526
|
-
- '
|
581
|
+
- '101'
|
527
582
|
X-Ratelimit-Remaining:
|
528
|
-
- '
|
583
|
+
- '100'
|
529
584
|
X-Ratelimit-Reset:
|
530
|
-
- '
|
585
|
+
- '1'
|
531
586
|
Content-Length:
|
532
|
-
- '
|
587
|
+
- '2057'
|
533
588
|
Connection:
|
534
589
|
- keep-alive
|
535
590
|
body:
|
@@ -538,13 +593,13 @@ http_interactions:
|
|
538
593
|
{
|
539
594
|
"_links": {
|
540
595
|
"self": {
|
541
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
596
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/operations?cursor=\u0026limit=10\u0026order=asc"
|
542
597
|
},
|
543
598
|
"next": {
|
544
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
599
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/operations?cursor=3031293428244481\u0026limit=10\u0026order=asc"
|
545
600
|
},
|
546
601
|
"prev": {
|
547
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
602
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517/operations?cursor=3031293428244481\u0026limit=10\u0026order=desc"
|
548
603
|
}
|
549
604
|
},
|
550
605
|
"_embedded": {
|
@@ -552,49 +607,54 @@ http_interactions:
|
|
552
607
|
{
|
553
608
|
"_links": {
|
554
609
|
"self": {
|
555
|
-
"href": "https://horizon-testnet.stellar.org/operations/
|
610
|
+
"href": "https://horizon-testnet.stellar.org/operations/3031293428244481"
|
556
611
|
},
|
557
612
|
"transaction": {
|
558
|
-
"href": "https://horizon-testnet.stellar.org/transactions/
|
613
|
+
"href": "https://horizon-testnet.stellar.org/transactions/23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517"
|
559
614
|
},
|
560
615
|
"effects": {
|
561
|
-
"href": "https://horizon-testnet.stellar.org/operations/
|
616
|
+
"href": "https://horizon-testnet.stellar.org/operations/3031293428244481/effects"
|
562
617
|
},
|
563
618
|
"succeeds": {
|
564
|
-
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=
|
619
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=3031293428244481"
|
565
620
|
},
|
566
621
|
"precedes": {
|
567
|
-
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=
|
622
|
+
"href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=3031293428244481"
|
568
623
|
}
|
569
624
|
},
|
570
|
-
"id": "
|
571
|
-
"paging_token": "
|
625
|
+
"id": "3031293428244481",
|
626
|
+
"paging_token": "3031293428244481",
|
627
|
+
"transaction_successful": true,
|
572
628
|
"source_account": "[source_address]",
|
573
629
|
"type": "payment",
|
574
630
|
"type_i": 1,
|
575
|
-
"created_at": "
|
576
|
-
"transaction_hash": "
|
631
|
+
"created_at": "2020-03-13T22:04:31Z",
|
632
|
+
"transaction_hash": "23a512d0b68fe98678407eb6095e0db48c2313d840823158b28eb0dcd516b517",
|
577
633
|
"asset_type": "native",
|
578
634
|
"from": "[source_address]",
|
579
|
-
"to": "
|
635
|
+
"to": "GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64",
|
580
636
|
"amount": "0.5500000"
|
581
637
|
}
|
582
638
|
]
|
583
639
|
}
|
584
640
|
}
|
585
641
|
http_version:
|
586
|
-
recorded_at:
|
642
|
+
recorded_at: Fri, 13 Mar 2020 22:04:34 GMT
|
587
643
|
- request:
|
588
644
|
method: get
|
589
|
-
uri: https://horizon-testnet.stellar.org/accounts/
|
645
|
+
uri: https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64
|
590
646
|
body:
|
591
647
|
encoding: US-ASCII
|
592
648
|
string: ''
|
593
649
|
headers:
|
594
650
|
User-Agent:
|
595
|
-
- Faraday v0.
|
651
|
+
- Faraday v0.17.3
|
596
652
|
Accept:
|
597
653
|
- application/hal+json,application/problem+json,application/json
|
654
|
+
X-Client-Name:
|
655
|
+
- ruby-stellar-sdk
|
656
|
+
X-Client-Version:
|
657
|
+
- 0.7.0
|
598
658
|
response:
|
599
659
|
status:
|
600
660
|
code: 200
|
@@ -607,17 +667,19 @@ http_interactions:
|
|
607
667
|
Content-Type:
|
608
668
|
- application/hal+json; charset=utf-8
|
609
669
|
Date:
|
610
|
-
-
|
670
|
+
- Fri, 13 Mar 2020 22:04:35 GMT
|
671
|
+
Latest-Ledger:
|
672
|
+
- '705778'
|
611
673
|
Vary:
|
612
674
|
- Origin
|
613
675
|
X-Ratelimit-Limit:
|
614
|
-
- '
|
676
|
+
- '101'
|
615
677
|
X-Ratelimit-Remaining:
|
616
|
-
- '
|
678
|
+
- '100'
|
617
679
|
X-Ratelimit-Reset:
|
618
|
-
- '
|
680
|
+
- '1'
|
619
681
|
Content-Length:
|
620
|
-
- '
|
682
|
+
- '2383'
|
621
683
|
Connection:
|
622
684
|
- keep-alive
|
623
685
|
body:
|
@@ -626,42 +688,42 @@ http_interactions:
|
|
626
688
|
{
|
627
689
|
"_links": {
|
628
690
|
"self": {
|
629
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
691
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64"
|
630
692
|
},
|
631
693
|
"transactions": {
|
632
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
694
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/transactions{?cursor,limit,order}",
|
633
695
|
"templated": true
|
634
696
|
},
|
635
697
|
"operations": {
|
636
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
698
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/operations{?cursor,limit,order}",
|
637
699
|
"templated": true
|
638
700
|
},
|
639
701
|
"payments": {
|
640
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
702
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/payments{?cursor,limit,order}",
|
641
703
|
"templated": true
|
642
704
|
},
|
643
705
|
"effects": {
|
644
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
706
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/effects{?cursor,limit,order}",
|
645
707
|
"templated": true
|
646
708
|
},
|
647
709
|
"offers": {
|
648
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
710
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/offers{?cursor,limit,order}",
|
649
711
|
"templated": true
|
650
712
|
},
|
651
713
|
"trades": {
|
652
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
714
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/trades{?cursor,limit,order}",
|
653
715
|
"templated": true
|
654
716
|
},
|
655
717
|
"data": {
|
656
|
-
"href": "https://horizon-testnet.stellar.org/accounts/
|
718
|
+
"href": "https://horizon-testnet.stellar.org/accounts/GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64/data/{key}",
|
657
719
|
"templated": true
|
658
720
|
}
|
659
721
|
},
|
660
|
-
"id": "
|
661
|
-
"
|
662
|
-
"
|
663
|
-
"sequence": "934443149688832",
|
722
|
+
"id": "GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64",
|
723
|
+
"account_id": "GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64",
|
724
|
+
"sequence": "3031289133268992",
|
664
725
|
"subentry_count": 0,
|
726
|
+
"last_modified_ledger": 705778,
|
665
727
|
"thresholds": {
|
666
728
|
"low_threshold": 0,
|
667
729
|
"med_threshold": 0,
|
@@ -669,7 +731,8 @@ http_interactions:
|
|
669
731
|
},
|
670
732
|
"flags": {
|
671
733
|
"auth_required": false,
|
672
|
-
"auth_revocable": false
|
734
|
+
"auth_revocable": false,
|
735
|
+
"auth_immutable": false
|
673
736
|
},
|
674
737
|
"balances": [
|
675
738
|
{
|
@@ -681,14 +744,14 @@ http_interactions:
|
|
681
744
|
],
|
682
745
|
"signers": [
|
683
746
|
{
|
684
|
-
"public_key": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
|
685
747
|
"weight": 1,
|
686
|
-
"key": "
|
748
|
+
"key": "GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64",
|
687
749
|
"type": "ed25519_public_key"
|
688
750
|
}
|
689
751
|
],
|
690
|
-
"data": {}
|
752
|
+
"data": {},
|
753
|
+
"paging_token": "GD2QVEZWLG7LIMWDT7GWCHMWCEDNY4EMFPLFKU45EQ3KAVIE5AQXJZ64"
|
691
754
|
}
|
692
755
|
http_version:
|
693
|
-
recorded_at:
|
756
|
+
recorded_at: Fri, 13 Mar 2020 22:04:35 GMT
|
694
757
|
recorded_with: VCR 3.0.3
|