Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when running terminal 3 #2630

Open
0xbohu opened this issue Jan 7, 2025 · 1 comment
Open

Errors when running terminal 3 #2630

0xbohu opened this issue Jan 7, 2025 · 1 comment

Comments

@0xbohu
Copy link

0xbohu commented Jan 7, 2025

After cloning and run it locally, it passes terminal 1 and terminal 2, but at terminal 3, it throws errors

To Reproduce Steps to reproduce the behavior:

  1. Git Clone the repo (either next branch or agent-test branch
  2. Run Terminal 1 script - pass
  3. Run Terminal 2 script- pass
  4. Run Terminal 3 script - failed
 8 | 
 9 | colors.america;
10 | export const getContracts = (TARGET_PATH) => {
11 |   if (!fs.existsSync(TARGET_PATH)) {
12 |     throw new Error(`Target directory not found at path: ${TARGET_PATH}`);
               ^
error: Target directory not found at path: /Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/contracts/target/release
      at getContracts (/Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/scripts/deployment/libs/common.js:12:11)
      at getContractPath (/Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/scripts/deployment/libs/common.js:23:21)
      at /Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/scripts/deployment/libs/commands.js:41:37
      at deployTestRealmsContract (/Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/scripts/deployment/libs/commands.js:32:41)
      at /Users/dev/Documents/Projects/Github/0xbohu/eternum/season_pass/scripts/deployment/deploy_dev.js:14:41
----- Building World -----
scripts/indexer.sh: line 97: sozo: command not found
----- Migrating World -----
scripts/indexer.sh: line 100: sozo: command not found
 8 | if (
 9 |   !process.env.VITE_PUBLIC_MASTER_ADDRESS ||
10 |   !process.env.VITE_PUBLIC_MASTER_PRIVATE_KEY ||
11 |   !process.env.VITE_PUBLIC_NODE_URL
12 | ) {
13 |   throw new Error("VITE_PUBLIC_MASTER_ADDRESS is required");
             ^
error: VITE_PUBLIC_MASTER_ADDRESS is required
      at /Users/0xbohu/Documents/Projects/Github/0xbohu/eternum/config/index.ts:13:9

Expected behavior Terminal 3 can run successfully

Desktop (please complete the following information):

  • OS: [e.g. iOS] Macbook Pro Apple M1 Pro 14.4.1 (23E224)
  • Browser [e.g. chrome, safari] Terminal
  • Version [e.g. 22] n/a

Additional Question
Can Eternum run locally and how do I build a graphQL server to serve local Eternum data in a GraphQL url, like the testnet version graphQL server is at https://api.cartridge.gg/x/sepolia-rc-18/torii/graphql

The purpose of my testing is to use daydream framework to play Eternum locally and experiment autonomous tasks.

@ponderingdemocritus
Copy link
Contributor

we are doing some serious spring cleaning this week as we introduced a bunch of tech debt in season 0.

Keep an eye out - these cli commands will be fixed and daydream integrated.

If you want to play with daydream, just dry run it to see the outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants