bit_wallet 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/bit_wallet.gemspec +1 -1
- data/lib/bit_wallet/transaction.rb +2 -1
- data/lib/bit_wallet/version.rb +1 -1
- data/lib/bit_wallet/wallet.rb +1 -1
- data/spec/bit_wallet/account_spec.rb +13 -15
- data/spec/bit_wallet/wallet_spec.rb +11 -13
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_5/should_list_the_5_most_recent_transactions.yml +447 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +447 -0
- data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +558 -0
- metadata +11 -6
@@ -0,0 +1,558 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://admin1:123@localhost:19001/
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ! '{"method":"listaccounts","params":[1],"id":"jsonrpc"}'
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
Content-Length:
|
15
|
+
- '53'
|
16
|
+
User-Agent:
|
17
|
+
- Ruby
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Sun, 07 Apr 2013 09:54:37 +0000
|
25
|
+
Connection:
|
26
|
+
- keep-alive
|
27
|
+
Content-Length:
|
28
|
+
- '73'
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Server:
|
32
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
33
|
+
body:
|
34
|
+
encoding: US-ASCII
|
35
|
+
string: ! '{"result":{"":8605.00000000,"1":0.00000000},"error":null,"id":"jsonrpc"}
|
36
|
+
|
37
|
+
'
|
38
|
+
http_version:
|
39
|
+
recorded_at: Sun, 07 Apr 2013 09:54:37 GMT
|
40
|
+
- request:
|
41
|
+
method: post
|
42
|
+
uri: http://admin1:123@localhost:19001/
|
43
|
+
body:
|
44
|
+
encoding: US-ASCII
|
45
|
+
string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
|
46
|
+
headers:
|
47
|
+
Accept:
|
48
|
+
- ! '*/*; q=0.5, application/xml'
|
49
|
+
Accept-Encoding:
|
50
|
+
- gzip, deflate
|
51
|
+
Content-Length:
|
52
|
+
- '55'
|
53
|
+
User-Agent:
|
54
|
+
- Ruby
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
Date:
|
61
|
+
- Sun, 07 Apr 2013 09:54:37 +0000
|
62
|
+
Connection:
|
63
|
+
- keep-alive
|
64
|
+
Content-Length:
|
65
|
+
- '76'
|
66
|
+
Content-Type:
|
67
|
+
- application/json
|
68
|
+
Server:
|
69
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
70
|
+
body:
|
71
|
+
encoding: US-ASCII
|
72
|
+
string: ! '{"result":"mu4Md1J1FfuGfjhQPTzpDmoNb2oSJ4eyF6","error":null,"id":"jsonrpc"}
|
73
|
+
|
74
|
+
'
|
75
|
+
http_version:
|
76
|
+
recorded_at: Sun, 07 Apr 2013 09:54:37 GMT
|
77
|
+
- request:
|
78
|
+
method: post
|
79
|
+
uri: http://admin1:123@localhost:19001/
|
80
|
+
body:
|
81
|
+
encoding: US-ASCII
|
82
|
+
string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
|
83
|
+
headers:
|
84
|
+
Accept:
|
85
|
+
- ! '*/*; q=0.5, application/xml'
|
86
|
+
Accept-Encoding:
|
87
|
+
- gzip, deflate
|
88
|
+
Content-Length:
|
89
|
+
- '56'
|
90
|
+
User-Agent:
|
91
|
+
- Ruby
|
92
|
+
response:
|
93
|
+
status:
|
94
|
+
code: 200
|
95
|
+
message: OK
|
96
|
+
headers:
|
97
|
+
Date:
|
98
|
+
- Sun, 07 Apr 2013 09:54:37 +0000
|
99
|
+
Connection:
|
100
|
+
- keep-alive
|
101
|
+
Content-Length:
|
102
|
+
- '76'
|
103
|
+
Content-Type:
|
104
|
+
- application/json
|
105
|
+
Server:
|
106
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
107
|
+
body:
|
108
|
+
encoding: US-ASCII
|
109
|
+
string: ! '{"result":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","error":null,"id":"jsonrpc"}
|
110
|
+
|
111
|
+
'
|
112
|
+
http_version:
|
113
|
+
recorded_at: Sun, 07 Apr 2013 09:54:37 GMT
|
114
|
+
- request:
|
115
|
+
method: post
|
116
|
+
uri: http://admin1:123@localhost:19001/
|
117
|
+
body:
|
118
|
+
encoding: US-ASCII
|
119
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",1,0],"id":"jsonrpc"}'
|
120
|
+
headers:
|
121
|
+
Accept:
|
122
|
+
- ! '*/*; q=0.5, application/xml'
|
123
|
+
Accept-Encoding:
|
124
|
+
- gzip, deflate
|
125
|
+
Content-Length:
|
126
|
+
- '91'
|
127
|
+
User-Agent:
|
128
|
+
- Ruby
|
129
|
+
response:
|
130
|
+
status:
|
131
|
+
code: 200
|
132
|
+
message: OK
|
133
|
+
headers:
|
134
|
+
Date:
|
135
|
+
- Sun, 07 Apr 2013 09:54:37 +0000
|
136
|
+
Connection:
|
137
|
+
- keep-alive
|
138
|
+
Content-Length:
|
139
|
+
- '106'
|
140
|
+
Content-Type:
|
141
|
+
- application/json
|
142
|
+
Server:
|
143
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
144
|
+
body:
|
145
|
+
encoding: US-ASCII
|
146
|
+
string: ! '{"result":"245562e09f6ca809e95e022dff302f4a9cdbc4fcd6e694eaf985c9547c3c16c9","error":null,"id":"jsonrpc"}
|
147
|
+
|
148
|
+
'
|
149
|
+
http_version:
|
150
|
+
recorded_at: Sun, 07 Apr 2013 09:54:37 GMT
|
151
|
+
- request:
|
152
|
+
method: post
|
153
|
+
uri: http://admin1:123@localhost:19001/
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
156
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",2,0],"id":"jsonrpc"}'
|
157
|
+
headers:
|
158
|
+
Accept:
|
159
|
+
- ! '*/*; q=0.5, application/xml'
|
160
|
+
Accept-Encoding:
|
161
|
+
- gzip, deflate
|
162
|
+
Content-Length:
|
163
|
+
- '91'
|
164
|
+
User-Agent:
|
165
|
+
- Ruby
|
166
|
+
response:
|
167
|
+
status:
|
168
|
+
code: 200
|
169
|
+
message: OK
|
170
|
+
headers:
|
171
|
+
Date:
|
172
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
173
|
+
Connection:
|
174
|
+
- keep-alive
|
175
|
+
Content-Length:
|
176
|
+
- '106'
|
177
|
+
Content-Type:
|
178
|
+
- application/json
|
179
|
+
Server:
|
180
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
181
|
+
body:
|
182
|
+
encoding: US-ASCII
|
183
|
+
string: ! '{"result":"8a508cbbc54e17c6fcbf96f1f425a588f34dc98923d45a1184d5c2a0c57c3b94","error":null,"id":"jsonrpc"}
|
184
|
+
|
185
|
+
'
|
186
|
+
http_version:
|
187
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
188
|
+
- request:
|
189
|
+
method: post
|
190
|
+
uri: http://admin1:123@localhost:19001/
|
191
|
+
body:
|
192
|
+
encoding: US-ASCII
|
193
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",3,0],"id":"jsonrpc"}'
|
194
|
+
headers:
|
195
|
+
Accept:
|
196
|
+
- ! '*/*; q=0.5, application/xml'
|
197
|
+
Accept-Encoding:
|
198
|
+
- gzip, deflate
|
199
|
+
Content-Length:
|
200
|
+
- '91'
|
201
|
+
User-Agent:
|
202
|
+
- Ruby
|
203
|
+
response:
|
204
|
+
status:
|
205
|
+
code: 200
|
206
|
+
message: OK
|
207
|
+
headers:
|
208
|
+
Date:
|
209
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
210
|
+
Connection:
|
211
|
+
- keep-alive
|
212
|
+
Content-Length:
|
213
|
+
- '106'
|
214
|
+
Content-Type:
|
215
|
+
- application/json
|
216
|
+
Server:
|
217
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
218
|
+
body:
|
219
|
+
encoding: US-ASCII
|
220
|
+
string: ! '{"result":"0805afb41593787763425ea9a748417d88e669bd4c38094e5bb0debfc5c92bb0","error":null,"id":"jsonrpc"}
|
221
|
+
|
222
|
+
'
|
223
|
+
http_version:
|
224
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
225
|
+
- request:
|
226
|
+
method: post
|
227
|
+
uri: http://admin1:123@localhost:19001/
|
228
|
+
body:
|
229
|
+
encoding: US-ASCII
|
230
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",4,0],"id":"jsonrpc"}'
|
231
|
+
headers:
|
232
|
+
Accept:
|
233
|
+
- ! '*/*; q=0.5, application/xml'
|
234
|
+
Accept-Encoding:
|
235
|
+
- gzip, deflate
|
236
|
+
Content-Length:
|
237
|
+
- '91'
|
238
|
+
User-Agent:
|
239
|
+
- Ruby
|
240
|
+
response:
|
241
|
+
status:
|
242
|
+
code: 200
|
243
|
+
message: OK
|
244
|
+
headers:
|
245
|
+
Date:
|
246
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
247
|
+
Connection:
|
248
|
+
- keep-alive
|
249
|
+
Content-Length:
|
250
|
+
- '106'
|
251
|
+
Content-Type:
|
252
|
+
- application/json
|
253
|
+
Server:
|
254
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
255
|
+
body:
|
256
|
+
encoding: US-ASCII
|
257
|
+
string: ! '{"result":"d30f5fc910fbf760c6c5093254df30622c4f4bbaa27067c87bc0958adfd4cedb","error":null,"id":"jsonrpc"}
|
258
|
+
|
259
|
+
'
|
260
|
+
http_version:
|
261
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
262
|
+
- request:
|
263
|
+
method: post
|
264
|
+
uri: http://admin1:123@localhost:19001/
|
265
|
+
body:
|
266
|
+
encoding: US-ASCII
|
267
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",5,0],"id":"jsonrpc"}'
|
268
|
+
headers:
|
269
|
+
Accept:
|
270
|
+
- ! '*/*; q=0.5, application/xml'
|
271
|
+
Accept-Encoding:
|
272
|
+
- gzip, deflate
|
273
|
+
Content-Length:
|
274
|
+
- '91'
|
275
|
+
User-Agent:
|
276
|
+
- Ruby
|
277
|
+
response:
|
278
|
+
status:
|
279
|
+
code: 200
|
280
|
+
message: OK
|
281
|
+
headers:
|
282
|
+
Date:
|
283
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
284
|
+
Connection:
|
285
|
+
- keep-alive
|
286
|
+
Content-Length:
|
287
|
+
- '106'
|
288
|
+
Content-Type:
|
289
|
+
- application/json
|
290
|
+
Server:
|
291
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
292
|
+
body:
|
293
|
+
encoding: US-ASCII
|
294
|
+
string: ! '{"result":"fd4bfbd3e710cf3dc7b0472ad747cc5a2f9ee81529a7b6acb3e95b4f5d2d759b","error":null,"id":"jsonrpc"}
|
295
|
+
|
296
|
+
'
|
297
|
+
http_version:
|
298
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
299
|
+
- request:
|
300
|
+
method: post
|
301
|
+
uri: http://admin1:123@localhost:19001/
|
302
|
+
body:
|
303
|
+
encoding: US-ASCII
|
304
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",6,0],"id":"jsonrpc"}'
|
305
|
+
headers:
|
306
|
+
Accept:
|
307
|
+
- ! '*/*; q=0.5, application/xml'
|
308
|
+
Accept-Encoding:
|
309
|
+
- gzip, deflate
|
310
|
+
Content-Length:
|
311
|
+
- '91'
|
312
|
+
User-Agent:
|
313
|
+
- Ruby
|
314
|
+
response:
|
315
|
+
status:
|
316
|
+
code: 200
|
317
|
+
message: OK
|
318
|
+
headers:
|
319
|
+
Date:
|
320
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
321
|
+
Connection:
|
322
|
+
- keep-alive
|
323
|
+
Content-Length:
|
324
|
+
- '106'
|
325
|
+
Content-Type:
|
326
|
+
- application/json
|
327
|
+
Server:
|
328
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
329
|
+
body:
|
330
|
+
encoding: US-ASCII
|
331
|
+
string: ! '{"result":"fd7ef56fb952f2e664dd42f54e2d0f65b14fba342c095b83b89b52322fb729ff","error":null,"id":"jsonrpc"}
|
332
|
+
|
333
|
+
'
|
334
|
+
http_version:
|
335
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
336
|
+
- request:
|
337
|
+
method: post
|
338
|
+
uri: http://admin1:123@localhost:19001/
|
339
|
+
body:
|
340
|
+
encoding: US-ASCII
|
341
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",7,0],"id":"jsonrpc"}'
|
342
|
+
headers:
|
343
|
+
Accept:
|
344
|
+
- ! '*/*; q=0.5, application/xml'
|
345
|
+
Accept-Encoding:
|
346
|
+
- gzip, deflate
|
347
|
+
Content-Length:
|
348
|
+
- '91'
|
349
|
+
User-Agent:
|
350
|
+
- Ruby
|
351
|
+
response:
|
352
|
+
status:
|
353
|
+
code: 200
|
354
|
+
message: OK
|
355
|
+
headers:
|
356
|
+
Date:
|
357
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
358
|
+
Connection:
|
359
|
+
- keep-alive
|
360
|
+
Content-Length:
|
361
|
+
- '106'
|
362
|
+
Content-Type:
|
363
|
+
- application/json
|
364
|
+
Server:
|
365
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
366
|
+
body:
|
367
|
+
encoding: US-ASCII
|
368
|
+
string: ! '{"result":"a9080740777a356d3f7827d004440a9e09f4aded5f854f24f48ef6ccce24331b","error":null,"id":"jsonrpc"}
|
369
|
+
|
370
|
+
'
|
371
|
+
http_version:
|
372
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
373
|
+
- request:
|
374
|
+
method: post
|
375
|
+
uri: http://admin1:123@localhost:19001/
|
376
|
+
body:
|
377
|
+
encoding: US-ASCII
|
378
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",8,0],"id":"jsonrpc"}'
|
379
|
+
headers:
|
380
|
+
Accept:
|
381
|
+
- ! '*/*; q=0.5, application/xml'
|
382
|
+
Accept-Encoding:
|
383
|
+
- gzip, deflate
|
384
|
+
Content-Length:
|
385
|
+
- '91'
|
386
|
+
User-Agent:
|
387
|
+
- Ruby
|
388
|
+
response:
|
389
|
+
status:
|
390
|
+
code: 200
|
391
|
+
message: OK
|
392
|
+
headers:
|
393
|
+
Date:
|
394
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
395
|
+
Connection:
|
396
|
+
- keep-alive
|
397
|
+
Content-Length:
|
398
|
+
- '106'
|
399
|
+
Content-Type:
|
400
|
+
- application/json
|
401
|
+
Server:
|
402
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
403
|
+
body:
|
404
|
+
encoding: US-ASCII
|
405
|
+
string: ! '{"result":"160ba0f36261c70aecd6bed1ddc698464cb6b0984b884c576bd98639ac0e7991","error":null,"id":"jsonrpc"}
|
406
|
+
|
407
|
+
'
|
408
|
+
http_version:
|
409
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
410
|
+
- request:
|
411
|
+
method: post
|
412
|
+
uri: http://admin1:123@localhost:19001/
|
413
|
+
body:
|
414
|
+
encoding: US-ASCII
|
415
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",9,0],"id":"jsonrpc"}'
|
416
|
+
headers:
|
417
|
+
Accept:
|
418
|
+
- ! '*/*; q=0.5, application/xml'
|
419
|
+
Accept-Encoding:
|
420
|
+
- gzip, deflate
|
421
|
+
Content-Length:
|
422
|
+
- '91'
|
423
|
+
User-Agent:
|
424
|
+
- Ruby
|
425
|
+
response:
|
426
|
+
status:
|
427
|
+
code: 200
|
428
|
+
message: OK
|
429
|
+
headers:
|
430
|
+
Date:
|
431
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
432
|
+
Connection:
|
433
|
+
- keep-alive
|
434
|
+
Content-Length:
|
435
|
+
- '106'
|
436
|
+
Content-Type:
|
437
|
+
- application/json
|
438
|
+
Server:
|
439
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
440
|
+
body:
|
441
|
+
encoding: US-ASCII
|
442
|
+
string: ! '{"result":"1049d96fa622bdb9ef2d42443b8a745c788f530d80b17f0af8c2dd48caab25a0","error":null,"id":"jsonrpc"}
|
443
|
+
|
444
|
+
'
|
445
|
+
http_version:
|
446
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
447
|
+
- request:
|
448
|
+
method: post
|
449
|
+
uri: http://admin1:123@localhost:19001/
|
450
|
+
body:
|
451
|
+
encoding: US-ASCII
|
452
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",10,0],"id":"jsonrpc"}'
|
453
|
+
headers:
|
454
|
+
Accept:
|
455
|
+
- ! '*/*; q=0.5, application/xml'
|
456
|
+
Accept-Encoding:
|
457
|
+
- gzip, deflate
|
458
|
+
Content-Length:
|
459
|
+
- '92'
|
460
|
+
User-Agent:
|
461
|
+
- Ruby
|
462
|
+
response:
|
463
|
+
status:
|
464
|
+
code: 200
|
465
|
+
message: OK
|
466
|
+
headers:
|
467
|
+
Date:
|
468
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
469
|
+
Connection:
|
470
|
+
- keep-alive
|
471
|
+
Content-Length:
|
472
|
+
- '106'
|
473
|
+
Content-Type:
|
474
|
+
- application/json
|
475
|
+
Server:
|
476
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
477
|
+
body:
|
478
|
+
encoding: US-ASCII
|
479
|
+
string: ! '{"result":"73d054a4f46fa291436f80e5be46a0aae12382cf2dd476618baaebc11126c2fd","error":null,"id":"jsonrpc"}
|
480
|
+
|
481
|
+
'
|
482
|
+
http_version:
|
483
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
484
|
+
- request:
|
485
|
+
method: post
|
486
|
+
uri: http://admin1:123@localhost:19001/
|
487
|
+
body:
|
488
|
+
encoding: US-ASCII
|
489
|
+
string: ! '{"method":"sendfrom","params":["","ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx",11,0],"id":"jsonrpc"}'
|
490
|
+
headers:
|
491
|
+
Accept:
|
492
|
+
- ! '*/*; q=0.5, application/xml'
|
493
|
+
Accept-Encoding:
|
494
|
+
- gzip, deflate
|
495
|
+
Content-Length:
|
496
|
+
- '92'
|
497
|
+
User-Agent:
|
498
|
+
- Ruby
|
499
|
+
response:
|
500
|
+
status:
|
501
|
+
code: 200
|
502
|
+
message: OK
|
503
|
+
headers:
|
504
|
+
Date:
|
505
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
506
|
+
Connection:
|
507
|
+
- keep-alive
|
508
|
+
Content-Length:
|
509
|
+
- '106'
|
510
|
+
Content-Type:
|
511
|
+
- application/json
|
512
|
+
Server:
|
513
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
514
|
+
body:
|
515
|
+
encoding: US-ASCII
|
516
|
+
string: ! '{"result":"210639741a72723a1a99d83499c25f249e06dc2b86c5ba44c2894ae449802c54","error":null,"id":"jsonrpc"}
|
517
|
+
|
518
|
+
'
|
519
|
+
http_version:
|
520
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
521
|
+
- request:
|
522
|
+
method: post
|
523
|
+
uri: http://admin1:123@localhost:19001/
|
524
|
+
body:
|
525
|
+
encoding: US-ASCII
|
526
|
+
string: ! '{"method":"listtransactions","params":["*",5],"id":"jsonrpc"}'
|
527
|
+
headers:
|
528
|
+
Accept:
|
529
|
+
- ! '*/*; q=0.5, application/xml'
|
530
|
+
Accept-Encoding:
|
531
|
+
- gzip, deflate
|
532
|
+
Content-Length:
|
533
|
+
- '61'
|
534
|
+
User-Agent:
|
535
|
+
- Ruby
|
536
|
+
response:
|
537
|
+
status:
|
538
|
+
code: 200
|
539
|
+
message: OK
|
540
|
+
headers:
|
541
|
+
Date:
|
542
|
+
- Sun, 07 Apr 2013 09:54:38 +0000
|
543
|
+
Connection:
|
544
|
+
- keep-alive
|
545
|
+
Content-Length:
|
546
|
+
- '1287'
|
547
|
+
Content-Type:
|
548
|
+
- application/json
|
549
|
+
Server:
|
550
|
+
- bitcoin-json-rpc/v0.7.2-beta
|
551
|
+
body:
|
552
|
+
encoding: US-ASCII
|
553
|
+
string: ! '{"result":[{"account":"","address":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","category":"send","amount":-9.00000000,"fee":0.00000000,"confirmations":0,"txid":"1049d96fa622bdb9ef2d42443b8a745c788f530d80b17f0af8c2dd48caab25a0","time":1365328478,"timereceived":1365328478},{"account":"1","address":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","category":"receive","amount":10.00000000,"confirmations":0,"txid":"73d054a4f46fa291436f80e5be46a0aae12382cf2dd476618baaebc11126c2fd","time":1365328478,"timereceived":1365328478},{"account":"","address":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","category":"send","amount":-10.00000000,"fee":0.00000000,"confirmations":0,"txid":"73d054a4f46fa291436f80e5be46a0aae12382cf2dd476618baaebc11126c2fd","time":1365328478,"timereceived":1365328478},{"account":"1","address":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","category":"receive","amount":11.00000000,"confirmations":0,"txid":"210639741a72723a1a99d83499c25f249e06dc2b86c5ba44c2894ae449802c54","time":1365328478,"timereceived":1365328478},{"account":"","address":"ms46ZftQP5cnZR8eaSwNuEQNjY33FSpFMx","category":"send","amount":-11.00000000,"fee":0.00000000,"confirmations":0,"txid":"210639741a72723a1a99d83499c25f249e06dc2b86c5ba44c2894ae449802c54","time":1365328478,"timereceived":1365328478}],"error":null,"id":"jsonrpc"}
|
554
|
+
|
555
|
+
'
|
556
|
+
http_version:
|
557
|
+
recorded_at: Sun, 07 Apr 2013 09:54:38 GMT
|
558
|
+
recorded_with: VCR 2.4.0
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bit_wallet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bitcoin-client
|
@@ -98,7 +98,7 @@ dependencies:
|
|
98
98
|
requirements:
|
99
99
|
- - '='
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.
|
101
|
+
version: 0.4.0
|
102
102
|
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
requirements:
|
107
107
|
- - '='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
109
|
+
version: 0.4.0
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: vcr
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,6 +176,8 @@ files:
|
|
176
176
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml
|
177
177
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml
|
178
178
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml
|
179
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_5/should_list_the_5_most_recent_transactions.yml
|
180
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml
|
179
181
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml
|
180
182
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml
|
181
183
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml
|
@@ -199,6 +201,7 @@ files:
|
|
199
201
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml
|
200
202
|
- spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml
|
201
203
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml
|
204
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml
|
202
205
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml
|
203
206
|
- spec/spec_helper.rb
|
204
207
|
homepage: ''
|
@@ -221,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
224
|
version: '0'
|
222
225
|
requirements: []
|
223
226
|
rubyforge_project:
|
224
|
-
rubygems_version: 1.8.
|
227
|
+
rubygems_version: 1.8.24
|
225
228
|
signing_key:
|
226
229
|
specification_version: 3
|
227
230
|
summary: Ruby-esque handling of Bitcoin wallet.
|
@@ -239,6 +242,8 @@ test_files:
|
|
239
242
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml
|
240
243
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml
|
241
244
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml
|
245
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_5/should_list_the_5_most_recent_transactions.yml
|
246
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml
|
242
247
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml
|
243
248
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml
|
244
249
|
- spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml
|
@@ -262,6 +267,6 @@ test_files:
|
|
262
267
|
- spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml
|
263
268
|
- spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml
|
264
269
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml
|
270
|
+
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml
|
265
271
|
- spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml
|
266
272
|
- spec/spec_helper.rb
|
267
|
-
has_rdoc:
|