evm-contracts-tools 0.0.47 → 0.0.49

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 (31) hide show
  1. package/dist/evm-contract-call/evm-contract-call.js +1 -1
  2. package/dist/evm-contract-deployment-abi/evm-contract-deployment-abi.js +2 -0
  3. package/dist/evm-contract-deployment-address/evm-contract-deployment-address.js +2 -0
  4. package/dist/evm-contract-deployment-bytecode/evm-contract-deployment-bytecode.js +2 -0
  5. package/dist/evm-contract-deployment-compiler-output/evm-contract-deployment-compiler-output.js +2 -0
  6. package/dist/evm-contract-deployment-networks/evm-contract-deployment-networks.js +1 -1
  7. package/dist/evm-contract-deployment-versions/evm-contract-deployment-versions.js +1 -1
  8. package/dist/evm-contract-deployments-dir/evm-contract-deployments-dir.js +1 -1
  9. package/dist/evm-contracts-tools/evm-contracts-tools.js +1 -1
  10. package/dist/libevm-contract-call/libevm-contract-call.js +1 -1
  11. package/dist/libevm-contract-deployment-abi/libevm-contract-deployment-abi.js +1 -1
  12. package/dist/libevm-contract-deployment-address/libevm-contract-deployment-address.js +2 -0
  13. package/dist/libevm-contract-deployment-bytecode/libevm-contract-deployment-bytecode.js +2 -0
  14. package/dist/libevm-contract-deployment-networks/libevm-contract-deployment-networks.js +1 -1
  15. package/dist/libevm-contract-deployment-versions/libevm-contract-deployment-versions.js +1 -1
  16. package/dist/libevm-contract-deployments-dir/libevm-contract-deployments-dir.js +1 -1
  17. package/evm-contract-deployment-abi +19 -21
  18. package/evm-contract-deployment-address +11 -11
  19. package/evm-contract-deployment-bytecode +18 -20
  20. package/evm-contract-deployment-compiler-output +19 -22
  21. package/evm-contract-deployments-dir +24 -34
  22. package/libevm-contract-call +0 -18
  23. package/libevm-contract-deployment +650 -0
  24. package/libevm-contract-deployment-abi +13 -32
  25. package/libevm-contract-deployment-address +20 -37
  26. package/libevm-contract-deployment-bytecode +13 -33
  27. package/libevm-contract-deployment-compiler-output +41 -458
  28. package/libevm-contract-deployment-networks +28 -72
  29. package/libevm-contract-deployment-versions +26 -50
  30. package/libevm-contract-deployments-dir +13 -21
  31. package/package.json +14 -11
@@ -30,8 +30,6 @@
30
30
 
31
31
  /* eslint-disable
32
32
  no-unused-vars */
33
- /* eslint-disable
34
- no-useless-assignment */
35
33
 
36
34
  /* EVM Contracts tools global variables */
37
35
  /* global
@@ -77,8 +75,6 @@ const
77
75
  _libcrash_module._chmod;
78
76
  /* global
79
77
  _cp */
80
- /* eslint-disable-next-line
81
- no-global-assign */
82
78
  const
83
79
  _cp =
84
80
  _libcrash_module._cp;
@@ -94,57 +90,41 @@ const
94
90
  _libcrash_module._file_exists;
95
91
  /* global
96
92
  _file_read */
97
- /* eslint-disable-next-line
98
- no-global-assign */
99
93
  const
100
94
  _file_read =
101
95
  _libcrash_module._file_read;
102
96
  /* global
103
97
  _from_bash_ass_array */
104
- /* eslint-disable-next-line
105
- no-global-assign */
106
98
  const
107
99
  _from_bash_ass_array =
108
100
  _libcrash_module._from_bash_ass_array;
109
101
  /* global
110
102
  _homedir_get */
111
- /* eslint-disable-next-line
112
- no-global-assign */
113
103
  const
114
104
  _homedir_get =
115
105
  _libcrash_module._homedir_get;
116
106
  /* global
117
107
  _json_read */
118
- /* eslint-disable-next-line
119
- no-global-assign */
120
108
  const
121
109
  _json_read =
122
110
  _libcrash_module._json_read;
123
111
  /* global
124
112
  _lib_get */
125
- /* eslint-disable-next-line
126
- no-global-assign */
127
113
  const
128
114
  _lib_get =
129
115
  _libcrash_module._lib_get;
130
116
  /* global
131
117
  _mkdir */
132
- /* eslint-disable-next-line
133
- no-global-assign */
134
118
  const
135
119
  _mkdir =
136
120
  _libcrash_module._mkdir;
137
121
  /* global
138
122
  _msg_info */
139
- /* eslint-disable-next-line
140
- no-global-assign */
141
123
  const
142
124
  _msg_info =
143
125
  _libcrash_module._msg_info;
144
126
  /* global
145
127
  _msg_error */
146
- /* eslint-disable-next-line
147
- no-global-assign */
148
128
  const
149
129
  _msg_error =
150
130
  _libcrash_module._msg_error;
@@ -155,8 +135,6 @@ const
155
135
  _libcrash_module._override_set;
156
136
  /* global
157
137
  _path_join */
158
- /* eslint-disable-next-line
159
- no-global-assign */
160
138
  const
161
139
  _path_join =
162
140
  _libcrash_module._path_join;
@@ -191,32 +169,32 @@ const
191
169
  _contract_version_auto_detect */
192
170
  const
193
171
  _contract_version_auto_detect =
194
- _libevm_contract_deployment._contract_version_auto_detect;
172
+ _libevm_contract_deployment_module._contract_version_auto_detect;
195
173
  /* global
196
174
  _deployments_dir_auto_detect */
197
175
  const
198
176
  _deployments_dir_auto_detect =
199
- _libevm_contract_deployment._deployments_dir_auto_detect;
177
+ _libevm_contract_deployment_module._deployments_dir_auto_detect;
200
178
  /* global
201
179
  _network_check */
202
180
  const
203
181
  _network_check =
204
- _libevm_contract_deployment._network_check;
182
+ _libevm_contract_deployment_module._network_check;
205
183
  /* global
206
184
  _networks_all_auto_detect */
207
185
  const
208
186
  _networks_all_auto_detect =
209
- _libevm_contract_deployment._networks_all_auto_detect;
187
+ _libevm_contract_deployment_module._networks_all_auto_detect;
210
188
  /* global
211
189
  _target_app_auto_detect */
212
190
  const
213
191
  _target_app_auto_detect =
214
- _libevm_contract_deployment._target_app_auto_detect;
192
+ _libevm_contract_deployment_module._target_app_auto_detect;
215
193
  /* global
216
194
  _user_deployments_check */
217
195
  const
218
196
  _user_deployments_check =
219
- _libevm_contract_deployment._user_deployments_check;
197
+ _libevm_contract_deployment_module._user_deployments_check;
220
198
  const
221
199
  _libevm_contract_deployment_networks_module =
222
200
  require(
@@ -279,7 +257,8 @@ function
279
257
  `found at path '${_deployments}'.`;
280
258
  _msg_error(
281
259
  _msg,
282
- 1);
260
+ 0);
261
+ throw _msg;
283
262
  }
284
263
  const
285
264
  _contract_abi =
@@ -339,7 +318,8 @@ async function
339
318
  "path with '-d'.";
340
319
  _msg_error(
341
320
  _msg,
342
- 1)
321
+ 0);
322
+ throw _msg;
343
323
  }
344
324
  _system_deployments_dir =
345
325
  await _evm_contract_deployments_dir(
@@ -352,7 +332,8 @@ async function
352
332
  "deployments switch with '-u'." +
353
333
  _msg_error(
354
334
  _msg,
355
- 1)
335
+ 0);
336
+ throw _msg;
356
337
  }
357
338
  }
358
339
  else if ( _user_defined == "y" ) {
@@ -385,7 +366,7 @@ async function
385
366
  }
386
367
  if ( _networks_all == "y" ) {
387
368
  _msg =
388
- "Selecting all networks."
369
+ "Selecting all networks.";
389
370
  _msg_info(
390
371
  _msg);
391
372
  _target_networks =
@@ -30,8 +30,6 @@
30
30
 
31
31
  /* eslint-disable
32
32
  no-unused-vars */
33
- /* eslint-disable
34
- no-useless-assignment */
35
33
 
36
34
  /* EVM Contracts tools global variables */
37
35
  /* global
@@ -77,8 +75,6 @@ const
77
75
  _libcrash_module._chmod;
78
76
  /* global
79
77
  _cp */
80
- /* eslint-disable-next-line
81
- no-global-assign */
82
78
  const
83
79
  _cp =
84
80
  _libcrash_module._cp;
@@ -94,57 +90,41 @@ const
94
90
  _libcrash_module._file_exists;
95
91
  /* global
96
92
  _file_read */
97
- /* eslint-disable-next-line
98
- no-global-assign */
99
93
  const
100
94
  _file_read =
101
95
  _libcrash_module._file_read;
102
96
  /* global
103
97
  _from_bash_ass_array */
104
- /* eslint-disable-next-line
105
- no-global-assign */
106
98
  const
107
99
  _from_bash_ass_array =
108
100
  _libcrash_module._from_bash_ass_array;
109
101
  /* global
110
102
  _homedir_get */
111
- /* eslint-disable-next-line
112
- no-global-assign */
113
103
  const
114
104
  _homedir_get =
115
105
  _libcrash_module._homedir_get;
116
106
  /* global
117
107
  _json_read */
118
- /* eslint-disable-next-line
119
- no-global-assign */
120
108
  const
121
109
  _json_read =
122
110
  _libcrash_module._json_read;
123
111
  /* global
124
112
  _lib_get */
125
- /* eslint-disable-next-line
126
- no-global-assign */
127
113
  const
128
114
  _lib_get =
129
115
  _libcrash_module._lib_get;
130
116
  /* global
131
117
  _mkdir */
132
- /* eslint-disable-next-line
133
- no-global-assign */
134
118
  const
135
119
  _mkdir =
136
120
  _libcrash_module._mkdir;
137
121
  /* global
138
122
  _msg_info */
139
- /* eslint-disable-next-line
140
- no-global-assign */
141
123
  const
142
124
  _msg_info =
143
125
  _libcrash_module._msg_info;
144
126
  /* global
145
127
  _msg_error */
146
- /* eslint-disable-next-line
147
- no-global-assign */
148
128
  const
149
129
  _msg_error =
150
130
  _libcrash_module._msg_error;
@@ -155,8 +135,6 @@ const
155
135
  _libcrash_module._override_set;
156
136
  /* global
157
137
  _path_join */
158
- /* eslint-disable-next-line
159
- no-global-assign */
160
138
  const
161
139
  _path_join =
162
140
  _libcrash_module._path_join;
@@ -191,32 +169,32 @@ const
191
169
  _contract_version_auto_detect */
192
170
  const
193
171
  _contract_version_auto_detect =
194
- _libevm_contract_deployment._contract_version_auto_detect;
172
+ _libevm_contract_deployment_module._contract_version_auto_detect;
195
173
  /* global
196
174
  _deployments_dir_auto_detect */
197
175
  const
198
176
  _deployments_dir_auto_detect =
199
- _libevm_contract_deployment._deployments_dir_auto_detect;
177
+ _libevm_contract_deployment_module._deployments_dir_auto_detect;
200
178
  /* global
201
179
  _network_check */
202
180
  const
203
181
  _network_check =
204
- _libevm_contract_deployment._network_check;
182
+ _libevm_contract_deployment_module._network_check;
205
183
  /* global
206
184
  _networks_all_auto_detect */
207
185
  const
208
186
  _networks_all_auto_detect =
209
- _libevm_contract_deployment._networks_all_auto_detect;
187
+ _libevm_contract_deployment_module._networks_all_auto_detect;
210
188
  /* global
211
189
  _target_app_auto_detect */
212
190
  const
213
191
  _target_app_auto_detect =
214
- _libevm_contract_deployment._target_app_auto_detect;
192
+ _libevm_contract_deployment_module._target_app_auto_detect;
215
193
  /* global
216
194
  _user_deployments_check */
217
195
  const
218
196
  _user_deployments_check =
219
- _libevm_contract_deployment._user_deployments_check;
197
+ _libevm_contract_deployment_module._user_deployments_check;
220
198
  const
221
199
  _libevm_contract_deployment_networks_module =
222
200
  require(
@@ -248,7 +226,6 @@ function
248
226
  _config,
249
227
  _config_file_ext,
250
228
  _config_path,
251
- _contract_address,
252
229
  _found,
253
230
  _key_name,
254
231
  _msg,
@@ -265,7 +242,7 @@ function
265
242
  }
266
243
  else if ( _configuration_format == "json" ) {
267
244
  _config_file_ext =
268
- "json"
245
+ "json";
269
246
  }
270
247
  else {
271
248
  _msg =
@@ -273,7 +250,8 @@ function
273
250
  `${_configuration_format}'.`;
274
251
  _msg_error(
275
252
  _msg,
276
- 1);
253
+ 0);
254
+ throw _msg;
277
255
  }
278
256
  const
279
257
  _networks = [
@@ -303,7 +281,8 @@ function
303
281
  `found at path '${_deployments}'.`;
304
282
  _msg_error(
305
283
  _msg,
306
- 1);
284
+ 0);
285
+ throw _msg;
307
286
  }
308
287
  if ( _configuration_format == "json" ) {
309
288
  _config =
@@ -334,7 +313,8 @@ function
334
313
  `'${_deployments}'.`;
335
314
  _msg_error(
336
315
  _msg,
337
- 1);
316
+ 0);
317
+ throw _msg;
338
318
  }
339
319
  return _contract_address;
340
320
  }
@@ -377,7 +357,8 @@ async function
377
357
  "path with '-d'.";
378
358
  _msg_error(
379
359
  _msg,
380
- 1)
360
+ 0);
361
+ throw _msg;
381
362
  }
382
363
  _system_deployments_dir =
383
364
  await _evm_contract_deployments_dir(
@@ -390,7 +371,8 @@ async function
390
371
  "deployments switch with '-u'." +
391
372
  _msg_error(
392
373
  _msg,
393
- 1)
374
+ 0);
375
+ throw _msg;
394
376
  }
395
377
  }
396
378
  else if ( _user_defined == "y" ) {
@@ -419,11 +401,12 @@ async function
419
401
  `can be 'y' or 'n', current value '${_user_defined}'.`;
420
402
  _msg_error(
421
403
  _msg,
422
- 1);
404
+ 0);
405
+ throw _msg;
423
406
  }
424
407
  if ( _networks_all == "y" ) {
425
408
  _msg =
426
- "Selecting all networks."
409
+ "Selecting all networks.";
427
410
  _msg_info(
428
411
  _msg);
429
412
  _target_networks =
@@ -30,8 +30,6 @@
30
30
 
31
31
  /* eslint-disable
32
32
  no-unused-vars */
33
- /* eslint-disable
34
- no-useless-assignment */
35
33
 
36
34
  /* EVM Contracts tools global variables */
37
35
  /* global
@@ -77,8 +75,6 @@ const
77
75
  _libcrash_module._chmod;
78
76
  /* global
79
77
  _cp */
80
- /* eslint-disable-next-line
81
- no-global-assign */
82
78
  const
83
79
  _cp =
84
80
  _libcrash_module._cp;
@@ -94,57 +90,41 @@ const
94
90
  _libcrash_module._file_exists;
95
91
  /* global
96
92
  _file_read */
97
- /* eslint-disable-next-line
98
- no-global-assign */
99
93
  const
100
94
  _file_read =
101
95
  _libcrash_module._file_read;
102
96
  /* global
103
97
  _from_bash_ass_array */
104
- /* eslint-disable-next-line
105
- no-global-assign */
106
98
  const
107
99
  _from_bash_ass_array =
108
100
  _libcrash_module._from_bash_ass_array;
109
101
  /* global
110
102
  _homedir_get */
111
- /* eslint-disable-next-line
112
- no-global-assign */
113
103
  const
114
104
  _homedir_get =
115
105
  _libcrash_module._homedir_get;
116
106
  /* global
117
107
  _json_read */
118
- /* eslint-disable-next-line
119
- no-global-assign */
120
108
  const
121
109
  _json_read =
122
110
  _libcrash_module._json_read;
123
111
  /* global
124
112
  _lib_get */
125
- /* eslint-disable-next-line
126
- no-global-assign */
127
113
  const
128
114
  _lib_get =
129
115
  _libcrash_module._lib_get;
130
116
  /* global
131
117
  _mkdir */
132
- /* eslint-disable-next-line
133
- no-global-assign */
134
118
  const
135
119
  _mkdir =
136
120
  _libcrash_module._mkdir;
137
121
  /* global
138
122
  _msg_info */
139
- /* eslint-disable-next-line
140
- no-global-assign */
141
123
  const
142
124
  _msg_info =
143
125
  _libcrash_module._msg_info;
144
126
  /* global
145
127
  _msg_error */
146
- /* eslint-disable-next-line
147
- no-global-assign */
148
128
  const
149
129
  _msg_error =
150
130
  _libcrash_module._msg_error;
@@ -155,8 +135,6 @@ const
155
135
  _libcrash_module._override_set;
156
136
  /* global
157
137
  _path_join */
158
- /* eslint-disable-next-line
159
- no-global-assign */
160
138
  const
161
139
  _path_join =
162
140
  _libcrash_module._path_join;
@@ -182,32 +160,32 @@ const
182
160
  _contract_version_auto_detect */
183
161
  const
184
162
  _contract_version_auto_detect =
185
- _libevm_contract_deployment._contract_version_auto_detect;
163
+ _libevm_contract_deployment_module._contract_version_auto_detect;
186
164
  /* global
187
165
  _deployments_dir_auto_detect */
188
166
  const
189
167
  _deployments_dir_auto_detect =
190
- _libevm_contract_deployment._deployments_dir_auto_detect;
168
+ _libevm_contract_deployment_module._deployments_dir_auto_detect;
191
169
  /* global
192
170
  _network_check */
193
171
  const
194
172
  _network_check =
195
- _libevm_contract_deployment._network_check;
173
+ _libevm_contract_deployment_module._network_check;
196
174
  /* global
197
175
  _networks_all_auto_detect */
198
176
  const
199
177
  _networks_all_auto_detect =
200
- _libevm_contract_deployment._networks_all_auto_detect;
178
+ _libevm_contract_deployment_module._networks_all_auto_detect;
201
179
  /* global
202
180
  _target_app_auto_detect */
203
181
  const
204
182
  _target_app_auto_detect =
205
- _libevm_contract_deployment._target_app_auto_detect;
183
+ _libevm_contract_deployment_module._target_app_auto_detect;
206
184
  /* global
207
185
  _user_deployments_check */
208
186
  const
209
187
  _user_deployments_check =
210
- _libevm_contract_deployment._user_deployments_check;
188
+ _libevm_contract_deployment_module._user_deployments_check;
211
189
  const
212
190
  _libevm_contract_deployments_dir_module =
213
191
  require(
@@ -245,7 +223,6 @@ function
245
223
  _version) {
246
224
  let
247
225
  _bytecode_path,
248
- _contract_bytecode,
249
226
  _found,
250
227
  _key_name,
251
228
  _msg,
@@ -341,7 +318,8 @@ async function
341
318
  "path with '-d'.";
342
319
  _msg_error(
343
320
  _msg,
344
- 1)
321
+ 0);
322
+ throw _msg;
345
323
  }
346
324
  _system_deployments_dir =
347
325
  await _evm_contract_deployments_dir(
@@ -354,7 +332,8 @@ async function
354
332
  "deployments switch with '-u'." +
355
333
  _msg_error(
356
334
  _msg,
357
- 1)
335
+ 0);
336
+ throw _msg;
358
337
  }
359
338
  }
360
339
  else if ( _user_defined == "y" ) {
@@ -383,11 +362,12 @@ async function
383
362
  `can be 'y' or 'n', current value '${_user_defined}'.`;
384
363
  _msg_error(
385
364
  _msg,
386
- 1);
365
+ 0);
366
+ throw _msg;
387
367
  }
388
368
  if ( _networks_all == "y" ) {
389
369
  _msg =
390
- "Selecting all networks."
370
+ "Selecting all networks.";
391
371
  _msg_info(
392
372
  _msg);
393
373
  _target_networks =