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,725 +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 21:59:44 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": 705726,
103
- "history_latest_ledger": 705726,
104
- "history_elder_ledger": 1,
105
- "core_latest_ledger": 705726,
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 21:59:44 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 21:59:44 GMT
140
- Latest-Ledger:
141
- - '705726'
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
- - '2387'
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": "3030756557324288",
194
- "subentry_count": 0,
195
- "last_modified_ledger": 705653,
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": "10000.0000000",
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 21:59:44 GMT
226
- - request:
227
- method: post
228
- uri: https://horizon-testnet.stellar.org/transactions
229
- body:
230
- encoding: UTF-8
231
- string: tx=AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA4fAYgcZusTBu5eh3mm3RuqC%2B7K4oAeVci1zF35a2%2BX4AAAAAO5rKAAAAAAAAAAABKATZaAAAAEDLnPW%2BUghp%2Fh0gEGpiTCd1M1e0hsznqGmBsjCc3JBd6KJQpAaolbzD8RmjxGLu%2Bo0C9m1jVhuGQa2AGOe6QDcJ
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 21:59:49 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/2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a"
275
- }
276
- },
277
- "hash": "2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a",
278
- "ledger": 705727,
279
- "envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA4fAYgcZusTBu5eh3mm3RuqC+7K4oAeVci1zF35a2+X4AAAAAO5rKAAAAAAAAAAABKATZaAAAAEDLnPW+Ughp/h0gEGpiTCd1M1e0hsznqGmBsjCc3JBd6KJQpAaolbzD8RmjxGLu+o0C9m1jVhuGQa2AGOe6QDcJ",
280
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
281
- "result_meta_xdr": "AAAAAQAAAAIAAAADAArEvwAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXSHbnnAAKxHUAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArEvwAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXSHbnnAAKxHUAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABdIduecAArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B2cAArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAACsS/AAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAAA7msoAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
282
- }
283
- http_version:
284
- recorded_at: Fri, 13 Mar 2020 21:59:49 GMT
285
- - request:
286
- method: get
287
- uri: https://horizon-testnet.stellar.org/accounts/[source_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 21:59:49 GMT
313
- Latest-Ledger:
314
- - '705727'
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
- - '2386'
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/[source_address]"
334
- },
335
- "transactions": {
336
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
337
- "templated": true
338
- },
339
- "operations": {
340
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
341
- "templated": true
342
- },
343
- "payments": {
344
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
345
- "templated": true
346
- },
347
- "effects": {
348
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
349
- "templated": true
350
- },
351
- "offers": {
352
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
353
- "templated": true
354
- },
355
- "trades": {
356
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
357
- "templated": true
358
- },
359
- "data": {
360
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
361
- "templated": true
362
- }
363
- },
364
- "id": "[source_address]",
365
- "account_id": "[source_address]",
366
- "sequence": "3030756557324289",
367
- "subentry_count": 0,
368
- "last_modified_ledger": 705727,
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": "9899.9999900",
382
- "buying_liabilities": "0.0000000",
383
- "selling_liabilities": "0.0000000",
384
- "asset_type": "native"
385
- }
386
- ],
387
- "signers": [
388
- {
389
- "weight": 1,
390
- "key": "[source_address]",
391
- "type": "ed25519_public_key"
392
- }
393
- ],
394
- "data": {},
395
- "paging_token": "[source_address]"
396
- }
397
- http_version:
398
- recorded_at: Fri, 13 Mar 2020 21:59:49 GMT
399
- - request:
400
- method: post
401
- uri: https://horizon-testnet.stellar.org/transactions
402
- body:
403
- encoding: UTF-8
404
- string: tx=AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAACAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa%2FVa29KATZaAAAAAEAAAAA4fAYgcZusTBu5eh3mm3RuqC%2B7K4oAeVci1zF35a2%2BX4AAAAAAAAAAFloLwAAAAAAAAAAASgE2WgAAABA9f9qXs9ASRoZGXng1R9gCc%2F1x4gyRc9w%2FByEE3T1POlLSXliOGTfjjjEwAYYGpGGZvUk0cFxoqx5fxeJ2Xt1Dg%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 21:59:54 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
- - '1507'
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/5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b"
448
- }
449
- },
450
- "hash": "5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b",
451
- "ledger": 705728,
452
- "envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAACAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA4fAYgcZusTBu5eh3mm3RuqC+7K4oAeVci1zF35a2+X4AAAAAAAAAAFloLwAAAAAAAAAAASgE2WgAAABA9f9qXs9ASRoZGXng1R9gCc/1x4gyRc9w/ByEE3T1POlLSXliOGTfjjjEwAYYGpGGZvUk0cFxoqx5fxeJ2Xt1Dg==",
453
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
454
- "result_meta_xdr": "AAAAAQAAAAIAAAADAArEwAAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXDNwdOAAKxHUAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArEwAAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXDNwdOAAKxHUAAAACAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsS/AAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAAA7msoAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTAAAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAACVAvkAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsTAAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B04AArEdQAAAAIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTAAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABazc+44AArEdQAAAAIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
455
- }
456
- http_version:
457
- recorded_at: Fri, 13 Mar 2020 21:59:54 GMT
458
- - request:
459
- method: get
460
- uri: https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT
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 21:59:54 GMT
486
- Latest-Ledger:
487
- - '705728'
488
- Vary:
489
- - Origin
490
- X-Ratelimit-Limit:
491
- - '101'
492
- X-Ratelimit-Remaining:
493
- - '100'
494
- X-Ratelimit-Reset:
495
- - '1'
496
- Content-Length:
497
- - '2385'
498
- Connection:
499
- - keep-alive
500
- body:
501
- encoding: ASCII-8BIT
502
- string: |-
503
- {
504
- "_links": {
505
- "self": {
506
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT"
507
- },
508
- "transactions": {
509
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/transactions{?cursor,limit,order}",
510
- "templated": true
511
- },
512
- "operations": {
513
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/operations{?cursor,limit,order}",
514
- "templated": true
515
- },
516
- "payments": {
517
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/payments{?cursor,limit,order}",
518
- "templated": true
519
- },
520
- "effects": {
521
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/effects{?cursor,limit,order}",
522
- "templated": true
523
- },
524
- "offers": {
525
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/offers{?cursor,limit,order}",
526
- "templated": true
527
- },
528
- "trades": {
529
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/trades{?cursor,limit,order}",
530
- "templated": true
531
- },
532
- "data": {
533
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/data/{key}",
534
- "templated": true
535
- }
536
- },
537
- "id": "GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT",
538
- "account_id": "GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT",
539
- "sequence": "3031074384904192",
540
- "subentry_count": 0,
541
- "last_modified_ledger": 705728,
542
- "thresholds": {
543
- "low_threshold": 0,
544
- "med_threshold": 0,
545
- "high_threshold": 0
546
- },
547
- "flags": {
548
- "auth_required": false,
549
- "auth_revocable": false,
550
- "auth_immutable": false
551
- },
552
- "balances": [
553
- {
554
- "balance": "250.0000000",
555
- "buying_liabilities": "0.0000000",
556
- "selling_liabilities": "0.0000000",
557
- "asset_type": "native"
558
- }
559
- ],
560
- "signers": [
561
- {
562
- "weight": 1,
563
- "key": "GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT",
564
- "type": "ed25519_public_key"
565
- }
566
- ],
567
- "data": {},
568
- "paging_token": "GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT"
569
- }
570
- http_version:
571
- recorded_at: Fri, 13 Mar 2020 21:59:54 GMT
572
- - request:
573
- method: get
574
- uri: https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/transactions?order=desc
575
- body:
576
- encoding: US-ASCII
577
- string: ''
578
- headers:
579
- User-Agent:
580
- - Faraday v0.17.3
581
- Accept:
582
- - application/hal+json,application/problem+json,application/json
583
- X-Client-Name:
584
- - ruby-stellar-sdk
585
- X-Client-Version:
586
- - 0.7.0
587
- response:
588
- status:
589
- code: 200
590
- message: OK
591
- headers:
592
- Cache-Control:
593
- - no-cache, no-store, max-age=0
594
- Content-Disposition:
595
- - inline
596
- Content-Type:
597
- - application/hal+json; charset=utf-8
598
- Date:
599
- - Fri, 13 Mar 2020 21:59:54 GMT
600
- Vary:
601
- - Origin
602
- X-Ratelimit-Limit:
603
- - '101'
604
- X-Ratelimit-Remaining:
605
- - '100'
606
- X-Ratelimit-Reset:
607
- - '1'
608
- Connection:
609
- - keep-alive
610
- body:
611
- encoding: ASCII-8BIT
612
- string: |-
613
- {
614
- "_links": {
615
- "self": {
616
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/transactions?cursor=\u0026limit=10\u0026order=desc"
617
- },
618
- "next": {
619
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/transactions?cursor=3031074384908288\u0026limit=10\u0026order=desc"
620
- },
621
- "prev": {
622
- "href": "https://horizon-testnet.stellar.org/accounts/GDQ7AGEBYZXLCMDO4XUHPGTN2G5KBPXMVYUADZK4RNOMLX4WW34X54AT/transactions?cursor=3031078679883776\u0026limit=10\u0026order=asc"
623
- }
624
- },
625
- "_embedded": {
626
- "records": [
627
- {
628
- "memo": "DESUKA",
629
- "_links": {
630
- "self": {
631
- "href": "https://horizon-testnet.stellar.org/transactions/5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b"
632
- },
633
- "account": {
634
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
635
- },
636
- "ledger": {
637
- "href": "https://horizon-testnet.stellar.org/ledgers/705728"
638
- },
639
- "operations": {
640
- "href": "https://horizon-testnet.stellar.org/transactions/5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b/operations{?cursor,limit,order}",
641
- "templated": true
642
- },
643
- "effects": {
644
- "href": "https://horizon-testnet.stellar.org/transactions/5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b/effects{?cursor,limit,order}",
645
- "templated": true
646
- },
647
- "precedes": {
648
- "href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=3031078679883776"
649
- },
650
- "succeeds": {
651
- "href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=3031078679883776"
652
- }
653
- },
654
- "id": "5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b",
655
- "paging_token": "3031078679883776",
656
- "successful": true,
657
- "hash": "5d6c29c0957a328e5c02a5f817d0b4c6b45716073a304cac7e29cdebf3f1c41b",
658
- "ledger": 705728,
659
- "created_at": "2020-03-13T21:59:53Z",
660
- "source_account": "[source_address]",
661
- "source_account_sequence": "3030756557324290",
662
- "fee_charged": 100,
663
- "max_fee": 100,
664
- "operation_count": 1,
665
- "envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAACAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAQAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAAAEAAAAA4fAYgcZusTBu5eh3mm3RuqC+7K4oAeVci1zF35a2+X4AAAAAAAAAAFloLwAAAAAAAAAAASgE2WgAAABA9f9qXs9ASRoZGXng1R9gCc/1x4gyRc9w/ByEE3T1POlLSXliOGTfjjjEwAYYGpGGZvUk0cFxoqx5fxeJ2Xt1Dg==",
666
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
667
- "result_meta_xdr": "AAAAAQAAAAIAAAADAArEwAAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXDNwdOAAKxHUAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArEwAAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXDNwdOAAKxHUAAAACAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMACsS/AAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAAA7msoAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTAAAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAACVAvkAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMACsTAAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B04AArEdQAAAAIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTAAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABazc+44AArEdQAAAAIAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
668
- "fee_meta_xdr": "AAAAAgAAAAMACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B2cAArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsTAAAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B04AArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
669
- "memo_type": "text",
670
- "signatures": [
671
- "9f9qXs9ASRoZGXng1R9gCc/1x4gyRc9w/ByEE3T1POlLSXliOGTfjjjEwAYYGpGGZvUk0cFxoqx5fxeJ2Xt1Dg=="
672
- ]
673
- },
674
- {
675
- "_links": {
676
- "self": {
677
- "href": "https://horizon-testnet.stellar.org/transactions/2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a"
678
- },
679
- "account": {
680
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
681
- },
682
- "ledger": {
683
- "href": "https://horizon-testnet.stellar.org/ledgers/705727"
684
- },
685
- "operations": {
686
- "href": "https://horizon-testnet.stellar.org/transactions/2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a/operations{?cursor,limit,order}",
687
- "templated": true
688
- },
689
- "effects": {
690
- "href": "https://horizon-testnet.stellar.org/transactions/2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a/effects{?cursor,limit,order}",
691
- "templated": true
692
- },
693
- "precedes": {
694
- "href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=3031074384908288"
695
- },
696
- "succeeds": {
697
- "href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=3031074384908288"
698
- }
699
- },
700
- "id": "2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a",
701
- "paging_token": "3031074384908288",
702
- "successful": true,
703
- "hash": "2ed6a77baf41d5348a884a09750139f804ec7af6e281247fd9f78a2d7178185a",
704
- "ledger": 705727,
705
- "created_at": "2020-03-13T21:59:48Z",
706
- "source_account": "[source_address]",
707
- "source_account_sequence": "3030756557324289",
708
- "fee_charged": 100,
709
- "max_fee": 100,
710
- "operation_count": 1,
711
- "envelope_xdr": "AAAAAJA8Jibp68sQkog4sikMusVOeuhVzZVx9r9Vrb0oBNloAAAAZAAKxHUAAAABAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA4fAYgcZusTBu5eh3mm3RuqC+7K4oAeVci1zF35a2+X4AAAAAO5rKAAAAAAAAAAABKATZaAAAAEDLnPW+Ughp/h0gEGpiTCd1M1e0hsznqGmBsjCc3JBd6KJQpAaolbzD8RmjxGLu+o0C9m1jVhuGQa2AGOe6QDcJ",
712
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
713
- "result_meta_xdr": "AAAAAQAAAAIAAAADAArEvwAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXSHbnnAAKxHUAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAArEvwAAAAAAAAAAkDwmJunryxCSiDiyKQy6xU566FXNlXH2v1WtvSgE2WgAAAAXSHbnnAAKxHUAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAMACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABdIduecAArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABcM3B2cAArEdQAAAAEAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAACsS/AAAAAAAAAADh8BiBxm6xMG7l6HeabdG6oL7srigB5VyLXMXflrb5fgAAAAA7msoAAArEvwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
714
- "fee_meta_xdr": "AAAAAgAAAAMACsR1AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABdIdugAAArEdQAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEACsS/AAAAAAAAAACQPCYm6evLEJKIOLIpDLrFTnroVc2Vcfa/Va29KATZaAAAABdIduecAArEdQAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
715
- "memo_type": "none",
716
- "signatures": [
717
- "y5z1vlIIaf4dIBBqYkwndTNXtIbM56hpgbIwnNyQXeiiUKQGqJW8w/EZo8Ri7vqNAvZtY1YbhkGtgBjnukA3CQ=="
718
- ]
719
- }
720
- ]
721
- }
722
- }
723
- http_version:
724
- recorded_at: Fri, 13 Mar 2020 21:59:54 GMT
725
- recorded_with: VCR 3.0.3