This is a port of https://tiny.ink using Dedot to show-case how dapps can interact with ink! smart contracts with type-safe APIs from Dedot.
The dapp is live at: https://link.dedot.dev.
The contract is deployed on POP Network (address)
- Generate Types & APIs for the link contract using dedot cli
pnpm typink
# OR
dedot typink -m ./contracts/deployments/link/link.json -o ./contracts/deployments/types
- Deploy the contract. Make sure to have a local subtrate-contract-node running on you local at https://127.0.0.1:9944
# In `contracts` folder
pnpm run script deploy
- Create a
.env.local
to specify default chain for local development infrontend
folder
VITE_DEFAULT_CHAIN='development'
- Start development application
pnpm dev