This repository contains substrate blockchain with contract pallet added. Its also contains Erc20 smart contract which is complied to wasm and deployed to substrate using redspot.
- Git clone project folder using below.
git clone https://github.com/nagarajmanjunath/substrate-contract-erc20.git
cd substrate-contract-erc20/substrate-node-template
- Build the substrate in release mode.
cargo build --release
- Start the substrate node in development mode.
./target/release/node-template --dev
cd erc20
- Install npm
yarn or npm install
- Compile the Erc 20 contract.
npx redspot compile ./contracts
- Deploy Contract to Substrate
npx redspot run . ./scripts/deploy.ts --no-compile