-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing to brightinventions docker images
Deploy scrpit starts useing brightinventions images for: - node - cliain - ink
- Loading branch information
1 parent
0fdc991
commit f4f06b5
Showing
4 changed files
with
52 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,35 @@ | ||
|
||
# Requirements | ||
# Prerequisites | ||
|
||
Install cargo-contract: | ||
``` | ||
cargo install --force --locked cargo-contract --version 3.0.1 | ||
``` | ||
|
||
Install ink-wrapper | ||
``` | ||
cargo install ink-wrapper --locked --force --version 0.5.0 | ||
``` | ||
|
||
and use it with the smart contract | ||
# Build | ||
First we need to build a smart contract: | ||
``` | ||
cargo contract build --release --manifest-path contract/Cargo.toml | ||
``` | ||
|
||
next we need use ink-wrapper to generate a safe code for our tests: | ||
``` | ||
ink-wrapper -m ../contract/target/ink/bright_disputes.json | rustfmt --edition 2021 > bright_disputes.rs | ||
``` | ||
|
||
# Run | ||
Please note that, before running E2E test we need to have a running node. | ||
|
||
We start from deploying our smart contract to the node: | ||
``` | ||
cargo contract upload --manifest-path contract/Cargo.toml --suri //Alice --url ws://localhost:9944 --execute || true | ||
``` | ||
|
||
To run tests: | ||
Now we can run e2e tests: | ||
``` | ||
cargo +nightly test --release | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters