GithubHelp home page GithubHelp logo

rusty-crewmates / substrate-tutorials Goto Github PK

View Code? Open in Web Editor NEW
131.0 131.0 107.0 241 KB

A collection of exercices to teach yourself Substrate

License: Apache License 2.0

Rust 99.51% Dockerfile 0.49%
blockchain rust substrate tutorials

substrate-tutorials's People

Contributors

a-moreira avatar andreymgn avatar asiniscalchi avatar charmstr avatar gdnathan avatar gflow33 avatar tdelabro 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

substrate-tutorials's Issues

404 Links in Exercises 0 and 7

Unable to test individual exercises via script on non-aarch64 machines

Sending build context to Docker daemon  2.121GB
Step 1/3 : FROM tdelabro/rusty-crewmates-substrate-tutorials:latest
 ---> 23262fd19c33
Step 2/3 : ADD ./exercises/ex00-writing-tests/  /home/substrate-tutorials/./exercises/ex00-writing-tests/
 ---> Using cache
 ---> 12d2b8623cde
Step 3/3 : CMD ["cargo", "test", "--manifest-path", "/home/substrate-tutorials/Cargo.toml"]
 ---> Using cache
 ---> de7d38fc8bcb
Successfully built de7d38fc8bcb
Successfully tagged substrate-test-exercise:latest
WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested
docker: Error response from daemon: failed to create endpoint sharp_meitner on network bridge: failed to add the host (vethbfda3cd) <=> sandbox (veth9f069ae) pair interfaces: operation not supported.

I've tried different altering the run_one_excersice_tests.sh script with different --platform switches but no avail...I guess this script was only intended for people with M1 Macs? 0.0

Exercises ideas

Here is a list of ideas for new exercises.

  • Genesis config
  • Runtime benchmark and weight: we need to teach how to write and run the runtime benchmarks along with all the different way a weight can be calculated for an extrinsic
  • Offchain workers
  • Imbalances

Renaming storage type

The storage Account, is confusing as it is an amount of type u128 that is stored and binded to an AccountId.

Build fails due to old substrate-node-template version

machine: aarch64-darwin

Just forked and cloned the repo and tried to the run the tests:

$ cargo t
...
   Compiling k256 v0.10.4
   Compiling num-rational v0.4.1
   Compiling num-complex v0.4.2
   Compiling approx v0.5.1
   Compiling rawpointer v0.2.1
   Compiling frame-support-procedural-tools v4.0.0-dev (https://github.com/paritytech/substrate.git?branch=polkadot-v0.9.22#616d33ea)
   Compiling matrixmultiply v0.3.2
   Compiling nalgebra-macros v0.1.0
   Compiling primitive-types v0.11.1
error[E0603]: module `group` is private
   --> /Users/afm/.cargo/git/checkouts/substrate-7e08433d4c370a21/616d33e/frame/support/procedural/tools/src/syn_ext.rs:50:53
    |
50  |                 let syn::group::$name { token, content } = syn::group::$parse(input)?;
    |                                                                 ^^^^^ private module
    |
note: the module `group` is defined here
   --> /Users/afm/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.107/src/lib.rs:308:1
    |
308 | mod group;
    | ^^^^^^^^^

error[E0603]: module `group` is private
   --> /Users/afm/.cargo/git/checkouts/substrate-7e08433d4c370a21/616d33e/frame/support/procedural/tools/src/syn_ext.rs:50:14
    |
50  |                 let syn::group::$name { token, content } = syn::group::$parse(input)?;
    |                          ^^^^^ private module
    |
note: the module `group` is defined here
   --> /Users/afm/.cargo/registry/src/github.com-1ecc6299db9ec823/syn-1.0.107/src/lib.rs:308:1
    |
308 | mod group;
    | ^^^^^^^^^

For more information about this error, try `rustc --explain E0603`.
error: could not compile `frame-support-procedural-tools` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

--

I've seen this error before when building older versions of Substrate.
I can fix this by upgrading version to polkadot-v0.9.28 in the exercises.

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.