GithubHelp home page GithubHelp logo

astarnetwork / astar-docs Goto Github PK

View Code? Open in Web Editor NEW
224.0 10.0 86.0 176.2 MB

Home Page: https://docs.astar.network/

License: GNU General Public License v3.0

JavaScript 44.65% TypeScript 27.27% CSS 0.73% SCSS 27.36%

astar-docs's Issues

Create a Glossary

The first step to understanding any new system is to first know the vocabulary.

Right now, the documentation has a simple vocab list in the Ecosystem area, but it is by no means comprehensive, nor does it dive into the deeper tools and resources I would need to understand each piece of Astar and work with it.

Some examples of questions I would really like the answer to:
what is Shiden? How is it related to Astar?
You have a definition of substrate, and I'm assuming that Astar has used it to build their blockchain, but is that it? Does it do anything else for Astar? How has it influenced Astar?
What is Ink! and eDSL? I don't know rust yet, so these questions may be stupid.

For each layer deeper, I would recommend creating a glossary for the information you will need to understand the guides/tutorials/content that is written at that layer, and provide links to outside resources in the glossary. Ink! is an example of where this would be helpful.

Some problems on "Integrations > Indexers > The Graph" page

Hi !!
I found some small problems on "The Graph" page (https://docs.astar.network/docs/integrations/indexers/thegraph)

  • The script in "One-line startup script" that no longer exists (https://raw.githubusercontent.com/AstarNetwork/Astar/rpc-script/scripts/graph.sh)
    image

  • Typo problems in the "Running Graph node" in the github link to clone the repo --> git clone <https://github.com/graphprotocol/graph-node/> instead of git clone https://github.com/graphprotocol/graph-node/
    image

  • I suggest to use https in the complete example of the docker-compose.yml for the consistency (I was tricked into copying and pasting ahah)
    image

I hope this issue is relevant ;)

Update unbonding link

Since we're migrating to v3, many ledger users would want to unbound their tokens so that they're ready to start earning rewards upon launch of v3.

For ease of use, it's nice to have the link to the unbonding document directly in the ledger page. I have added this PR for the same #584

Problems Astar Solves is Unhelpful

This page is unhelpful.

Everyone says their blockchain does this.

I would recommend fleshing it out a bit more and perhaps linking your whitepaper so people can understand how you're tackling those problems and why your solution will actually work.

Reorganize dAppStaking content in docs to reflect dAppStaking v3 across the whole content.

This is a follow up issue to do some reorganization of dAppStaking content in general:

Situation:

First time reader should be able to relevant information in the Learn section (avoid overwhelming details)
Advanced user or a Builder should have a place to get in depth info about protocol.

TODO

  • consolidate docs
  • don't kill URLs or make sure links are updated (e.g. on Astar Homepage Build2Earn or other places)

curl: (56) Recv failure: Connection reset by peer for zkEVM RPC Node

I was trying to setup Astar zkEVM Permissionless RPC Node by reading the Astar docs(https://docs.astar.network/docs/build/zkEVM/zk-node/setup-rpc-node).

After starting docker container and then testing RPC request. There was an error below

tk@zkevm:~$ curl -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "eth_chainId", "params": []}' http://localhost:8545
curl: (56) Recv failure: Connection reset by peer

The issue was identified in the docker-compose.yml file. Specifically, I found an error in the options for launching the zkevm-rpc container within this file. The mistake lay in the fact that the --components specification was not set to "rpc." Instead, it inexplicably specified "synchronizer." Upon closer inspection, I noticed that the port 8545, crucial for the zkevm-rpc container, was not being listened to, leading me to the realization of an error in the startup options for the zkevm-node.

Consequently, I believe that the docker-compose.yml file within zkatana.tar.gz needs to be corrected.
I suggest that you modify it as follows:

$ZKEVM_DIR/$ZKEVM_NET/docker-compose.yml

# current setting of L34
       - "/app/zkevm-node run --http.api=eth,net,debug,zkevm,txpool,web3 --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components synchronizer"

# update setting of L34
       - "/app/zkevm-node run --http.api=eth,net,debug,zkevm,txpool,web3 --network custom --custom-network-file /app/genesis.json --cfg /app/config.toml --components rpc"

Best Regards

Build a Quickstart Guide

The docs as they stand don't give developers a great "in" to just get started building.

As of right now, I have to dig pretty deep to find the tutorials, for example:
Build > WASM Smart Contracts > Tutorials > Your First Flipper Contract

I would recommend splitting the information that explains how Astar works, from simple quickstarts and tutorials that get them in and developing as fast as possible. That's what most people want and will need to get started.

containers zkevm-rpc and zkevm-sync are restarting

Hi,
I am trying to setup Astar zkEVM Mainnet Permissionless RPC Node following the docs https://docs.astar.network/docs/build/zkEVM/zk-node/setup-mainnet-rpc-node/ . The containers created and started but the containers zkevm-rpc, zkevm-sync and zkevm-prover looks not ok , they are restarting.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3bcd8f386ed9 staketechnologies/cdk-validium-node:v0.5.13-CDK2 "/bin/sh -c '/app/zk…" 6 hours ago Up About a minute 0.0.0.0:8545->8545/tcp, :::8545->8545/tcp, 8123/tcp, 0.0.0.0:9091->9091/tcp, :::9091->9091/tcp zkevm-rpc
e15e50a13d69 staketechnologies/zkevm-prover:v4.0.19 "zkProver -c /usr/sr…" 6 hours ago Up About a minute 0.0.0.0:50061->50061/tcp, :::50061->50061/tcp, 0.0.0.0:50071->50071/tcp, :::50071->50071/tcp zkevm-prover
64b3669008db staketechnologies/cdk-validium-node:v0.5.13-CDK2 "/bin/sh -c '/app/zk…" 6 hours ago Up About a minute 8123/tcp, 0.0.0.0:9092->9091/tcp, :::9092->9091/tcp zkevm-sync
66685835e947 postgres:15 "docker-entrypoint.s…" 6 hours ago Up 6 hours (healthy) 0.0.0.0:5433->5432/tcp, :::5433->5432/tcp zkevm-pool-db
7495fcd120eb postgres:15 "docker-entrypoint.s…" 6 hours ago Up 6 hours (healthy) 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp zkevm-state-db
root@astarzkevm:/etc/zkevm#

The logs for zkevm-rpc and zkevm-sync are same as below

{"level":"info","ts":1711124757.5284636,"caller":"cmd/run.go:73","msg":"Running DB migrations host: zkevm-state-db:5432 db:state_db user:state_user","pid":1,"version":"v0.5.13+cdk.2"}
{"level":"info","ts":1711124757.5285015,"caller":"cmd/run.go:285","msg":"running migrations for zkevm-state-db","pid":1,"version":"v0.5.13+cdk.2"}
{"level":"info","ts":1711124757.528511,"caller":"db/db.go:47","msg":"running migrations up","pid":1,"version":"v0.5.13+cdk.2"}
{"level":"fatal","ts":1711125019.0802724,"caller":"cmd/run.go:288","msg":"failed to connect to host=zkevm-state-db user=state_user database=state_db: dial error (timeout: dial tcp 172.25.0.2:5432: connect: connection timed out)\n/src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()\n/src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()\n/src/cmd/run.go:288 main.runMigrations()\n/src/cmd/run.go:270 main.runStateMigrations()\n/src/cmd/run.go:74 main.start()\n/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:277 github.com/urfave/cli/v2.(*Command).Run()\n/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:270 github.com/urfave/cli/v2.(*Command).Run()\n/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:335 github.com/urfave/cli/v2.(*App).RunContext()\n/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:309 github.com/urfave/cli/v2.(*App).Run()\n/src/cmd/main.go:198 main.main()\n/usr/local/go/src/runtime/proc.go:267 runtime.main()\n","pid":1,"version":"v0.5.13+cdk.2","stacktrace":"main.runMigrations\n\t/src/cmd/run.go:288\nmain.runStateMigrations\n\t/src/cmd/run.go:270\nmain.start\n\t/src/cmd/run.go:74\ngithub.com/urfave/cli/v2.(*Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:277\ngithub.com/urfave/cli/v2.(*Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:270\ngithub.com/urfave/cli/v2.(*App).RunContext\n\t/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:335\ngithub.com/urfave/cli/v2.(*App).Run\n\t/go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:309\nmain.main\n\t/src/cmd/main.go:198\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267"}

where as I am able to connect to all the postgresql db using there corresponding user and password from outside the docker container. Not sure what am I missing, need your help.
Thank you
Tapas Jana

Update Docs After zkEVM mainnet is live (TODO Dev Team)

TODO Dev Team

Marketing team should cover

Implement URL redirects (server side ideally)

Need Links to API Documentation

Lots of references to thing like the pallet-contracts API, but no link to them.

See here.

I still haven't found a link to those API docs, or I would start editing each page and adding it myself as a PR.

Add Claim rewards section and mention using "private" browser browser or clearing cache if doesn't work

Mention that if when claiming your rewards after signing the transaction the loading icon doesn't appear and the transaction doesn't get processed and you get an error in the browser console like in this issue AstarNetwork/astar-apps#870, then a mitigation measure is to clear their browser cache, or to claim the rewards in a "private" browser window (where permissions have been granted to the polkadot.js extension or another wallet extension to be used in a "private" browser window).

Dead link

Astar is the only smart-contract parachain in the Polkadot ecosystem that supports multi-virtual machines (Wasm and EVM). Resultingly, managing multiple types of accounts can be non-trivial. Read more about [Astar's account structure](https://astarnetwork.github.io/astar-docs/docs/quickstart/addresses) in our documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.