evm-contracts-tools 0.0.81 → 0.0.83
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/lib/contract-get +74 -52
- package/package.json +1 -1
package/lib/contract-get
CHANGED
|
@@ -551,12 +551,22 @@ async function
|
|
|
551
551
|
_contract_bytecode_path);
|
|
552
552
|
_contract_get_fun =
|
|
553
553
|
_contract_get_bytecode;
|
|
554
|
+
_msg =
|
|
555
|
+
"Selected function " +
|
|
556
|
+
"'_contract_get_bytecode'.";
|
|
557
|
+
_msg_info(
|
|
558
|
+
_msg);
|
|
554
559
|
}
|
|
555
560
|
else if ( _contract_compiler_output_path != "" ) {
|
|
556
561
|
_contract_get_args.push(
|
|
557
562
|
_contract_compiler_output_path);
|
|
558
563
|
_contract_get_fun =
|
|
559
564
|
_contract_get_compiler_output;
|
|
565
|
+
_msg =
|
|
566
|
+
"Selected function " +
|
|
567
|
+
"'_contract_get_compiler_output'.";
|
|
568
|
+
_msg_info(
|
|
569
|
+
_msg);
|
|
560
570
|
}
|
|
561
571
|
else if ( _contract_bytecode_path == "" &&
|
|
562
572
|
_contract_abi_path != "" ) {
|
|
@@ -564,6 +574,11 @@ async function
|
|
|
564
574
|
_contract_abi_path);
|
|
565
575
|
_contract_get_fun =
|
|
566
576
|
_contract_get_abi;
|
|
577
|
+
_msg =
|
|
578
|
+
"Selected function " +
|
|
579
|
+
"'_contract_get_abi'.";
|
|
580
|
+
_msg_info(
|
|
581
|
+
_msg);
|
|
567
582
|
}
|
|
568
583
|
else if ( _contract_bytecode_path == "" &&
|
|
569
584
|
_contract_abi_path == "" &&
|
|
@@ -579,7 +594,7 @@ async function
|
|
|
579
594
|
_error) {
|
|
580
595
|
_msg =
|
|
581
596
|
"Error running " +
|
|
582
|
-
`'
|
|
597
|
+
`'_contract_get_fun' ` +
|
|
583
598
|
"with parameters:";
|
|
584
599
|
_msg_error(
|
|
585
600
|
_msg,
|
|
@@ -596,41 +611,18 @@ async function
|
|
|
596
611
|
function
|
|
597
612
|
_config_show() {
|
|
598
613
|
let
|
|
599
|
-
_line
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
" Contract address: {contract_address}".replace(
|
|
612
|
-
"{contract_address}",
|
|
613
|
-
contract_address));
|
|
614
|
-
_text.push(
|
|
615
|
-
" Contract ABI path: {contract_abi_path}".replace(
|
|
616
|
-
"{contract_abi_path}",
|
|
617
|
-
contract_abi_path));
|
|
618
|
-
_text.push(
|
|
619
|
-
" Contract bytecode: {contract_bytecode_path}".replace(
|
|
620
|
-
"{contract_bytecode_path}",
|
|
621
|
-
contract_bytecode_path));
|
|
622
|
-
_text.push(
|
|
623
|
-
"Contract compiler output: {contract_compiler_output_path}".replace(
|
|
624
|
-
"{contract_compiler_output_path}",
|
|
625
|
-
contract_compiler_output_path));
|
|
626
|
-
_text.push(
|
|
627
|
-
" Target network: {target_network}".replace(
|
|
628
|
-
"{target_network}",
|
|
629
|
-
target_network));
|
|
630
|
-
_text.push(
|
|
631
|
-
" API Key: {api_key_path}".replace(
|
|
632
|
-
"{api_key_path}",
|
|
633
|
-
api_key_path));
|
|
614
|
+
_line;
|
|
615
|
+
const
|
|
616
|
+
_text = [
|
|
617
|
+
` Wallet seed: ${wallet_seed}`,
|
|
618
|
+
` Wallet password: ${wallet_password_path}`,
|
|
619
|
+
` Contract address: ${contract_address}`,
|
|
620
|
+
` Contract ABI path: ${contract_abi_path}`,
|
|
621
|
+
` Contract bytecode: ${contract_bytecode_path}`,
|
|
622
|
+
`Contract compiler output: ${contract_compiler_output_path}`,
|
|
623
|
+
` Target network: ${target_network}`,
|
|
624
|
+
` API Key: ${api_key_path}`,
|
|
625
|
+
];
|
|
634
626
|
for ( _line of _text ) {
|
|
635
627
|
_msg_info(
|
|
636
628
|
_line);
|
|
@@ -657,23 +649,53 @@ function
|
|
|
657
649
|
" (<api-key-path>)",
|
|
658
650
|
"",
|
|
659
651
|
"Args:",
|
|
660
|
-
" <quiet> Can be 'y' or 'n'",
|
|
661
|
-
" Default: y",
|
|
662
|
-
" <wallet-seed> Path of the seed phrase.",
|
|
663
|
-
" <wallet-password-path> Wallet password path.",
|
|
664
|
-
" <contract-address> Contract of the address one is",
|
|
665
|
-
" getting the contract of.",
|
|
666
|
-
" <contract-abi-path> Path of the contract ABI.",
|
|
667
|
-
" <contract-bytecode-path> Path for the contract bytecode.",
|
|
668
|
-
" <contract-compiler-output-path> Path for the contract compiler",
|
|
669
|
-
" output path (the hardhat artifact).",
|
|
670
|
-
" <target-network> Network on which the contract",
|
|
671
|
-
" resides.",
|
|
672
|
-
" <api-key-path> Path of the API key for the",
|
|
673
|
-
" contract ABI provider service.",
|
|
674
652
|
"",
|
|
675
|
-
"
|
|
676
|
-
"
|
|
653
|
+
" <quiet>",
|
|
654
|
+
"",
|
|
655
|
+
" Can be 'y' or 'n'",
|
|
656
|
+
` Default: ${quiet}`,
|
|
657
|
+
"",
|
|
658
|
+
" <wallet-seed>",
|
|
659
|
+
"",
|
|
660
|
+
" Path of the seed phrase.",
|
|
661
|
+
"",
|
|
662
|
+
" <wallet-password-path>",
|
|
663
|
+
"",
|
|
664
|
+
" Wallet password path.",
|
|
665
|
+
"",
|
|
666
|
+
" <contract-address>",
|
|
667
|
+
"",
|
|
668
|
+
" Contract of the address one is",
|
|
669
|
+
" getting the contract of.",
|
|
670
|
+
"",
|
|
671
|
+
" <contract-abi-path>",
|
|
672
|
+
"",
|
|
673
|
+
" Path of the contract ABI.",
|
|
674
|
+
"",
|
|
675
|
+
" <contract-bytecode-path>",
|
|
676
|
+
"",
|
|
677
|
+
" Path for the contract bytecode.",
|
|
678
|
+
"",
|
|
679
|
+
" <contract-compiler-output-path>",
|
|
680
|
+
"",
|
|
681
|
+
" Path for the contract compiler",
|
|
682
|
+
" output path (the hardhat artifact).",
|
|
683
|
+
"",
|
|
684
|
+
" <target-network>",
|
|
685
|
+
"",
|
|
686
|
+
" Network on which the contract",
|
|
687
|
+
" resides.",
|
|
688
|
+
"",
|
|
689
|
+
" <api-key-path>",
|
|
690
|
+
"",
|
|
691
|
+
" Path of the API key for the",
|
|
692
|
+
" contract ABI provider service.",
|
|
693
|
+
"",
|
|
694
|
+
"Options:",
|
|
695
|
+
"",
|
|
696
|
+
" -h, --help",
|
|
697
|
+
"",
|
|
698
|
+
" This help."
|
|
677
699
|
];
|
|
678
700
|
for ( _line of _text ) {
|
|
679
701
|
_echo(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{ "name": "evm-contracts-tools",
|
|
2
2
|
"version":
|
|
3
|
-
"0.0.
|
|
3
|
+
"0.0.83",
|
|
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": {
|