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

ton docker #61

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

ton docker #61

wants to merge 6 commits into from

Conversation

fadeev
Copy link
Member

@fadeev fadeev commented Nov 5, 2024

Needs Docker installed.

Start Ton:

npx ts-node packages/localnet/src/tonStart.ts

@fadeev
Copy link
Member Author

fadeev commented Nov 5, 2024

npx ts-node packages/localnet/src/tonLightClient.ts
get master info
/Users/fadeev/github.com/zeta-chain/localnet/node_modules/ton-lite-client/dist/engines/roundRobin.js:75
                    throw new Error('No engines are available');
                          ^
Error: No engines are available
    at LiteRoundRobinEngine.query (/Users/fadeev/github.com/zeta-chain/localnet/node_modules/ton-lite-client/dist/engines/roundRobin.js:75:27)
    at async main (/Users/fadeev/github.com/zeta-chain/localnet/packages/localnet/src/tonLightClient.ts:27:18)

Just trying to follow https://github.com/ton-core/ton-lite-client/blob/master/README.md

@swift1337 any idea what I'm doing wrong?

@fadeev
Copy link
Member Author

fadeev commented Nov 5, 2024

All of this good stuff from https://github.com/zeta-chain/ton-docker seems to be working fine, so the node is running.

curl -s http://localhost:8111/status | jq

{
  "status": "OK"
}
curl -s http://localhost:8111/lite-client.json | jq
{
  "@type": "config.global",
  "dht": {
    "@type": "dht.config.global",
    "k": 3,
    "a": 3,
    "static_nodes": {
      "@type": "dht.nodes",
      "nodes": []
    }
  },
  "liteservers": [
    {
      "id": {
        "key": "aOFdGA3SbJuxYbI5Wp6JmFYpT4ggk2wiuB1JLUDlHFg=",
        "@type": "pub.ed25519"
      },
      "port": 4443,
      "ip": 2887057512
    }
  ],
  "validator": {
    "@type": "validator.config.global",
    "zero_state": {
      "workchain": -1,
      "shard": -9223372036854775808,
      "seqno": 0,
      "root_hash": "OoIa1/lbJ/wSuZIShpC+udJFESPSouEL362XXM3P4xg=",
      "file_hash": "xU6dJLAaKp9wxcr76yf9ZleXHQso8E3nL5udUrCn/b0="
    },
    "init_block": {
      "workchain": -1,
      "shard": -9223372036854775808,
      "seqno": 0,
      "root_hash": "OoIa1/lbJ/wSuZIShpC+udJFESPSouEL362XXM3P4xg=",
      "file_hash": "xU6dJLAaKp9wxcr76yf9ZleXHQso8E3nL5udUrCn/b0="
    }
  }
}
curl -s http://localhost:8111/lite-client.json | jq
{
  "@type": "config.global",
  "dht": {
    "@type": "dht.config.global",
    "k": 3,
    "a": 3,
    "static_nodes": {
      "@type": "dht.nodes",
      "nodes": []
    }
  },
  "liteservers": [
    {
      "id": {
        "key": "aOFdGA3SbJuxYbI5Wp6JmFYpT4ggk2wiuB1JLUDlHFg=",
        "@type": "pub.ed25519"
      },
      "port": 4443,
      "ip": 2887057512
    }
  ],
  "validator": {
    "@type": "validator.config.global",
    "zero_state": {
      "workchain": -1,
      "shard": -9223372036854775808,
      "seqno": 0,
      "root_hash": "OoIa1/lbJ/wSuZIShpC+udJFESPSouEL362XXM3P4xg=",
      "file_hash": "xU6dJLAaKp9wxcr76yf9ZleXHQso8E3nL5udUrCn/b0="
    },
    "init_block": {
      "workchain": -1,
      "shard": -9223372036854775808,
      "seqno": 0,
      "root_hash": "OoIa1/lbJ/wSuZIShpC+udJFESPSouEL362XXM3P4xg=",
      "file_hash": "xU6dJLAaKp9wxcr76yf9ZleXHQso8E3nL5udUrCn/b0="
    }
  }
}

@fadeev fadeev mentioned this pull request Nov 5, 2024
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

Successfully merging this pull request may close these issues.

1 participant