evm-contracts-tools 0.0.49 → 0.0.51
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/evm-contract-call/evm-contract-call.js +1 -1
- package/dist/evm-contract-call/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-abi/evm-contract-deployment-abi.js +1 -1
- package/dist/evm-contract-deployment-abi/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-address/evm-contract-deployment-address.js +1 -1
- package/dist/evm-contract-deployment-address/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-bytecode/evm-contract-deployment-bytecode.js +1 -1
- package/dist/evm-contract-deployment-bytecode/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-compiler-output/evm-contract-deployment-compiler-output.js +1 -1
- package/dist/evm-contract-deployment-compiler-output/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-deployment-networks +1 -1
- package/dist/evm-contract-deployment-networks/evm-contract-deployment-networks.js +1 -1
- package/dist/evm-contract-deployment-versions/evm-contract-deployment-versions.js +1 -1
- package/dist/evm-contract-deployment-versions/fs-worker.js +1 -1
- package/dist/evm-contract-deployments-dir/evm-contract-deployments-dir.js +1 -1
- package/dist/evm-contract-deployments-dir/fs-worker.js +1 -1
- package/dist/evm-contracts-tools/evm-contracts-tools.js +1 -1
- package/dist/evm-contracts-tools/fs-worker.js +1 -1
- package/dist/libevm-contract-call/fs-worker.js +1 -1
- package/dist/libevm-contract-call/libevm-contract-call.js +1 -1
- package/dist/libevm-contract-deployment-abi/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-abi/libevm-contract-deployment-abi.js +1 -1
- package/dist/libevm-contract-deployment-address/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-address/libevm-contract-deployment-address.js +1 -1
- package/dist/libevm-contract-deployment-bytecode/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-bytecode/libevm-contract-deployment-bytecode.js +1 -1
- package/dist/libevm-contract-deployment-compiler-output/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-compiler-output/libevm-contract-deployment-compiler-output.js +2 -0
- package/dist/libevm-contract-deployment-deployment-networks +1 -1
- package/dist/libevm-contract-deployment-networks/libevm-contract-deployment-networks.js +1 -1
- package/dist/libevm-contract-deployment-versions/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-versions/libevm-contract-deployment-versions.js +1 -1
- package/dist/libevm-contract-deployments-dir/fs-worker.js +1 -1
- package/dist/libevm-contract-deployments-dir/libevm-contract-deployments-dir.js +1 -1
- package/dist/libevm-contracts-tools +1 -1
- package/eslint.config.mjs +150 -0
- package/evm-contract-call +18 -11
- package/evm-contract-call.webpack.config.cjs +159 -0
- package/evm-contract-deployment-abi.webpack.config.cjs +159 -0
- package/evm-contract-deployment-address.webpack.config.cjs +159 -0
- package/evm-contract-deployment-bytecode.webpack.config.cjs +159 -0
- package/evm-contract-deployment-compiler-output.webpack.config.cjs +159 -0
- package/evm-contract-deployment-networks.webpack.config.cjs +159 -0
- package/evm-contract-deployment-versions.webpack.config.cjs +159 -0
- package/evm-contract-deployments-dir.webpack.config.cjs +159 -0
- package/fs-worker.webpack.config.cjs +82 -0
- package/lib/address-check +16 -11
- package/lib/bytecode-creation-get +24 -14
- package/lib/bytecode-runtime-get +20 -15
- package/lib/contract-get +35 -17
- package/lib/deployer-get +47 -10
- package/lib/deployer-verify +19 -16
- package/lib/evm-contract-call-dynamic +40 -23
- package/lib/evm-contract-call-static +222 -153
- package/libevm-contract-call +10 -5
- package/libevm-contract-call.webpack.config.cjs +159 -0
- package/libevm-contract-deployment-abi.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-address.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-bytecode.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-compiler-output.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-networks.webpack.config.cjs +159 -0
- package/libevm-contract-deployment-versions.webpack.config.cjs +159 -0
- package/libevm-contract-deployments-dir.webpack.config.cjs +159 -0
- package/package.json +47 -46
- package/webpack.config.cjs +155 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
/** ---------------------------------------------------------
|
|
4
|
+
* evm-contract-deployment-networks.webpack.config.cjs
|
|
5
|
+
* ---------------------------------------------------------
|
|
6
|
+
* Copyright ©
|
|
7
|
+
* Pellegrino Prevete
|
|
8
|
+
* 2024, 2025, 2026
|
|
9
|
+
*
|
|
10
|
+
* All rights reserved
|
|
11
|
+
* ---------------------------------------------------------
|
|
12
|
+
*
|
|
13
|
+
* This program is free software: you can redistribute it and/or
|
|
14
|
+
* modify it under the terms of the GNU General Public License
|
|
15
|
+
* as published by the Free Software Foundation, either
|
|
16
|
+
* version 3 of the License, or (at your option) any later
|
|
17
|
+
* version.
|
|
18
|
+
*
|
|
19
|
+
* This program is distributed in the hope that it will be
|
|
20
|
+
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
21
|
+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE.
|
|
23
|
+
* See the GNU General Public License for more details.
|
|
24
|
+
*
|
|
25
|
+
* You should have received a copy of the
|
|
26
|
+
* GNU General Public License along with this program.
|
|
27
|
+
* If not, see <https://www.gnu.org/licenses/>.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
_path =
|
|
32
|
+
require(
|
|
33
|
+
'path');
|
|
34
|
+
const
|
|
35
|
+
_output_dir =
|
|
36
|
+
_path.resolve(
|
|
37
|
+
__dirname);
|
|
38
|
+
const
|
|
39
|
+
_input_file_name =
|
|
40
|
+
`evm-contract-deployment-networks`;
|
|
41
|
+
const
|
|
42
|
+
_input_file_path =
|
|
43
|
+
`./${_input_file_name}`;
|
|
44
|
+
const
|
|
45
|
+
_output_file_name =
|
|
46
|
+
`${_input_file_name}.js`;
|
|
47
|
+
const
|
|
48
|
+
_output = {
|
|
49
|
+
path:
|
|
50
|
+
_output_dir,
|
|
51
|
+
filename:
|
|
52
|
+
_output_file_name
|
|
53
|
+
};
|
|
54
|
+
const
|
|
55
|
+
_node_fs_ignore =
|
|
56
|
+
{ resourceRegExp:
|
|
57
|
+
/^node:fs$/ };
|
|
58
|
+
const
|
|
59
|
+
_yargs_ignore =
|
|
60
|
+
{ resourceRegExp:
|
|
61
|
+
/^yargs$/ };
|
|
62
|
+
const
|
|
63
|
+
_yargs_helpers_ignore =
|
|
64
|
+
{ resourceRegExp:
|
|
65
|
+
/^yargs\/helpers$/ };
|
|
66
|
+
const
|
|
67
|
+
_webpack =
|
|
68
|
+
require(
|
|
69
|
+
"webpack");
|
|
70
|
+
const
|
|
71
|
+
_ignore_plugin =
|
|
72
|
+
_webpack.IgnorePlugin;
|
|
73
|
+
const
|
|
74
|
+
_node_fs_ignore_plugin =
|
|
75
|
+
new _ignore_plugin(
|
|
76
|
+
_node_fs_ignore);
|
|
77
|
+
const
|
|
78
|
+
_yargs_ignore_plugin =
|
|
79
|
+
new _ignore_plugin(
|
|
80
|
+
_yargs_ignore);
|
|
81
|
+
const
|
|
82
|
+
_yargs_helpers_ignore_plugin =
|
|
83
|
+
new _ignore_plugin(
|
|
84
|
+
_yargs_helpers_ignore);
|
|
85
|
+
module.exports = {
|
|
86
|
+
entry:
|
|
87
|
+
_input_file_path,
|
|
88
|
+
output:
|
|
89
|
+
_output,
|
|
90
|
+
optimization: {
|
|
91
|
+
moduleIds: 'deterministic',
|
|
92
|
+
},
|
|
93
|
+
resolve: {
|
|
94
|
+
alias: {
|
|
95
|
+
"node:fs":
|
|
96
|
+
_path.resolve(
|
|
97
|
+
__dirname,
|
|
98
|
+
'node_modules/opfs/opfs'),
|
|
99
|
+
"fs":
|
|
100
|
+
_path.resolve(
|
|
101
|
+
__dirname,
|
|
102
|
+
'node_modules/fs/fs'),
|
|
103
|
+
"evm-contracts-tools":
|
|
104
|
+
_path.resolve(
|
|
105
|
+
__dirname,
|
|
106
|
+
"evm-contracts-tools"),
|
|
107
|
+
"evm-transactions-tools":
|
|
108
|
+
_path.resolve(
|
|
109
|
+
__dirname,
|
|
110
|
+
"node_modules/evm-transactions-tools/evm-transactions-tools"),
|
|
111
|
+
"evm-wallet":
|
|
112
|
+
_path.resolve(
|
|
113
|
+
__dirname,
|
|
114
|
+
'node_modules/evm-wallet/libevm-wallet'),
|
|
115
|
+
"libevm":
|
|
116
|
+
_path.resolve(
|
|
117
|
+
__dirname,
|
|
118
|
+
'node_modules/libevm/libevm'),
|
|
119
|
+
"path":
|
|
120
|
+
_path.resolve(
|
|
121
|
+
__dirname,
|
|
122
|
+
'node_modules/path/mod.js'),
|
|
123
|
+
"web-worker":
|
|
124
|
+
_path.resolve(
|
|
125
|
+
__dirname,
|
|
126
|
+
'node_modules/web-worker/mod.js'),
|
|
127
|
+
"yargs":
|
|
128
|
+
_path.resolve(
|
|
129
|
+
__dirname,
|
|
130
|
+
'node_modules/yargs/browser.mjs'),
|
|
131
|
+
"yargs/helpers":
|
|
132
|
+
_path.resolve(
|
|
133
|
+
__dirname,
|
|
134
|
+
'node_modules/yargs/helpers/helpers.mjs'),
|
|
135
|
+
"yargs-parser":
|
|
136
|
+
_path.resolve(
|
|
137
|
+
__dirname,
|
|
138
|
+
'node_modules/yargs-parser/browser.mjs'),
|
|
139
|
+
},
|
|
140
|
+
fallback: {
|
|
141
|
+
"utils":
|
|
142
|
+
false,
|
|
143
|
+
"web-worker":
|
|
144
|
+
false,
|
|
145
|
+
"yargs":
|
|
146
|
+
false,
|
|
147
|
+
"yargs/helpers":
|
|
148
|
+
false,
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
externals:
|
|
152
|
+
{ yargs:
|
|
153
|
+
'yargs' },
|
|
154
|
+
plugins: [
|
|
155
|
+
_node_fs_ignore_plugin,
|
|
156
|
+
_yargs_ignore_plugin,
|
|
157
|
+
_yargs_helpers_ignore_plugin
|
|
158
|
+
]
|
|
159
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
/** ---------------------------------------------------------
|
|
4
|
+
* evm-contract-deployment-versions.webpack.config.cjs
|
|
5
|
+
* ---------------------------------------------------------
|
|
6
|
+
* Copyright ©
|
|
7
|
+
* Pellegrino Prevete
|
|
8
|
+
* 2024, 2025, 2026
|
|
9
|
+
*
|
|
10
|
+
* All rights reserved
|
|
11
|
+
* ---------------------------------------------------------
|
|
12
|
+
*
|
|
13
|
+
* This program is free software: you can redistribute it and/or
|
|
14
|
+
* modify it under the terms of the GNU General Public License
|
|
15
|
+
* as published by the Free Software Foundation, either
|
|
16
|
+
* version 3 of the License, or (at your option) any later
|
|
17
|
+
* version.
|
|
18
|
+
*
|
|
19
|
+
* This program is distributed in the hope that it will be
|
|
20
|
+
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
21
|
+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE.
|
|
23
|
+
* See the GNU General Public License for more details.
|
|
24
|
+
*
|
|
25
|
+
* You should have received a copy of the
|
|
26
|
+
* GNU General Public License along with this program.
|
|
27
|
+
* If not, see <https://www.gnu.org/licenses/>.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
_path =
|
|
32
|
+
require(
|
|
33
|
+
'path');
|
|
34
|
+
const
|
|
35
|
+
_output_dir =
|
|
36
|
+
_path.resolve(
|
|
37
|
+
__dirname);
|
|
38
|
+
const
|
|
39
|
+
_input_file_name =
|
|
40
|
+
`evm-contract-deployment-versions`;
|
|
41
|
+
const
|
|
42
|
+
_input_file_path =
|
|
43
|
+
`./${_input_file_name}`;
|
|
44
|
+
const
|
|
45
|
+
_output_file_name =
|
|
46
|
+
`${_input_file_name}.js`;
|
|
47
|
+
const
|
|
48
|
+
_output = {
|
|
49
|
+
path:
|
|
50
|
+
_output_dir,
|
|
51
|
+
filename:
|
|
52
|
+
_output_file_name
|
|
53
|
+
};
|
|
54
|
+
const
|
|
55
|
+
_node_fs_ignore =
|
|
56
|
+
{ resourceRegExp:
|
|
57
|
+
/^node:fs$/ };
|
|
58
|
+
const
|
|
59
|
+
_yargs_ignore =
|
|
60
|
+
{ resourceRegExp:
|
|
61
|
+
/^yargs$/ };
|
|
62
|
+
const
|
|
63
|
+
_yargs_helpers_ignore =
|
|
64
|
+
{ resourceRegExp:
|
|
65
|
+
/^yargs\/helpers$/ };
|
|
66
|
+
const
|
|
67
|
+
_webpack =
|
|
68
|
+
require(
|
|
69
|
+
"webpack");
|
|
70
|
+
const
|
|
71
|
+
_ignore_plugin =
|
|
72
|
+
_webpack.IgnorePlugin;
|
|
73
|
+
const
|
|
74
|
+
_node_fs_ignore_plugin =
|
|
75
|
+
new _ignore_plugin(
|
|
76
|
+
_node_fs_ignore);
|
|
77
|
+
const
|
|
78
|
+
_yargs_ignore_plugin =
|
|
79
|
+
new _ignore_plugin(
|
|
80
|
+
_yargs_ignore);
|
|
81
|
+
const
|
|
82
|
+
_yargs_helpers_ignore_plugin =
|
|
83
|
+
new _ignore_plugin(
|
|
84
|
+
_yargs_helpers_ignore);
|
|
85
|
+
module.exports = {
|
|
86
|
+
entry:
|
|
87
|
+
_input_file_path,
|
|
88
|
+
output:
|
|
89
|
+
_output,
|
|
90
|
+
optimization: {
|
|
91
|
+
moduleIds: 'deterministic',
|
|
92
|
+
},
|
|
93
|
+
resolve: {
|
|
94
|
+
alias: {
|
|
95
|
+
"node:fs":
|
|
96
|
+
_path.resolve(
|
|
97
|
+
__dirname,
|
|
98
|
+
'node_modules/opfs/opfs'),
|
|
99
|
+
"fs":
|
|
100
|
+
_path.resolve(
|
|
101
|
+
__dirname,
|
|
102
|
+
'node_modules/fs/fs'),
|
|
103
|
+
"evm-contracts-tools":
|
|
104
|
+
_path.resolve(
|
|
105
|
+
__dirname,
|
|
106
|
+
"evm-contracts-tools"),
|
|
107
|
+
"evm-transactions-tools":
|
|
108
|
+
_path.resolve(
|
|
109
|
+
__dirname,
|
|
110
|
+
"node_modules/evm-transactions-tools/evm-transactions-tools"),
|
|
111
|
+
"evm-wallet":
|
|
112
|
+
_path.resolve(
|
|
113
|
+
__dirname,
|
|
114
|
+
'node_modules/evm-wallet/libevm-wallet'),
|
|
115
|
+
"libevm":
|
|
116
|
+
_path.resolve(
|
|
117
|
+
__dirname,
|
|
118
|
+
'node_modules/libevm/libevm'),
|
|
119
|
+
"path":
|
|
120
|
+
_path.resolve(
|
|
121
|
+
__dirname,
|
|
122
|
+
'node_modules/path/mod.js'),
|
|
123
|
+
"web-worker":
|
|
124
|
+
_path.resolve(
|
|
125
|
+
__dirname,
|
|
126
|
+
'node_modules/web-worker/mod.js'),
|
|
127
|
+
"yargs":
|
|
128
|
+
_path.resolve(
|
|
129
|
+
__dirname,
|
|
130
|
+
'node_modules/yargs/browser.mjs'),
|
|
131
|
+
"yargs/helpers":
|
|
132
|
+
_path.resolve(
|
|
133
|
+
__dirname,
|
|
134
|
+
'node_modules/yargs/helpers/helpers.mjs'),
|
|
135
|
+
"yargs-parser":
|
|
136
|
+
_path.resolve(
|
|
137
|
+
__dirname,
|
|
138
|
+
'node_modules/yargs-parser/browser.mjs'),
|
|
139
|
+
},
|
|
140
|
+
fallback: {
|
|
141
|
+
"utils":
|
|
142
|
+
false,
|
|
143
|
+
"web-worker":
|
|
144
|
+
false,
|
|
145
|
+
"yargs":
|
|
146
|
+
false,
|
|
147
|
+
"yargs/helpers":
|
|
148
|
+
false,
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
externals:
|
|
152
|
+
{ yargs:
|
|
153
|
+
'yargs' },
|
|
154
|
+
plugins: [
|
|
155
|
+
_node_fs_ignore_plugin,
|
|
156
|
+
_yargs_ignore_plugin,
|
|
157
|
+
_yargs_helpers_ignore_plugin
|
|
158
|
+
]
|
|
159
|
+
};
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
/** ---------------------------------------------------------
|
|
4
|
+
* evm-contract-deployments-dir.webpack.config.cjs
|
|
5
|
+
* ---------------------------------------------------------
|
|
6
|
+
* Copyright ©
|
|
7
|
+
* Pellegrino Prevete
|
|
8
|
+
* 2024, 2025, 2026
|
|
9
|
+
*
|
|
10
|
+
* All rights reserved
|
|
11
|
+
* ---------------------------------------------------------
|
|
12
|
+
*
|
|
13
|
+
* This program is free software: you can redistribute it and/or
|
|
14
|
+
* modify it under the terms of the GNU General Public License
|
|
15
|
+
* as published by the Free Software Foundation, either
|
|
16
|
+
* version 3 of the License, or (at your option) any later
|
|
17
|
+
* version.
|
|
18
|
+
*
|
|
19
|
+
* This program is distributed in the hope that it will be
|
|
20
|
+
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
21
|
+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE.
|
|
23
|
+
* See the GNU General Public License for more details.
|
|
24
|
+
*
|
|
25
|
+
* You should have received a copy of the
|
|
26
|
+
* GNU General Public License along with this program.
|
|
27
|
+
* If not, see <https://www.gnu.org/licenses/>.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
_path =
|
|
32
|
+
require(
|
|
33
|
+
'path');
|
|
34
|
+
const
|
|
35
|
+
_output_dir =
|
|
36
|
+
_path.resolve(
|
|
37
|
+
__dirname);
|
|
38
|
+
const
|
|
39
|
+
_input_file_name =
|
|
40
|
+
`evm-contract-deployments-dir`;
|
|
41
|
+
const
|
|
42
|
+
_input_file_path =
|
|
43
|
+
`./${_input_file_name}`;
|
|
44
|
+
const
|
|
45
|
+
_output_file_name =
|
|
46
|
+
`${_input_file_name}.js`;
|
|
47
|
+
const
|
|
48
|
+
_output = {
|
|
49
|
+
path:
|
|
50
|
+
_output_dir,
|
|
51
|
+
filename:
|
|
52
|
+
_output_file_name
|
|
53
|
+
};
|
|
54
|
+
const
|
|
55
|
+
_node_fs_ignore =
|
|
56
|
+
{ resourceRegExp:
|
|
57
|
+
/^node:fs$/ };
|
|
58
|
+
const
|
|
59
|
+
_yargs_ignore =
|
|
60
|
+
{ resourceRegExp:
|
|
61
|
+
/^yargs$/ };
|
|
62
|
+
const
|
|
63
|
+
_yargs_helpers_ignore =
|
|
64
|
+
{ resourceRegExp:
|
|
65
|
+
/^yargs\/helpers$/ };
|
|
66
|
+
const
|
|
67
|
+
_webpack =
|
|
68
|
+
require(
|
|
69
|
+
"webpack");
|
|
70
|
+
const
|
|
71
|
+
_ignore_plugin =
|
|
72
|
+
_webpack.IgnorePlugin;
|
|
73
|
+
const
|
|
74
|
+
_node_fs_ignore_plugin =
|
|
75
|
+
new _ignore_plugin(
|
|
76
|
+
_node_fs_ignore);
|
|
77
|
+
const
|
|
78
|
+
_yargs_ignore_plugin =
|
|
79
|
+
new _ignore_plugin(
|
|
80
|
+
_yargs_ignore);
|
|
81
|
+
const
|
|
82
|
+
_yargs_helpers_ignore_plugin =
|
|
83
|
+
new _ignore_plugin(
|
|
84
|
+
_yargs_helpers_ignore);
|
|
85
|
+
module.exports = {
|
|
86
|
+
entry:
|
|
87
|
+
_input_file_path,
|
|
88
|
+
output:
|
|
89
|
+
_output,
|
|
90
|
+
optimization: {
|
|
91
|
+
moduleIds: 'deterministic',
|
|
92
|
+
},
|
|
93
|
+
resolve: {
|
|
94
|
+
alias: {
|
|
95
|
+
"node:fs":
|
|
96
|
+
_path.resolve(
|
|
97
|
+
__dirname,
|
|
98
|
+
'node_modules/opfs/opfs'),
|
|
99
|
+
"evm-contracts-tools":
|
|
100
|
+
_path.resolve(
|
|
101
|
+
__dirname,
|
|
102
|
+
"evm-contracts-tools"),
|
|
103
|
+
"evm-transactions-tools":
|
|
104
|
+
_path.resolve(
|
|
105
|
+
__dirname,
|
|
106
|
+
"node_modules/evm-transactions-tools/evm-transactions-tools"),
|
|
107
|
+
"evm-wallet":
|
|
108
|
+
_path.resolve(
|
|
109
|
+
__dirname,
|
|
110
|
+
'node_modules/evm-wallet/libevm-wallet'),
|
|
111
|
+
"fs":
|
|
112
|
+
_path.resolve(
|
|
113
|
+
__dirname,
|
|
114
|
+
'node_modules/fs/fs'),
|
|
115
|
+
"libevm":
|
|
116
|
+
_path.resolve(
|
|
117
|
+
__dirname,
|
|
118
|
+
'node_modules/libevm/libevm'),
|
|
119
|
+
"path":
|
|
120
|
+
_path.resolve(
|
|
121
|
+
__dirname,
|
|
122
|
+
'node_modules/path/mod.js'),
|
|
123
|
+
"web-worker":
|
|
124
|
+
_path.resolve(
|
|
125
|
+
__dirname,
|
|
126
|
+
'node_modules/web-worker/mod.js'),
|
|
127
|
+
"yargs":
|
|
128
|
+
_path.resolve(
|
|
129
|
+
__dirname,
|
|
130
|
+
'node_modules/yargs/browser.mjs'),
|
|
131
|
+
"yargs/helpers":
|
|
132
|
+
_path.resolve(
|
|
133
|
+
__dirname,
|
|
134
|
+
'node_modules/yargs/helpers/helpers.mjs'),
|
|
135
|
+
"yargs-parser":
|
|
136
|
+
_path.resolve(
|
|
137
|
+
__dirname,
|
|
138
|
+
'node_modules/yargs-parser/browser.mjs'),
|
|
139
|
+
},
|
|
140
|
+
fallback: {
|
|
141
|
+
"utils":
|
|
142
|
+
false,
|
|
143
|
+
"web-worker":
|
|
144
|
+
false,
|
|
145
|
+
"yargs":
|
|
146
|
+
false,
|
|
147
|
+
"yargs/helpers":
|
|
148
|
+
false,
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
externals:
|
|
152
|
+
{ yargs:
|
|
153
|
+
'yargs' },
|
|
154
|
+
plugins: [
|
|
155
|
+
_node_fs_ignore_plugin,
|
|
156
|
+
_yargs_ignore_plugin,
|
|
157
|
+
_yargs_helpers_ignore_plugin
|
|
158
|
+
]
|
|
159
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
|
|
3
|
+
/** ---------------------------------------------------------
|
|
4
|
+
* fs-worker.webpack.config.cjs
|
|
5
|
+
* ---------------------------------------------------------
|
|
6
|
+
* Copyright ©
|
|
7
|
+
* Pellegrino Prevete
|
|
8
|
+
* 2025, 2026
|
|
9
|
+
*
|
|
10
|
+
* All rights reserved
|
|
11
|
+
* ---------------------------------------------------------
|
|
12
|
+
*
|
|
13
|
+
* This program is free software: you can redistribute it and/or
|
|
14
|
+
* modify it under the terms of the GNU General Public License
|
|
15
|
+
* as published by the Free Software Foundation, either
|
|
16
|
+
* version 3 of the License, or (at your option) any later
|
|
17
|
+
* version.
|
|
18
|
+
*
|
|
19
|
+
* This program is distributed in the hope that it will be
|
|
20
|
+
* useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
21
|
+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
22
|
+
* PURPOSE.
|
|
23
|
+
* See the GNU General Public License for more details.
|
|
24
|
+
*
|
|
25
|
+
* You should have received a copy of the
|
|
26
|
+
* GNU General Public License along with this program.
|
|
27
|
+
* If not, see <https://www.gnu.org/licenses/>.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
const
|
|
31
|
+
_path =
|
|
32
|
+
require(
|
|
33
|
+
'path');
|
|
34
|
+
const
|
|
35
|
+
_output_dir =
|
|
36
|
+
_path.resolve(
|
|
37
|
+
__dirname);
|
|
38
|
+
const
|
|
39
|
+
_input_file_name =
|
|
40
|
+
"fs-worker";
|
|
41
|
+
const
|
|
42
|
+
_input_file_path =
|
|
43
|
+
`./node_modules/opfs/${_input_file_name}`;
|
|
44
|
+
const
|
|
45
|
+
_output_file_name =
|
|
46
|
+
`${_input_file_name}.js`;
|
|
47
|
+
const
|
|
48
|
+
_output = {
|
|
49
|
+
path:
|
|
50
|
+
_output_dir,
|
|
51
|
+
filename:
|
|
52
|
+
_output_file_name
|
|
53
|
+
};
|
|
54
|
+
module.exports = {
|
|
55
|
+
entry:
|
|
56
|
+
_input_file_path,
|
|
57
|
+
output:
|
|
58
|
+
_output,
|
|
59
|
+
optimization: {
|
|
60
|
+
moduleIds: 'deterministic',
|
|
61
|
+
},
|
|
62
|
+
resolve: {
|
|
63
|
+
alias: {
|
|
64
|
+
"fs":
|
|
65
|
+
_path.resolve(
|
|
66
|
+
__dirname,
|
|
67
|
+
"node_modules/fs/fs"),
|
|
68
|
+
"node:fs":
|
|
69
|
+
_path.resolve(
|
|
70
|
+
__dirname,
|
|
71
|
+
"node_modules/opfs/opfs"),
|
|
72
|
+
"opfs":
|
|
73
|
+
_path.resolve(
|
|
74
|
+
__dirname,
|
|
75
|
+
'node_modules/opfs/opfs'),
|
|
76
|
+
"path":
|
|
77
|
+
_path.resolve(
|
|
78
|
+
__dirname,
|
|
79
|
+
'node_modules/path/mod.js'),
|
|
80
|
+
},
|
|
81
|
+
}
|
|
82
|
+
};
|
package/lib/address-check
CHANGED
|
@@ -45,6 +45,11 @@ const
|
|
|
45
45
|
const
|
|
46
46
|
_cmdline_check =
|
|
47
47
|
_libcrash._cmdline_check;
|
|
48
|
+
/* global
|
|
49
|
+
_exit */
|
|
50
|
+
const
|
|
51
|
+
_exit =
|
|
52
|
+
_libcrash._exit;
|
|
48
53
|
/* global
|
|
49
54
|
_msg_info */
|
|
50
55
|
const
|
|
@@ -56,17 +61,17 @@ const
|
|
|
56
61
|
_msg_error =
|
|
57
62
|
_libcrash._msg_error;
|
|
58
63
|
/* global
|
|
59
|
-
|
|
64
|
+
_require */
|
|
60
65
|
const
|
|
61
|
-
|
|
62
|
-
_libcrash.
|
|
66
|
+
_require =
|
|
67
|
+
_libcrash._require;
|
|
63
68
|
const
|
|
64
|
-
|
|
65
|
-
|
|
69
|
+
_ethers_module =
|
|
70
|
+
await _require(
|
|
66
71
|
"ethers");
|
|
67
72
|
const
|
|
68
73
|
_ethers =
|
|
69
|
-
ethers;
|
|
74
|
+
_ethers_module.ethers;
|
|
70
75
|
/* global
|
|
71
76
|
_address_check */
|
|
72
77
|
const
|
|
@@ -114,7 +119,7 @@ function
|
|
|
114
119
|
|
|
115
120
|
function
|
|
116
121
|
_usage(
|
|
117
|
-
|
|
122
|
+
_exit_code) {
|
|
118
123
|
let
|
|
119
124
|
_display_fun,
|
|
120
125
|
_line;
|
|
@@ -146,8 +151,8 @@ function
|
|
|
146
151
|
_msg_info(
|
|
147
152
|
_line);
|
|
148
153
|
}
|
|
149
|
-
|
|
150
|
-
|
|
154
|
+
_exit(
|
|
155
|
+
_exit_code);
|
|
151
156
|
}
|
|
152
157
|
|
|
153
158
|
function
|
|
@@ -237,8 +242,8 @@ if ( _cmdline_check(
|
|
|
237
242
|
_cmdline_check(
|
|
238
243
|
"ethereum-address-validate") ) {
|
|
239
244
|
_global_variables();
|
|
240
|
-
_cmdline_parse();
|
|
241
|
-
_overrides_set();
|
|
245
|
+
await _cmdline_parse();
|
|
246
|
+
await _overrides_set();
|
|
242
247
|
_config_show();
|
|
243
248
|
app_opts = [
|
|
244
249
|
target_address,
|
|
@@ -38,6 +38,11 @@ const
|
|
|
38
38
|
const
|
|
39
39
|
_error_display =
|
|
40
40
|
_libcrash._error_display;
|
|
41
|
+
/* global
|
|
42
|
+
_exit */
|
|
43
|
+
const
|
|
44
|
+
_exit =
|
|
45
|
+
_libcrash._exit;
|
|
41
46
|
/* global
|
|
42
47
|
_msg_info */
|
|
43
48
|
const
|
|
@@ -48,23 +53,28 @@ const
|
|
|
48
53
|
const
|
|
49
54
|
_msg_error =
|
|
50
55
|
_libcrash._msg_error;
|
|
56
|
+
/* global
|
|
57
|
+
_override_set */
|
|
58
|
+
const
|
|
59
|
+
_override_set =
|
|
60
|
+
_libcrash._override_set;
|
|
51
61
|
/* global
|
|
52
62
|
_printf */
|
|
53
63
|
const
|
|
54
64
|
_printf =
|
|
55
65
|
_libcrash._printf;
|
|
56
66
|
/* global
|
|
57
|
-
|
|
67
|
+
_require */
|
|
58
68
|
const
|
|
59
|
-
|
|
60
|
-
_libcrash.
|
|
69
|
+
_require =
|
|
70
|
+
_libcrash._require;
|
|
61
71
|
const
|
|
62
|
-
|
|
63
|
-
|
|
72
|
+
_ethers_module =
|
|
73
|
+
await _require(
|
|
64
74
|
"ethers");
|
|
65
75
|
const
|
|
66
76
|
_ethers =
|
|
67
|
-
ethers;
|
|
77
|
+
_ethers_module.ethers;
|
|
68
78
|
/* global
|
|
69
79
|
_wei_to_ether */
|
|
70
80
|
const
|
|
@@ -72,7 +82,7 @@ const
|
|
|
72
82
|
_ethers.formatEther;
|
|
73
83
|
const
|
|
74
84
|
_evm_transactions_tools_module =
|
|
75
|
-
|
|
85
|
+
await _require(
|
|
76
86
|
"evm-transactions-tools");
|
|
77
87
|
/* global
|
|
78
88
|
_transaction_get */
|
|
@@ -305,7 +315,7 @@ function
|
|
|
305
315
|
|
|
306
316
|
function
|
|
307
317
|
_usage(
|
|
308
|
-
|
|
318
|
+
_exit_code) {
|
|
309
319
|
let
|
|
310
320
|
_display_fun,
|
|
311
321
|
_line,
|
|
@@ -350,16 +360,16 @@ function
|
|
|
350
360
|
_msg_info(
|
|
351
361
|
_line);
|
|
352
362
|
}
|
|
353
|
-
|
|
354
|
-
|
|
363
|
+
_exit(
|
|
364
|
+
_exit_code);
|
|
355
365
|
}
|
|
356
366
|
|
|
357
367
|
function
|
|
358
368
|
_overrides_set() {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
369
|
+
_override_set(
|
|
370
|
+
"retries",
|
|
371
|
+
"max",
|
|
372
|
+
10);
|
|
363
373
|
}
|
|
364
374
|
|
|
365
375
|
function
|