evm-contracts-tools 0.0.10 → 0.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.
package/evm-contract-call CHANGED
@@ -30,6 +30,22 @@
30
30
  /* eslint-disable
31
31
  no-unused-vars */
32
32
 
33
+ /* global
34
+ call_auth:
35
+ writable */
36
+ /* global
37
+ call_timeout:
38
+ writable */
39
+ /* global
40
+ msg_value:
41
+ writable */
42
+ /* global
43
+ target_network:
44
+ writable */
45
+ /* global
46
+ api_key:
47
+ writable */
48
+
33
49
  const
34
50
  _libcrash =
35
51
  require(
@@ -69,56 +85,54 @@ const
69
85
  const
70
86
  _process_exit =
71
87
  _libcrash._process_exit;
72
-
73
-
74
88
  const
75
89
  _libevm_module =
76
90
  require(
77
91
  "libevm");
92
+ /* global
93
+ _libevm_cmdline_parse */
94
+ const
95
+ _libevm_cmdline_parse =
96
+ _libevm_module._libevm_cmdline_parse;
78
97
  /* global
79
98
  _libevm_global_variables */
80
99
  const
81
100
  _libevm_global_variables =
82
101
  _libevm_module._libevm_global_variables;
102
+ /* global
103
+ _libevm_url_parse */
104
+ const
105
+ _libevm_url_parse =
106
+ _libevm_module._libevm_url_parse;
83
107
  /* global
84
108
  _wallet_overrides_set */
85
109
  const
86
110
  _wallet_overrides_set =
87
111
  _libevm_module._wallet_overrides_set;
88
112
  const
89
- _libevm_chains_info_module =
113
+ _libevm_contract_call_module =
90
114
  require(
91
- "libevm-chains-info");
92
- /* global
93
- _evm_chains_db_path_get */
94
- const
95
- _evm_chains_db_path_get =
96
- _libevm_chains_info_module._evm_chains_db_path_get;
97
- /* global
98
- _evm_chains_info_get */
99
- const
100
- _evm_chain_info_get =
101
- _libevm_chains_info_module._evm_chain_info_get;
115
+ "./libevm-contract-call");
102
116
  /* global
103
- _rpc_backends_get */
117
+ _artifact_local_auto_detect */
104
118
  const
105
- _rpc_backend_get =
106
- _libevm_chains_info_module._rpc_backend_get;
119
+ _artifact_local_auto_detect =
120
+ _libevm_contract_call_module._artifact_local_auto_detect;
107
121
  /* global
108
- _evm_chains_info */
122
+ _default_artifact_path_get */
109
123
  const
110
- _evm_chains_info =
111
- _libevm_chains_info_module._evm_chains_info;
124
+ _default_artifact_path_get =
125
+ _libevm_contract_call_module._default_artifact_path_get;
112
126
  /* global
113
- _db_paths_auto_detect */
127
+ _evm_contract_call */
114
128
  const
115
- _db_paths_auto_detect =
116
- _libevm_chains_info_module._db_paths_auto_detect;
129
+ _evm_contract_call =
130
+ _libevm_contract_call_module._evm_contract_call;
117
131
  /* global
118
- _input_type_auto_detect */
132
+ _call_auth_auto_detect */
119
133
  const
120
- _input_type_auto_detect =
121
- _libevm_chains_info_module._input_type_auto_detect;
134
+ _call_auth_auto_detect =
135
+ _libevm_contract_call_module._db_paths_auto_detect;
122
136
 
123
137
  function
124
138
  _global_variables() {
@@ -142,6 +156,21 @@ function
142
156
  writable */
143
157
  call_date =
144
158
  "";
159
+ /* global
160
+ wallet_name:
161
+ writable */
162
+ wallet_name =
163
+ "";
164
+ /* global
165
+ retries_max:
166
+ writable */
167
+ retries_max =
168
+ "";
169
+ /* global
170
+ rpc_selection:
171
+ writable */
172
+ rpc_selection =
173
+ "";
145
174
  /* global
146
175
  call_type:
147
176
  writable */
@@ -204,47 +233,71 @@ function
204
233
  "";
205
234
  }
206
235
 
236
+
207
237
  function
208
238
  _overrides_set() {
209
239
  if ( call_date == "" ) {
210
240
  call_date =
211
241
  _get_date_human();
212
242
  }
213
- _wallet_overrides_set();
214
- if ( target_command == "" ) {
215
- target_command =
216
- "get";
217
- }
218
- _input_type_auto_detect();
219
- if ( output_type == "" ) {
220
- output_type =
221
- "name";
222
- }
223
- if ( retrieval_mode == "" ) {
224
- retrieval_mode =
225
- "offline";
226
- }
227
- if ( selection_method == "" ) {
228
- // TODO:
229
- // remove all references
230
- // to that monster
231
- selection_method =
232
- "kirsh";
243
+ if ( wallet_name == "" ) {
244
+ wallet_name =
245
+ "default";
233
246
  }
234
- if ( api_key == "" ) {
235
- api_key =
247
+ if ( index_retrieve == "" ) {
248
+ index_retrieve =
236
249
  "n";
237
250
  }
238
- if ( user_level == "" ) {
239
- user_level =
240
- "y";
251
+ if ( retries_max == "" ) {
252
+ retries_max =
253
+ "300";
241
254
  }
242
- if ( networks_all == "" ) {
243
- networks_all =
244
- "n";
255
+ if ( target_network == "" ) {
256
+ // to be auto-detected
257
+ target_network =
258
+ "1";
245
259
  }
246
- _db_paths_auto_detect(
247
- target_chain);
260
+ if ( rpc_selection == "" ) {
261
+ rpc_selection =
262
+ "kirsh";
263
+ }
264
+ if ( call_type == "" ) {
265
+ call_type =
266
+ "static";
267
+ }
268
+ _call_auth_auto_detect();
269
+ if ( call_timeout == "" ) {
270
+ call_timeout =
271
+ "300000";
272
+ }
273
+ if ( measure_unit == "" ) {
274
+ measure_unit =
275
+ "ether";
276
+ }
277
+ if ( msg_value == "" ) {
278
+ msg_value =
279
+ "0";
280
+ }
281
+ // _api_key_auto_detect();
282
+ if ( contract_address != "" ) {
283
+ if ( contract_abi == "" ) {
284
+ contract_abi =
285
+ _default_artifact_path_get();
286
+ _artifact_local_auto_detect(
287
+ "bytecode");
288
+ _artifact_local_auto_detect(
289
+ "compiler_output");
290
+ if ( contract_abi == "" ||
291
+ _default_artifact_path_get(
292
+ "abi") == contract_abi ) {
293
+ _contract_abi_auto_detect();
294
+ }
295
+ }
296
+ }
297
+ _wallet_overrides_set(
298
+ "evm-wallet",
299
+ wallet_name,
300
+ call_auth);
248
301
  }
249
302
 
250
303
  function
@@ -256,16 +309,31 @@ function
256
309
  `${app_name} configuration:`,
257
310
  ` Call date: ${call_date}`,
258
311
  ` Runtime environment: ${runtime_environment}`,
259
- ` Target command: ${target_command}`,
260
- ` Input type: ${input_type}`,
261
- ` Output type: ${output_type}`,
262
- ` Retrieval mode: ${retrieval_mode}`,
263
- ` User-level database: ${user_level}`,
312
+ ` Call type: ${call_type}`,
313
+ ` Call authentication: ${call_auth}`,
314
+ ` Credentials options:`,
315
+ ` Wallet name: ${wallet_name}`,
316
+ ` Wallet address: ${api_key}`,
317
+ ` Wallet path: ${wallet_path}`,
318
+ ` Wallet password: ${wallet_password}`,
319
+ ` Wallet seed: ${wallet_seed}`,
320
+ ` Network options:`,
321
+ ` Target network: ${target_network}`,
322
+ ` Max retries: ${retries_max}`,
323
+ ` Call timeout: ${call_timeout}`,
264
324
  ` API key: ${api_key}`,
265
- ` RPC selection method: ${selection_method}`,
266
- ` All networks: ${networks_all}`,
267
- ` Target chain: ${target_chain}`,
268
- ` Database paths: ${db_paths}`,
325
+ ` RPC selection method: ${rpc_selection}`,
326
+ ` Gas price: ${gas_price}`,
327
+ ` Contract options:`,
328
+ ` Contract address: ${contract_address}`,
329
+ ` Contract ABI: ${contract_abi}`,
330
+ ` Contract bytecode: ${contract_bytecode}`,
331
+ ` Contract compiler output: ${contract_compiler_output}`,
332
+ ` Call options:`,
333
+ ` Message value: ${msg_value}`,
334
+ ` Measure unit: ${measure_unit}`,
335
+ ` Contract method: ${contract_method}`,
336
+ ` Method arguments: ${method_args}`,
269
337
  ];
270
338
  for ( _line of _text ) {
271
339
  _msg_info(
@@ -555,50 +623,60 @@ function
555
623
  _url_parse() {
556
624
  runtime_environment =
557
625
  "browser";
558
- target_chain =
626
+ call_type =
559
627
  _argv_url_get(
560
- "chain")[
628
+ "call_type")[
561
629
  0];
562
- target_command =
630
+ call_timeout =
563
631
  _argv_url_get(
564
- "command")[
632
+ "call_timeout")[
565
633
  0];
566
- input_type =
634
+ index_retrieve =
567
635
  _argv_url_get(
568
- "input_type")[
636
+ "index_retrieve")[
569
637
  0];
570
- output_type =
638
+ price_gas =
571
639
  _argv_url_get(
572
- "output_type")[
640
+ "price_gas")[
573
641
  0];
574
- input_type =
642
+ measure_unit =
575
643
  _argv_url_get(
576
- "input_type")[
644
+ "measure_unit")[
577
645
  0];
578
- retrieval_mode =
646
+ msg_value =
579
647
  _argv_url_get(
580
- "retrieval_mode")[
648
+ "msg_value")[
581
649
  0];
582
- user_level =
650
+ retries_max =
583
651
  _argv_url_get(
584
- "user_level")[
652
+ "retries_max")[
585
653
  0];
586
- db_paths.push(
654
+ rpc_selection =
587
655
  _argv_url_get(
588
- "db_path")[
589
- 0]);
590
- selection_method =
656
+ "rpc_selection")[
657
+ 0];
658
+ contract_abi =
591
659
  _argv_url_get(
592
- "selection_method")[
660
+ "contract_abi")[
593
661
  0];
594
- api_key =
662
+ contract_compiler_output =
595
663
  _argv_url_get(
596
- "api_key")[
664
+ "contract_compiler_output")[
597
665
  0];
598
- networks_all =
666
+ rpc_selection =
599
667
  _argv_url_get(
600
- "networks_all")[
668
+ "rpc_selection")[
601
669
  0];
670
+ for ( _network of _argv_url_get(
671
+ "network") ) {
672
+ target_networks.push(
673
+ _network);
674
+ }
675
+ for ( _method of _argv_url_get(
676
+ "method_args") ) {
677
+ method_args.push(
678
+ _method);
679
+ }
602
680
  quiet =
603
681
  _argv_url_get(
604
682
  "quiet");
@@ -631,22 +709,34 @@ if ( _cmdline_check(
631
709
  _cmdline_check(
632
710
  "evm-contract-call") == true ) {
633
711
  _cmdline_parse();
712
+ _libevm_cmdline_parse();
634
713
  }
635
714
  else{
636
715
  _url_parse();
716
+ _libevm_url_parse();
637
717
  }
638
718
  _overrides_set();
639
719
  _config_show();
640
720
  app_opts = [
641
- target_command,
642
- input_type,
643
- output_type,
644
- retrieval_mode,
645
- selection_method,
721
+ call_type,
722
+ call_timeout,
723
+ wallet_name,
724
+ wallet_path,
725
+ wallet_password,
726
+ wallet_seed,
646
727
  api_key,
647
- networks_all,
648
- target_chain,
649
- db_paths
728
+ msg_value,
729
+ price_gas,
730
+ measure_unit,
731
+ retries_max,
732
+ target_network,
733
+ rpc_selection,
734
+ contract_address,
735
+ contract_abi,
736
+ contract_bytecode,
737
+ contract_compiler_output,
738
+ contract_method,
739
+ method_args
650
740
  ];
651
741
  _evm_contract_call_cmdline(
652
742
  app_opts);
@@ -75,7 +75,7 @@ const
75
75
  const
76
76
  _evm_wallet_module =
77
77
  require(
78
- "evm-wallet");
78
+ "evm-wallet.js");
79
79
  /* global
80
80
  _provider_get */
81
81
  const
@@ -28,43 +28,96 @@ const
28
28
  _libcrash =
29
29
  require(
30
30
  "crash-js");
31
- _cmdline_check =
32
- _libcrash._cmdline_check;
33
- _msg_info =
34
- _libcrash._msg_info;
35
- _msg_error =
36
- _libcrash._msg_error;
37
- _printf =
38
- _libcrash._printf;
31
+ /* global
32
+ _cmdline_check */
33
+ const
34
+ _cmdline_check =
35
+ _libcrash._cmdline_check;
36
+ /* global
37
+ _msg_info */
38
+ const
39
+ _msg_info =
40
+ _libcrash._msg_info;
41
+ /* global
42
+ _msg_error */
43
+ const
44
+ _msg_error =
45
+ _libcrash._msg_error;
46
+ /* global
47
+ _msg_error */
48
+ const
49
+ _printf =
50
+ _libcrash._printf;
51
+ /* global
52
+ _process_exit */
53
+ const
54
+ _process_exit =
55
+ _libcrash._process_exit;
39
56
  const
40
57
  _deployer_get_module =
41
58
  require(
42
59
  './deployer-get');
43
- _deployer_get =
44
- _deployer_get_module._deployer_get;
60
+ /* global
61
+ _deployer_get */
62
+ const
63
+ _deployer_get =
64
+ _deployer_get_module._deployer_get;
45
65
 
46
66
  function
47
67
  _global_variables() {
68
+ /* global
69
+ app_name:
70
+ writable */
48
71
  app_name =
49
72
  "deployer-verify";
73
+ /* global
74
+ wallet_seed:
75
+ writable */
50
76
  wallet_seed =
51
77
  "";
78
+ /* global
79
+ retries_max:
80
+ writable */
52
81
  retries_max =
53
82
  "";
83
+ /* global
84
+ api_key_path:
85
+ writable */
54
86
  api_key_path =
55
87
  "";
88
+ /* global
89
+ chain_id:
90
+ writable */
56
91
  chain_id =
57
92
  "";
93
+ /* global
94
+ chain_name:
95
+ writable */
58
96
  chain_name =
59
97
  "";
98
+ /* global
99
+ target_network:
100
+ writable */
60
101
  target_network =
61
102
  "";
103
+ /* global
104
+ contract_address:
105
+ writable */
62
106
  contract_address =
63
107
  "";
108
+ /* global
109
+ contract_deployer:
110
+ writable */
64
111
  contract_deployer =
65
112
  "";
113
+ /* global
114
+ transaction_deployment:
115
+ writable */
66
116
  transaction_deployment =
67
117
  "";
118
+ /* global
119
+ quiet:
120
+ writable */
68
121
  quiet =
69
122
  "";
70
123
  }
@@ -87,32 +140,38 @@ async function
87
140
  _contract_deployer,
88
141
  _transaction_deployment) {
89
142
  let
90
- _deployer_get_opts,
91
- _deployer_real,
92
143
  _is_deployer;
93
- _deployer_get_opts = [
94
- _wallet_seed,
95
- _retries_max,
96
- _api_key_path,
97
- _chain_id,
98
- _chain_name,
99
- _target_network,
100
- _contract_address,
101
- _transaction_deployment
102
- ];
103
- _deployer_real =
104
- await _deployer_get.apply(
105
- null,
106
- _deployer_get_opts);
107
- if ( _deployer_real == undefined ) {
108
- throw "Error obtaining the deployer from input data."
144
+ const
145
+ _deployer_get_opts = [
146
+ _wallet_seed,
147
+ _retries_max,
148
+ _api_key_path,
149
+ _chain_id,
150
+ _chain_name,
151
+ _target_network,
152
+ _contract_address,
153
+ _transaction_deployment
154
+ ];
155
+ const
156
+ _deployer_real =
157
+ await _deployer_get.apply(
158
+ null,
159
+ _deployer_get_opts);
160
+ if ( typeof(
161
+ _deployer_real) == "undefined" ) {
162
+ const
163
+ _msg =
164
+ "Error obtaining the deployer from input data.";
165
+ throw _msg;
109
166
  }
110
167
  if ( _contract_deployer == _deployer_real ) {
111
168
  _is_deployer =
112
169
  true;
170
+ }
113
171
  else if ( _contract_deployer != _deployer_real ) {
114
172
  _is_deployer =
115
173
  false;
174
+ }
116
175
  return _is_deployer;
117
176
  }
118
177
 
@@ -122,46 +181,19 @@ function
122
181
  _line,
123
182
  _method_args,
124
183
  _text;
125
- _text =
126
- [];
127
- _text.push(
128
- "deployer-get configuration:");
129
- _text.push(
130
- " Wallet seed: {wallet_seed}".replace(
131
- "{wallet_seed}",
132
- wallet_seed));
133
- _text.push(
134
- " Max retries: {retries_max}".replace(
135
- "{retries_max}",
136
- retries_max));
137
- _text.push(
138
- " API Key path: {api_key_path}".replace(
139
- "{api_key_path}",
140
- api_key_path));
141
- _text.push(
142
- " Chain ID: {chain_id}".replace(
143
- "{chain_id}",
144
- chain_id));
145
- _text.push(
146
- " Chain Name: {chain_name}".replace(
147
- "{chain_name}",
148
- chain_name));
149
- _text.push(
150
- " Target network: {target_network}".replace(
151
- "{target_network}",
152
- target_network));
153
- _text.push(
154
- " Contract address: {contract_address}".replace(
155
- "{contract_address}",
156
- contract_address));
157
- _text.push(
158
- " Contract deployer: {contract_deployer}".replace(
159
- "{contract_deployer}",
160
- contract_deployer));
161
- _text.push(
162
- " Deployment transaction: {transaction_deployment}".replace(
163
- "{transaction_deployment}",
164
- transaction_deployment));
184
+ const
185
+ _text = [
186
+ "deployer-get configuration:",
187
+ ` Wallet seed: ${wallet_seed}`,
188
+ ` Max retries: ${retries_max}`,
189
+ ` API Key path: ${api_key_path}`,
190
+ ` Chain ID: ${chain_id}`,
191
+ ` Chain Name: ${chain_name}`,
192
+ ` Target network: ${target_network}`,
193
+ ` Contract address: ${contract_address}`,
194
+ ` Contract deployer: ${contract_deployer}`,
195
+ ` Deployment transaction: ${transaction_deployment}`
196
+ ];
165
197
  for (_line of _text) {
166
198
  _msg_info(
167
199
  _line);
@@ -183,30 +215,30 @@ function
183
215
  "Usage:",
184
216
  " deployer-verify",
185
217
  " <quiet>",
186
- " <wallet_seed>",
187
- " <retries_max>",
188
- " <api_key_path>",
189
- " <chain_id>",
190
- " <chain_name>",
191
- " <target_network>",
192
- " <contract_address>",
193
- " <contract_deployer>",
194
- " <transaction_deployment>",
218
+ " <wallet-seed>",
219
+ " <retries-max>",
220
+ " <api-key-path>",
221
+ " <chain-id>",
222
+ " <chain-name>",
223
+ " <target-network>",
224
+ " <contract-address>",
225
+ " <contract-deployer>",
226
+ " <transaction-deployment>",
195
227
  "",
196
228
  "Args:",
197
229
  " <quiet> Can be 'y' or 'n'",
198
230
  " Default: y",
199
- " <wallet_seed> Path of the file containing",
231
+ " <wallet-seed> Path of the file containing",
200
232
  " the seed phrase.",
201
- " <retries_max> Maximum number of retries before",
233
+ " <retries-max> Maximum number of retries before",
202
234
  " failing.",
203
- " <api_key_path> Path of the API key for the",
235
+ " <api-key-path> Path of the API key for the",
204
236
  " contract ABI provider service",
205
- " <target_network> Network on which the contract",
237
+ " <target-network> Network on which the contract",
206
238
  " resides.",
207
- " <contract_address> Address of the contract.",
208
- " <contract_deployer> Address of the supposed deployer.",
209
- " <transaction_deployment> Contract deployment transaction.",
239
+ " <contract-address> Address of the contract.",
240
+ " <contract-deployer> Address of the supposed deployer.",
241
+ " <transaction-deployment> Contract deployment transaction.",
210
242
  "",
211
243
  " Options:",
212
244
  " -h This help."
@@ -215,7 +247,7 @@ function
215
247
  _msg_info(
216
248
  _line);
217
249
  }
218
- process.exit(
250
+ _process_exit(
219
251
  _exit);
220
252
  }
221
253
 
@@ -229,6 +261,8 @@ function
229
261
 
230
262
  function
231
263
  _cmdline_parse() {
264
+ let
265
+ _msg;
232
266
  quiet =
233
267
  "y";
234
268
  process.argv.forEach(
@@ -284,29 +318,38 @@ function
284
318
  }
285
319
  );
286
320
  if ( contract_address == "" ) {
321
+ _msg =
322
+ "No contract address specified.";
287
323
  _msg_error(
288
- "No contract address specified.",
324
+ _msg,
289
325
  0);
290
326
  quiet =
291
327
  "n";
328
+ _overrides_set();
292
329
  _usage(
293
330
  1);
294
331
  }
295
332
  if ( contract_deployer == "" ) {
333
+ _msg =
334
+ "No contract deployer specified.";
296
335
  _msg_error(
297
- "No contract deployer specified.",
336
+ _msg,
298
337
  0);
299
338
  quiet =
300
339
  "n";
340
+ _overrides_set();
301
341
  _usage(
302
342
  1);
303
343
  }
304
344
  if ( transaction_deployment == "" ) {
345
+ _msg =
346
+ "No deployement transaction specified.";
305
347
  _msg_error(
306
- "No deployement transaction specified.",
348
+ _msg,
307
349
  0);
308
350
  quiet =
309
351
  "n";
352
+ _overrides_set();
310
353
  _usage(
311
354
  1);
312
355
  }
@@ -316,27 +359,28 @@ async function
316
359
  _deployer_verify_cmdline(
317
360
  _app_opts) {
318
361
  let
319
- _is_deployer,
320
- _msg;
362
+ _is_deployer;
321
363
  try {
322
364
  _is_deployer =
323
365
  await _deployer_verify.apply(
324
366
  null,
325
367
  _app_opts);
326
- if ( _is_deployer != undefined ) {
368
+ if ( typeof(
369
+ _is_deployer) != "undefined" ) {
327
370
  _printf(
328
371
  _is_deployer.toString());
329
372
  }
330
373
  else {
331
- _msg =
332
- "It has not been possile to discern from " +
333
- "input data whether the candidate deployer " +
334
- "is the contract actual deployer.";
374
+ const
375
+ _msg =
376
+ "It has not been possile to discern from " +
377
+ "input data whether the candidate deployer " +
378
+ "is the contract actual deployer.";
335
379
  throw _msg;
336
380
  }
337
- } catch (error) {
381
+ } catch (_error) {
338
382
  _msg_error(
339
- error,
383
+ _error,
340
384
  1);
341
385
  }
342
386
  }
@@ -366,4 +410,3 @@ module.exports = {
366
410
  _deployer_verify:
367
411
  _deployer_verify
368
412
  };
369
-
@@ -81,14 +81,14 @@ const
81
81
  _parse_units =
82
82
  _ethers.parseUnits;
83
83
  const
84
- _price_gas_transaction_get_module =
84
+ _evm_wallet_module =
85
85
  require(
86
- '../evm-wallet/price-gas-transaction-get');
86
+ "evm-wallet.js");
87
87
  /* global
88
88
  _price_gas_transaction_get */
89
89
  const
90
90
  _price_gas_transaction_get =
91
- _price_gas_transaction_get_module._price_gas_transaction_get;
91
+ _evm_wallet_module._price_gas_transaction_get;
92
92
  const
93
93
  _contract_get_module =
94
94
  require(
File without changes
@@ -101,13 +101,29 @@ const
101
101
  _evm_contract_call_static =
102
102
  _evm_contract_call_static_module._evm_contract_call_static;
103
103
 
104
+
105
+ function
106
+ _default_artifact_path_get() {
107
+ true;
108
+ }
109
+
110
+
111
+ function
112
+ _artifact_local_auto_detect() {
113
+ true;
114
+ }
115
+
104
116
  module.exports = {
117
+ _artifact_local_auto_detect:
118
+ _artifact_local_auto_detect,
105
119
  _bytecode_creation_get:
106
120
  _bytecode_creation_get,
107
121
  _bytecode_runtime_get:
108
122
  _bytecode_runtime_get,
109
123
  _contract_get:
110
124
  _contract_get,
125
+ _default_artifact_path_get:
126
+ _default_artifact_path_get,
111
127
  _deployer_get:
112
128
  _deployer_get,
113
129
  _deployer_verify:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  { "name": "evm-contracts-tools",
2
2
  "version":
3
- "0.0.10",
3
+ "0.0.13",
4
4
  "description":
5
5
  "JavaScript programs and libraries to enable seamless development of native computer applications designed to interact with Ethereum Virtual Machine-compatible networks.",
6
6
  "funding": {
@@ -86,7 +86,7 @@
86
86
  "evm-transactions-tools":
87
87
  "^0.0.3",
88
88
  "libevm":
89
- "^0.0.6",
89
+ "^0.0.10",
90
90
  "yargs":
91
91
  "18.0.0"
92
92
  },
package/fs-worker.js DELETED
@@ -1 +0,0 @@
1
- (()=>{var e={816(e,o,n){function t(){let e;return"undefined"==typeof window&&void 0!==n.g&&n.g.global===n.g&&"function"!=typeof n||(e=function(){let e;try{e=n(816)}catch(e){console.log(e);const o="Error importing the '@themartiancompany/opfs' module as 'opfs'. If you got this error while bundling a webpack for a project depending on this module double check its 'webpack.config.js' file or whether the 'opfs' module is listed in developer dependencies and install them.I'm sorry for this inconvenience but Node packagement system does not currently distinguish 'development' from 'build' dependencies.";throw console.error(o),e}return e}()),e}const r=t();e.exports=r,e.exports.getModule=function(e){let o;if(""==_module_name||"undefined"==typeof _module_name)o=t();else if("opfs"==_module_name)o=n(816);else{if("fs"!=_module_name){const e="Unknown file system module "+`'${_module_name}'.`.const;throw _error={msg:e},console.error(e),_error}o=n(816)}return o}},314(e,o,n){const t=n(816);_sync_agent=t.startSyncAgent,e.exports={_sync_agent},_sync_agent()}},o={};function n(t){var r=o[t];if(void 0!==r)return r.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,n),s.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n(314)})();