@leofcoin/chain 1.0.12 → 1.0.13

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.
Files changed (103) hide show
  1. package/dist/node.browser.js +1046 -1048
  2. package/dist/node.browser.min.js +1 -1
  3. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/chain.js.html +0 -0
  4. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_factory.js.html +0 -0
  5. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_nameService.js.html +0 -0
  6. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_proxies_factoryProxy.js.html +0 -0
  7. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_proxies_nameServiceProxy.js.html +0 -0
  8. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_proxies_nativeTokenProxy.js.html +0 -0
  9. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_proxies_validatorsProxy.js.html +0 -0
  10. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_proxies_votingProxy.js.html +0 -0
  11. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/contracts_validators.js.html +0 -0
  12. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Bold-webfont.eot +0 -0
  13. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Bold-webfont.svg +0 -0
  14. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Bold-webfont.woff +0 -0
  15. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  16. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-BoldItalic-webfont.svg +0 -0
  17. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  18. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Italic-webfont.eot +0 -0
  19. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Italic-webfont.svg +0 -0
  20. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Italic-webfont.woff +0 -0
  21. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Light-webfont.eot +0 -0
  22. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Light-webfont.svg +0 -0
  23. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Light-webfont.woff +0 -0
  24. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  25. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-LightItalic-webfont.svg +0 -0
  26. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  27. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Regular-webfont.eot +0 -0
  28. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Regular-webfont.svg +0 -0
  29. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Regular-webfont.woff +0 -0
  30. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Semibold-webfont.eot +0 -0
  31. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Semibold-webfont.svg +0 -0
  32. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  33. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-Semibold-webfont.woff +0 -0
  34. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  35. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -0
  36. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  37. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  38. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/global.html +0 -0
  39. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/icons/home.svg +0 -0
  40. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/icons/search.svg +0 -0
  41. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/index.html +0 -0
  42. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/machine.js.html +0 -0
  43. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/scripts/linenumber.js +0 -0
  44. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/scripts/pagelocation.js +0 -0
  45. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/standards_roles.js.html +0 -0
  46. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/standards_token.js.html +0 -0
  47. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/styles/collapse.css +0 -0
  48. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/styles/jsdoc-default.css +0 -0
  49. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/styles/prettify-jsdoc.css +0 -0
  50. package/docs/@leofcoin/chain/{1.0.10 → 1.0.12}/styles/prettify-tomorrow.css +0 -0
  51. package/package.json +2 -2
  52. package/rollup.config.js +0 -42
  53. package/_node.js +0 -1
  54. package/chain.js +0 -938
  55. package/docs/@leofcoin/chain/1.0.11/chain.js.html +0 -738
  56. package/docs/@leofcoin/chain/1.0.11/contracts_factory.js.html +0 -182
  57. package/docs/@leofcoin/chain/1.0.11/contracts_nameService.js.html +0 -231
  58. package/docs/@leofcoin/chain/1.0.11/contracts_proxies_factoryProxy.js.html +0 -135
  59. package/docs/@leofcoin/chain/1.0.11/contracts_proxies_nameServiceProxy.js.html +0 -135
  60. package/docs/@leofcoin/chain/1.0.11/contracts_proxies_nativeTokenProxy.js.html +0 -135
  61. package/docs/@leofcoin/chain/1.0.11/contracts_proxies_validatorsProxy.js.html +0 -135
  62. package/docs/@leofcoin/chain/1.0.11/contracts_proxies_votingProxy.js.html +0 -135
  63. package/docs/@leofcoin/chain/1.0.11/contracts_validators.js.html +0 -242
  64. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Bold-webfont.eot +0 -0
  65. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Bold-webfont.svg +0 -1830
  66. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Bold-webfont.woff +0 -0
  67. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  68. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  69. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  70. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Italic-webfont.eot +0 -0
  71. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Italic-webfont.svg +0 -1830
  72. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Italic-webfont.woff +0 -0
  73. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Light-webfont.eot +0 -0
  74. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Light-webfont.svg +0 -1831
  75. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Light-webfont.woff +0 -0
  76. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  77. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  78. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  79. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Regular-webfont.eot +0 -0
  80. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Regular-webfont.svg +0 -1831
  81. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Regular-webfont.woff +0 -0
  82. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Semibold-webfont.eot +0 -0
  83. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Semibold-webfont.svg +0 -1830
  84. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  85. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-Semibold-webfont.woff +0 -0
  86. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  87. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -1830
  88. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  89. package/docs/@leofcoin/chain/1.0.11/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  90. package/docs/@leofcoin/chain/1.0.11/global.html +0 -1153
  91. package/docs/@leofcoin/chain/1.0.11/icons/home.svg +0 -4
  92. package/docs/@leofcoin/chain/1.0.11/icons/search.svg +0 -4
  93. package/docs/@leofcoin/chain/1.0.11/index.html +0 -125
  94. package/docs/@leofcoin/chain/1.0.11/machine.js.html +0 -252
  95. package/docs/@leofcoin/chain/1.0.11/scripts/linenumber.js +0 -23
  96. package/docs/@leofcoin/chain/1.0.11/scripts/pagelocation.js +0 -89
  97. package/docs/@leofcoin/chain/1.0.11/standards_roles.js.html +0 -188
  98. package/docs/@leofcoin/chain/1.0.11/standards_token.js.html +0 -260
  99. package/docs/@leofcoin/chain/1.0.11/styles/collapse.css +0 -27
  100. package/docs/@leofcoin/chain/1.0.11/styles/jsdoc-default.css +0 -953
  101. package/docs/@leofcoin/chain/1.0.11/styles/prettify-jsdoc.css +0 -111
  102. package/docs/@leofcoin/chain/1.0.11/styles/prettify-tomorrow.css +0 -138
  103. package/lib.js +0 -1
@@ -1,1153 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
-
5
- <meta charset="utf-8">
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
-
8
- <title>
9
- Global - Documentation
10
- </title>
11
-
12
- <link href="https://www.braintreepayments.com/images/favicon-ccda0b14.png" rel="icon" type="image/png">
13
-
14
- <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
15
- <script>hljs.initHighlightingOnLoad();</script>
16
-
17
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
18
-
19
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
20
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
21
-
22
- <link type="text/css" rel="stylesheet" href="styles/collapse.css">
23
-
24
-
25
-
26
-
27
- <!-- start Mixpanel -->
28
- <script type="text/javascript">(function(e,a){if(!a.__SV){var b=window;try{var c,l,i,j=b.location,g=j.hash;c=function(a,b){return(l=a.match(RegExp(b+"=([^&]*)")))?l[1]:null};g&&c(g,"state")&&(i=JSON.parse(decodeURIComponent(c(g,"state"))),"mpeditor"===i.action&&(b.sessionStorage.setItem("_mpcehash",g),history.replaceState(i.desiredHash||"",e.title,j.pathname+j.search)))}catch(m){}var k,h;window.mixpanel=a;a._i=[];a.init=function(b,c,f){function e(b,a){var c=a.split(".");2==c.length&&(b=b[c[0]],a=c[1]);b[a]=function(){b.push([a].concat(Array.prototype.slice.call(arguments,
29
- 0)))}}var d=a;"undefined"!==typeof f?d=a[f]=[]:f="mixpanel";d.people=d.people||[];d.toString=function(b){var a="mixpanel";"mixpanel"!==f&&(a+="."+f);b||(a+=" (stub)");return a};d.people.toString=function(){return d.toString(1)+".people (stub)"};k="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");
30
- for(h=0;h<k.length;h++)e(d,k[h]);a._i.push([b,c,f])};a.__SV=1.2;b=e.createElement("script");b.type="text/javascript";b.async=!0;b.src="undefined"!==typeof MIXPANEL_CUSTOM_LIB_URL?MIXPANEL_CUSTOM_LIB_URL:"file:"===e.location.protocol&&"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//)?"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js":"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";c=e.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}})(document,window.mixpanel||[]);
31
- mixpanel.init("1919205b2da72e4da3b9b6639b444d59");</script>
32
- <!-- end Mixpanel -->
33
- </head>
34
-
35
- <body>
36
- <svg style="display: none;">
37
- <defs>
38
- <symbol id="linkIcon" fill="#706d77" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
39
- <path d="M0 0h24v24H0z" fill="none"/>
40
- <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/>
41
- </symbol>
42
- </defs>
43
- </svg>
44
-
45
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
46
- <label for="nav-trigger" class="navicon-button x">
47
- <div class="navicon"></div>
48
- </label>
49
-
50
- <label for="nav-trigger" class="overlay"></label>
51
-
52
- <div class="top-nav-wrapper">
53
- <ul>
54
- <li >
55
- <a href="index.html">
56
-
57
- <svg fill="#6D6D6D" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
58
- <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
59
- <path d="M0 0h24v24H0z" fill="none"/>
60
- </svg>
61
-
62
-
63
- </a>
64
- </li>
65
-
66
-
67
-
68
- </ul>
69
- </div>
70
-
71
- <nav>
72
- <h3 class="reference-title">
73
- @leofcoin/chain
74
- </h3>
75
-
76
-
77
- <h3>
78
- Resources
79
- </h3>
80
-
81
- <a href="https://github.com/arteontoken/monorepo/chain">github</a>
82
-
83
-
84
-
85
- <h3 id="global-nav">Global</h3><ul><li><a href="global.html#addContract">addContract</a></li><li><a href="global.html#createTransaction">createTransaction</a></li><li><a href="global.html#createTransactionFrom">createTransactionFrom</a></li><li><a href="global.html#deployContract">deployContract</a></li><li><a href="global.html#lookup">lookup</a></li><li><a href="global.html#state">state</a></li></ul>
86
- </nav>
87
-
88
- <div id="main">
89
-
90
- <h1 class="page-title">
91
- Global
92
- </h1>
93
-
94
-
95
-
96
-
97
- <section>
98
- <header>
99
-
100
- <h2>
101
-
102
-
103
-
104
- </h2>
105
-
106
-
107
-
108
- </header>
109
-
110
- <article>
111
- <div class="container-overview">
112
-
113
-
114
-
115
-
116
-
117
- <dl class="details">
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- </dl>
151
-
152
-
153
-
154
-
155
- </div>
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
- <h3 class="subsection-title">Members</h3>
169
-
170
-
171
-
172
-
173
- <h4 class="name" id="state">
174
- <span class="type-signature"></span>state<span class="type-signature"></span>
175
- </h4>
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
- <dl class="details">
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <dt class="tag-source">Source:</dt>
211
- <dd class="tag-source">
212
- <ul class="dummy">
213
- <li>
214
- <a href="standards_token.js.html">standards/token.js</a>, <a href="standards_token.js.html#line47">line 47</a>
215
- </li>
216
- </ul>
217
- </dd>
218
-
219
-
220
-
221
-
222
-
223
-
224
-
225
- </dl>
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
- <h3 class="subsection-title">Methods</h3>
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
- <span class='name-container'>
246
- <a class="link-icon" href="#addContract">
247
- <svg height="20" width="20" style="fill: black;">
248
- <use xlink:href="#linkIcon"></use>
249
- </svg>
250
- </a>
251
- <h4 class="name" id="addContract">
252
- <span class="type-signature">(async) </span>addContract<span class="signature">()</span><span class="type-signature"></span>
253
- </h4>
254
- </span>
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
-
268
-
269
- <dl class="details">
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
-
296
- <dt class="tag-source">Source:</dt>
297
- <dd class="tag-source">
298
- <ul class="dummy">
299
- <li>
300
- <a href="machine.js.html">machine.js</a>, <a href="machine.js.html#line76">line 76</a>
301
- </li>
302
- </ul>
303
- </dd>
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
- </dl>
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
- <span class='name-container'>
333
- <a class="link-icon" href="#createTransaction">
334
- <svg height="20" width="20" style="fill: black;">
335
- <use xlink:href="#linkIcon"></use>
336
- </svg>
337
- </a>
338
- <h4 class="name" id="createTransaction">
339
- <span class="type-signature"></span>createTransaction<span class="signature">(to, method, params, nonce)</span><span class="type-signature"></span>
340
- </h4>
341
- </span>
342
-
343
-
344
-
345
-
346
-
347
- <div class="description">
348
- <p>whenever method = createContract params should hold the contract hash</p>
349
- <p>example: [hash]
350
- createTransaction('0x0', 'createContract', [hash])</p>
351
- </div>
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- <h5>Parameters:</h5>
360
-
361
-
362
- <table class="params">
363
- <thead>
364
- <tr>
365
-
366
- <th>Name</th>
367
-
368
-
369
- <th>Type</th>
370
-
371
-
372
-
373
-
374
-
375
- <th class="last">Description</th>
376
- </tr>
377
- </thead>
378
-
379
- <tbody>
380
-
381
- <tr>
382
-
383
- <td class="name"><code>to</code></td>
384
-
385
-
386
- <td class="type">
387
-
388
-
389
- <span class="param-type">
390
- String
391
- </span>
392
-
393
-
394
-
395
-
396
-
397
- </td>
398
-
399
-
400
-
401
-
402
-
403
- <td class="description last">
404
- <p>the contract address for the contract to interact with</p>
405
-
406
- </td>
407
- </tr>
408
-
409
-
410
- <tr>
411
-
412
- <td class="name"><code>method</code></td>
413
-
414
-
415
- <td class="type">
416
-
417
-
418
- <span class="param-type">
419
- String
420
- </span>
421
-
422
-
423
-
424
-
425
-
426
- </td>
427
-
428
-
429
-
430
-
431
-
432
- <td class="description last">
433
- <p>the method/function to run</p>
434
-
435
- </td>
436
- </tr>
437
-
438
-
439
- <tr>
440
-
441
- <td class="name"><code>params</code></td>
442
-
443
-
444
- <td class="type">
445
-
446
-
447
- <span class="param-type">
448
- Array
449
- </span>
450
-
451
-
452
-
453
-
454
-
455
- </td>
456
-
457
-
458
-
459
-
460
-
461
- <td class="description last">
462
- <p>array of paramters to apply to the contract method</p>
463
-
464
- </td>
465
- </tr>
466
-
467
-
468
- <tr>
469
-
470
- <td class="name"><code>nonce</code></td>
471
-
472
-
473
- <td class="type">
474
-
475
-
476
- <span class="param-type">
477
- Number
478
- </span>
479
-
480
-
481
-
482
-
483
-
484
- </td>
485
-
486
-
487
-
488
-
489
-
490
- <td class="description last">
491
- <p>total transaction count [optional]</p>
492
-
493
- </td>
494
- </tr>
495
-
496
-
497
- </tbody>
498
- </table>
499
-
500
-
501
-
502
-
503
-
504
- <dl class="details">
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
-
513
-
514
-
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
- <dt class="tag-source">Source:</dt>
532
- <dd class="tag-source">
533
- <ul class="dummy">
534
- <li>
535
- <a href="chain.js.html">chain.js</a>, <a href="chain.js.html#line476">line 476</a>
536
- </li>
537
- </ul>
538
- </dd>
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
- </dl>
547
-
548
-
549
-
550
-
551
-
552
-
553
-
554
-
555
-
556
-
557
-
558
-
559
-
560
-
561
-
562
-
563
-
564
-
565
-
566
-
567
- <span class='name-container'>
568
- <a class="link-icon" href="#createTransactionFrom">
569
- <svg height="20" width="20" style="fill: black;">
570
- <use xlink:href="#linkIcon"></use>
571
- </svg>
572
- </a>
573
- <h4 class="name" id="createTransactionFrom">
574
- <span class="type-signature">(async) </span>createTransactionFrom<span class="signature">(from, to, method, params, nonce)</span><span class="type-signature"></span>
575
- </h4>
576
- </span>
577
-
578
-
579
-
580
-
581
-
582
- <div class="description">
583
- <p>every tx done is trough contracts so no need for amount
584
- data is undefined when nothing is returned
585
- error is thrown on error so undefined data doesn't mean there is an error...</p>
586
- </div>
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
- <h5>Parameters:</h5>
595
-
596
-
597
- <table class="params">
598
- <thead>
599
- <tr>
600
-
601
- <th>Name</th>
602
-
603
-
604
- <th>Type</th>
605
-
606
-
607
-
608
-
609
-
610
- <th class="last">Description</th>
611
- </tr>
612
- </thead>
613
-
614
- <tbody>
615
-
616
- <tr>
617
-
618
- <td class="name"><code>from</code></td>
619
-
620
-
621
- <td class="type">
622
-
623
-
624
- <span class="param-type">
625
- String
626
- </span>
627
-
628
-
629
-
630
-
631
-
632
- </td>
633
-
634
-
635
-
636
-
637
-
638
- <td class="description last">
639
- <p>the sender address</p>
640
-
641
- </td>
642
- </tr>
643
-
644
-
645
- <tr>
646
-
647
- <td class="name"><code>to</code></td>
648
-
649
-
650
- <td class="type">
651
-
652
-
653
- <span class="param-type">
654
- String
655
- </span>
656
-
657
-
658
-
659
-
660
-
661
- </td>
662
-
663
-
664
-
665
-
666
-
667
- <td class="description last">
668
- <p>the contract address for the contract to interact with</p>
669
-
670
- </td>
671
- </tr>
672
-
673
-
674
- <tr>
675
-
676
- <td class="name"><code>method</code></td>
677
-
678
-
679
- <td class="type">
680
-
681
-
682
- <span class="param-type">
683
- String
684
- </span>
685
-
686
-
687
-
688
-
689
-
690
- </td>
691
-
692
-
693
-
694
-
695
-
696
- <td class="description last">
697
- <p>the method/function to run</p>
698
-
699
- </td>
700
- </tr>
701
-
702
-
703
- <tr>
704
-
705
- <td class="name"><code>params</code></td>
706
-
707
-
708
- <td class="type">
709
-
710
-
711
- <span class="param-type">
712
- Array
713
- </span>
714
-
715
-
716
-
717
-
718
-
719
- </td>
720
-
721
-
722
-
723
-
724
-
725
- <td class="description last">
726
- <p>array of paramters to apply to the contract method</p>
727
-
728
- </td>
729
- </tr>
730
-
731
-
732
- <tr>
733
-
734
- <td class="name"><code>nonce</code></td>
735
-
736
-
737
- <td class="type">
738
-
739
-
740
- <span class="param-type">
741
- Number
742
- </span>
743
-
744
-
745
-
746
-
747
-
748
- </td>
749
-
750
-
751
-
752
-
753
-
754
- <td class="description last">
755
- <p>total transaction count [optional]</p>
756
-
757
- </td>
758
- </tr>
759
-
760
-
761
- </tbody>
762
- </table>
763
-
764
-
765
-
766
-
767
-
768
- <dl class="details">
769
-
770
-
771
-
772
-
773
-
774
-
775
-
776
-
777
-
778
-
779
-
780
-
781
-
782
-
783
-
784
-
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
- <dt class="tag-source">Source:</dt>
796
- <dd class="tag-source">
797
- <ul class="dummy">
798
- <li>
799
- <a href="chain.js.html">chain.js</a>, <a href="chain.js.html#line490">line 490</a>
800
- </li>
801
- </ul>
802
- </dd>
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
- </dl>
811
-
812
-
813
-
814
-
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
-
825
-
826
-
827
-
828
-
829
-
830
-
831
- <span class='name-container'>
832
- <a class="link-icon" href="#deployContract">
833
- <svg height="20" width="20" style="fill: black;">
834
- <use xlink:href="#linkIcon"></use>
835
- </svg>
836
- </a>
837
- <h4 class="name" id="deployContract">
838
- <span class="type-signature">(async) </span>deployContract<span class="signature">(contract)</span><span class="type-signature"></span>
839
- </h4>
840
- </span>
841
-
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
-
852
- <h5>Parameters:</h5>
853
-
854
-
855
- <table class="params">
856
- <thead>
857
- <tr>
858
-
859
- <th>Name</th>
860
-
861
-
862
- <th>Type</th>
863
-
864
-
865
-
866
-
867
-
868
- <th class="last">Description</th>
869
- </tr>
870
- </thead>
871
-
872
- <tbody>
873
-
874
- <tr>
875
-
876
- <td class="name"><code>contract</code></td>
877
-
878
-
879
- <td class="type">
880
-
881
-
882
- <span class="param-type">
883
- String
884
- </span>
885
-
886
-
887
-
888
-
889
-
890
- </td>
891
-
892
-
893
-
894
-
895
-
896
- <td class="description last">
897
- <p>a contract string (see plugins/deployContract)</p>
898
-
899
- </td>
900
- </tr>
901
-
902
-
903
- </tbody>
904
- </table>
905
-
906
-
907
-
908
-
909
-
910
- <dl class="details">
911
-
912
-
913
-
914
-
915
-
916
-
917
-
918
-
919
-
920
-
921
-
922
-
923
-
924
-
925
-
926
-
927
-
928
-
929
-
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
- <dt class="tag-source">Source:</dt>
938
- <dd class="tag-source">
939
- <ul class="dummy">
940
- <li>
941
- <a href="chain.js.html">chain.js</a>, <a href="chain.js.html#line535">line 535</a>
942
- </li>
943
- </ul>
944
- </dd>
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
- </dl>
953
-
954
-
955
-
956
-
957
-
958
-
959
-
960
-
961
-
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
-
970
-
971
-
972
-
973
- <span class='name-container'>
974
- <a class="link-icon" href="#lookup">
975
- <svg height="20" width="20" style="fill: black;">
976
- <use xlink:href="#linkIcon"></use>
977
- </svg>
978
- </a>
979
- <h4 class="name" id="lookup">
980
- <span class="type-signature"></span>lookup<span class="signature">(name)</span><span class="type-signature"> &rarr; {String}</span>
981
- </h4>
982
- </span>
983
-
984
-
985
-
986
-
987
-
988
- <div class="description">
989
- <p>lookup an address for a registered name using the builtin nameService</p>
990
- </div>
991
-
992
-
993
-
994
-
995
-
996
-
997
-
998
- <h5>Parameters:</h5>
999
-
1000
-
1001
- <table class="params">
1002
- <thead>
1003
- <tr>
1004
-
1005
- <th>Name</th>
1006
-
1007
-
1008
- <th>Type</th>
1009
-
1010
-
1011
-
1012
-
1013
-
1014
- <th class="last">Description</th>
1015
- </tr>
1016
- </thead>
1017
-
1018
- <tbody>
1019
-
1020
- <tr>
1021
-
1022
- <td class="name"><code>name</code></td>
1023
-
1024
-
1025
- <td class="type">
1026
-
1027
-
1028
- <span class="param-type">
1029
- String
1030
- </span>
1031
-
1032
-
1033
-
1034
-
1035
-
1036
- </td>
1037
-
1038
-
1039
-
1040
-
1041
-
1042
- <td class="description last">
1043
- <p>contractName</p>
1044
-
1045
- </td>
1046
- </tr>
1047
-
1048
-
1049
- </tbody>
1050
- </table>
1051
-
1052
-
1053
-
1054
-
1055
-
1056
- <dl class="details">
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
-
1069
-
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
- <dt class="tag-source">Source:</dt>
1084
- <dd class="tag-source">
1085
- <ul class="dummy">
1086
- <li>
1087
- <a href="chain.js.html">chain.js</a>, <a href="chain.js.html#line612">line 612</a>
1088
- </li>
1089
- </ul>
1090
- </dd>
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
- </dl>
1099
-
1100
-
1101
-
1102
-
1103
-
1104
-
1105
-
1106
-
1107
-
1108
-
1109
-
1110
-
1111
-
1112
- <div class="example-container">
1113
- <a class="link-icon" href="#lookup-examples">
1114
- <svg height="20" width="20" style="fill: black;">
1115
- <use xlink:href="#linkIcon"></use>
1116
- </svg>
1117
- </a>
1118
- <h5 id="lookup-examples">Example</h5>
1119
-
1120
-
1121
- <pre class="prettyprint"><code>chain.lookup('myCoolContractName') // qmqsfddfdgfg...</code></pre>
1122
-
1123
-
1124
- </div>
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
- </article>
1134
- </section>
1135
-
1136
-
1137
-
1138
-
1139
- </div>
1140
-
1141
- <br class="clear">
1142
-
1143
- <footer>
1144
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a>
1145
- </footer>
1146
-
1147
- <script src="scripts/linenumber.js"></script>
1148
- <script src="scripts/pagelocation.js"></script>
1149
-
1150
-
1151
-
1152
- </body>
1153
- </html>