Skip to content
/ link Public
forked from use-ink/link

Unstoppable URL shortener built with the ink! smart contract language and Dedot. Deployed on POP Network!

License

Notifications You must be signed in to change notification settings

dedotdev/link

 
 

Repository files navigation

link! ‒ The Unstoppable URL Shortener
built-with-ink

Overview

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)

Development

  1. 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
  1. 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
  1. Create a .env.local to specify default chain for local development in frontend folder
VITE_DEFAULT_CHAIN='development'
  1. Start development application
pnpm dev

About

Unstoppable URL shortener built with the ink! smart contract language and Dedot. Deployed on POP Network!

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages

  • TypeScript 76.9%
  • Rust 15.1%
  • JavaScript 3.6%
  • Shell 2.6%
  • CSS 1.2%
  • HTML 0.6%