nanook 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/nanook/version.rb +1 -1
- data/nanook.gemspec +1 -1
- metadata +1 -185
- data/docs/0.7.0/apple-touch-icon.png +0 -0
- data/docs/0.7.0/classes/Nanook.html +0 -572
- data/docs/0.7.0/classes/Nanook/Account.html +0 -909
- data/docs/0.7.0/classes/Nanook/Block.html +0 -717
- data/docs/0.7.0/classes/Nanook/Error.html +0 -84
- data/docs/0.7.0/classes/Nanook/Key.html +0 -253
- data/docs/0.7.0/classes/Nanook/Node.html +0 -657
- data/docs/0.7.0/classes/Nanook/Rpc.html +0 -247
- data/docs/0.7.0/classes/Nanook/Util.html +0 -197
- data/docs/0.7.0/classes/Nanook/Wallet.html +0 -986
- data/docs/0.7.0/classes/Nanook/WalletAccount.html +0 -446
- data/docs/0.7.0/classes/Nanook/WorkPeer.html +0 -294
- data/docs/0.7.0/created.rid +0 -14
- data/docs/0.7.0/css/github.css +0 -123
- data/docs/0.7.0/css/main.css +0 -374
- data/docs/0.7.0/css/panel.css +0 -360
- data/docs/0.7.0/css/reset.css +0 -48
- data/docs/0.7.0/favicon.ico +0 -0
- data/docs/0.7.0/files/README_md.html +0 -418
- data/docs/0.7.0/files/lib/nanook/account_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/block_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/error_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/key_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/node_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/rpc_rb.html +0 -99
- data/docs/0.7.0/files/lib/nanook/util_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/version_rb.html +0 -84
- data/docs/0.7.0/files/lib/nanook/wallet_account_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/wallet_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook/work_peer_rb.html +0 -89
- data/docs/0.7.0/files/lib/nanook_rb.html +0 -94
- data/docs/0.7.0/i/arrow-down.svg +0 -8
- data/docs/0.7.0/i/arrow-right.svg +0 -8
- data/docs/0.7.0/i/search.svg +0 -12
- data/docs/0.7.0/i/tree_bg.svg +0 -8
- data/docs/0.7.0/index.html +0 -11
- data/docs/0.7.0/js/highlight.pack.js +0 -1
- data/docs/0.7.0/js/jquery-1.3.2.min.js +0 -19
- data/docs/0.7.0/js/main.js +0 -25
- data/docs/0.7.0/js/navigation.js +0 -142
- data/docs/0.7.0/js/search_index.js +0 -1
- data/docs/0.7.0/js/searchdoc.js +0 -465
- data/docs/0.7.0/js/searcher.js +0 -229
- data/docs/0.7.0/panel/index.html +0 -47
- data/docs/0.7.0/panel/links.html +0 -32
- data/docs/0.7.0/panel/tree.js +0 -1
- data/docs/0.8.0/apple-touch-icon.png +0 -0
- data/docs/0.8.0/classes/Nanook.html +0 -621
- data/docs/0.8.0/classes/Nanook/Account.html +0 -971
- data/docs/0.8.0/classes/Nanook/Block.html +0 -759
- data/docs/0.8.0/classes/Nanook/Error.html +0 -84
- data/docs/0.8.0/classes/Nanook/Key.html +0 -295
- data/docs/0.8.0/classes/Nanook/Node.html +0 -657
- data/docs/0.8.0/classes/Nanook/Rpc.html +0 -247
- data/docs/0.8.0/classes/Nanook/Util.html +0 -264
- data/docs/0.8.0/classes/Nanook/Wallet.html +0 -1056
- data/docs/0.8.0/classes/Nanook/WalletAccount.html +0 -582
- data/docs/0.8.0/classes/Nanook/WorkPeer.html +0 -294
- data/docs/0.8.0/created.rid +0 -14
- data/docs/0.8.0/css/github.css +0 -123
- data/docs/0.8.0/css/main.css +0 -374
- data/docs/0.8.0/css/panel.css +0 -360
- data/docs/0.8.0/css/reset.css +0 -48
- data/docs/0.8.0/favicon.ico +0 -0
- data/docs/0.8.0/files/README_md.html +0 -423
- data/docs/0.8.0/files/lib/nanook/account_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/block_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/error_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/key_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/node_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/rpc_rb.html +0 -99
- data/docs/0.8.0/files/lib/nanook/util_rb.html +0 -97
- data/docs/0.8.0/files/lib/nanook/version_rb.html +0 -84
- data/docs/0.8.0/files/lib/nanook/wallet_account_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/wallet_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook/work_peer_rb.html +0 -89
- data/docs/0.8.0/files/lib/nanook_rb.html +0 -94
- data/docs/0.8.0/i/arrow-down.svg +0 -8
- data/docs/0.8.0/i/arrow-right.svg +0 -8
- data/docs/0.8.0/i/search.svg +0 -12
- data/docs/0.8.0/i/tree_bg.svg +0 -8
- data/docs/0.8.0/index.html +0 -11
- data/docs/0.8.0/js/highlight.pack.js +0 -1
- data/docs/0.8.0/js/jquery-1.3.2.min.js +0 -19
- data/docs/0.8.0/js/main.js +0 -25
- data/docs/0.8.0/js/navigation.js +0 -142
- data/docs/0.8.0/js/search_index.js +0 -1
- data/docs/0.8.0/js/searchdoc.js +0 -465
- data/docs/0.8.0/js/searcher.js +0 -229
- data/docs/0.8.0/panel/index.html +0 -47
- data/docs/0.8.0/panel/links.html +0 -32
- data/docs/0.8.0/panel/tree.js +0 -1
- data/docs/1.0.0/apple-touch-icon.png +0 -0
- data/docs/1.0.0/classes/Nanook.html +0 -621
- data/docs/1.0.0/classes/Nanook/Account.html +0 -989
- data/docs/1.0.0/classes/Nanook/Block.html +0 -929
- data/docs/1.0.0/classes/Nanook/Error.html +0 -84
- data/docs/1.0.0/classes/Nanook/Key.html +0 -295
- data/docs/1.0.0/classes/Nanook/Node.html +0 -657
- data/docs/1.0.0/classes/Nanook/Rpc.html +0 -247
- data/docs/1.0.0/classes/Nanook/Util.html +0 -264
- data/docs/1.0.0/classes/Nanook/Wallet.html +0 -1084
- data/docs/1.0.0/classes/Nanook/WalletAccount.html +0 -582
- data/docs/1.0.0/classes/Nanook/WorkPeer.html +0 -294
- data/docs/1.0.0/created.rid +0 -14
- data/docs/1.0.0/css/github.css +0 -123
- data/docs/1.0.0/css/main.css +0 -374
- data/docs/1.0.0/css/panel.css +0 -360
- data/docs/1.0.0/css/reset.css +0 -48
- data/docs/1.0.0/favicon.ico +0 -0
- data/docs/1.0.0/files/README_md.html +0 -443
- data/docs/1.0.0/files/lib/nanook/account_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/block_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/error_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/key_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/node_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/rpc_rb.html +0 -99
- data/docs/1.0.0/files/lib/nanook/util_rb.html +0 -97
- data/docs/1.0.0/files/lib/nanook/version_rb.html +0 -84
- data/docs/1.0.0/files/lib/nanook/wallet_account_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/wallet_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook/work_peer_rb.html +0 -89
- data/docs/1.0.0/files/lib/nanook_rb.html +0 -94
- data/docs/1.0.0/i/arrow-down.svg +0 -8
- data/docs/1.0.0/i/arrow-right.svg +0 -8
- data/docs/1.0.0/i/search.svg +0 -12
- data/docs/1.0.0/i/tree_bg.svg +0 -8
- data/docs/1.0.0/index.html +0 -11
- data/docs/1.0.0/js/highlight.pack.js +0 -1
- data/docs/1.0.0/js/jquery-1.3.2.min.js +0 -19
- data/docs/1.0.0/js/main.js +0 -25
- data/docs/1.0.0/js/navigation.js +0 -142
- data/docs/1.0.0/js/search_index.js +0 -1
- data/docs/1.0.0/js/searchdoc.js +0 -465
- data/docs/1.0.0/js/searcher.js +0 -229
- data/docs/1.0.0/panel/index.html +0 -47
- data/docs/1.0.0/panel/links.html +0 -32
- data/docs/1.0.0/panel/tree.js +0 -1
- data/docs/apple-touch-icon.png +0 -0
- data/docs/classes/Nanook.html +0 -572
- data/docs/classes/Nanook/Account.html +0 -907
- data/docs/classes/Nanook/Block.html +0 -717
- data/docs/classes/Nanook/Error.html +0 -84
- data/docs/classes/Nanook/Key.html +0 -253
- data/docs/classes/Nanook/Node.html +0 -657
- data/docs/classes/Nanook/Rpc.html +0 -247
- data/docs/classes/Nanook/Util.html +0 -197
- data/docs/classes/Nanook/Wallet.html +0 -778
- data/docs/classes/Nanook/WalletAccount.html +0 -447
- data/docs/classes/Nanook/WorkPeer.html +0 -294
- data/docs/created.rid +0 -14
- data/docs/css/github.css +0 -123
- data/docs/css/main.css +0 -374
- data/docs/css/panel.css +0 -360
- data/docs/css/reset.css +0 -48
- data/docs/favicon.ico +0 -0
- data/docs/files/README_md.html +0 -408
- data/docs/files/lib/nanook/account_rb.html +0 -89
- data/docs/files/lib/nanook/block_rb.html +0 -89
- data/docs/files/lib/nanook/error_rb.html +0 -89
- data/docs/files/lib/nanook/key_rb.html +0 -89
- data/docs/files/lib/nanook/node_rb.html +0 -89
- data/docs/files/lib/nanook/rpc_rb.html +0 -99
- data/docs/files/lib/nanook/util_rb.html +0 -89
- data/docs/files/lib/nanook/version_rb.html +0 -84
- data/docs/files/lib/nanook/wallet_account_rb.html +0 -89
- data/docs/files/lib/nanook/wallet_rb.html +0 -89
- data/docs/files/lib/nanook/work_peer_rb.html +0 -89
- data/docs/files/lib/nanook_rb.html +0 -94
- data/docs/i/arrow-down.svg +0 -8
- data/docs/i/arrow-right.svg +0 -8
- data/docs/i/search.svg +0 -12
- data/docs/i/tree_bg.svg +0 -8
- data/docs/index.html +0 -11
- data/docs/js/highlight.pack.js +0 -1
- data/docs/js/jquery-1.3.2.min.js +0 -19
- data/docs/js/main.js +0 -25
- data/docs/js/navigation.js +0 -142
- data/docs/js/search_index.js +0 -1
- data/docs/js/searchdoc.js +0 -465
- data/docs/js/searcher.js +0 -229
- data/docs/panel/index.html +0 -47
- data/docs/panel/links.html +0 -32
- data/docs/panel/tree.js +0 -1
data/docs/1.0.0/css/panel.css
DELETED
@@ -1,360 +0,0 @@
|
|
1
|
-
/* Panel (begin) */
|
2
|
-
.panel
|
3
|
-
{
|
4
|
-
position: absolute;
|
5
|
-
width: 100%;
|
6
|
-
height: 100%;
|
7
|
-
top: 0;
|
8
|
-
left: 0;
|
9
|
-
background: #FFF;
|
10
|
-
z-index: 2;
|
11
|
-
font-family: "Helvetica Neue", "Arial", sans-serif;
|
12
|
-
overflow-x: hidden;
|
13
|
-
}
|
14
|
-
|
15
|
-
.panel_tree .results,
|
16
|
-
.panel_results .tree
|
17
|
-
{
|
18
|
-
display: none;
|
19
|
-
}
|
20
|
-
|
21
|
-
/* Header with search box (begin) */
|
22
|
-
.panel .header
|
23
|
-
{
|
24
|
-
background: white url(../i/search.svg) no-repeat;
|
25
|
-
background-position: 5px;
|
26
|
-
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
|
27
|
-
height: 40px;
|
28
|
-
width: 100%;
|
29
|
-
position: absolute;
|
30
|
-
left: 0; top: 0;
|
31
|
-
z-index: 300;
|
32
|
-
}
|
33
|
-
|
34
|
-
.panel .header input
|
35
|
-
{
|
36
|
-
border: 0;
|
37
|
-
box-sizing: border-box;
|
38
|
-
display: inline-block;
|
39
|
-
font-size: 14px;
|
40
|
-
height: 40px;
|
41
|
-
width: 100%;
|
42
|
-
padding: 0 5px;
|
43
|
-
margin: 0;
|
44
|
-
margin-left: 25px;
|
45
|
-
outline: none;
|
46
|
-
}
|
47
|
-
|
48
|
-
/* Header with search box (end) */
|
49
|
-
|
50
|
-
|
51
|
-
/* Results (begin) */
|
52
|
-
.panel .result
|
53
|
-
{
|
54
|
-
position: absolute;
|
55
|
-
top: 40px;
|
56
|
-
bottom: 0;
|
57
|
-
left: 0;
|
58
|
-
width: 100%;
|
59
|
-
overflow-y: scroll;
|
60
|
-
overflow-x: hidden;
|
61
|
-
z-index: 2;
|
62
|
-
}
|
63
|
-
|
64
|
-
.panel .result ul
|
65
|
-
{
|
66
|
-
font-size: 0.8em;
|
67
|
-
width: 100%;
|
68
|
-
}
|
69
|
-
|
70
|
-
.panel .result ul li
|
71
|
-
{
|
72
|
-
height: 46px;
|
73
|
-
overflow: hidden;
|
74
|
-
padding: 4px 10px 0 10px;
|
75
|
-
cursor: pointer;
|
76
|
-
}
|
77
|
-
|
78
|
-
.panel .result ul li:nth-child(2n) {
|
79
|
-
background: #F0EFEF;
|
80
|
-
}
|
81
|
-
|
82
|
-
.panel .result ul li h1
|
83
|
-
{
|
84
|
-
font-size: 13px;
|
85
|
-
font-weight: normal;
|
86
|
-
color: #333;
|
87
|
-
margin-bottom: 2px;
|
88
|
-
white-space: nowrap;
|
89
|
-
}
|
90
|
-
|
91
|
-
.panel .result ul li p
|
92
|
-
{
|
93
|
-
font-size: 11px;
|
94
|
-
color: #333;
|
95
|
-
margin-bottom: 2px;
|
96
|
-
white-space: nowrap;
|
97
|
-
}
|
98
|
-
|
99
|
-
.panel .result ul li h1 i,
|
100
|
-
.panel .result ul li p.snippet
|
101
|
-
{
|
102
|
-
color: #777;
|
103
|
-
}
|
104
|
-
|
105
|
-
.panel .result ul li b
|
106
|
-
{
|
107
|
-
color: #000;
|
108
|
-
}
|
109
|
-
|
110
|
-
.panel .result ul li.current
|
111
|
-
{
|
112
|
-
background: #B61D1D;
|
113
|
-
}
|
114
|
-
|
115
|
-
.panel .result ul li.current h1,
|
116
|
-
.panel .result ul li.current p
|
117
|
-
{
|
118
|
-
color: #D9D9D9;
|
119
|
-
}
|
120
|
-
|
121
|
-
.panel .result ul li.current h1 i,
|
122
|
-
.panel .result ul li.current p.snippet
|
123
|
-
{
|
124
|
-
color: #ACACAC;
|
125
|
-
}
|
126
|
-
|
127
|
-
.panel .result ul li.current b
|
128
|
-
{
|
129
|
-
color: #FFF;
|
130
|
-
}
|
131
|
-
|
132
|
-
|
133
|
-
.panel .result ul li:hover,
|
134
|
-
.panel .result ul li.selected
|
135
|
-
{
|
136
|
-
background: #d0d0d0;
|
137
|
-
}
|
138
|
-
|
139
|
-
.panel .result ul li.current:hover
|
140
|
-
{
|
141
|
-
background: #B61D1D;
|
142
|
-
}
|
143
|
-
|
144
|
-
.panel .result ul li .badge
|
145
|
-
{
|
146
|
-
margin-right: 0.4em;
|
147
|
-
margin-left: -0.2em;
|
148
|
-
padding: 0 0.2em;
|
149
|
-
color: #000;
|
150
|
-
border-radius: 3px;
|
151
|
-
}
|
152
|
-
|
153
|
-
.panel .result ul li .badge_1
|
154
|
-
{
|
155
|
-
background: #ACDBF4;
|
156
|
-
}
|
157
|
-
|
158
|
-
.panel .result ul li.current .badge_1
|
159
|
-
{
|
160
|
-
background: #97BFD7;
|
161
|
-
}
|
162
|
-
|
163
|
-
.panel .result ul li .badge_2
|
164
|
-
{
|
165
|
-
background: #ACF3C3;
|
166
|
-
}
|
167
|
-
|
168
|
-
.panel .result ul li.current .badge_2
|
169
|
-
{
|
170
|
-
background: #98D7AC;
|
171
|
-
}
|
172
|
-
|
173
|
-
.panel .result ul li .badge_3
|
174
|
-
{
|
175
|
-
background: #E0F3AC;
|
176
|
-
}
|
177
|
-
|
178
|
-
.panel .result ul li.current .badge_3
|
179
|
-
{
|
180
|
-
background: #C4D798;
|
181
|
-
}
|
182
|
-
|
183
|
-
.panel .result ul li .badge_4
|
184
|
-
{
|
185
|
-
background: #D7CA98;
|
186
|
-
}
|
187
|
-
|
188
|
-
.panel .result ul li.current .badge_4
|
189
|
-
{
|
190
|
-
background: #A6B0AC;
|
191
|
-
}
|
192
|
-
|
193
|
-
.panel .result ul li .badge_5
|
194
|
-
{
|
195
|
-
background: #F3C8AC;
|
196
|
-
}
|
197
|
-
|
198
|
-
.panel .result ul li.current .badge_5
|
199
|
-
{
|
200
|
-
background: #D7B198;
|
201
|
-
}
|
202
|
-
|
203
|
-
.panel .result ul li .badge_6
|
204
|
-
{
|
205
|
-
background: #F3ACC3;
|
206
|
-
}
|
207
|
-
|
208
|
-
.panel .result ul li.current .badge_6
|
209
|
-
{
|
210
|
-
background: #D798AB;
|
211
|
-
}
|
212
|
-
|
213
|
-
/* Results (end) */
|
214
|
-
|
215
|
-
/* Tree (begin) */ /**/
|
216
|
-
.panel .tree
|
217
|
-
{
|
218
|
-
background: white;
|
219
|
-
position: absolute;
|
220
|
-
top: 40px;
|
221
|
-
bottom: 0;
|
222
|
-
left: 0;
|
223
|
-
width: 100%;
|
224
|
-
overflow-y: scroll;
|
225
|
-
overflow-x: hidden;
|
226
|
-
z-index: 30;
|
227
|
-
}
|
228
|
-
|
229
|
-
.panel .tree ul:first-child
|
230
|
-
{
|
231
|
-
background: url(../i/tree_bg.svg);
|
232
|
-
background-size: 1px 60px;
|
233
|
-
}
|
234
|
-
|
235
|
-
.panel .tree li
|
236
|
-
{
|
237
|
-
cursor: pointer;
|
238
|
-
overflow: hidden;
|
239
|
-
height: 30px;
|
240
|
-
line-height: 100%;
|
241
|
-
}
|
242
|
-
|
243
|
-
|
244
|
-
.panel .tree li .content
|
245
|
-
{
|
246
|
-
padding-left: 18px;
|
247
|
-
padding-top: 5px;
|
248
|
-
height: 18px;
|
249
|
-
overflow: hidden;
|
250
|
-
position: relative;
|
251
|
-
}
|
252
|
-
|
253
|
-
.panel .tree li .icon
|
254
|
-
{
|
255
|
-
width: 10px;
|
256
|
-
height: 9px;
|
257
|
-
background: url(../i/arrow-down.svg);
|
258
|
-
background-size: 10px;
|
259
|
-
position: absolute;
|
260
|
-
left: 1px;
|
261
|
-
top: 8px;
|
262
|
-
cursor: default;
|
263
|
-
}
|
264
|
-
|
265
|
-
.panel .tree li.closed .icon
|
266
|
-
{
|
267
|
-
background: url(../i/arrow-right.svg);
|
268
|
-
background-size: 10px;
|
269
|
-
}
|
270
|
-
|
271
|
-
.panel .tree ul li h1
|
272
|
-
{
|
273
|
-
font-size: 13px;
|
274
|
-
font-weight: normal;
|
275
|
-
color: #000;
|
276
|
-
margin-bottom: 2px;
|
277
|
-
white-space: nowrap;
|
278
|
-
}
|
279
|
-
|
280
|
-
.panel .tree ul li p
|
281
|
-
{
|
282
|
-
font-size: 11px;
|
283
|
-
color: #666;
|
284
|
-
margin-bottom: 2px;
|
285
|
-
white-space: nowrap;
|
286
|
-
}
|
287
|
-
|
288
|
-
.panel .tree ul li h1 i
|
289
|
-
{
|
290
|
-
color: #999;
|
291
|
-
font-style: normal;
|
292
|
-
}
|
293
|
-
|
294
|
-
.panel .tree ul li.current h1 i
|
295
|
-
{
|
296
|
-
color: #CCC;
|
297
|
-
}
|
298
|
-
|
299
|
-
.panel .tree ul li.empty
|
300
|
-
{
|
301
|
-
cursor: text;
|
302
|
-
}
|
303
|
-
|
304
|
-
.panel .tree ul li.empty h1,
|
305
|
-
.panel .tree ul li.empty p
|
306
|
-
{
|
307
|
-
color: #666;
|
308
|
-
font-style: italic;
|
309
|
-
}
|
310
|
-
|
311
|
-
.panel .tree ul li.current
|
312
|
-
{
|
313
|
-
background: #B61D1D;
|
314
|
-
}
|
315
|
-
|
316
|
-
.panel .tree ul li.current .icon
|
317
|
-
{
|
318
|
-
background: url(../i/arrow-right.svg);
|
319
|
-
background-size: 10px;
|
320
|
-
}
|
321
|
-
|
322
|
-
.panel .tree ul li.current.closed .icon
|
323
|
-
{
|
324
|
-
background: url(../i/arrow-down.svg);
|
325
|
-
background-size: 10px;
|
326
|
-
}
|
327
|
-
|
328
|
-
.panel .tree ul li.current h1
|
329
|
-
{
|
330
|
-
color: #FFF;
|
331
|
-
}
|
332
|
-
|
333
|
-
.panel .tree ul li.current p
|
334
|
-
{
|
335
|
-
color: #CCC;
|
336
|
-
}
|
337
|
-
|
338
|
-
.panel .tree ul li.current.empty h1,
|
339
|
-
.panel .tree ul li.current.empty p
|
340
|
-
{
|
341
|
-
color: #999;
|
342
|
-
}
|
343
|
-
|
344
|
-
.panel .tree ul li:hover
|
345
|
-
{
|
346
|
-
background: #d0d0d0;
|
347
|
-
}
|
348
|
-
|
349
|
-
.panel .tree ul li.current:hover
|
350
|
-
{
|
351
|
-
background: #B61D1D;
|
352
|
-
}
|
353
|
-
|
354
|
-
.panel .tree .stopper
|
355
|
-
{
|
356
|
-
display: none;
|
357
|
-
}
|
358
|
-
/* Tree (end) */ /**/
|
359
|
-
|
360
|
-
/* Panel (end) */
|
data/docs/1.0.0/css/reset.css
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
/* http://meyerweb.com/eric/tools/css/reset/ */
|
2
|
-
/* v1.0 | 20080212 */
|
3
|
-
|
4
|
-
html, body, div, span, applet, object, iframe,
|
5
|
-
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
6
|
-
a, abbr, acronym, address, big, cite, code,
|
7
|
-
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
8
|
-
small, strike, strong, sub, sup, tt, var,
|
9
|
-
b, u, i, center,
|
10
|
-
dl, dt, dd, ol, ul, li,
|
11
|
-
fieldset, form, label, legend,
|
12
|
-
table, caption, tbody, tfoot, thead, tr, th, td {
|
13
|
-
margin: 0;
|
14
|
-
padding: 0;
|
15
|
-
border: 0;
|
16
|
-
outline: 0;
|
17
|
-
font-size: 100%;
|
18
|
-
vertical-align: baseline;
|
19
|
-
background: transparent;
|
20
|
-
}
|
21
|
-
body {
|
22
|
-
line-height: 1;
|
23
|
-
}
|
24
|
-
ol, ul {
|
25
|
-
list-style: none;
|
26
|
-
}
|
27
|
-
blockquote, q {
|
28
|
-
quotes: none;
|
29
|
-
}
|
30
|
-
blockquote:before, blockquote:after,
|
31
|
-
q:before, q:after {
|
32
|
-
content: '';
|
33
|
-
content: none;
|
34
|
-
}
|
35
|
-
|
36
|
-
/* remember to highlight inserts somehow! */
|
37
|
-
ins {
|
38
|
-
text-decoration: none;
|
39
|
-
}
|
40
|
-
del {
|
41
|
-
text-decoration: line-through;
|
42
|
-
}
|
43
|
-
|
44
|
-
/* tables still need 'cellspacing="0"' in the markup */
|
45
|
-
table {
|
46
|
-
border-collapse: collapse;
|
47
|
-
border-spacing: 0;
|
48
|
-
}
|
data/docs/1.0.0/favicon.ico
DELETED
Binary file
|
@@ -1,443 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<title>README.md</title>
|
5
|
-
<meta charset="UTF-8" />
|
6
|
-
<link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" />
|
7
|
-
<link rel="stylesheet" href="../css/main.css" type="text/css" media="screen" />
|
8
|
-
<link rel="stylesheet" href="../css/github.css" type="text/css" media="screen" />
|
9
|
-
<script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
|
10
|
-
<script src="../js/main.js" type="text/javascript" charset="utf-8"></script>
|
11
|
-
<script src="../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>
|
12
|
-
|
13
|
-
</head>
|
14
|
-
|
15
|
-
<body>
|
16
|
-
<div class="banner">
|
17
|
-
|
18
|
-
<h1>
|
19
|
-
README.md
|
20
|
-
</h1>
|
21
|
-
<ul class="files">
|
22
|
-
|
23
|
-
<li>
|
24
|
-
README.md
|
25
|
-
|
26
|
-
</li>
|
27
|
-
<li>Last modified: 2018-03-15 20:30:29 +1300</li>
|
28
|
-
</ul>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div id="bodyContent">
|
32
|
-
<div id="content">
|
33
|
-
|
34
|
-
<div class="description">
|
35
|
-
|
36
|
-
<h1 id="label-Nanook"><a href="../classes/Nanook.html">Nanook</a></h1>
|
37
|
-
|
38
|
-
<p>This is a Ruby library for managing a <a href="https://nano.org/">nano
|
39
|
-
currency</a> node, including making and receiving payments, using the <a
|
40
|
-
href="https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol">nano RPC
|
41
|
-
protocol</a>. Nano is a fee-less, fast, environmentally-friendly
|
42
|
-
cryptocurrency. It's awesome. See <a
|
43
|
-
href="https://nano.org/">nano.org</a>.</p>
|
44
|
-
|
45
|
-
<p><a href="https://badge.fury.io/rb/nanook"><img
|
46
|
-
src="https://badge.fury.io/rb/nanook.svg"></a> <a
|
47
|
-
href="https://circleci.com/gh/lukes/nanook/tree/master"><img
|
48
|
-
src="https://circleci.com/gh/lukes/nanook/tree/master.svg?style=shield"></a></p>
|
49
|
-
|
50
|
-
<h2 id="label-Installation">Installation</h2>
|
51
|
-
|
52
|
-
<p>Add this line to your application's Gemfile:</p>
|
53
|
-
|
54
|
-
<pre><code>gem 'nanook', "~> 1.0"
|
55
|
-
</code></pre>
|
56
|
-
|
57
|
-
<p>And then execute:</p>
|
58
|
-
|
59
|
-
<pre><code>$ bundle
|
60
|
-
</code></pre>
|
61
|
-
|
62
|
-
<p>Or install it yourself as:</p>
|
63
|
-
|
64
|
-
<pre><code>$ gem install nanook
|
65
|
-
</code></pre>
|
66
|
-
|
67
|
-
<h1 id="label-Getting+Started">Getting Started</h1>
|
68
|
-
|
69
|
-
<h2 id="label-Initializing">Initializing</h2>
|
70
|
-
|
71
|
-
<p><a href="../classes/Nanook.html">Nanook</a> will by default connect to
|
72
|
-
<code>http://localhost:7076</code>.</p>
|
73
|
-
|
74
|
-
<pre><code>nanook = Nanook.new
|
75
|
-
</code></pre>
|
76
|
-
|
77
|
-
<p>To connect to another host instead:</p>
|
78
|
-
|
79
|
-
<pre><code>nanook = Nanook.new("http://ip6-localhost:7076")
|
80
|
-
</code></pre>
|
81
|
-
|
82
|
-
<h2 id="label-Basics">Basics</h2>
|
83
|
-
|
84
|
-
<h3 id="label-Working+with+wallets+and+accounts">Working with wallets and accounts</h3>
|
85
|
-
|
86
|
-
<p>Create a wallet:</p>
|
87
|
-
|
88
|
-
<pre><code>Nanook.new.wallet.create
|
89
|
-
</code></pre>
|
90
|
-
|
91
|
-
<p>Create an account within a wallet:</p>
|
92
|
-
|
93
|
-
<pre><code>Nanook.new.wallet(wallet_id).account.create
|
94
|
-
</code></pre>
|
95
|
-
|
96
|
-
<p>List accounts within a wallet:</p>
|
97
|
-
|
98
|
-
<pre><code>Nanook.new.wallet(wallet_id).accounts
|
99
|
-
</code></pre>
|
100
|
-
|
101
|
-
<h3 id="label-Sending+a+payment">Sending a payment</h3>
|
102
|
-
|
103
|
-
<p>To send a payment from an account in a wallet:</p>
|
104
|
-
|
105
|
-
<pre><code>account = Nanook.new.wallet(wallet_id).account(account_id)
|
106
|
-
account.pay(to: recipient_account_id, amount: 0.2, id: unique_id)
|
107
|
-
</code></pre>
|
108
|
-
|
109
|
-
<p>Or, a wallet:</p>
|
110
|
-
|
111
|
-
<pre><code>wallet = Nanook.new.wallet(wallet_id)
|
112
|
-
wallet.pay(from: your_account_id, to: recipient_account_id, amount: 0.2, id: unique_id)
|
113
|
-
</code></pre>
|
114
|
-
|
115
|
-
<p>The <code>id</code> can be any string and needs to be unique per payment.
|
116
|
-
It serves an important purpose; it allows you to make this call multiple
|
117
|
-
times with the same <code>id</code> and be reassured that you will only
|
118
|
-
ever send that nano payment once. From the <a
|
119
|
-
href="https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol#account-create">Nano
|
120
|
-
RPC</a>:</p>
|
121
|
-
|
122
|
-
<blockquote>
|
123
|
-
<p>You can (and should) specify a unique id for each spend to provide
|
124
|
-
idempotency. That means that if you [make the payment call] two times with
|
125
|
-
the same id, the second request won't send any additional Nano.</p>
|
126
|
-
</blockquote>
|
127
|
-
|
128
|
-
<p>The unit of the <code>amount</code> is NANO (which is currently technically
|
129
|
-
Mnano — see <a href="https://nano.org/en/faq#what-are-nano-units-">What are
|
130
|
-
Nano’s Units</a>). You can pass an amount of raw instead by adding the
|
131
|
-
<code>unit: :raw</code> argument:</p>
|
132
|
-
|
133
|
-
<pre><code>account.pay(to: recipient_account_id, amount: 999, unit: :raw, id: unique_id)
|
134
|
-
</code></pre>
|
135
|
-
|
136
|
-
<p>Note, there may be a delay in receiving a response due to Proof of Work
|
137
|
-
being done. From the <a
|
138
|
-
href="https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol#account-create">Nano
|
139
|
-
RPC</a>:</p>
|
140
|
-
|
141
|
-
<blockquote>
|
142
|
-
<p>Proof of Work is precomputed for one transaction in the background. If it
|
143
|
-
has been a while since your last transaction it will send instantly, the
|
144
|
-
next one will need to wait for Proof of Work to be generated.</p>
|
145
|
-
</blockquote>
|
146
|
-
|
147
|
-
<h3 id="label-Receiving+a+payment">Receiving a payment</h3>
|
148
|
-
|
149
|
-
<p>The simplest way to receive a payment is:</p>
|
150
|
-
|
151
|
-
<pre><code>account = Nanook.new.wallet(wallet_id).account(account_id)
|
152
|
-
account.receive
|
153
|
-
|
154
|
-
# or:
|
155
|
-
|
156
|
-
wallet = Nanook.new.wallet(wallet_id)
|
157
|
-
wallet.receive(into: account_id)
|
158
|
-
</code></pre>
|
159
|
-
|
160
|
-
<p>The <code>receive</code> method when called as above will receive the
|
161
|
-
latest pending payment for an account in a wallet. It will either return a
|
162
|
-
block hash if a payment was received, or <code>false</code> if there were
|
163
|
-
no pending payments to receive.</p>
|
164
|
-
|
165
|
-
<p>You can also receive a specific pending block if you know it (you may have
|
166
|
-
discovered it through calling <code>account.pending</code> for example):</p>
|
167
|
-
|
168
|
-
<pre><code>account = Nanook.new.wallet(wallet_id).account(account_id)
|
169
|
-
account.receive(block_id)
|
170
|
-
|
171
|
-
# or:
|
172
|
-
|
173
|
-
wallet = Nanook.new.wallet(wallet_id)
|
174
|
-
wallet.receive(block_id, into: account_id)
|
175
|
-
</code></pre>
|
176
|
-
|
177
|
-
<h2 id="label-All+commands">All commands</h2>
|
178
|
-
|
179
|
-
<p>Below is a quick reference list of commands. See the <a
|
180
|
-
href="https://lukes.github.io/nanook/1.0.0/">full Nanook documentation</a>
|
181
|
-
for a searchable detailed description of every class and method, what the
|
182
|
-
arguments mean, and example responses (Tip: expand the
|
183
|
-
“<strong>Nanook</strong> < Object” item in the sidebar).</p>
|
184
|
-
|
185
|
-
<h3 id="label-Wallets">Wallets</h3>
|
186
|
-
|
187
|
-
<p>See the <a
|
188
|
-
href="https://lukes.github.io/nanook/1.0.0/classes/Nanook/Wallet.html">full
|
189
|
-
documentation for Nanook::Wallet</a> for a detailed description of each
|
190
|
-
method and example responses.</p>
|
191
|
-
|
192
|
-
<h4 id="label-Create+wallet-3A">Create wallet:</h4>
|
193
|
-
|
194
|
-
<pre><code>Nanook.new.wallet.create
|
195
|
-
</code></pre>
|
196
|
-
|
197
|
-
<h4 id="label-Working+with+a+single+wallet-3A">Working with a single wallet:</h4>
|
198
|
-
|
199
|
-
<pre><code>wallet = Nanook.new.wallet(wallet_id)
|
200
|
-
|
201
|
-
wallet.balance
|
202
|
-
wallet.balance(account_break_down: true)
|
203
|
-
wallet.balance(unit: :raw)
|
204
|
-
wallet.pay(from: your_account_id, to: recipient_account_id, amount: 2, id: unique_id)
|
205
|
-
wallet.pay(from: your_account_id, to: recipient_account_id, amount: 2, unit: :raw, id: unique_id)
|
206
|
-
wallet.receive(into: account_id)
|
207
|
-
wallet.receive(pending_block_id, into: account_id)
|
208
|
-
|
209
|
-
wallet.account.create
|
210
|
-
wallet.accounts
|
211
|
-
wallet.contains?(account_id)
|
212
|
-
|
213
|
-
wallet.export
|
214
|
-
wallet.locked?
|
215
|
-
wallet.unlock(password)
|
216
|
-
wallet.change_password(password)
|
217
|
-
|
218
|
-
wallet.destroy
|
219
|
-
</code></pre>
|
220
|
-
|
221
|
-
<h3 id="label-Accounts">Accounts</h3>
|
222
|
-
|
223
|
-
<h4 id="label-Create+account-3A">Create account:</h4>
|
224
|
-
|
225
|
-
<pre><code>Nanook.new.wallet(wallet_id).account.create
|
226
|
-
</code></pre>
|
227
|
-
|
228
|
-
<h4 id="label-Working+with+a+single+account-3A">Working with a single account:</h4>
|
229
|
-
|
230
|
-
<pre><code>account = Nanook.new.wallet(wallet_id).account(account_id)
|
231
|
-
|
232
|
-
account.balance
|
233
|
-
account.balance(unit: :raw)
|
234
|
-
account.pay(to: recipient_account_id, amount: 2, id: unique_id)
|
235
|
-
account.pay(to: recipient_account_id, amount: 2, unit: :raw, id: unique_id)
|
236
|
-
account.pending
|
237
|
-
account.pending(limit: 1)
|
238
|
-
account.receive
|
239
|
-
account.receive(pending_block_id)
|
240
|
-
|
241
|
-
account.exists?
|
242
|
-
account.info
|
243
|
-
account.info(detailed: true)
|
244
|
-
account.ledger
|
245
|
-
account.ledger(limit: 10)
|
246
|
-
account.history
|
247
|
-
account.history(limit: 1)
|
248
|
-
account.public_key
|
249
|
-
account.delegators
|
250
|
-
account.representative
|
251
|
-
account.weight
|
252
|
-
|
253
|
-
account.destroy
|
254
|
-
</code></pre>
|
255
|
-
|
256
|
-
<h4 id="label-Working+with+any+account+-28not+necessarily+in+your+wallet-29-3A">Working with any account (not necessarily in your wallet):</h4>
|
257
|
-
|
258
|
-
<p>See the <a
|
259
|
-
href="https://lukes.github.io/nanook/1.0.0/classes/Nanook/Account.html">full
|
260
|
-
documentation for Nanook::Account</a> for a detailed description of each
|
261
|
-
method and example responses.</p>
|
262
|
-
|
263
|
-
<pre><code>account = Nanook.new.account(account_id)
|
264
|
-
|
265
|
-
account.balance
|
266
|
-
account.balance(unit: :raw)
|
267
|
-
account.pending
|
268
|
-
account.pending(limit: 1)
|
269
|
-
|
270
|
-
account.exists?
|
271
|
-
account.info
|
272
|
-
account.info(detailed: true)
|
273
|
-
account.ledger
|
274
|
-
account.ledger(limit: 10)
|
275
|
-
account.history
|
276
|
-
account.history(limit: 1)
|
277
|
-
account.public_key
|
278
|
-
account.delegators
|
279
|
-
account.representative
|
280
|
-
account.weight
|
281
|
-
</code></pre>
|
282
|
-
|
283
|
-
<h3 id="label-Blocks">Blocks</h3>
|
284
|
-
|
285
|
-
<p>See the <a
|
286
|
-
href="https://lukes.github.io/nanook/1.0.0/classes/Nanook/Block.html">full
|
287
|
-
documentation for Nanook::Block</a> for a detailed description of each
|
288
|
-
method and example responses.</p>
|
289
|
-
|
290
|
-
<pre><code>block = Nanook.new.block(block_id)
|
291
|
-
|
292
|
-
block.info # Verified blocks in the ledger
|
293
|
-
block.info(allow_unchecked: true) # Verified blocks AND unchecked synchronizing blocks
|
294
|
-
block.account
|
295
|
-
block.chain
|
296
|
-
block.chain(limit: 10)
|
297
|
-
block.history
|
298
|
-
block.history(limit: 10)
|
299
|
-
block.republish
|
300
|
-
block.republish(sources: 2)
|
301
|
-
block.republish(destinations: 2)
|
302
|
-
block.pending?
|
303
|
-
block.process
|
304
|
-
block.successors
|
305
|
-
block.successors(limit: 10)
|
306
|
-
|
307
|
-
block.generate_work
|
308
|
-
block.cancel_work
|
309
|
-
block.is_valid_work?(work_id)
|
310
|
-
</code></pre>
|
311
|
-
|
312
|
-
<h3 id="label-Managing+your+nano+node">Managing your nano node</h3>
|
313
|
-
|
314
|
-
<pre><code>node = Nanook.new.node
|
315
|
-
|
316
|
-
node.block_count
|
317
|
-
node.block_count_type
|
318
|
-
node.bootstrap_any
|
319
|
-
node.bootstrap(address: "::ffff:138.201.94.249", port: 7075)
|
320
|
-
node.frontier_count
|
321
|
-
node.peers
|
322
|
-
node.representatives
|
323
|
-
node.representatives
|
324
|
-
node.sync_progress
|
325
|
-
node.synced?
|
326
|
-
node.version
|
327
|
-
|
328
|
-
node.stop
|
329
|
-
</code></pre>
|
330
|
-
|
331
|
-
<h3 id="label-Work+peers">Work peers</h3>
|
332
|
-
|
333
|
-
<pre><code>work_peers = Nanook.new.work_peers
|
334
|
-
|
335
|
-
work_peers.add(address: "::ffff:172.17.0.1:7076", port: 7076)
|
336
|
-
work_peers.clear
|
337
|
-
work_peers.list
|
338
|
-
</code></pre>
|
339
|
-
|
340
|
-
<h3 id="label-Keys">Keys</h3>
|
341
|
-
|
342
|
-
<h4 id="label-Create+private+public+key+pair-3A">Create private public key pair:</h4>
|
343
|
-
|
344
|
-
<pre><code>Nanook.new.key.generate
|
345
|
-
Nanook.new.key.generate(seed: seed, index: 0)
|
346
|
-
</code></pre>
|
347
|
-
|
348
|
-
<h4 id="label-Working+with+a+single+key">Working with a single key</h4>
|
349
|
-
|
350
|
-
<pre><code>key = Nanook.new.key(private_key)
|
351
|
-
|
352
|
-
key.info
|
353
|
-
</code></pre>
|
354
|
-
|
355
|
-
<h2 id="label-Nanook+Metal"><a href="../classes/Nanook.html">Nanook</a> Metal</h2>
|
356
|
-
|
357
|
-
<p>You can do any call listed in the <a
|
358
|
-
href="https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol">Nano
|
359
|
-
RPC</a> directly through the <code>rpc</code> method. The first argument
|
360
|
-
should match the <code>action</code> of the RPC call, and then all
|
361
|
-
remaining parameters are passed in as arguments.</p>
|
362
|
-
|
363
|
-
<p>E.g., the <a
|
364
|
-
href="https://github.com/nanocurrency/raiblocks/wiki/RPC-protocol#accounts-create">accounts_create
|
365
|
-
command</a> can be called like this:</p>
|
366
|
-
|
367
|
-
<pre><code>Nano.new.rpc(:accounts_create, wallet: wallet_id, count: 2)
|
368
|
-
</code></pre>
|
369
|
-
|
370
|
-
<h2 id="label-Contributing">Contributing</h2>
|
371
|
-
|
372
|
-
<p>Bug reports and pull requests are welcome. Pull requests with passing tests
|
373
|
-
are even better.</p>
|
374
|
-
|
375
|
-
<p>To run the test suite:</p>
|
376
|
-
|
377
|
-
<pre><code>bundle exec rspec spec
|
378
|
-
</code></pre>
|
379
|
-
|
380
|
-
<p>To update rdoc documentation:</p>
|
381
|
-
|
382
|
-
<pre><code>bundle exec rake rerdoc
|
383
|
-
</code></pre>
|
384
|
-
|
385
|
-
<h2 id="label-License">License</h2>
|
386
|
-
|
387
|
-
<p>The gem is available as open source under the terms of the <a
|
388
|
-
href="https://opensource.org/licenses/MIT">MIT License</a>.</p>
|
389
|
-
|
390
|
-
<h2 id="label-Buy+me+a+nano+coffee">Buy me a nano coffee</h2>
|
391
|
-
|
392
|
-
<p>This library is totally free to use, but feel free to send some nano <a
|
393
|
-
href="https://www.nanode.co/account/xrb_3c3ek3k8135f6e8qtfy8eruk9q3yzmpebes7btzncccdest8ymzhjmnr196j">my
|
394
|
-
way</a> if you'd like to!</p>
|
395
|
-
|
396
|
-
<pre><code>xrb_3c3ek3k8135f6e8qtfy8eruk9q3yzmpebes7btzncccdest8ymzhjmnr196j
|
397
|
-
</code></pre>
|
398
|
-
|
399
|
-
<p><img
|
400
|
-
src="https://raw.githubusercontent.com/lukes/nanook/master/img/qr.png"></p>
|
401
|
-
|
402
|
-
</div>
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
<!-- Methods -->
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
</div>
|
440
|
-
|
441
|
-
</div>
|
442
|
-
</body>
|
443
|
-
</html>
|