Code Monkey home page Code Monkey logo

neuroweb's Introduction

NeuroWeb Node

License Substrate version Twitter URL Telegram Medium Discord

NeuroWeb Network is a decentralized Artificial Intelligence blockchain designed to incentivise knowledge creation, connectivity and sharing through Knowledge Mining. It's utility token NEURO is designed to fuel the AI knowledge economy, rewarding relevant knowledge contributions to the OriginTrail Decentralized Knowledge Graph.

  • NeuroWeb builds on the basis of its predecessor - the OriginTrail Parachain - which was transformed into NeuroWeb via a community Governance vote on OriginTrail Parachain in December 2023.
  • NeuroWeb is a permissionless, EVM enabled blockchain secured by Polkadot validators.
  • NeuroWeb node is built with Substrate framework.

Build & Run

Follow these steps to prepare a local Substrate development environment ๐Ÿ› ๏ธ

Setup of Machine

If necessary, refer to the setup instructions at the Substrate Developer Hub.

Build

Once the development environment is set up, build the parachain node template. This command will build the Wasm Runtime and native node code:

cargo build --release

Run a network

To run a full network with multiple NeuroWeb nodes (collators and non-collators), first we need to start relay chain, and after that our parachain.

Run A Relay Chain

To start a relay chain we recommend reading and following instructions in Cumulus Workshop.

NeuroWeb is currently compatible with Polkadot v1.11.0 version.

Parachain Nodes (Collators)

From the OriginTrail parachain working directory:

# NOTE: this command assumes the chain spec is in a directory named `polkadot`
# that is at the same level of the template working directory. Change as needed.
./target/release/origintrail-parachain \
-d cumulus-parachain/alice\
--local \
--collator\
--alice\
--ws-port 9945\
--parachain-id 2000\
--\
--execution wasm\
--chain ../polkadot/rococo_local.json

Then you need to register on Local Relay Chain as it is presented in Cumulus Workshop. For registering we first need to export the Parachain Genesis and Runtime.

# Build the Chain spec
./target/release/origintrail-parachain build-spec\
--disable-default-bootnode > ./template-local-plain.json

# Build the raw file
./target/release/origintrail-parachain build-spec \
--chain=./resources/template-local-plain.json \
--raw --disable-default-bootnode > ./resources/template-local.json

# Export genesis state to `./resources files
./target/release/origintrail-parachain export-genesis-state --parachain-id 2000 > ./para-2000-genesis
# export runtime wasm
./target/release/origintrail-parachain export-genesis-wasm > ./para-2000-wasm

In order to produce blocks you will need to register the parachain as detailed in the Substrate Cumulus Workshop by going to:

Developer -> sudo -> paraSudoWrapper -> sudoScheduleParaInitialize(id, genesis)

Ensure you set the ParaId to 2000 and the parachain: Bool to Yes.

Containerize

Build

docker build -t origintrail-parachain .

Run

docker run -it -p 30333:30333 -p 9933:9933 -p 9944:9944 -p 9615:9615 -v /data:/data origintrail-parachain:latest\
  --base-path=/data --rpc-external --ws-external\
  --ws-max-connections=1000 --rpc-cors=all\
  --prometheus-external --rpc-methods=Unsafe\
  --chain=/config/origintrail-parachain-2043-raw.json\
  --no-mdns --execution=wasm --pruning=archive\
  -- --execution=wasm --wasm-execution=Compiled --chain=polkadot

neuroweb's People

Contributors

kotlarmilos avatar mihajlo-pavlovic avatar nzt48 avatar perrornet avatar u-hubar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

neuroweb's Issues

MetaMask Doesn't Display Token Balances

Describe the bug
I've added OriginTrail Parachain Testnet to my MetaMask using these information. I've also imported following token,
0x137e321166522A60CBF649Beb7a65989b9e1518e

And I've mapped wallets using this interface.

I used discord bot to get OTP tokens on my polkadot address and had a Discord user send me TEST tokens to my EVM wallet.

v6 node is up and running and it prints wallet balances at the start.

But still, I don't see any token balances on MetaMask. Both MOTP and TEST token balances are zero.

I've tried different browsers and different wallets.

To Reproduce
Steps to reproduce the behavior:

  1. Follow v6 dockerless setup instructions

Expected behavior
MetaMask displays token balances.

Screenshots
1cae8f29909c442ee51b59233fcf0880
7d694292edb5782dac20187a9090e178

Environment (please complete the following information):

  • OS: Windows
  • Version: 10
  • Browser: Chrome, Brave

Create releases

Hi! Looks like you had a release in branch release/mainnet. Can you create releases on GitHub so that it is easier to catch?

Bootnodes missing in Origin Trail chain spec

We are doing a multichain block explorer
https://origintrail.polkaholic.io/chain/origintrail
and attempted to run a full archive Origin Trail node... but because there are no bootnodes specified in the chainspec:
https://github.com/OriginTrail/origintrail-parachain/blob/develop/res/origintrail-parachain-2043-raw.json
... our node could not sync with the Origin Trail parachain. Could you add your bootnodes to the above spec, or point us to where it is?

Thank you!

Can't send transactions with ParaChain

Describe the bug
I tried to transfer test OTP tokens within my wallets and the transaction is stuck on the status broadcast. I tried with and without KeepAlive option. But made no difference.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on 'Send'
  3. 'Try to send OTP tokens'
  4. Transaction never completes

Expected behavior
Tokens are deposited to destination wallet.

Uncaught error. e.call.metadata.metadataAtVersion is not a function (polkadot js apps)

Describe the bug
Uncaught error. e.call.metadata.metadataAtVersion is not a function at polkadot js org /settings/metadata

To Reproduce
It's very easy to reproduce. Just go to polkadot js org / apps and switch to Neuroweb and then go to settings -> metadata and you will see the error. I tried different browsers and got the same errror.

Expected behavior
I should see upgradable extensions and chain specifications

Screenshots

2024-08-02_12-54-34

Environment (please complete the following information):
Web

Additional context
It seems to be on your side because other parachains unaffected.

Introduce format & clippy in workflow

clippy & fmt check should be added in workflow. clippy workflow is already commented out here.

Describe the solution you'd like

test-code.yml

- name: Check and Lint Code
    run: cargo clippy --all --all-targets -- -D warnings

- name: Check format 
    run: cargo fmt --all -- --check 

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.