Skip to content

postech-dao/polkadot

Repository files navigation

polkadot

Reference

Astar Polkadot Substrate

Run

Build

cargo build --all

Format

cargo +nightly fmt

Lint

cargo clippy --all --all-targets --release

Test

TEST_CONFIG=test_config_example.json cargo test --all

Create new contract

cargo contract new [contract name]

Build contract

To build a contract, execute this command with the path of Cargo.toml in the contract folder to build. Build simple_counter with the cargo command and then upload and instantiate .contract file in target/ink/your_contract/ on Polkadot js Apps

cargo +nightly contract build --manifest-path ./simple_counter/Cargo.toml

Test specific contract

To test specific contract, execute cargo +nightly contract test with --manifest-path with the path of Cargo.toml.
e.g. Test simple_counter with this command.

cargo +nightly contract test --manifest-path ./simple_counter/Cargo.toml

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published