Unverified Commit 61a6d6ad authored by Michael Müller's avatar Michael Müller Committed by GitHub
Browse files

Migrate from `canvas-node` to `substrate-contracts-node` (#908)

parent 7efa2c89
Pipeline #156226 passed with stages
in 22 minutes and 6 seconds
......@@ -42,7 +42,7 @@ More relevant links:
on the [`ink_smart-contracts`](https://discord.com/channels/722223075629727774/765280480609828864) channel
* [`cargo-contract`](https://github.com/paritytech/cargo-contract) ‒ CLI tool for ink! contracts
* [Canvas UI](https://paritytech.github.io/canvas-ui/#/upload) ‒ Frontend for contract deployment and interaction
* [Canvas Node](https://github.com/paritytech/canvas-node) ‒ Simple Substrate blockchain which includes smart contract functionality
* [Substrate Contracts Node](https://github.com/paritytech/substrate-contracts-node) ‒ Simple Substrate blockchain which includes smart contract functionality
## Table of Contents
......@@ -63,7 +63,7 @@ More relevant links:
## Play with It
If you want to have a local setup you can use our [canvas-node](https://github.com/paritytech/canvas-node) for a quickstart.
If you want to have a local setup you can use our [`substrate-contracts-node`](https://github.com/paritytech/substrate-contracts-node) for a quickstart.
It's a simple Substrate blockchain which includes the Substrate module for smart contract functionality ‒ the `contracts` pallet (see [How it Works](#how-it-works) for more).
The [Canvas UI](https://paritytech.github.io/canvas-ui/#/upload) can be used to deploy your contract to a chain and interact with it.
......
......@@ -12,8 +12,8 @@ ink! 3.0-rc4 is compatible with
version `0.13.0` or newer.
- Install the newest version using `cargo install --force cargo-contract`.
- Substrate version `4.0.0-dev` including the `contracts-pallet` version `4.0.0-dev`.
- [`canvas-node`](https://github.com/paritytech/canvas-node) version `0.19.0` or newer.
- Install the newest version using `cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --force`.
- [`substrate-contracts-node`](https://github.com/paritytech/substrate-contracts-node) version `0.1.0` or newer.
- Install the newest version using `cargo install substrate-contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force`.
The documentation on our [Documentation Portal](https://paritytech.github.io/ink-docs)
is up to date with this release candidate. Since the last release candidate we notabley
......@@ -31,7 +31,7 @@ of key improvements to our testing setup:
- We started our [`ink-waterfall`](https://github.com/paritytech/ink-waterfall) project,
which runs End-to-End tests through our entire stack.
All our examples are continuously built using the latest `cargo-contract`. They are
subsequently deployed on the latest `canvas-node` by emulating browser interactions with
subsequently deployed on the latest `substrate-contracts-node` by emulating browser interactions with
both the [`canvas-ui`](https://paritytech.github.io/canvas-ui/#/) and the
[`polkadot-js`](https://polkadot.js.org/apps/#/) UI.
This testing setup enables us to detect bugs which only appear in the context of using
......
......@@ -13,7 +13,7 @@ In order to test this bundle of smart contracts you need to execute the
following steps.
You can upload the contracts using our [Canvas UI](https://paritytech.github.io/canvas-ui/#/).
If you want to test it locally, our [Canvas Node](https://paritytech.github.io/ink-docs/getting-started/setup#installing-the-canvas-node)
If you want to test it locally, our [`substrate-contracts-node`](https://paritytech.github.io/ink-docs/getting-started/setup/#installing-the-substrate-smart-contracts-node)
is an easy way to get a local smart contract chain running.
1. Compile all contracts using the `./build-all.sh` script.
......@@ -27,7 +27,7 @@ is an easy way to get a local smart contract chain running.
copy the contract hashes [from the page of uploaded contracts](https://paritytech.github.io/canvas-ui/#/instantiate):<br/>
[<img src="./.images/code-hashes.png" width="600" alt="Code Hashes Overview" />](https://paritytech.github.io/canvas-ui/#/instantiate)
1. Instantiate the Delegator smart contract given all of the code hashes and a starting value.
Make sure the endowment is big enough (if you're using our `canvas-node` it's `1000000`).
Make sure the endowment is big enough (if you're using our `substrate-contracts-node` it's `1000000`).
The Delegator smart contract will take over the work of instantiating the other smart contracts for you.
1. Now you are able to run the operations provided by the Delegator smart contract.
Namely `delegate` to delegate the call to either the Adder or the Subber to either increase or decrease
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment