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.
Files changed (65) hide show
  1. package/dist/evm-contract-call/evm-contract-call.js +1 -1
  2. package/dist/evm-contract-call/fs-worker.js +1 -1
  3. package/dist/evm-contract-deployment-abi/evm-contract-deployment-abi.js +1 -1
  4. package/dist/evm-contract-deployment-abi/fs-worker.js +1 -1
  5. package/dist/evm-contract-deployment-address/evm-contract-deployment-address.js +1 -1
  6. package/dist/evm-contract-deployment-address/fs-worker.js +1 -1
  7. package/dist/evm-contract-deployment-bytecode/evm-contract-deployment-bytecode.js +1 -1
  8. package/dist/evm-contract-deployment-bytecode/fs-worker.js +1 -1
  9. package/dist/evm-contract-deployment-compiler-output/evm-contract-deployment-compiler-output.js +1 -1
  10. package/dist/evm-contract-deployment-compiler-output/fs-worker.js +1 -1
  11. package/dist/evm-contract-deployment-deployment-networks +1 -1
  12. package/dist/evm-contract-deployment-networks/evm-contract-deployment-networks.js +1 -1
  13. package/dist/evm-contract-deployment-versions/evm-contract-deployment-versions.js +1 -1
  14. package/dist/evm-contract-deployment-versions/fs-worker.js +1 -1
  15. package/dist/evm-contract-deployments-dir/evm-contract-deployments-dir.js +1 -1
  16. package/dist/evm-contract-deployments-dir/fs-worker.js +1 -1
  17. package/dist/evm-contracts-tools/evm-contracts-tools.js +1 -1
  18. package/dist/evm-contracts-tools/fs-worker.js +1 -1
  19. package/dist/libevm-contract-call/fs-worker.js +1 -1
  20. package/dist/libevm-contract-call/libevm-contract-call.js +1 -1
  21. package/dist/libevm-contract-deployment-abi/fs-worker.js +1 -1
  22. package/dist/libevm-contract-deployment-abi/libevm-contract-deployment-abi.js +1 -1
  23. package/dist/libevm-contract-deployment-address/fs-worker.js +1 -1
  24. package/dist/libevm-contract-deployment-address/libevm-contract-deployment-address.js +1 -1
  25. package/dist/libevm-contract-deployment-bytecode/fs-worker.js +1 -1
  26. package/dist/libevm-contract-deployment-bytecode/libevm-contract-deployment-bytecode.js +1 -1
  27. package/dist/libevm-contract-deployment-compiler-output/fs-worker.js +1 -1
  28. package/dist/libevm-contract-deployment-compiler-output/libevm-contract-deployment-compiler-output.js +2 -0
  29. package/dist/libevm-contract-deployment-deployment-networks +1 -1
  30. package/dist/libevm-contract-deployment-networks/libevm-contract-deployment-networks.js +1 -1
  31. package/dist/libevm-contract-deployment-versions/fs-worker.js +1 -1
  32. package/dist/libevm-contract-deployment-versions/libevm-contract-deployment-versions.js +1 -1
  33. package/dist/libevm-contract-deployments-dir/fs-worker.js +1 -1
  34. package/dist/libevm-contract-deployments-dir/libevm-contract-deployments-dir.js +1 -1
  35. package/dist/libevm-contracts-tools +1 -1
  36. package/eslint.config.mjs +150 -0
  37. package/evm-contract-call +18 -11
  38. package/evm-contract-call.webpack.config.cjs +159 -0
  39. package/evm-contract-deployment-abi.webpack.config.cjs +159 -0
  40. package/evm-contract-deployment-address.webpack.config.cjs +159 -0
  41. package/evm-contract-deployment-bytecode.webpack.config.cjs +159 -0
  42. package/evm-contract-deployment-compiler-output.webpack.config.cjs +159 -0
  43. package/evm-contract-deployment-networks.webpack.config.cjs +159 -0
  44. package/evm-contract-deployment-versions.webpack.config.cjs +159 -0
  45. package/evm-contract-deployments-dir.webpack.config.cjs +159 -0
  46. package/fs-worker.webpack.config.cjs +82 -0
  47. package/lib/address-check +16 -11
  48. package/lib/bytecode-creation-get +24 -14
  49. package/lib/bytecode-runtime-get +20 -15
  50. package/lib/contract-get +35 -17
  51. package/lib/deployer-get +47 -10
  52. package/lib/deployer-verify +19 -16
  53. package/lib/evm-contract-call-dynamic +40 -23
  54. package/lib/evm-contract-call-static +222 -153
  55. package/libevm-contract-call +10 -5
  56. package/libevm-contract-call.webpack.config.cjs +159 -0
  57. package/libevm-contract-deployment-abi.webpack.config.cjs +155 -0
  58. package/libevm-contract-deployment-address.webpack.config.cjs +155 -0
  59. package/libevm-contract-deployment-bytecode.webpack.config.cjs +155 -0
  60. package/libevm-contract-deployment-compiler-output.webpack.config.cjs +155 -0
  61. package/libevm-contract-deployment-networks.webpack.config.cjs +159 -0
  62. package/libevm-contract-deployment-versions.webpack.config.cjs +159 -0
  63. package/libevm-contract-deployments-dir.webpack.config.cjs +159 -0
  64. package/package.json +47 -46
  65. package/webpack.config.cjs +155 -0
@@ -0,0 +1,155 @@
1
+ /** ---------------------------------------------------------
2
+ * libevm-contract-deployment-abi.webpack.config.cjs
3
+ * ---------------------------------------------------------
4
+ * Copyright ©
5
+ * Pellegrino Prevete
6
+ * 2024, 2025, 2026
7
+ *
8
+ * All rights reserved
9
+ * ---------------------------------------------------------
10
+ *
11
+ * This program is free software: you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License
13
+ * as published by the Free Software Foundation, either
14
+ * version 3 of the License, or (at your option) any later
15
+ * version.
16
+ *
17
+ * This program is distributed in the hope that it will be
18
+ * useful, but WITHOUT ANY WARRANTY; without even the implied
19
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20
+ * PURPOSE.
21
+ * See the GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the
24
+ * GNU General Public License along with this program.
25
+ * If not, see <https://www.gnu.org/licenses/>.
26
+ */
27
+
28
+ const
29
+ _path =
30
+ require(
31
+ 'path');
32
+ const
33
+ _output_dir =
34
+ _path.resolve(
35
+ __dirname);
36
+ const
37
+ _input_file_name =
38
+ `libevm-contract-deployment-abi`;
39
+ const
40
+ _input_file_path =
41
+ `./${_input_file_name}`;
42
+ const
43
+ _output_file_name =
44
+ `${_input_file_name}.js`;
45
+ const
46
+ _output = {
47
+ path:
48
+ _output_dir,
49
+ filename:
50
+ _output_file_name
51
+ };
52
+ const
53
+ _node_fs_ignore = {
54
+ resourceRegExp:
55
+ /^node:fs$/
56
+ };
57
+ const
58
+ _yargs_ignore =
59
+ { resourceRegExp:
60
+ /^yargs$/ };
61
+ const
62
+ _yargs_helpers_ignore = {
63
+ resourceRegExp:
64
+ /^yargs\/helpers$/
65
+ };
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
+ "fs":
96
+ _path.resolve(
97
+ __dirname,
98
+ 'node_modules/fs/fs'),
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
+ "libevm":
112
+ _path.resolve(
113
+ __dirname,
114
+ 'node_modules/libevm/libevm'),
115
+ "path":
116
+ _path.resolve(
117
+ __dirname,
118
+ 'node_modules/path/mod.js'),
119
+ "web-worker":
120
+ _path.resolve(
121
+ __dirname,
122
+ 'node_modules/web-worker/mod.js'),
123
+ "yargs":
124
+ _path.resolve(
125
+ __dirname,
126
+ 'node_modules/yargs/browser.mjs'),
127
+ "yargs/helpers":
128
+ _path.resolve(
129
+ __dirname,
130
+ 'node_modules/yargs/helpers/helpers.mjs'),
131
+ "yargs-parser":
132
+ _path.resolve(
133
+ __dirname,
134
+ 'node_modules/yargs-parser/browser.mjs'),
135
+ },
136
+ fallback: {
137
+ "utils":
138
+ false,
139
+ "web-worker":
140
+ false,
141
+ "yargs":
142
+ false,
143
+ "yargs/helpers":
144
+ false,
145
+ }
146
+ },
147
+ externals:
148
+ { yargs:
149
+ 'yargs' },
150
+ plugins: [
151
+ _node_fs_ignore_plugin,
152
+ _yargs_ignore_plugin,
153
+ _yargs_helpers_ignore_plugin
154
+ ]
155
+ };
@@ -0,0 +1,155 @@
1
+ /** ---------------------------------------------------------
2
+ * libevm-contract-deployment-address.webpack.config.cjs
3
+ * ---------------------------------------------------------
4
+ * Copyright ©
5
+ * Pellegrino Prevete
6
+ * 2024, 2025, 2026
7
+ *
8
+ * All rights reserved
9
+ * ---------------------------------------------------------
10
+ *
11
+ * This program is free software: you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License
13
+ * as published by the Free Software Foundation, either
14
+ * version 3 of the License, or (at your option) any later
15
+ * version.
16
+ *
17
+ * This program is distributed in the hope that it will be
18
+ * useful, but WITHOUT ANY WARRANTY; without even the implied
19
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20
+ * PURPOSE.
21
+ * See the GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the
24
+ * GNU General Public License along with this program.
25
+ * If not, see <https://www.gnu.org/licenses/>.
26
+ */
27
+
28
+ const
29
+ _path =
30
+ require(
31
+ 'path');
32
+ const
33
+ _output_dir =
34
+ _path.resolve(
35
+ __dirname);
36
+ const
37
+ _input_file_name =
38
+ `libevm-contract-deployment-address`;
39
+ const
40
+ _input_file_path =
41
+ `./${_input_file_name}`;
42
+ const
43
+ _output_file_name =
44
+ `${_input_file_name}.js`;
45
+ const
46
+ _output = {
47
+ path:
48
+ _output_dir,
49
+ filename:
50
+ _output_file_name
51
+ };
52
+ const
53
+ _node_fs_ignore = {
54
+ resourceRegExp:
55
+ /^node:fs$/
56
+ };
57
+ const
58
+ _yargs_ignore =
59
+ { resourceRegExp:
60
+ /^yargs$/ };
61
+ const
62
+ _yargs_helpers_ignore = {
63
+ resourceRegExp:
64
+ /^yargs\/helpers$/
65
+ };
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
+ "fs":
96
+ _path.resolve(
97
+ __dirname,
98
+ 'node_modules/fs/fs'),
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.js":
108
+ _path.resolve(
109
+ __dirname,
110
+ 'node_modules/evm-wallet.js/libevm-wallet'),
111
+ "libevm":
112
+ _path.resolve(
113
+ __dirname,
114
+ 'node_modules/libevm/libevm'),
115
+ "path":
116
+ _path.resolve(
117
+ __dirname,
118
+ 'node_modules/path/mod.js'),
119
+ "web-worker":
120
+ _path.resolve(
121
+ __dirname,
122
+ 'node_modules/web-worker/mod.js'),
123
+ "yargs":
124
+ _path.resolve(
125
+ __dirname,
126
+ 'node_modules/yargs/browser.mjs'),
127
+ "yargs/helpers":
128
+ _path.resolve(
129
+ __dirname,
130
+ 'node_modules/yargs/helpers/helpers.mjs'),
131
+ "yargs-parser":
132
+ _path.resolve(
133
+ __dirname,
134
+ 'node_modules/yargs-parser/browser.mjs'),
135
+ },
136
+ fallback: {
137
+ "utils":
138
+ false,
139
+ "web-worker":
140
+ false,
141
+ "yargs":
142
+ false,
143
+ "yargs/helpers":
144
+ false,
145
+ }
146
+ },
147
+ externals:
148
+ { yargs:
149
+ 'yargs' },
150
+ plugins: [
151
+ _node_fs_ignore_plugin,
152
+ _yargs_ignore_plugin,
153
+ _yargs_helpers_ignore_plugin
154
+ ]
155
+ };
@@ -0,0 +1,155 @@
1
+ /** ---------------------------------------------------------
2
+ * libevm-contract-deployment-bytecode.webpack.config.cjs
3
+ * ---------------------------------------------------------
4
+ * Copyright ©
5
+ * Pellegrino Prevete
6
+ * 2024, 2025, 2026
7
+ *
8
+ * All rights reserved
9
+ * ---------------------------------------------------------
10
+ *
11
+ * This program is free software: you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License
13
+ * as published by the Free Software Foundation, either
14
+ * version 3 of the License, or (at your option) any later
15
+ * version.
16
+ *
17
+ * This program is distributed in the hope that it will be
18
+ * useful, but WITHOUT ANY WARRANTY; without even the implied
19
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20
+ * PURPOSE.
21
+ * See the GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the
24
+ * GNU General Public License along with this program.
25
+ * If not, see <https://www.gnu.org/licenses/>.
26
+ */
27
+
28
+ const
29
+ _path =
30
+ require(
31
+ 'path');
32
+ const
33
+ _output_dir =
34
+ _path.resolve(
35
+ __dirname);
36
+ const
37
+ _input_file_name =
38
+ `libevm-contract-deployment-bytecode`;
39
+ const
40
+ _input_file_path =
41
+ `./${_input_file_name}`;
42
+ const
43
+ _output_file_name =
44
+ `${_input_file_name}.js`;
45
+ const
46
+ _output = {
47
+ path:
48
+ _output_dir,
49
+ filename:
50
+ _output_file_name
51
+ };
52
+ const
53
+ _node_fs_ignore = {
54
+ resourceRegExp:
55
+ /^node:fs$/
56
+ };
57
+ const
58
+ _yargs_ignore =
59
+ { resourceRegExp:
60
+ /^yargs$/ };
61
+ const
62
+ _yargs_helpers_ignore = {
63
+ resourceRegExp:
64
+ /^yargs\/helpers$/
65
+ };
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
+ "fs":
96
+ _path.resolve(
97
+ __dirname,
98
+ 'node_modules/fs/fs'),
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
+ "libevm":
112
+ _path.resolve(
113
+ __dirname,
114
+ 'node_modules/libevm/libevm'),
115
+ "path":
116
+ _path.resolve(
117
+ __dirname,
118
+ 'node_modules/path/mod.js'),
119
+ "web-worker":
120
+ _path.resolve(
121
+ __dirname,
122
+ 'node_modules/web-worker/mod.js'),
123
+ "yargs":
124
+ _path.resolve(
125
+ __dirname,
126
+ 'node_modules/yargs/browser.mjs'),
127
+ "yargs/helpers":
128
+ _path.resolve(
129
+ __dirname,
130
+ 'node_modules/yargs/helpers/helpers.mjs'),
131
+ "yargs-parser":
132
+ _path.resolve(
133
+ __dirname,
134
+ 'node_modules/yargs-parser/browser.mjs'),
135
+ },
136
+ fallback: {
137
+ "utils":
138
+ false,
139
+ "web-worker":
140
+ false,
141
+ "yargs":
142
+ false,
143
+ "yargs/helpers":
144
+ false,
145
+ }
146
+ },
147
+ externals:
148
+ { yargs:
149
+ 'yargs' },
150
+ plugins: [
151
+ _node_fs_ignore_plugin,
152
+ _yargs_ignore_plugin,
153
+ _yargs_helpers_ignore_plugin
154
+ ]
155
+ };
@@ -0,0 +1,155 @@
1
+ /** ---------------------------------------------------------
2
+ * libevm-contract-deployment-compiler-output.webpack.config.cjs
3
+ * ---------------------------------------------------------
4
+ * Copyright ©
5
+ * Pellegrino Prevete
6
+ * 2024, 2025, 2026
7
+ *
8
+ * All rights reserved
9
+ * ---------------------------------------------------------
10
+ *
11
+ * This program is free software: you can redistribute it and/or
12
+ * modify it under the terms of the GNU General Public License
13
+ * as published by the Free Software Foundation, either
14
+ * version 3 of the License, or (at your option) any later
15
+ * version.
16
+ *
17
+ * This program is distributed in the hope that it will be
18
+ * useful, but WITHOUT ANY WARRANTY; without even the implied
19
+ * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20
+ * PURPOSE.
21
+ * See the GNU General Public License for more details.
22
+ *
23
+ * You should have received a copy of the
24
+ * GNU General Public License along with this program.
25
+ * If not, see <https://www.gnu.org/licenses/>.
26
+ */
27
+
28
+ const
29
+ _path =
30
+ require(
31
+ 'path');
32
+ const
33
+ _output_dir =
34
+ _path.resolve(
35
+ __dirname);
36
+ const
37
+ _input_file_name =
38
+ `libevm-contract-deployment-compiler-output`;
39
+ const
40
+ _input_file_path =
41
+ `./${_input_file_name}`;
42
+ const
43
+ _output_file_name =
44
+ `${_input_file_name}.js`;
45
+ const
46
+ _output = {
47
+ path:
48
+ _output_dir,
49
+ filename:
50
+ _output_file_name
51
+ };
52
+ const
53
+ _node_fs_ignore = {
54
+ resourceRegExp:
55
+ /^node:fs$/
56
+ };
57
+ const
58
+ _yargs_ignore =
59
+ { resourceRegExp:
60
+ /^yargs$/ };
61
+ const
62
+ _yargs_helpers_ignore = {
63
+ resourceRegExp:
64
+ /^yargs\/helpers$/
65
+ };
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
+ "fs":
96
+ _path.resolve(
97
+ __dirname,
98
+ 'node_modules/fs/fs'),
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
+ "libevm":
112
+ _path.resolve(
113
+ __dirname,
114
+ 'node_modules/libevm/libevm'),
115
+ "path":
116
+ _path.resolve(
117
+ __dirname,
118
+ 'node_modules/path/mod.js'),
119
+ "web-worker":
120
+ _path.resolve(
121
+ __dirname,
122
+ 'node_modules/web-worker/mod.js'),
123
+ "yargs":
124
+ _path.resolve(
125
+ __dirname,
126
+ 'node_modules/yargs/browser.mjs'),
127
+ "yargs/helpers":
128
+ _path.resolve(
129
+ __dirname,
130
+ 'node_modules/yargs/helpers/helpers.mjs'),
131
+ "yargs-parser":
132
+ _path.resolve(
133
+ __dirname,
134
+ 'node_modules/yargs-parser/browser.mjs'),
135
+ },
136
+ fallback: {
137
+ "utils":
138
+ false,
139
+ "web-worker":
140
+ false,
141
+ "yargs":
142
+ false,
143
+ "yargs/helpers":
144
+ false,
145
+ }
146
+ },
147
+ externals:
148
+ { yargs:
149
+ 'yargs' },
150
+ plugins: [
151
+ _node_fs_ignore_plugin,
152
+ _yargs_ignore_plugin,
153
+ _yargs_helpers_ignore_plugin
154
+ ]
155
+ };