stellar-sdk 0.8.0 → 0.9.0.pre2

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