https://github.com/rajgoesout/web3conf-ink-demo
Ink! smart contracts workshop - Web3Conf India 2022
https://github.com/rajgoesout/web3conf-ink-demo
Last synced: 20 days ago
JSON representation
Ink! smart contracts workshop - Web3Conf India 2022
- Host: GitHub
- URL: https://github.com/rajgoesout/web3conf-ink-demo
- Owner: rajgoesout
- Created: 2022-08-09T22:16:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-10T17:26:12.000Z (almost 3 years ago)
- Last Synced: 2025-05-04T21:18:02.299Z (20 days ago)
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web3conf-ink-demo
## Getting Started
Setup Rust, ink! environment:
https://docs.substrate.io/tutorials/smart-contracts/prepare-your-first-contract/
```
rustup component add rust-src --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
````sudo apt install binaryen` OR `brew install binaryen`
Install cargo-contract
```
cargo install dylint-link
cargo install cargo-contract --force
cargo contract --help
```Compile the contracts
```
make build
```Download swanky node: https://github.com/AstarNetwork/swanky-node/releases
Run swanky node
```
./swanky-node --dev
``````
git clone https://github.com/AstarNetwork/swanky-node.gitgit checkout dapp-staking-chain-extension
cargo build --release
./target/release/swanky-node --dev
```## Credits
- [Astar Dapp Staking example](https://github.com/AstarNetwork/dApp-Staking-Workshop)