@moltium/world-cli 0.1.2 → 0.1.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/dist/index.js +12 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -395,7 +395,7 @@ var initCommand = new Command("init").description("Initialize a new world projec
|
|
|
395
395
|
"deploy:contracts": "moltium-world deploy"
|
|
396
396
|
},
|
|
397
397
|
dependencies: {
|
|
398
|
-
"@moltium/world-core": "^0.1.
|
|
398
|
+
"@moltium/world-core": "^0.1.4",
|
|
399
399
|
dotenv: "^16.4.0"
|
|
400
400
|
},
|
|
401
401
|
devDependencies: {
|
|
@@ -596,24 +596,13 @@ tokenCommand.command("deploy").description("Deploy custom ERC20 token").option("
|
|
|
596
596
|
TOKEN_DECIMALS: tokenConfig.decimals?.toString() || "18"
|
|
597
597
|
};
|
|
598
598
|
const worldCorePath = path3.join(process.cwd(), "node_modules", "@moltium", "world-core");
|
|
599
|
-
const libPath = path3.join(worldCorePath, "lib");
|
|
600
599
|
try {
|
|
601
|
-
await fs3.access(
|
|
600
|
+
await fs3.access(worldCorePath);
|
|
602
601
|
} catch {
|
|
603
|
-
deploySpinner.
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
stdio: "pipe"
|
|
608
|
-
});
|
|
609
|
-
deploySpinner.text = "Deploying token contract...";
|
|
610
|
-
} catch (error) {
|
|
611
|
-
deploySpinner.fail();
|
|
612
|
-
console.error(chalk2.red("\\n\u274C Failed to install Foundry dependencies"));
|
|
613
|
-
console.log(chalk2.yellow("\\nPlease ensure Foundry is installed: https://getfoundry.sh/"));
|
|
614
|
-
console.log(chalk2.gray(`\\nThen run manually: cd ${worldCorePath} && forge install\\n`));
|
|
615
|
-
process.exit(1);
|
|
616
|
-
}
|
|
602
|
+
deploySpinner.fail();
|
|
603
|
+
console.error(chalk2.red("\\n\u274C @moltium/world-core package not found"));
|
|
604
|
+
console.log(chalk2.yellow("\\nPlease install it: npm install @moltium/world-core\\n"));
|
|
605
|
+
process.exit(1);
|
|
617
606
|
}
|
|
618
607
|
const command = `forge script script/DeployToken.s.sol:DeployTokenScript --rpc-url monad --broadcast -vvv`;
|
|
619
608
|
const output = execSync(command, {
|
|
@@ -759,25 +748,14 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
759
748
|
const deploySpinner = ora4("Deploying AgentRegistry...").start();
|
|
760
749
|
try {
|
|
761
750
|
const worldCorePath = path4.join(process.cwd(), "node_modules", "@moltium", "world-core");
|
|
762
|
-
const libPath = path4.join(worldCorePath, "lib");
|
|
763
751
|
const fs4 = await import("fs/promises");
|
|
764
752
|
try {
|
|
765
|
-
await fs4.access(
|
|
753
|
+
await fs4.access(worldCorePath);
|
|
766
754
|
} catch {
|
|
767
|
-
deploySpinner.
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
stdio: "pipe"
|
|
772
|
-
});
|
|
773
|
-
deploySpinner.text = "Deploying AgentRegistry...";
|
|
774
|
-
} catch (error) {
|
|
775
|
-
deploySpinner.fail();
|
|
776
|
-
console.error(chalk4.red("\\n\u274C Failed to install Foundry dependencies"));
|
|
777
|
-
console.log(chalk4.yellow("\\nPlease ensure Foundry is installed: https://getfoundry.sh/"));
|
|
778
|
-
console.log(chalk4.gray(`\\nThen run manually: cd ${worldCorePath} && forge install\\n`));
|
|
779
|
-
process.exit(1);
|
|
780
|
-
}
|
|
755
|
+
deploySpinner.fail();
|
|
756
|
+
console.error(chalk4.red("\\n\u274C @moltium/world-core package not found"));
|
|
757
|
+
console.log(chalk4.yellow("\\nPlease install it: npm install @moltium/world-core\\n"));
|
|
758
|
+
process.exit(1);
|
|
781
759
|
}
|
|
782
760
|
const env = {
|
|
783
761
|
...process.env,
|
|
@@ -830,7 +808,7 @@ var deployCommand = new Command4("deploy").description("Deploy smart contracts t
|
|
|
830
808
|
|
|
831
809
|
// src/index.ts
|
|
832
810
|
var program = new Command5();
|
|
833
|
-
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.
|
|
811
|
+
program.name("moltium-world").description("CLI tool for creating and managing Moltium World SDK projects").version("0.1.4");
|
|
834
812
|
program.addCommand(initCommand);
|
|
835
813
|
program.addCommand(tokenCommand);
|
|
836
814
|
program.addCommand(startCommand);
|