keoken 0.2.8 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardoc/checksums +11 -11
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +4 -1
- data/doc/Bitcoin/Script.html +1 -1
- data/doc/Keoken/Backend/Base.html +67 -1
- data/doc/Keoken/Backend/BitcoinRuby/Transaction.html +2 -2
- data/doc/Keoken/Backend/BitcoinRuby.html +1 -1
- data/doc/Keoken/Backend/Trezor/Transaction.html +59 -27
- data/doc/Keoken/Backend/Trezor.html +1 -1
- data/doc/Keoken/Backend.html +1 -1
- data/doc/Keoken/Bitprim/Transaction.html +1 -1
- data/doc/Keoken/Bitprim.html +1 -1
- data/doc/Keoken/Error/DataNotParsed.html +202 -0
- data/doc/Keoken/Error/IdNotFound.html +202 -0
- data/doc/Keoken/Error/NameNotFound.html +202 -0
- data/doc/Keoken/Error/OutputNotFound.html +202 -0
- data/doc/Keoken/Error.html +117 -0
- data/doc/Keoken/Parser.html +1 -1
- data/doc/Keoken/Token.html +7 -7
- data/doc/Keoken.html +4 -4
- data/doc/_index.html +26 -11
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +18 -10
- data/doc/top-level-namespace.html +1 -1
- data/keoken.gemspec +1 -0
- data/lib/keoken/backend/trezor/transaction.rb +54 -24
- data/lib/keoken/version.rb +1 -1
- data/spec/keoken_spec.rb +81 -2
- metadata +20 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c66376786e50dcc5c5c2f7507eb72bdbf1878e8ede97fa216275457e1741b265
|
4
|
+
data.tar.gz: 0042ab2ded8364bead1a05f741e684c748fcf2f4092524af1f15d0430e6a0eeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c493565683f3efbd4d0121bc667fb29cb25cbc16f4b4a0d53175b94306536f169dd76c7ada320f514892aeccdc15083bf05f53f62ad82301fb76cb742a4d7dda
|
7
|
+
data.tar.gz: 54e6e82aecdf2188ead3e6d2ee7fce7811786af7bda44bd1142bc0b12cdb8777ed5b168627776e2e175e9353790250f7f7ac9e34401d57a4cb62fb4b8e07e5b2
|
data/.yardoc/checksums
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
lib/keoken.rb
|
2
|
-
lib/keoken/token.rb
|
3
|
-
lib/keoken/parser.rb
|
4
|
-
lib/keoken/version.rb
|
5
|
-
lib/keoken/backend/base.rb
|
6
|
-
lib/keoken/bitprim/transaction.rb
|
7
|
-
lib/keoken/errors/id_not_found.rb
|
8
|
-
lib/keoken/errors/name_not_found.rb
|
9
|
-
lib/keoken/errors/data_not_parsed.rb
|
10
|
-
lib/keoken/errors/output_not_found.rb
|
1
|
+
lib/keoken.rb 0e2ace517a587aba688bdf2e01e48f8be687a60f
|
2
|
+
lib/keoken/token.rb 516d87e73776f47473f286b981df8c0e17f6b2d8
|
3
|
+
lib/keoken/parser.rb ba84ce31888615635dac34c30bbf1d277923af9a
|
4
|
+
lib/keoken/version.rb a074541e63a8ae915519101437326b2162f19021
|
5
|
+
lib/keoken/backend/base.rb 0a31b5dff3804b8aaccb63cd2c12bf2ca9e1e91b
|
6
|
+
lib/keoken/bitprim/transaction.rb 1788be016e0c0c436ff1eb2e69084bf2183b8536
|
7
|
+
lib/keoken/errors/id_not_found.rb adc578b13b30214e2e21f4ea8b7fd6bfb13d8408
|
8
|
+
lib/keoken/errors/name_not_found.rb 1d241b0d3d9b893559641f43ab2518d577d0d57d
|
9
|
+
lib/keoken/errors/data_not_parsed.rb dfa878fa145f07de3801db093a825ade977ec985
|
10
|
+
lib/keoken/errors/output_not_found.rb da71c87e571d4736296558d8841cd67e0a4e48c8
|
11
11
|
lib/keoken/extensions/bitcoin/script.rb 16430adf292ff593b004914854759677653cd751
|
12
|
-
lib/keoken/backend/trezor/transaction.rb
|
12
|
+
lib/keoken/backend/trezor/transaction.rb a2cf6b00a54b54de60676b7bccbb672a3ecbadeb
|
13
13
|
lib/keoken/backend/bitcoin_ruby/transaction.rb 1b7935b960eb81944f4b95504336cbff771be462
|
data/.yardoc/object_types
CHANGED
Binary file
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
@@ -7,8 +7,9 @@ GIT
|
|
7
7
|
PATH
|
8
8
|
remote: .
|
9
9
|
specs:
|
10
|
-
keoken (0.2.
|
10
|
+
keoken (0.2.8)
|
11
11
|
bitcoin-ruby (~> 0.0.18)
|
12
|
+
money-tree (~> 0.10.0)
|
12
13
|
|
13
14
|
GEM
|
14
15
|
remote: https://rubygems.org/
|
@@ -22,6 +23,8 @@ GEM
|
|
22
23
|
diff-lcs (1.3)
|
23
24
|
ffi (1.9.25)
|
24
25
|
hashdiff (0.3.2)
|
26
|
+
money-tree (0.10.0)
|
27
|
+
ffi
|
25
28
|
public_suffix (3.0.3)
|
26
29
|
rake (12.3.2)
|
27
30
|
rspec (3.8.0)
|
data/doc/Bitcoin/Script.html
CHANGED
@@ -180,7 +180,7 @@
|
|
180
180
|
</div>
|
181
181
|
|
182
182
|
<div id="footer">
|
183
|
-
Generated on
|
183
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
184
184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
185
|
0.9.18 (ruby-2.3.3).
|
186
186
|
</div>
|
@@ -160,6 +160,31 @@
|
|
160
160
|
</li>
|
161
161
|
|
162
162
|
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#total_inputs_amount-instance_method" title="#total_inputs_amount (instance method)">#<strong>total_inputs_amount</strong> ⇒ Object </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<span class="summary_desc"><div class='inline'>Returns the value of attribute total_inputs_amount.</div></span>
|
184
|
+
|
185
|
+
</li>
|
186
|
+
|
187
|
+
|
163
188
|
</ul>
|
164
189
|
|
165
190
|
|
@@ -331,13 +356,54 @@
|
|
331
356
|
</table>
|
332
357
|
</div>
|
333
358
|
|
359
|
+
|
360
|
+
<span id="total_inputs_amount=-instance_method"></span>
|
361
|
+
<div class="method_details ">
|
362
|
+
<h3 class="signature " id="total_inputs_amount-instance_method">
|
363
|
+
|
364
|
+
#<strong>total_inputs_amount</strong> ⇒ <tt>Object</tt>
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
</h3><div class="docstring">
|
371
|
+
<div class="discussion">
|
372
|
+
Returns the value of attribute total_inputs_amount
|
373
|
+
|
374
|
+
</div>
|
375
|
+
</div>
|
376
|
+
<div class="tags">
|
377
|
+
|
378
|
+
|
379
|
+
</div><table class="source_code">
|
380
|
+
<tr>
|
381
|
+
<td>
|
382
|
+
<pre class="lines">
|
383
|
+
|
384
|
+
|
385
|
+
4
|
386
|
+
5
|
387
|
+
6</pre>
|
388
|
+
</td>
|
389
|
+
<td>
|
390
|
+
<pre class="code"><span class="info file"># File 'lib/keoken/backend/base.rb', line 4</span>
|
391
|
+
|
392
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_total_inputs_amount'>total_inputs_amount</span>
|
393
|
+
<span class='ivar'>@total_inputs_amount</span>
|
394
|
+
<span class='kw'>end</span></pre>
|
395
|
+
</td>
|
396
|
+
</tr>
|
397
|
+
</table>
|
398
|
+
</div>
|
399
|
+
|
334
400
|
</div>
|
335
401
|
|
336
402
|
|
337
403
|
</div>
|
338
404
|
|
339
405
|
<div id="footer">
|
340
|
-
Generated on
|
406
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
341
407
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
342
408
|
0.9.18 (ruby-2.3.3).
|
343
409
|
</div>
|
@@ -170,7 +170,7 @@
|
|
170
170
|
|
171
171
|
|
172
172
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="Keoken::Backend::Base (class)">Keoken::Backend::Base</a></span></h3>
|
173
|
-
<p class="inherited"><span class='object_link'><a href="../Base.html#bitprim_transaction-instance_method" title="Keoken::Backend::Base#bitprim_transaction (method)">#bitprim_transaction</a></span>, <span class='object_link'><a href="../Base.html#inputs-instance_method" title="Keoken::Backend::Base#inputs (method)">#inputs</a></span></p>
|
173
|
+
<p class="inherited"><span class='object_link'><a href="../Base.html#bitprim_transaction-instance_method" title="Keoken::Backend::Base#bitprim_transaction (method)">#bitprim_transaction</a></span>, <span class='object_link'><a href="../Base.html#inputs-instance_method" title="Keoken::Backend::Base#inputs (method)">#inputs</a></span>, <span class='object_link'><a href="../Base.html#total_inputs_amount-instance_method" title="Keoken::Backend::Base#total_inputs_amount (method)">#total_inputs_amount</a></span></p>
|
174
174
|
|
175
175
|
|
176
176
|
|
@@ -1153,7 +1153,7 @@
|
|
1153
1153
|
</div>
|
1154
1154
|
|
1155
1155
|
<div id="footer">
|
1156
|
-
Generated on
|
1156
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
1157
1157
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1158
1158
|
0.9.18 (ruby-2.3.3).
|
1159
1159
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.18 (ruby-2.3.3).
|
111
111
|
</div>
|
@@ -140,7 +140,7 @@
|
|
140
140
|
|
141
141
|
|
142
142
|
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Base.html" title="Keoken::Backend::Base (class)">Base</a></span></h3>
|
143
|
-
<p class="inherited"><span class='object_link'><a href="../Base.html#bitprim_transaction-instance_method" title="Keoken::Backend::Base#bitprim_transaction (method)">#bitprim_transaction</a></span>, <span class='object_link'><a href="../Base.html#inputs-instance_method" title="Keoken::Backend::Base#inputs (method)">#inputs</a></span></p>
|
143
|
+
<p class="inherited"><span class='object_link'><a href="../Base.html#bitprim_transaction-instance_method" title="Keoken::Backend::Base#bitprim_transaction (method)">#bitprim_transaction</a></span>, <span class='object_link'><a href="../Base.html#inputs-instance_method" title="Keoken::Backend::Base#inputs (method)">#inputs</a></span>, <span class='object_link'><a href="../Base.html#total_inputs_amount-instance_method" title="Keoken::Backend::Base#total_inputs_amount (method)">#total_inputs_amount</a></span></p>
|
144
144
|
|
145
145
|
|
146
146
|
|
@@ -154,7 +154,7 @@
|
|
154
154
|
<li class="public ">
|
155
155
|
<span class="summary_signature">
|
156
156
|
|
157
|
-
<a href="#build_for_creation-instance_method" title="#build_for_creation (instance method)">#<strong>build_for_creation</strong>(address, path, script) ⇒ Keoken::Backend::Trezor::Transaction </a>
|
157
|
+
<a href="#build_for_creation-instance_method" title="#build_for_creation (instance method)">#<strong>build_for_creation</strong>(address, path, script, xpubs = []) ⇒ Keoken::Backend::Trezor::Transaction </a>
|
158
158
|
|
159
159
|
|
160
160
|
|
@@ -176,7 +176,7 @@
|
|
176
176
|
<li class="public ">
|
177
177
|
<span class="summary_signature">
|
178
178
|
|
179
|
-
<a href="#build_for_send_amount-instance_method" title="#build_for_send_amount (instance method)">#<strong>build_for_send_amount</strong>(address, address_dest, path, script) ⇒ Keoken::Backend::Trezor::Transaction </a>
|
179
|
+
<a href="#build_for_send_amount-instance_method" title="#build_for_send_amount (instance method)">#<strong>build_for_send_amount</strong>(address, address_dest, path, script, xpubs = []) ⇒ Keoken::Backend::Trezor::Transaction </a>
|
180
180
|
|
181
181
|
|
182
182
|
|
@@ -245,12 +245,12 @@
|
|
245
245
|
<pre class="lines">
|
246
246
|
|
247
247
|
|
248
|
-
|
249
|
-
|
250
|
-
|
248
|
+
7
|
249
|
+
8
|
250
|
+
9</pre>
|
251
251
|
</td>
|
252
252
|
<td>
|
253
|
-
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line
|
253
|
+
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line 7</span>
|
254
254
|
|
255
255
|
<span class='kw'>def</span> <span class='id identifier rubyid_to_json'>to_json</span>
|
256
256
|
<span class='ivar'>@to_json</span>
|
@@ -270,7 +270,7 @@
|
|
270
270
|
<div class="method_details first">
|
271
271
|
<h3 class="signature first" id="build_for_creation-instance_method">
|
272
272
|
|
273
|
-
#<strong>build_for_creation</strong>(address, path, script) ⇒ <tt><span class='object_link'><a href="" title="Keoken::Backend::Trezor::Transaction (class)">Keoken::Backend::Trezor::Transaction</a></span></tt>
|
273
|
+
#<strong>build_for_creation</strong>(address, path, script, xpubs = []) ⇒ <tt><span class='object_link'><a href="" title="Keoken::Backend::Trezor::Transaction (class)">Keoken::Backend::Trezor::Transaction</a></span></tt>
|
274
274
|
|
275
275
|
|
276
276
|
|
@@ -328,6 +328,22 @@
|
|
328
328
|
|
329
329
|
</li>
|
330
330
|
|
331
|
+
<li>
|
332
|
+
|
333
|
+
<span class='name'>xpubs</span>
|
334
|
+
|
335
|
+
|
336
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
337
|
+
|
338
|
+
|
339
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
340
|
+
|
341
|
+
|
342
|
+
—
|
343
|
+
<div class='inline'>The xpubs corresponding to the multisig address.</div>
|
344
|
+
|
345
|
+
</li>
|
346
|
+
|
331
347
|
</ul>
|
332
348
|
|
333
349
|
<p class="tag_title">Returns:</p>
|
@@ -353,21 +369,21 @@
|
|
353
369
|
<pre class="lines">
|
354
370
|
|
355
371
|
|
356
|
-
15
|
357
|
-
16
|
358
|
-
17
|
359
372
|
18
|
360
373
|
19
|
361
|
-
20
|
374
|
+
20
|
375
|
+
21
|
376
|
+
22
|
377
|
+
23</pre>
|
362
378
|
</td>
|
363
379
|
<td>
|
364
|
-
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line
|
380
|
+
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line 18</span>
|
365
381
|
|
366
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_build_for_creation'>build_for_creation</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='rparen'>)</span>
|
382
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_build_for_creation'>build_for_creation</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_xpubs'>xpubs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
367
383
|
<span class='id identifier rubyid_build_inputs'>build_inputs</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
|
368
|
-
<span class='id identifier rubyid_total'>total</span><span class='comma'>,</span> <span class='id identifier rubyid_fee'>fee</span> <span class='op'>=</span> <span class='id identifier rubyid_build_fee'>build_fee</span><span class='lparen'>(</span><span class='
|
384
|
+
<span class='id identifier rubyid_total'>total</span><span class='comma'>,</span> <span class='id identifier rubyid_fee'>fee</span> <span class='op'>=</span> <span class='id identifier rubyid_build_fee'>build_fee</span><span class='lparen'>(</span><span class='symbol'>:create</span><span class='rparen'>)</span>
|
369
385
|
<span class='id identifier rubyid_output_amount'>output_amount</span> <span class='op'>=</span> <span class='id identifier rubyid_total'>total</span> <span class='op'>-</span> <span class='id identifier rubyid_fee'>fee</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
370
|
-
<span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='ivar'>@inputs</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount'>output_amount</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='rparen'>)</span>
|
386
|
+
<span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='ivar'>@inputs</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount'>output_amount</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_xpubs'>xpubs</span><span class='rparen'>)</span>
|
371
387
|
<span class='kw'>end</span></pre>
|
372
388
|
</td>
|
373
389
|
</tr>
|
@@ -377,7 +393,7 @@
|
|
377
393
|
<div class="method_details ">
|
378
394
|
<h3 class="signature " id="build_for_send_amount-instance_method">
|
379
395
|
|
380
|
-
#<strong>build_for_send_amount</strong>(address, address_dest, path, script) ⇒ <tt><span class='object_link'><a href="" title="Keoken::Backend::Trezor::Transaction (class)">Keoken::Backend::Trezor::Transaction</a></span></tt>
|
396
|
+
#<strong>build_for_send_amount</strong>(address, address_dest, path, script, xpubs = []) ⇒ <tt><span class='object_link'><a href="" title="Keoken::Backend::Trezor::Transaction (class)">Keoken::Backend::Trezor::Transaction</a></span></tt>
|
381
397
|
|
382
398
|
|
383
399
|
|
@@ -449,6 +465,22 @@
|
|
449
465
|
|
450
466
|
</li>
|
451
467
|
|
468
|
+
<li>
|
469
|
+
|
470
|
+
<span class='name'>xpubs</span>
|
471
|
+
|
472
|
+
|
473
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
474
|
+
|
475
|
+
|
476
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
477
|
+
|
478
|
+
|
479
|
+
—
|
480
|
+
<div class='inline'>The xpubs corresponding to the multisig address.</div>
|
481
|
+
|
482
|
+
</li>
|
483
|
+
|
452
484
|
</ul>
|
453
485
|
|
454
486
|
<p class="tag_title">Returns:</p>
|
@@ -474,23 +506,23 @@
|
|
474
506
|
<pre class="lines">
|
475
507
|
|
476
508
|
|
477
|
-
31
|
478
|
-
32
|
479
|
-
33
|
480
|
-
34
|
481
509
|
35
|
482
510
|
36
|
483
|
-
37
|
511
|
+
37
|
512
|
+
38
|
513
|
+
39
|
514
|
+
40
|
515
|
+
41</pre>
|
484
516
|
</td>
|
485
517
|
<td>
|
486
|
-
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line
|
518
|
+
<pre class="code"><span class="info file"># File 'lib/keoken/backend/trezor/transaction.rb', line 35</span>
|
487
519
|
|
488
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_build_for_send_amount'>build_for_send_amount</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_address_dest'>address_dest</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='rparen'>)</span>
|
520
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_build_for_send_amount'>build_for_send_amount</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_address_dest'>address_dest</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_xpubs'>xpubs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
489
521
|
<span class='id identifier rubyid_build_inputs'>build_inputs</span><span class='lparen'>(</span><span class='id identifier rubyid_address'>address</span><span class='rparen'>)</span>
|
490
|
-
<span class='id identifier rubyid_total'>total</span><span class='comma'>,</span> <span class='id identifier rubyid_fee'>fee</span> <span class='op'>=</span> <span class='id identifier rubyid_build_fee'>build_fee</span><span class='lparen'>(</span><span class='
|
522
|
+
<span class='id identifier rubyid_total'>total</span><span class='comma'>,</span> <span class='id identifier rubyid_fee'>fee</span> <span class='op'>=</span> <span class='id identifier rubyid_build_fee'>build_fee</span><span class='lparen'>(</span><span class='symbol'>:send</span><span class='rparen'>)</span>
|
491
523
|
<span class='id identifier rubyid_output_amount'>output_amount</span> <span class='op'>=</span> <span class='id identifier rubyid_total'>total</span> <span class='op'>-</span> <span class='lparen'>(</span><span class='id identifier rubyid_fee'>fee</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>*</span> <span class='int'>2</span><span class='rparen'>)</span>
|
492
524
|
<span class='id identifier rubyid_output_amount_to_addr2'>output_amount_to_addr2</span> <span class='op'>=</span> <span class='id identifier rubyid_fee'>fee</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span>
|
493
|
-
<span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='ivar'>@inputs</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount'>output_amount</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount_to_addr2'>output_amount_to_addr2</span><span class='comma'>,</span> <span class='id identifier rubyid_address_dest'>address_dest</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='rparen'>)</span>
|
525
|
+
<span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='ivar'>@inputs</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount'>output_amount</span><span class='comma'>,</span> <span class='id identifier rubyid_address'>address</span><span class='comma'>,</span> <span class='id identifier rubyid_output_amount_to_addr2'>output_amount_to_addr2</span><span class='comma'>,</span> <span class='id identifier rubyid_address_dest'>address_dest</span><span class='comma'>,</span> <span class='id identifier rubyid_script'>script</span><span class='comma'>,</span> <span class='id identifier rubyid_xpubs'>xpubs</span><span class='rparen'>)</span>
|
494
526
|
<span class='kw'>end</span></pre>
|
495
527
|
</td>
|
496
528
|
</tr>
|
@@ -502,7 +534,7 @@
|
|
502
534
|
</div>
|
503
535
|
|
504
536
|
<div id="footer">
|
505
|
-
Generated on
|
537
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
506
538
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
507
539
|
0.9.18 (ruby-2.3.3).
|
508
540
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.18 (ruby-2.3.3).
|
111
111
|
</div>
|
data/doc/Keoken/Backend.html
CHANGED
@@ -109,7 +109,7 @@
|
|
109
109
|
</div>
|
110
110
|
|
111
111
|
<div id="footer">
|
112
|
-
Generated on
|
112
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
113
113
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
114
114
|
0.9.18 (ruby-2.3.3).
|
115
115
|
</div>
|
@@ -631,7 +631,7 @@
|
|
631
631
|
</div>
|
632
632
|
|
633
633
|
<div id="footer">
|
634
|
-
Generated on
|
634
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
635
635
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
636
636
|
0.9.18 (ruby-2.3.3).
|
637
637
|
</div>
|
data/doc/Keoken/Bitprim.html
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
109
109
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.18 (ruby-2.3.3).
|
111
111
|
</div>
|
@@ -0,0 +1,202 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Exception: Keoken::Error::DataNotParsed
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.18
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "Keoken::Error::DataNotParsed";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="../../class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (D)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../Keoken.html" title="Keoken (module)">Keoken</a></span></span> » <span class='title'><span class='object_link'><a href="../Error.html" title="Keoken::Error (module)">Error</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">DataNotParsed</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Exception: Keoken::Error::DataNotParsed
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">StandardError</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">StandardError</li>
|
78
|
+
|
79
|
+
<li class="next">Keoken::Error::DataNotParsed</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/keoken/errors/data_not_parsed.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Instance Method Summary
|
114
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(msg = 'Data can not be parsed') ⇒ DataNotParsed </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
<span class="note title constructor">constructor</span>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
<span class="summary_desc"><div class='inline'>A new instance of DataNotParsed.</div></span>
|
139
|
+
|
140
|
+
</li>
|
141
|
+
|
142
|
+
|
143
|
+
</ul>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<div id="constructor_details" class="method_details_list">
|
148
|
+
<h2>Constructor Details</h2>
|
149
|
+
|
150
|
+
<div class="method_details first">
|
151
|
+
<h3 class="signature first" id="initialize-instance_method">
|
152
|
+
|
153
|
+
#<strong>initialize</strong>(msg = 'Data can not be parsed') ⇒ <tt><span class='object_link'><a href="" title="Keoken::Error::DataNotParsed (class)">DataNotParsed</a></span></tt>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</h3><div class="docstring">
|
160
|
+
<div class="discussion">
|
161
|
+
Returns a new instance of DataNotParsed
|
162
|
+
|
163
|
+
</div>
|
164
|
+
</div>
|
165
|
+
<div class="tags">
|
166
|
+
|
167
|
+
|
168
|
+
</div><table class="source_code">
|
169
|
+
<tr>
|
170
|
+
<td>
|
171
|
+
<pre class="lines">
|
172
|
+
|
173
|
+
|
174
|
+
4
|
175
|
+
5
|
176
|
+
6</pre>
|
177
|
+
</td>
|
178
|
+
<td>
|
179
|
+
<pre class="code"><span class="info file"># File 'lib/keoken/errors/data_not_parsed.rb', line 4</span>
|
180
|
+
|
181
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_msg'>msg</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Data can not be parsed</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
182
|
+
<span class='kw'>super</span>
|
183
|
+
<span class='kw'>end</span></pre>
|
184
|
+
</td>
|
185
|
+
</tr>
|
186
|
+
</table>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
</div>
|
190
|
+
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
<div id="footer">
|
195
|
+
Generated on Fri Feb 8 14:51:35 2019 by
|
196
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
197
|
+
0.9.18 (ruby-2.3.3).
|
198
|
+
</div>
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</body>
|
202
|
+
</html>
|