libevm 0.0.37 → 0.0.39
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.
- package/dist/libevm +1 -1
- package/libevm +62 -28
- package/package.json +6 -6
package/dist/libevm
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={531(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(35)),o=(e._homedir_get,e._msg_error,e._msg_info,e._path_join,e._require),n=await o("evm-chains-info");n._evm_chains_db_path_get,n._rpc_backend_get,n._evm_chain_info_get,n._evm_chains_info,t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const c=t[o]={exports:{}};return e[o](c,c.exports,r),c.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,c,i)=>{let s;i&&((s=[]).d=-1);const a=new Set,l=r.exports;let u,f,p;const d=new Promise((e,t)=>{p=t,f=e});d[t]=l,d[e]=e=>(s&&e(s),a.forEach(e),d.catch(e=>{})),r.exports=d,c(r=>{let c;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const c=[];c.d=0,r.then(e=>{i[t]=e,n(c)},e=>{i[o]=e,n(c)});const i={};return i[e]=e=>e(c),i}}const c={};return c[e]=e=>{},c[t]=r,c}))(r);const i=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{c=()=>t(i),c.r=0;const r=e=>e!==s&&!a.has(e)&&(a.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:i()},e=>(e?p(d[o]=e):f(l),n(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf;let t;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}const c=Object.create(null);r.r(c);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(c,i),c}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],c=t[o++],i=0===c?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:c};r.o(e,n)||Object.defineProperty(e,n,i)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".libevm.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="libevm:";r.l=(o,n,c,i)=>{if(e[o])return void e[o].push(n);let s,a;if(void 0!==c){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+c){s=r;break}}}s||(a=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+c),s.src=o),e[o]=[n];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);const n=e[o];if(delete e[o],s.parentNode?.removeChild(s),n?.forEach(e=>e(r)),t)return t(r)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const c=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=c);const i=new Error,s=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=o,n[1](i)}};r.l(r.p+r.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,i]=o;var s,a,l=0;if(n.some(t=>0!==e[t])){for(s in c)r.o(c,s)&&(r.m[s]=c[s]);i&&i(r)}for(t&&t(o);l<n.length;l++)a=n[l],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunklibevm=self.webpackChunklibevm||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(531)})();
|
|
1
|
+
(()=>{"use strict";var e={531(e,t,r){r.a(e,async(e,t)=>{try{const e=await r.e(35).then(()=>r(35)),o=(e._homedir_get,e._msg_error,e._msg_info,e._path_join,e._require),n=(e._set,await o("evm-chains-info"));n._evm_chains_db_path_get,n._rpc_backend_get,n._evm_chain_info_get,n._evm_chains_info,t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const c=t[o]={exports:{}};return e[o](c,c.exports,r),c.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,c,i)=>{let s;i&&((s=[]).d=-1);const a=new Set,l=r.exports;let u,f,p;const d=new Promise((e,t)=>{p=t,f=e});d[t]=l,d[e]=e=>(s&&e(s),a.forEach(e),d.catch(e=>{})),r.exports=d,c(r=>{let c;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const c=[];c.d=0,r.then(e=>{i[t]=e,n(c)},e=>{i[o]=e,n(c)});const i={};return i[e]=e=>e(c),i}}const c={};return c[e]=e=>{},c[t]=r,c}))(r);const i=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{c=()=>t(i),c.r=0;const r=e=>e!==s&&!a.has(e)&&(a.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:i()},e=>(e?p(d[o]=e):f(l),n(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf;let t;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}const c=Object.create(null);r.r(c);const i={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>i[e]=()=>o[e]);return i.default=()=>o,r.d(c,i),c}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],c=t[o++],i=0===c?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:c};r.o(e,n)||Object.defineProperty(e,n,i)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".libevm.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="libevm:";r.l=(o,n,c,i)=>{if(e[o])return void e[o].push(n);let s,a;if(void 0!==c){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+c){s=r;break}}}s||(a=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+c),s.src=o),e[o]=[n];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(f);const n=e[o];if(delete e[o],s.parentNode?.removeChild(s),n?.forEach(e=>e(r)),t)return t(r)},f=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),a&&document.head.appendChild(s)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const c=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=c);const i=new Error,s=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",i.name="ChunkLoadError",i.type=e,i.request=r,i.event=o,n[1](i)}};r.l(r.p+r.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,i]=o;var s,a,l=0;if(n.some(t=>0!==e[t])){for(s in c)r.o(c,s)&&(r.m[s]=c[s]);i&&i(r)}for(t&&t(o);l<n.length;l++)a=n[l],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},o=self.webpackChunklibevm=self.webpackChunklibevm||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(531)})();
|
package/libevm
CHANGED
|
@@ -64,6 +64,12 @@ const
|
|
|
64
64
|
const
|
|
65
65
|
_require =
|
|
66
66
|
_libcrash._require;
|
|
67
|
+
/* global
|
|
68
|
+
_set:
|
|
69
|
+
writable */
|
|
70
|
+
const
|
|
71
|
+
_set =
|
|
72
|
+
_libcrash._set;
|
|
67
73
|
const
|
|
68
74
|
_evm_chains_info_module =
|
|
69
75
|
await _require(
|
|
@@ -98,73 +104,101 @@ function
|
|
|
98
104
|
/* global
|
|
99
105
|
call_auth:
|
|
100
106
|
writable */
|
|
101
|
-
|
|
102
|
-
""
|
|
107
|
+
_set(
|
|
108
|
+
"call",
|
|
109
|
+
"auth",
|
|
110
|
+
"");
|
|
103
111
|
/* global
|
|
104
112
|
wallet_name:
|
|
105
113
|
writable */
|
|
106
|
-
|
|
107
|
-
""
|
|
114
|
+
_set(
|
|
115
|
+
"wallet",
|
|
116
|
+
"name",
|
|
117
|
+
"");
|
|
108
118
|
/* global
|
|
109
119
|
wallet_path:
|
|
110
120
|
writable */
|
|
111
|
-
|
|
112
|
-
""
|
|
121
|
+
_set(
|
|
122
|
+
"wallet",
|
|
123
|
+
"path",
|
|
124
|
+
"");
|
|
113
125
|
/* global
|
|
114
126
|
wallet_password:
|
|
115
127
|
writable */
|
|
116
|
-
|
|
117
|
-
""
|
|
128
|
+
_set(
|
|
129
|
+
"wallet",
|
|
130
|
+
"password",
|
|
131
|
+
"");
|
|
118
132
|
/* global
|
|
119
133
|
wallet_address:
|
|
120
134
|
writable */
|
|
121
|
-
|
|
122
|
-
""
|
|
135
|
+
_set(
|
|
136
|
+
"wallet",
|
|
137
|
+
"address",
|
|
138
|
+
"");
|
|
123
139
|
/* global
|
|
124
140
|
wallet_seed:
|
|
125
141
|
writable */
|
|
126
|
-
|
|
127
|
-
""
|
|
142
|
+
_set(
|
|
143
|
+
"wallet",
|
|
144
|
+
"seed",
|
|
145
|
+
"");
|
|
128
146
|
/* global
|
|
129
147
|
api_key:
|
|
130
148
|
writable */
|
|
131
|
-
|
|
132
|
-
""
|
|
149
|
+
_set(
|
|
150
|
+
"api",
|
|
151
|
+
"key",
|
|
152
|
+
"");
|
|
133
153
|
/* global
|
|
134
154
|
networks_amount:
|
|
135
155
|
writable */
|
|
136
|
-
|
|
137
|
-
""
|
|
156
|
+
_set(
|
|
157
|
+
"networks",
|
|
158
|
+
"amount",
|
|
159
|
+
"");
|
|
138
160
|
/* global
|
|
139
161
|
target_network:
|
|
140
162
|
writable */
|
|
141
|
-
|
|
142
|
-
""
|
|
163
|
+
_set(
|
|
164
|
+
"target",
|
|
165
|
+
"network",
|
|
166
|
+
"");
|
|
143
167
|
/* global
|
|
144
168
|
target_networks:
|
|
145
169
|
writable */
|
|
146
|
-
|
|
147
|
-
|
|
170
|
+
_set(
|
|
171
|
+
"target",
|
|
172
|
+
"networks",
|
|
173
|
+
[]);
|
|
148
174
|
/* global
|
|
149
175
|
rpc_selection:
|
|
150
176
|
writable */
|
|
151
|
-
|
|
152
|
-
""
|
|
177
|
+
_set(
|
|
178
|
+
"rpc",
|
|
179
|
+
"selection",
|
|
180
|
+
"");
|
|
153
181
|
/* global
|
|
154
182
|
retries_max:
|
|
155
183
|
writable */
|
|
156
|
-
|
|
157
|
-
""
|
|
184
|
+
_set(
|
|
185
|
+
"retries",
|
|
186
|
+
"max",
|
|
187
|
+
"");
|
|
158
188
|
/* global
|
|
159
189
|
call_timeout:
|
|
160
190
|
writable */
|
|
161
|
-
|
|
162
|
-
""
|
|
191
|
+
_set(
|
|
192
|
+
"call",
|
|
193
|
+
"timeout",
|
|
194
|
+
"");
|
|
163
195
|
/* global
|
|
164
196
|
msg_value:
|
|
165
197
|
writable */
|
|
166
|
-
|
|
167
|
-
""
|
|
198
|
+
_set(
|
|
199
|
+
"msg",
|
|
200
|
+
"value",
|
|
201
|
+
"");
|
|
168
202
|
}
|
|
169
203
|
|
|
170
204
|
function
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name":
|
|
3
3
|
"libevm",
|
|
4
4
|
"version":
|
|
5
|
-
"0.0.
|
|
5
|
+
"0.0.39",
|
|
6
6
|
"description":
|
|
7
7
|
"Library providing useful functions to write native applications interacting with EVM-compatible blockchain networks.",
|
|
8
8
|
"funding": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"brace-expansion":
|
|
61
61
|
"^5.0.9",
|
|
62
62
|
"crash-js-webpack":
|
|
63
|
-
"^0.0.
|
|
63
|
+
"^0.0.69",
|
|
64
64
|
"fast-uri":
|
|
65
65
|
"^4.1.2",
|
|
66
66
|
"eslint":
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@eslint/js":
|
|
71
71
|
"^10.0.1",
|
|
72
72
|
"safely-serve":
|
|
73
|
-
"^0.0.
|
|
73
|
+
"^0.0.19",
|
|
74
74
|
"webpack":
|
|
75
75
|
"^5.109.2",
|
|
76
76
|
"webpack-cli":
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"libcrash-js":
|
|
81
|
-
"npm:crash-js@^
|
|
81
|
+
"npm:crash-js@^100000000000001.1000000000000001.1000000000000001",
|
|
82
82
|
"evm-chains-info":
|
|
83
83
|
"^0.0.34",
|
|
84
84
|
"evm-wallet":
|
|
85
|
-
"npm:evm-wallet.js@^0.0.
|
|
85
|
+
"npm:evm-wallet.js@^0.0.91",
|
|
86
86
|
"ws":
|
|
87
87
|
"^8.21.0",
|
|
88
88
|
"yargs":
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"evm-chains-info":
|
|
93
93
|
"^0.0.34",
|
|
94
94
|
"evm-wallet":
|
|
95
|
-
"npm:evm-wallet.js@^0.0.
|
|
95
|
+
"npm:evm-wallet.js@^0.0.91",
|
|
96
96
|
"libevm":
|
|
97
97
|
"./libevm"
|
|
98
98
|
},
|