nebulon-escrow-cli 0.1.0 → 0.8.4
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/package.json +2 -2
- package/src/cli.js +2 -2
- package/src/commands/contract.js +373 -1246
- package/src/commands/init.js +2 -0
- package/src/constants.js +9 -8
- package/src/version.js +5 -0
package/src/commands/init.js
CHANGED
|
@@ -14,6 +14,7 @@ const {
|
|
|
14
14
|
setActiveWallet,
|
|
15
15
|
} = require("../wallets");
|
|
16
16
|
const { banner, successMessage } = require("../ui");
|
|
17
|
+
const { VERSION } = require("../version");
|
|
17
18
|
|
|
18
19
|
const isPromptCancel = (error) => {
|
|
19
20
|
if (!error) {
|
|
@@ -122,6 +123,7 @@ const runInit = async (options = {}, capsuleName) => {
|
|
|
122
123
|
try {
|
|
123
124
|
if (!options.noBanner) {
|
|
124
125
|
banner();
|
|
126
|
+
console.log(chalk.gray(`Version: ${VERSION}`));
|
|
125
127
|
}
|
|
126
128
|
if (capsuleName) {
|
|
127
129
|
try {
|
package/src/constants.js
CHANGED
|
@@ -26,7 +26,7 @@ const DEFAULT_CONFIG = {
|
|
|
26
26
|
rpcUrl: NETWORK_PRESETS.localnet.rpcUrl,
|
|
27
27
|
wsUrl: NETWORK_PRESETS.localnet.wsUrl,
|
|
28
28
|
programId: PROGRAM_ID_DEFAULT,
|
|
29
|
-
backendUrl: "http://
|
|
29
|
+
backendUrl: "http://localhost:3333",
|
|
30
30
|
usdcMint: NETWORK_PRESETS.localnet.usdcMint,
|
|
31
31
|
programIdSource: "custom",
|
|
32
32
|
usdcMintSource: "custom",
|
|
@@ -53,13 +53,14 @@ const DEFAULT_CONFIG = {
|
|
|
53
53
|
contractKeys: {},
|
|
54
54
|
},
|
|
55
55
|
auth: {
|
|
56
|
-
token: null,
|
|
57
|
-
wallet: null,
|
|
58
|
-
handle: null,
|
|
59
|
-
role: null,
|
|
60
|
-
lastAuthAt: null,
|
|
61
|
-
},
|
|
62
|
-
|
|
56
|
+
token: null,
|
|
57
|
+
wallet: null,
|
|
58
|
+
handle: null,
|
|
59
|
+
role: null,
|
|
60
|
+
lastAuthAt: null,
|
|
61
|
+
},
|
|
62
|
+
skipPermissionChecks: false,
|
|
63
|
+
};
|
|
63
64
|
|
|
64
65
|
module.exports = {
|
|
65
66
|
DEFAULT_CONFIG,
|