stellar-sdk 0.7.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -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 +201 -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 +18 -217
  14. data/.github/CODEOWNERS +0 -2
  15. data/.gitignore +0 -16
  16. data/.travis.yml +0 -19
  17. data/.yardopts +0 -7
  18. data/CONTRIBUTING.md +0 -48
  19. data/Gemfile +0 -14
  20. data/Guardfile +0 -5
  21. data/Rakefile +0 -3
  22. data/examples/01_get_funded.rb +0 -37
  23. data/examples/02_payment.rb +0 -15
  24. data/examples/03_transaction_history.rb +0 -21
  25. data/examples/04_setting_trust.rb +0 -1
  26. data/examples/05_fiat_payment.rb +0 -13
  27. data/examples/06_fund_testnet_friendbot.rb +0 -15
  28. data/ruby-stellar-sdk.gemspec +0 -36
  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/_send_payment/alphanum12_asset/sends_a_alphanum12_asset_to_the_destination.yml +0 -747
  39. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/alphanum4_asset/sends_a_alphanum4_asset_to_the_destination.yml +0 -747
  40. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/memo/accepts_the_memo_attribute.yml +0 -716
  41. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/native_asset/sends_a_native_payment_to_the_account.yml +0 -562
  42. data/spec/fixtures/vcr_cassettes/Stellar_Client/_send_payment/using_a_payment_channel/sends_a_payment_account_through_a_channel_account.yml +0 -694
  43. 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
  44. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  45. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/account_transactions/returns_a_list_of_transaction_for_an_account.yml +0 -94
  46. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/accepts_a_cursor_to_return_less_data.yml +0 -94
  47. data/spec/fixtures/vcr_cassettes/Stellar_Client/_transactions/all_transactions/returns_a_list_of_transactions.yml +0 -94
  48. data/spec/lib/stellar/account_spec.rb +0 -59
  49. data/spec/lib/stellar/amount_spec.rb +0 -70
  50. data/spec/lib/stellar/client_spec.rb +0 -413
  51. data/spec/spec_helper.rb +0 -14
  52. data/spec/support/config.rb +0 -3
  53. data/spec/support/vcr.rb +0 -10
  54. data/tasks/rspec.rake +0 -6
  55. data/tasks/travis.rake +0 -1
@@ -1,694 +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
- Cache-Control:
20
- - no-cache, no-store, max-age=0
21
- Content-Disposition:
22
- - inline
23
- Content-Type:
24
- - application/hal+json; charset=utf-8
25
- Date:
26
- - Wed, 17 Oct 2018 08:28:37 GMT
27
- Vary:
28
- - Origin
29
- X-Ratelimit-Limit:
30
- - '17200'
31
- X-Ratelimit-Remaining:
32
- - '17197'
33
- X-Ratelimit-Reset:
34
- - '3352'
35
- Content-Length:
36
- - '1583'
37
- Connection:
38
- - keep-alive
39
- body:
40
- encoding: ASCII-8BIT
41
- string: |-
42
- {
43
- "_links": {
44
- "account": {
45
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}",
46
- "templated": true
47
- },
48
- "account_transactions": {
49
- "href": "https://horizon-testnet.stellar.org/accounts/{account_id}/transactions{?cursor,limit,order}",
50
- "templated": true
51
- },
52
- "assets": {
53
- "href": "https://horizon-testnet.stellar.org/assets{?asset_code,asset_issuer,cursor,limit,order}",
54
- "templated": true
55
- },
56
- "friendbot": {
57
- "href": "https://friendbot.stellar.org/{?addr}",
58
- "templated": true
59
- },
60
- "metrics": {
61
- "href": "https://horizon-testnet.stellar.org/metrics"
62
- },
63
- "order_book": {
64
- "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}",
65
- "templated": true
66
- },
67
- "self": {
68
- "href": "https://horizon-testnet.stellar.org/"
69
- },
70
- "transaction": {
71
- "href": "https://horizon-testnet.stellar.org/transactions/{hash}",
72
- "templated": true
73
- },
74
- "transactions": {
75
- "href": "https://horizon-testnet.stellar.org/transactions{?cursor,limit,order}",
76
- "templated": true
77
- }
78
- },
79
- "horizon_version": "0.15.0-unstable-92db8e1f6fa5eeb4733ffd224214976ab1a97cd0",
80
- "core_version": "stellar-core 10.0.0-dbg (1fc018b4f52e8c7e716b023ccf30600af5b4f66d)",
81
- "history_latest_ledger": 217565,
82
- "history_elder_ledger": 1,
83
- "core_latest_ledger": 217565,
84
- "network_passphrase": "Test SDF Network ; September 2015",
85
- "protocol_version": 10
86
- }
87
- http_version:
88
- recorded_at: Wed, 17 Oct 2018 08:28:37 GMT
89
- - request:
90
- method: get
91
- uri: https://horizon-testnet.stellar.org/accounts/[source_address]
92
- body:
93
- encoding: US-ASCII
94
- string: ''
95
- headers:
96
- User-Agent:
97
- - Faraday v0.15.2
98
- Accept:
99
- - application/hal+json,application/problem+json,application/json
100
- response:
101
- status:
102
- code: 200
103
- message: OK
104
- headers:
105
- Cache-Control:
106
- - no-cache, no-store, max-age=0
107
- Content-Disposition:
108
- - inline
109
- Content-Type:
110
- - application/hal+json; charset=utf-8
111
- Date:
112
- - Wed, 17 Oct 2018 08:28:38 GMT
113
- Vary:
114
- - Origin
115
- X-Ratelimit-Limit:
116
- - '17200'
117
- X-Ratelimit-Remaining:
118
- - '17188'
119
- X-Ratelimit-Reset:
120
- - '3351'
121
- Content-Length:
122
- - '2346'
123
- Connection:
124
- - keep-alive
125
- body:
126
- encoding: ASCII-8BIT
127
- string: |-
128
- {
129
- "_links": {
130
- "self": {
131
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]"
132
- },
133
- "transactions": {
134
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/transactions{?cursor,limit,order}",
135
- "templated": true
136
- },
137
- "operations": {
138
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/operations{?cursor,limit,order}",
139
- "templated": true
140
- },
141
- "payments": {
142
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/payments{?cursor,limit,order}",
143
- "templated": true
144
- },
145
- "effects": {
146
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/effects{?cursor,limit,order}",
147
- "templated": true
148
- },
149
- "offers": {
150
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/offers{?cursor,limit,order}",
151
- "templated": true
152
- },
153
- "trades": {
154
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/trades{?cursor,limit,order}",
155
- "templated": true
156
- },
157
- "data": {
158
- "href": "https://horizon-testnet.stellar.org/accounts/[source_address]/data/{key}",
159
- "templated": true
160
- }
161
- },
162
- "id": "[source_address]",
163
- "paging_token": "",
164
- "account_id": "[source_address]",
165
- "sequence": "930848262062093",
166
- "subentry_count": 0,
167
- "thresholds": {
168
- "low_threshold": 0,
169
- "med_threshold": 0,
170
- "high_threshold": 0
171
- },
172
- "flags": {
173
- "auth_required": false,
174
- "auth_revocable": false
175
- },
176
- "balances": [
177
- {
178
- "balance": "9981.3498700",
179
- "buying_liabilities": "0.0000000",
180
- "selling_liabilities": "0.0000000",
181
- "asset_type": "native"
182
- }
183
- ],
184
- "signers": [
185
- {
186
- "public_key": "[source_address]",
187
- "weight": 1,
188
- "key": "[source_address]",
189
- "type": "ed25519_public_key"
190
- }
191
- ],
192
- "data": {}
193
- }
194
- http_version:
195
- recorded_at: Wed, 17 Oct 2018 08:28:39 GMT
196
- - request:
197
- method: post
198
- uri: https://horizon-testnet.stellar.org/transactions
199
- body:
200
- encoding: UTF-8
201
- string: tx=AAAAAPfC6xA%2Fc15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAfUmptjScnsz7nqM0cRQJ3LiubJ1dnBXc%2FkNwvRKPeK4AAAAAAJiWgAAAAAAAAAABxxm0HQAAAEC4CdbFlssEsYZE%2Br%2FDWA4xu0R0YMK%2BCd2gSDpAOoRlZ3c4UMe7U%2B4xpe7sex3LPr9wUsNOndyLfEpa5FtDUFkP
202
- headers:
203
- User-Agent:
204
- - Faraday v0.15.2
205
- Accept:
206
- - application/hal+json,application/problem+json,application/json
207
- Content-Type:
208
- - application/x-www-form-urlencoded
209
- response:
210
- status:
211
- code: 200
212
- message: OK
213
- headers:
214
- Cache-Control:
215
- - no-cache, no-store, max-age=0
216
- Content-Disposition:
217
- - inline
218
- Content-Type:
219
- - application/hal+json; charset=utf-8
220
- Date:
221
- - Wed, 17 Oct 2018 08:28:42 GMT
222
- Vary:
223
- - Origin
224
- X-Ratelimit-Limit:
225
- - '17200'
226
- X-Ratelimit-Remaining:
227
- - '17187'
228
- X-Ratelimit-Reset:
229
- - '3350'
230
- Content-Length:
231
- - '1307'
232
- Connection:
233
- - keep-alive
234
- body:
235
- encoding: ASCII-8BIT
236
- string: |-
237
- {
238
- "_links": {
239
- "transaction": {
240
- "href": "https://horizon-testnet.stellar.org/transactions/ff037c1cfb4eaf93e10da7c3e91b727c6470677804da47b87cd299caf2ceac32"
241
- }
242
- },
243
- "hash": "ff037c1cfb4eaf93e10da7c3e91b727c6470677804da47b87cd299caf2ceac32",
244
- "ledger": 217567,
245
- "envelope_xdr": "AAAAAPfC6xA/c15t9SIuO4JWyScW0F4JFxbalmlIMhnHGbQdAAAAZAADTpoAAAAOAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAfUmptjScnsz7nqM0cRQJ3LiubJ1dnBXc/kNwvRKPeK4AAAAAAJiWgAAAAAAAAAABxxm0HQAAAEC4CdbFlssEsYZE+r/DWA4xu0R0YMK+Cd2gSDpAOoRlZ3c4UMe7U+4xpe7sex3LPr9wUsNOndyLfEpa5FtDUFkP",
246
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA=",
247
- "result_meta_xdr": "AAAAAQAAAAIAAAADAANR3wAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXPVke6AADTpoAAAANAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAANR3wAAAAAAAAAA98LrED9zXm31Ii47glbJJxbQXgkXFtqWaUgyGccZtB0AAAAXPVke6AADTpoAAAAOAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAABAAAAAwAAAAAAA1HfAAAAAAAAAAB9Sam2NJyezPueozRxFAncuK5snV2cFdz+Q3C9Eo94rgAAAAAAmJaAAANR3wAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAMAA1HfAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc9WR7oAANOmgAAAA4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAEAA1HfAAAAAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc8wIhoAANOmgAAAA4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
248
- }
249
- http_version:
250
- recorded_at: Wed, 17 Oct 2018 08:28:43 GMT
251
- - request:
252
- method: get
253
- uri: https://horizon-testnet.stellar.org/accounts/[channel_address]
254
- body:
255
- encoding: US-ASCII
256
- string: ''
257
- headers:
258
- User-Agent:
259
- - Faraday v0.15.2
260
- Accept:
261
- - application/hal+json,application/problem+json,application/json
262
- response:
263
- status:
264
- code: 200
265
- message: OK
266
- headers:
267
- Cache-Control:
268
- - no-cache, no-store, max-age=0
269
- Content-Disposition:
270
- - inline
271
- Content-Type:
272
- - application/hal+json; charset=utf-8
273
- Date:
274
- - Wed, 17 Oct 2018 08:28:44 GMT
275
- Vary:
276
- - Origin
277
- X-Ratelimit-Limit:
278
- - '17200'
279
- X-Ratelimit-Remaining:
280
- - '17186'
281
- X-Ratelimit-Reset:
282
- - '3345'
283
- Content-Length:
284
- - '2346'
285
- Connection:
286
- - keep-alive
287
- body:
288
- encoding: ASCII-8BIT
289
- string: |-
290
- {
291
- "_links": {
292
- "self": {
293
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]"
294
- },
295
- "transactions": {
296
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/transactions{?cursor,limit,order}",
297
- "templated": true
298
- },
299
- "operations": {
300
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/operations{?cursor,limit,order}",
301
- "templated": true
302
- },
303
- "payments": {
304
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/payments{?cursor,limit,order}",
305
- "templated": true
306
- },
307
- "effects": {
308
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/effects{?cursor,limit,order}",
309
- "templated": true
310
- },
311
- "offers": {
312
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/offers{?cursor,limit,order}",
313
- "templated": true
314
- },
315
- "trades": {
316
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/trades{?cursor,limit,order}",
317
- "templated": true
318
- },
319
- "data": {
320
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]/data/{key}",
321
- "templated": true
322
- }
323
- },
324
- "id": "[channel_address]",
325
- "paging_token": "",
326
- "account_id": "[channel_address]",
327
- "sequence": "934155386880001",
328
- "subentry_count": 0,
329
- "thresholds": {
330
- "low_threshold": 0,
331
- "med_threshold": 0,
332
- "high_threshold": 0
333
- },
334
- "flags": {
335
- "auth_required": false,
336
- "auth_revocable": false
337
- },
338
- "balances": [
339
- {
340
- "balance": "9999.9999900",
341
- "buying_liabilities": "0.0000000",
342
- "selling_liabilities": "0.0000000",
343
- "asset_type": "native"
344
- }
345
- ],
346
- "signers": [
347
- {
348
- "public_key": "[channel_address]",
349
- "weight": 1,
350
- "key": "[channel_address]",
351
- "type": "ed25519_public_key"
352
- }
353
- ],
354
- "data": {}
355
- }
356
- http_version:
357
- recorded_at: Wed, 17 Oct 2018 08:28:44 GMT
358
- - request:
359
- method: post
360
- uri: https://horizon-testnet.stellar.org/transactions
361
- body:
362
- encoding: UTF-8
363
- string: tx=AAAAAEOpJ%2BelkU2kT8HYU1cYqGmO4zjVSyMJIruz9G8x5tmiAAAAZAADUZwAAAACAAAAAAAAAAAAAAABAAAAAQAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAAAEAAAAAfUmptjScnsz7nqM0cRQJ3LiubJ1dnBXc%2FkNwvRKPeK4AAAAAAAAAAABT7GAAAAAAAAAAAjHm2aIAAABAqNN6ZSfl96cap8UJSSHRPrxPSJzFqB3k404ANiR%2Bz6zZ4cIYEQi97ycsfIXDocyWEa1efCzFpLk3yJGi1m2KCccZtB0AAABAp3rPzIKCIQVjSjhJBcdRgRDb2YllE3iSr6DpN438Xf0nUh5Wfof6w4f2JE1U7Qko5rPLM0PnWG5sULnnx%2FnzBQ%3D%3D
364
- headers:
365
- User-Agent:
366
- - Faraday v0.15.2
367
- Accept:
368
- - application/hal+json,application/problem+json,application/json
369
- Content-Type:
370
- - application/x-www-form-urlencoded
371
- response:
372
- status:
373
- code: 200
374
- message: OK
375
- headers:
376
- Cache-Control:
377
- - no-cache, no-store, max-age=0
378
- Content-Disposition:
379
- - inline
380
- Content-Type:
381
- - application/hal+json; charset=utf-8
382
- Date:
383
- - Wed, 17 Oct 2018 08:28:47 GMT
384
- Vary:
385
- - Origin
386
- X-Ratelimit-Limit:
387
- - '17200'
388
- X-Ratelimit-Remaining:
389
- - '17185'
390
- X-Ratelimit-Reset:
391
- - '3344'
392
- Content-Length:
393
- - '1587'
394
- Connection:
395
- - keep-alive
396
- body:
397
- encoding: ASCII-8BIT
398
- string: |-
399
- {
400
- "_links": {
401
- "transaction": {
402
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5"
403
- }
404
- },
405
- "hash": "2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5",
406
- "ledger": 217568,
407
- "envelope_xdr": "AAAAAEOpJ+elkU2kT8HYU1cYqGmO4zjVSyMJIruz9G8x5tmiAAAAZAADUZwAAAACAAAAAAAAAAAAAAABAAAAAQ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AAAAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAABc8bJwIAANOmgAAAA4AAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAA=="
410
- }
411
- http_version:
412
- recorded_at: Wed, 17 Oct 2018 08:28:48 GMT
413
- - request:
414
- method: get
415
- uri: https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5
416
- body:
417
- encoding: US-ASCII
418
- string: ''
419
- headers:
420
- User-Agent:
421
- - Faraday v0.15.2
422
- Accept:
423
- - application/hal+json,application/problem+json,application/json
424
- response:
425
- status:
426
- code: 200
427
- message: OK
428
- headers:
429
- Cache-Control:
430
- - no-cache, no-store, max-age=0
431
- Content-Disposition:
432
- - inline
433
- Content-Type:
434
- - application/hal+json; charset=utf-8
435
- Date:
436
- - Wed, 17 Oct 2018 08:28:49 GMT
437
- Vary:
438
- - Origin
439
- X-Ratelimit-Limit:
440
- - '17200'
441
- X-Ratelimit-Remaining:
442
- - '17184'
443
- X-Ratelimit-Reset:
444
- - '3340'
445
- Content-Length:
446
- - '3338'
447
- Connection:
448
- - keep-alive
449
- body:
450
- encoding: ASCII-8BIT
451
- string: |-
452
- {
453
- "_links": {
454
- "self": {
455
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5"
456
- },
457
- "account": {
458
- "href": "https://horizon-testnet.stellar.org/accounts/[channel_address]"
459
- },
460
- "ledger": {
461
- "href": "https://horizon-testnet.stellar.org/ledgers/217568"
462
- },
463
- "operations": {
464
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/operations{?cursor,limit,order}",
465
- "templated": true
466
- },
467
- "effects": {
468
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/effects{?cursor,limit,order}",
469
- "templated": true
470
- },
471
- "precedes": {
472
- "href": "https://horizon-testnet.stellar.org/transactions?order=asc\u0026cursor=934447444660224"
473
- },
474
- "succeeds": {
475
- "href": "https://horizon-testnet.stellar.org/transactions?order=desc\u0026cursor=934447444660224"
476
- }
477
- },
478
- "id": "2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5",
479
- "paging_token": "934447444660224",
480
- "hash": "2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5",
481
- "ledger": 217568,
482
- "created_at": "2018-10-17T08:28:48Z",
483
- "source_account": "[channel_address]",
484
- "source_account_sequence": "934155386880002",
485
- "fee_paid": 100,
486
- "operation_count": 1,
487
- "envelope_xdr": "AAAAAEOpJ+elkU2kT8HYU1cYqGmO4zjVSyMJIruz9G8x5tmiAAAAZAADUZwAAAACAAAAAAAAAAAAAAABAAAAAQAAAAD3wusQP3NebfUiLjuCVsknFtBeCRcW2pZpSDIZxxm0HQAAAAEAAAAAfUmptjScnsz7nqM0cRQJ3LiubJ1dnBXc/kNwvRKPeK4AAAAAAAAAAABT7GAAAAAAAAAAAjHm2aIAAABAqNN6ZSfl96cap8UJSSHRPrxPSJzFqB3k404ANiR+z6zZ4cIYEQi97ycsfIXDocyWEa1efCzFpLk3yJGi1m2KCccZtB0AAABAp3rPzIKCIQVjSjhJBcdRgRDb2YllE3iSr6DpN438Xf0nUh5Wfof6w4f2JE1U7Qko5rPLM0PnWG5sULnnx/nzBQ==",
488
- "result_xdr": "AAAAAAAAAGQAAAAAAAAAAQAAAAAAAAABAAAAAAAAAAA=",
489
- "result_meta_xdr": "AAAAAQAAAAIAAAADAANR4AAAAAAAAAAAQ6kn56WRTaRPwdhTVxioaY7jONVLIwkiu7P0bzHm2aIAAAAXSHbnOAADUZwAAAABAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAB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RDb2YllE3iSr6DpN438Xf0nUh5Wfof6w4f2JE1U7Qko5rPLM0PnWG5sULnnx/nzBQ=="
495
- ]
496
- }
497
- http_version:
498
- recorded_at: Wed, 17 Oct 2018 08:28:49 GMT
499
- - request:
500
- method: get
501
- uri: https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/operations
502
- body:
503
- encoding: US-ASCII
504
- string: ''
505
- headers:
506
- User-Agent:
507
- - Faraday v0.15.2
508
- Accept:
509
- - application/hal+json,application/problem+json,application/json
510
- response:
511
- status:
512
- code: 200
513
- message: OK
514
- headers:
515
- Cache-Control:
516
- - no-cache, no-store, max-age=0
517
- Content-Disposition:
518
- - inline
519
- Content-Type:
520
- - application/hal+json; charset=utf-8
521
- Date:
522
- - Wed, 17 Oct 2018 08:28:50 GMT
523
- Vary:
524
- - Origin
525
- X-Ratelimit-Limit:
526
- - '17200'
527
- X-Ratelimit-Remaining:
528
- - '17183'
529
- X-Ratelimit-Reset:
530
- - '3339'
531
- Content-Length:
532
- - '2009'
533
- Connection:
534
- - keep-alive
535
- body:
536
- encoding: ASCII-8BIT
537
- string: |-
538
- {
539
- "_links": {
540
- "self": {
541
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/operations?cursor=\u0026limit=10\u0026order=asc"
542
- },
543
- "next": {
544
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/operations?cursor=934447444660225\u0026limit=10\u0026order=asc"
545
- },
546
- "prev": {
547
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5/operations?cursor=934447444660225\u0026limit=10\u0026order=desc"
548
- }
549
- },
550
- "_embedded": {
551
- "records": [
552
- {
553
- "_links": {
554
- "self": {
555
- "href": "https://horizon-testnet.stellar.org/operations/934447444660225"
556
- },
557
- "transaction": {
558
- "href": "https://horizon-testnet.stellar.org/transactions/2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5"
559
- },
560
- "effects": {
561
- "href": "https://horizon-testnet.stellar.org/operations/934447444660225/effects"
562
- },
563
- "succeeds": {
564
- "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=934447444660225"
565
- },
566
- "precedes": {
567
- "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=934447444660225"
568
- }
569
- },
570
- "id": "934447444660225",
571
- "paging_token": "934447444660225",
572
- "source_account": "[source_address]",
573
- "type": "payment",
574
- "type_i": 1,
575
- "created_at": "2018-10-17T08:28:48Z",
576
- "transaction_hash": "2f08362ba0bea72fb4dbd1ba07ad0d33be6a0d24497950ac16bbbb6e620bd4f5",
577
- "asset_type": "native",
578
- "from": "[source_address]",
579
- "to": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
580
- "amount": "0.5500000"
581
- }
582
- ]
583
- }
584
- }
585
- http_version:
586
- recorded_at: Wed, 17 Oct 2018 08:28:50 GMT
587
- - request:
588
- method: get
589
- uri: https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO
590
- body:
591
- encoding: US-ASCII
592
- string: ''
593
- headers:
594
- User-Agent:
595
- - Faraday v0.15.2
596
- Accept:
597
- - application/hal+json,application/problem+json,application/json
598
- response:
599
- status:
600
- code: 200
601
- message: OK
602
- headers:
603
- Cache-Control:
604
- - no-cache, no-store, max-age=0
605
- Content-Disposition:
606
- - inline
607
- Content-Type:
608
- - application/hal+json; charset=utf-8
609
- Date:
610
- - Wed, 17 Oct 2018 08:28:52 GMT
611
- Vary:
612
- - Origin
613
- X-Ratelimit-Limit:
614
- - '17200'
615
- X-Ratelimit-Remaining:
616
- - '17182'
617
- X-Ratelimit-Reset:
618
- - '3338'
619
- Content-Length:
620
- - '2343'
621
- Connection:
622
- - keep-alive
623
- body:
624
- encoding: ASCII-8BIT
625
- string: |-
626
- {
627
- "_links": {
628
- "self": {
629
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO"
630
- },
631
- "transactions": {
632
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/transactions{?cursor,limit,order}",
633
- "templated": true
634
- },
635
- "operations": {
636
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/operations{?cursor,limit,order}",
637
- "templated": true
638
- },
639
- "payments": {
640
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/payments{?cursor,limit,order}",
641
- "templated": true
642
- },
643
- "effects": {
644
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/effects{?cursor,limit,order}",
645
- "templated": true
646
- },
647
- "offers": {
648
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/offers{?cursor,limit,order}",
649
- "templated": true
650
- },
651
- "trades": {
652
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/trades{?cursor,limit,order}",
653
- "templated": true
654
- },
655
- "data": {
656
- "href": "https://horizon-testnet.stellar.org/accounts/GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO/data/{key}",
657
- "templated": true
658
- }
659
- },
660
- "id": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
661
- "paging_token": "",
662
- "account_id": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
663
- "sequence": "934443149688832",
664
- "subentry_count": 0,
665
- "thresholds": {
666
- "low_threshold": 0,
667
- "med_threshold": 0,
668
- "high_threshold": 0
669
- },
670
- "flags": {
671
- "auth_required": false,
672
- "auth_revocable": false
673
- },
674
- "balances": [
675
- {
676
- "balance": "1.5500000",
677
- "buying_liabilities": "0.0000000",
678
- "selling_liabilities": "0.0000000",
679
- "asset_type": "native"
680
- }
681
- ],
682
- "signers": [
683
- {
684
- "public_key": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
685
- "weight": 1,
686
- "key": "GB6UTKNWGSOJ5TH3T2RTI4IUBHOLRLTMTVOZYFO47ZBXBPISR54K4QFO",
687
- "type": "ed25519_public_key"
688
- }
689
- ],
690
- "data": {}
691
- }
692
- http_version:
693
- recorded_at: Wed, 17 Oct 2018 08:28:52 GMT
694
- recorded_with: VCR 3.0.3