stellar-sdk 0.6.0 → 0.23.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +15 -0
  3. data/{LICENSE.txt → LICENSE} +0 -0
  4. data/README.md +12 -12
  5. data/lib/stellar-sdk.rb +3 -4
  6. data/lib/stellar/account.rb +16 -18
  7. data/lib/stellar/amount.rb +9 -13
  8. data/lib/stellar/client.rb +204 -93
  9. data/lib/stellar/horizon/problem.rb +14 -16
  10. data/lib/stellar/sep10.rb +347 -0
  11. data/lib/stellar/transaction_page.rb +4 -6
  12. data/lib/stellar/version.rb +1 -1
  13. metadata +21 -217
  14. data/.gitignore +0 -16
  15. data/.travis.yml +0 -17
  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/ruby-stellar-sdk.gemspec +0 -36
  28. data/spec/config.yml.sample +0 -12
  29. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_404_request_when_performing_federation_lookup.yml +0 -133
  30. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_handle_domains_that_are_not_federation_servers.yml +0 -44
  31. data/spec/fixtures/vcr_cassettes/Stellar_Account/_lookup/should_peforms_federation_lookup.yml +0 -85
  32. data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_info/returns_the_current_details_for_the_account.yml +0 -190
  33. data/spec/fixtures/vcr_cassettes/Stellar_Client/_account_merge/merges_source_account_into_destination.yml +0 -714
  34. 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
  35. data/spec/fixtures/vcr_cassettes/Stellar_Client/_create_account/creates_the_account.yml +0 -323
  36. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +0 -747
  37. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +0 -747
  38. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +0 -716
  39. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +0 -562
  40. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +0 -694
  41. 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 -586
  42. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  43. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/returns_a_list_of_transaction_for_an_account.yml +0 -94
  44. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  45. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/returns_a_list_of_transactions.yml +0 -94
  46. data/spec/lib/stellar/account_spec.rb +0 -59
  47. data/spec/lib/stellar/amount_spec.rb +0 -70
  48. data/spec/lib/stellar/client_spec.rb +0 -392
  49. data/spec/spec_helper.rb +0 -14
  50. data/spec/support/config.rb +0 -3
  51. data/spec/support/vcr.rb +0 -10
  52. data/tasks/rspec.rake +0 -6
  53. data/tasks/travis.rake +0 -1
@@ -1,716 +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.15.2
12
- Accept:
13
- - application/hal+json,application/problem+json,application/json
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- Date:
20
- - Sun, 02 Sep 2018 04:16:37 GMT
21
- Content-Type:
22
- - application/hal+json; charset=utf-8
23
- Connection:
24
- - keep-alive
25
- Set-Cookie:
26
- - __cfduid=d7091521ac19864db35b7c2938d1c356f1535861797; expires=Mon, 02-Sep-19
27
- 04:16:37 GMT; path=/; domain=.stellar.org; HttpOnly
28
- Cache-Control:
29
- - no-cache, no-store, max-age=0
30
- Content-Disposition:
31
- - inline
32
- Vary:
33
- - Origin
34
- X-Ratelimit-Limit:
35
- - '17200'
36
- X-Ratelimit-Remaining:
37
- - '17179'
38
- X-Ratelimit-Reset:
39
- - '2178'
40
- Expect-Ct:
41
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
42
- Server:
43
- - cloudflare
44
- Cf-Ray:
45
- - 453d298b1ab07c28-LAX
46
- body:
47
- encoding: ASCII-8BIT
48
- string: |-
49
- {
50
- "_links": {
51
- "account": {
52
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
53
- "templated": true
54
- },
55
- "account_transactions": {
56
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
57
- "templated": true
58
- },
59
- "assets": {
60
- "href": "https://horizon-testnet.stellar.org/assets{?asset_code,asset_issuer,cursor,limit,order}",
61
- "templated": true
62
- },
63
- "friendbot": {
64
- "href": "https://horizon-testnet.stellar.org/friendbot{?addr}",
65
- "templated": true
66
- },
67
- "metrics": {
68
- "href": "https://horizon-testnet.stellar.org/metrics"
69
- },
70
- "order_book": {
71
- "href": "https://horizon-testnet.stellar.org/order_book{?selling_asset_type,selling_asset_code,selling_issuer,buying_asset_type,buying_asset_code,buying_issuer,limit}",
72
- "templated": true
73
- },
74
- "self": {
75
- "href": "https://horizon-testnet.stellar.org/"
76
- },
77
- "transaction": {
78
- "href": "https://horizon-testnet.stellar.org/transactions/{hash}",
79
- "templated": true
80
- },
81
- "transactions": {
82
- "href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
83
- "templated": true
84
- }
85
- },
86
- "horizon_version": "0.14.0rc3-5bbd27814a3ffca9aeffcbd75a09a6164959776a",
87
- "core_version": "stellar-core 10.0.0rc1 (cb61d6b09b0088989c6c3a23d55d97ef5ce1001d)",
88
- "history_latest_ledger": 10842174,
89
- "history_elder_ledger": 1,
90
- "core_latest_ledger": 10842174,
91
- "network_passphrase": "Test SDF Network ; September 2015",
92
- "protocol_version": 10
93
- }
94
- http_version:
95
- recorded_at: Sun, 02 Sep 2018 04:16:38 GMT
96
- - request:
97
- method: get
98
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
99
- body:
100
- encoding: US-ASCII
101
- string: ''
102
- headers:
103
- User-Agent:
104
- - Faraday v0.15.2
105
- Accept:
106
- - application/hal+json,application/problem+json,application/json
107
- response:
108
- status:
109
- code: 200
110
- message: OK
111
- headers:
112
- Date:
113
- - Sun, 02 Sep 2018 04:16:39 GMT
114
- Content-Type:
115
- - application/hal+json; charset=utf-8
116
- Connection:
117
- - keep-alive
118
- Set-Cookie:
119
- - __cfduid=ded66ee3c74f1e344e71a6365b6a7f35e1535861798; expires=Mon, 02-Sep-19
120
- 04:16:38 GMT; path=/; domain=.stellar.org; HttpOnly
121
- Cache-Control:
122
- - no-cache, no-store, max-age=0
123
- Content-Disposition:
124
- - inline
125
- Vary:
126
- - Origin
127
- X-Ratelimit-Limit:
128
- - '17200'
129
- X-Ratelimit-Remaining:
130
- - '17171'
131
- X-Ratelimit-Reset:
132
- - '2175'
133
- Expect-Ct:
134
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
135
- Server:
136
- - cloudflare
137
- Cf-Ray:
138
- - 453d29922fd27912-LAX
139
- body:
140
- encoding: ASCII-8BIT
141
- string: |-
142
- {
143
- "_links": {
144
- "self": {
145
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
146
- },
147
- "transactions": {
148
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
149
- "templated": true
150
- },
151
- "operations": {
152
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
153
- "templated": true
154
- },
155
- "payments": {
156
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
157
- "templated": true
158
- },
159
- "effects": {
160
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
161
- "templated": true
162
- },
163
- "offers": {
164
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
165
- "templated": true
166
- },
167
- "trades": {
168
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
169
- "templated": true
170
- },
171
- "data": {
172
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
173
- "templated": true
174
- }
175
- },
176
- "id": "[source_address]",
177
- "paging_token": "",
178
- "account_id": "[source_address]",
179
- "sequence": "38688184934072382",
180
- "subentry_count": 0,
181
- "thresholds": {
182
- "low_threshold": 0,
183
- "med_threshold": 0,
184
- "high_threshold": 0
185
- },
186
- "flags": {
187
- "auth_required": false,
188
- "auth_revocable": false
189
- },
190
- "balances": [
191
- {
192
- "balance": "8881.9993800",
193
- "buying_liabilities": "0.0000000",
194
- "selling_liabilities": "0.0000000",
195
- "asset_type": "native"
196
- }
197
- ],
198
- "signers": [
199
- {
200
- "public_key": "[source_address]",
201
- "weight": 1,
202
- "key": "[source_address]",
203
- "type": "ed25519_public_key"
204
- }
205
- ],
206
- "data": {}
207
- }
208
- http_version:
209
- recorded_at: Sun, 02 Sep 2018 04:16:39 GMT
210
- - request:
211
- method: post
212
- uri: https://horizon-testnet.stellar.org/transactions
213
- body:
214
- encoding: UTF-8
215
- string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAA%2FAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAKiORE8QrS6sKY8aLLMEHPJF%2BnqqAqAf%2Fjmsuznk%2BgJAAAAAAO5rKAAAAAAAAAAABMluxGQAAAEDzeVf7GB7a780gvW76WEsRXCcjkmxDtZJiaYx373JBkm83fDgSk2lyS55CaREUt1Ex6hfQBQKUB5f4U2QhRaAN
216
- headers:
217
- User-Agent:
218
- - Faraday v0.15.2
219
- Accept:
220
- - application/hal+json,application/problem+json,application/json
221
- Content-Type:
222
- - application/x-www-form-urlencoded
223
- response:
224
- status:
225
- code: 200
226
- message: OK
227
- headers:
228
- Date:
229
- - Sun, 02 Sep 2018 04:16:41 GMT
230
- Content-Type:
231
- - application/hal+json; charset=utf-8
232
- Connection:
233
- - keep-alive
234
- Set-Cookie:
235
- - __cfduid=d3e970f1686258aeab77e9009da920da21535861800; expires=Mon, 02-Sep-19
236
- 04:16:40 GMT; path=/; domain=.stellar.org; HttpOnly
237
- Cache-Control:
238
- - no-cache, no-store, max-age=0
239
- Content-Disposition:
240
- - inline
241
- Vary:
242
- - Origin
243
- X-Ratelimit-Limit:
244
- - '17200'
245
- X-Ratelimit-Remaining:
246
- - '17170'
247
- X-Ratelimit-Reset:
248
- - '2174'
249
- Expect-Ct:
250
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
251
- Server:
252
- - cloudflare
253
- Cf-Ray:
254
- - 453d299aca6577ae-LAX
255
- body:
256
- encoding: ASCII-8BIT
257
- string: |-
258
- {
259
- "_links": {
260
- "transaction": {
261
- "href": "https://horizon-testnet.stellar.org/transactions/a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce"
262
- }
263
- },
264
- "hash": "a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce",
265
- "ledger": 10842175,
266
- "envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAAA/AAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAKiORE8QrS6sKY8aLLMEHPJF+nqqAqAf/jmsuznk+gJAAAAAAO5rKAAAAAAAAAAABMluxGQAAAEDzeVf7GB7a780gvW76WEsRXCcjkmxDtZJiaYx373JBkm83fDgSk2lyS55CaREUt1Ex6hfQBQKUB5f4U2QhRaAN",
267
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
268
- "result_meta_xdr": "AAAAAQAAAAIAAAADAKVwPwAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAUrhWMZACJcrMAAAA+AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAKVwPwAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAUrhWMZACJcrMAAAA/AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAApXA/AAAAAAAAAAAqI5ETxCtLqwpjxosswQc8kX6eqoCoB/+Oay7OeT6AkAAAAAA7msoAAKVwPwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMApXA/AAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABSuFYxkAIlyswAAAD8AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXA/AAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABRyesJkAIlyswAAAD8AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
269
- }
270
- http_version:
271
- recorded_at: Sun, 02 Sep 2018 04:16:42 GMT
272
- - request:
273
- method: get
274
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
275
- body:
276
- encoding: US-ASCII
277
- string: ''
278
- headers:
279
- User-Agent:
280
- - Faraday v0.15.2
281
- Accept:
282
- - application/hal+json,application/problem+json,application/json
283
- response:
284
- status:
285
- code: 200
286
- message: OK
287
- headers:
288
- Date:
289
- - Sun, 02 Sep 2018 04:16:43 GMT
290
- Content-Type:
291
- - application/hal+json; charset=utf-8
292
- Connection:
293
- - keep-alive
294
- Set-Cookie:
295
- - __cfduid=db9815e47537c718da1fce520c4cf14b31535861802; expires=Mon, 02-Sep-19
296
- 04:16:42 GMT; path=/; domain=.stellar.org; HttpOnly
297
- Cache-Control:
298
- - no-cache, no-store, max-age=0
299
- Content-Disposition:
300
- - inline
301
- Vary:
302
- - Origin
303
- X-Ratelimit-Limit:
304
- - '17200'
305
- X-Ratelimit-Remaining:
306
- - '17169'
307
- X-Ratelimit-Reset:
308
- - '2171'
309
- Expect-Ct:
310
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
311
- Server:
312
- - cloudflare
313
- Cf-Ray:
314
- - 453d29ab2a70790c-LAX
315
- body:
316
- encoding: ASCII-8BIT
317
- string: |-
318
- {
319
- "_links": {
320
- "self": {
321
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
322
- },
323
- "transactions": {
324
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
325
- "templated": true
326
- },
327
- "operations": {
328
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
329
- "templated": true
330
- },
331
- "payments": {
332
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
333
- "templated": true
334
- },
335
- "effects": {
336
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
337
- "templated": true
338
- },
339
- "offers": {
340
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
341
- "templated": true
342
- },
343
- "trades": {
344
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
345
- "templated": true
346
- },
347
- "data": {
348
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
349
- "templated": true
350
- }
351
- },
352
- "id": "[source_address]",
353
- "paging_token": "",
354
- "account_id": "[source_address]",
355
- "sequence": "38688184934072383",
356
- "subentry_count": 0,
357
- "thresholds": {
358
- "low_threshold": 0,
359
- "med_threshold": 0,
360
- "high_threshold": 0
361
- },
362
- "flags": {
363
- "auth_required": false,
364
- "auth_revocable": false
365
- },
366
- "balances": [
367
- {
368
- "balance": "8781.9993700",
369
- "buying_liabilities": "0.0000000",
370
- "selling_liabilities": "0.0000000",
371
- "asset_type": "native"
372
- }
373
- ],
374
- "signers": [
375
- {
376
- "public_key": "[source_address]",
377
- "weight": 1,
378
- "key": "[source_address]",
379
- "type": "ed25519_public_key"
380
- }
381
- ],
382
- "data": {}
383
- }
384
- http_version:
385
- recorded_at: Sun, 02 Sep 2018 04:16:43 GMT
386
- - request:
387
- method: post
388
- uri: https://horizon-testnet.stellar.org/transactions
389
- body:
390
- encoding: UTF-8
391
- string: tx=AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABAAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAAAAAAEAAAAAKiORE8QrS6sKY8aLLMEHPJF%2BnqqAqAf%2Fjmsuznk%2BgJAAAAAAAAAAAFloLwAAAAAAAAAAATJbsRkAAABAYs1Kl6SiYcLTdgJ5TrvYKxA6tulJ6nVn7ss94wrxiuI5mFc1uyPGt626B0rD14oC1XYqxT1blD7ClMosbSI%2BBg%3D%3D
392
- headers:
393
- User-Agent:
394
- - Faraday v0.15.2
395
- Accept:
396
- - application/hal+json,application/problem+json,application/json
397
- Content-Type:
398
- - application/x-www-form-urlencoded
399
- response:
400
- status:
401
- code: 200
402
- message: OK
403
- headers:
404
- Date:
405
- - Sun, 02 Sep 2018 04:16:46 GMT
406
- Content-Type:
407
- - application/hal+json; charset=utf-8
408
- Connection:
409
- - keep-alive
410
- Set-Cookie:
411
- - __cfduid=d468db2fbeb9d7b6666ed4260ae14f2dd1535861804; expires=Mon, 02-Sep-19
412
- 04:16:44 GMT; path=/; domain=.stellar.org; HttpOnly
413
- Cache-Control:
414
- - no-cache, no-store, max-age=0
415
- Content-Disposition:
416
- - inline
417
- Vary:
418
- - Origin
419
- X-Ratelimit-Limit:
420
- - '17200'
421
- X-Ratelimit-Remaining:
422
- - '17168'
423
- X-Ratelimit-Reset:
424
- - '2170'
425
- Expect-Ct:
426
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
427
- Server:
428
- - cloudflare
429
- Cf-Ray:
430
- - 453d29b4cf03790c-LAX
431
- body:
432
- encoding: ASCII-8BIT
433
- string: |-
434
- {
435
- "_links": {
436
- "transaction": {
437
- "href": "https://horizon-testnet.stellar.org/transactions/2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2"
438
- }
439
- },
440
- "hash": "2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2",
441
- "ledger": 10842176,
442
- "envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABAAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAAAAAAEAAAAAKiORE8QrS6sKY8aLLMEHPJF+nqqAqAf/jmsuznk+gJAAAAAAAAAAAFloLwAAAAAAAAAAATJbsRkAAABAYs1Kl6SiYcLTdgJ5TrvYKxA6tulJ6nVn7ss94wrxiuI5mFc1uyPGt626B0rD14oC1XYqxT1blD7ClMosbSI+Bg==",
443
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
444
- "result_meta_xdr": "AAAAAQAAAAIAAAADAKVwQAAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAUcnrCAACJcrMAAAA/AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAKVwQAAAAAAAAAAAwGrMKrOs5IP3jsNF1RUrADc8EjqQkj2+RT1DDTJbsRkAAAAUcnrCAACJcrMAAABAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAABAAAAAMApXA/AAAAAAAAAAAqI5ETxCtLqwpjxosswQc8kX6eqoCoB/+Oay7OeT6AkAAAAAA7msoAAKVwPwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXBAAAAAAAAAAAAqI5ETxCtLqwpjxosswQc8kX6eqoCoB/+Oay7OeT6AkAAAAACVAvkAAKVwPwAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMApXBAAAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABRyesIAAIlyswAAAEAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXBAAAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABQZEpMAAIlyswAAAEAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
445
- }
446
- http_version:
447
- recorded_at: Sun, 02 Sep 2018 04:16:46 GMT
448
- - request:
449
- method: get
450
- uri: https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ
451
- body:
452
- encoding: US-ASCII
453
- string: ''
454
- headers:
455
- User-Agent:
456
- - Faraday v0.15.2
457
- Accept:
458
- - application/hal+json,application/problem+json,application/json
459
- response:
460
- status:
461
- code: 200
462
- message: OK
463
- headers:
464
- Date:
465
- - Sun, 02 Sep 2018 04:16:47 GMT
466
- Content-Type:
467
- - application/hal+json; charset=utf-8
468
- Connection:
469
- - keep-alive
470
- Set-Cookie:
471
- - __cfduid=dc7f5912641319e1ad73f1e63231c06a31535861807; expires=Mon, 02-Sep-19
472
- 04:16:47 GMT; path=/; domain=.stellar.org; HttpOnly
473
- Cache-Control:
474
- - no-cache, no-store, max-age=0
475
- Content-Disposition:
476
- - inline
477
- Vary:
478
- - Origin
479
- X-Ratelimit-Limit:
480
- - '17200'
481
- X-Ratelimit-Remaining:
482
- - '17178'
483
- X-Ratelimit-Reset:
484
- - '2168'
485
- Expect-Ct:
486
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
487
- Server:
488
- - cloudflare
489
- Cf-Ray:
490
- - 453d29c84bc178c2-LAX
491
- body:
492
- encoding: ASCII-8BIT
493
- string: |-
494
- {
495
- "_links": {
496
- "self": {
497
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ"
498
- },
499
- "transactions": {
500
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/transactions{?cursor,limit,order}",
501
- "templated": true
502
- },
503
- "operations": {
504
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/operations{?cursor,limit,order}",
505
- "templated": true
506
- },
507
- "payments": {
508
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/payments{?cursor,limit,order}",
509
- "templated": true
510
- },
511
- "effects": {
512
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/effects{?cursor,limit,order}",
513
- "templated": true
514
- },
515
- "offers": {
516
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/offers{?cursor,limit,order}",
517
- "templated": true
518
- },
519
- "trades": {
520
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/trades{?cursor,limit,order}",
521
- "templated": true
522
- },
523
- "data": {
524
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/data/{key}",
525
- "templated": true
526
- }
527
- },
528
- "id": "GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ",
529
- "paging_token": "",
530
- "account_id": "GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ",
531
- "sequence": "46566787042508800",
532
- "subentry_count": 0,
533
- "thresholds": {
534
- "low_threshold": 0,
535
- "med_threshold": 0,
536
- "high_threshold": 0
537
- },
538
- "flags": {
539
- "auth_required": false,
540
- "auth_revocable": false
541
- },
542
- "balances": [
543
- {
544
- "balance": "250.0000000",
545
- "buying_liabilities": "0.0000000",
546
- "selling_liabilities": "0.0000000",
547
- "asset_type": "native"
548
- }
549
- ],
550
- "signers": [
551
- {
552
- "public_key": "GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ",
553
- "weight": 1,
554
- "key": "GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ",
555
- "type": "ed25519_public_key"
556
- }
557
- ],
558
- "data": {}
559
- }
560
- http_version:
561
- recorded_at: Sun, 02 Sep 2018 04:16:47 GMT
562
- - request:
563
- method: get
564
- uri: https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/transactions?order=desc
565
- body:
566
- encoding: US-ASCII
567
- string: ''
568
- headers:
569
- User-Agent:
570
- - Faraday v0.15.2
571
- Accept:
572
- - application/hal+json,application/problem+json,application/json
573
- response:
574
- status:
575
- code: 200
576
- message: OK
577
- headers:
578
- Date:
579
- - Sun, 02 Sep 2018 04:16:49 GMT
580
- Content-Type:
581
- - application/hal+json; charset=utf-8
582
- Connection:
583
- - keep-alive
584
- Set-Cookie:
585
- - __cfduid=d758a8c2f0dcc39b22a44596319fe2dd91535861808; expires=Mon, 02-Sep-19
586
- 04:16:48 GMT; path=/; domain=.stellar.org; HttpOnly
587
- Cache-Control:
588
- - no-cache, no-store, max-age=0
589
- Content-Disposition:
590
- - inline
591
- Vary:
592
- - Origin
593
- X-Ratelimit-Limit:
594
- - '17200'
595
- X-Ratelimit-Remaining:
596
- - '17177'
597
- X-Ratelimit-Reset:
598
- - '2166'
599
- Expect-Ct:
600
- - max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
601
- Server:
602
- - cloudflare
603
- Cf-Ray:
604
- - 453d29d18e5b7c2e-LAX
605
- body:
606
- encoding: ASCII-8BIT
607
- string: |-
608
- {
609
- "_links": {
610
- "self": {
611
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/transactions?cursor=\u0026limit=10\u0026order=desc"
612
- },
613
- "next": {
614
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/transactions?cursor=46566787042516992\u0026limit=10\u0026order=desc"
615
- },
616
- "prev": {
617
- "href": "https://horizon-testnet.stellar.org/accounts/GAVCHEITYQVUXKYKMPDIWLGBA46JC7U6VKAKQB77RZVS5TTZH2AJBSXJ/transactions?cursor=46566791337484288\u0026limit=10\u0026order=asc"
618
- }
619
- },
620
- "_embedded": {
621
- "records": [
622
- {
623
- "_links": {
624
- "self": {
625
- "href": "https://horizon-testnet.stellar.org/transactions/2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2"
626
- },
627
- "account": {
628
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
629
- },
630
- "ledger": {
631
- "href": "https://horizon-testnet.stellar.org/ledgers/10842176"
632
- },
633
- "operations": {
634
- "href": "https://horizon-testnet.stellar.org/transactions/2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2/operations{?cursor,limit,order}",
635
- "templated": true
636
- },
637
- "effects": {
638
- "href": "https://horizon-testnet.stellar.org/transactions/2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2/effects{?cursor,limit,order}",
639
- "templated": true
640
- },
641
- "precedes": {
642
- "href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=46566791337484288"
643
- },
644
- "succeeds": {
645
- "href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=46566791337484288"
646
- }
647
- },
648
- "id": "2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2",
649
- "paging_token": "46566791337484288",
650
- "hash": "2913572217e8e7653c3af88fe423f4bbfdb111c4478aa3984f74d9468807fee2",
651
- "ledger": 10842176,
652
- "created_at": "2018-09-02T04:16:46Z",
653
- "source_account": "[source_address]",
654
- "source_account_sequence": "38688184934072384",
655
- "fee_paid": 100,
656
- "operation_count": 1,
657
- "envelope_xdr": "AAAAAMBqzCqzrOSD947DRdUVKwA3PBI6kJI9vkU9Qw0yW7EZAAAAZACJcrMAAABAAAAAAAAAAAEAAAAGREVTVUtBAAAAAAABAAAAAAAAAAEAAAAAKiORE8QrS6sKY8aLLMEHPJF+nqqAqAf/jmsuznk+gJAAAAAAAAAAAFloLwAAAAAAAAAAATJbsRkAAABAYs1Kl6SiYcLTdgJ5TrvYKxA6tulJ6nVn7ss94wrxiuI5mFc1uyPGt626B0rD14oC1XYq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0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABRyesIAAIlyswAAAD8AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
661
- "memo_type": "text",
662
- "memo": "DESUKA",
663
- "signatures": [
664
- "Ys1Kl6SiYcLTdgJ5TrvYKxA6tulJ6nVn7ss94wrxiuI5mFc1uyPGt626B0rD14oC1XYqxT1blD7ClMosbSI+Bg=="
665
- ]
666
- },
667
- {
668
- "_links": {
669
- "self": {
670
- "href": "https://horizon-testnet.stellar.org/transactions/a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce"
671
- },
672
- "account": {
673
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
674
- },
675
- "ledger": {
676
- "href": "https://horizon-testnet.stellar.org/ledgers/10842175"
677
- },
678
- "operations": {
679
- "href": "https://horizon-testnet.stellar.org/transactions/a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce/operations{?cursor,limit,order}",
680
- "templated": true
681
- },
682
- "effects": {
683
- "href": "https://horizon-testnet.stellar.org/transactions/a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce/effects{?cursor,limit,order}",
684
- "templated": true
685
- },
686
- "precedes": {
687
- "href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=46566787042516992"
688
- },
689
- "succeeds": {
690
- "href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=46566787042516992"
691
- }
692
- },
693
- "id": "a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce",
694
- "paging_token": "46566787042516992",
695
- "hash": "a1408d396a49346de2f7a64bfaf7c16fc121f15fa4bc02dbab286702a749c4ce",
696
- "ledger": 10842175,
697
- "created_at": "2018-09-02T04:16:40Z",
698
- "source_account": "[source_address]",
699
- "source_account_sequence": "38688184934072383",
700
- "fee_paid": 100,
701
- "operation_count": 1,
702
- "envelope_xdr": "AAAAAMBqzCqz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ABSuFYzIAIlyswAAAD4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEApXA/AAAAAAAAAADAaswqs6zkg/eOw0XVFSsANzwSOpCSPb5FPUMNMluxGQAAABSuFYxkAIlyswAAAD4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA==",
706
- "memo_type": "none",
707
- "signatures": [
708
- "83lX+xge2u/NIL1u+lhLEVwnI5JsQ7WSYmmMd+9yQZJvN3w4EpNpckueQmkRFLdRMeoX0AUClAeX+FNkIUWgDQ=="
709
- ]
710
- }
711
- ]
712
- }
713
- }
714
- http_version:
715
- recorded_at: Sun, 02 Sep 2018 04:16:49 GMT
716
- recorded_with: VCR 4.0.0