SettleMint - Asset Tokenization Kit
✨ https://settlemint.com ✨
Integrate SettleMint into your application with ease.
Getting Started
There are two ways to use this starterkit:
- Predeployed Setup - Using pre-deployed contracts (fastest)
- Customized Setup - Deploy your own contracts
Predeployed Setup (Fastest)
This is the fastest way to get started with the starterkit. It uses pre-deployed contracts, subgraphs, and ABIs.
bun install
bunx settlemint login
bunx settlemint connect
cd kit/dapp
bun codegen:settlemint
bun addresses
bun dev
Browse to http://localhost:3000 to access the application. Create an account by clicking "Sign up" - the first account created will have admin privileges.
Customized Setup
If you want to deploy and use your customised contracts, subgraph, and ABIs, follow these steps:
Prerequisites
- Forge v0.3.0 - Install the latest Foundry from https://book.getfoundry.sh/getting-started/installation
- Node.js version >=20.18.1 - Required for The Graph CLI. We recommend using fnm for Node.js installation.
Deployment Steps
bun install
bun settlemint login
bun settlemint connect
cd kit/contracts
bun deploy:remote
cd ../subgraph
bun deploy:remote
cd ../../
bun codegen
cd kit/dapp
bun addresses
bun db:push
bun dev
Browse to http://localhost:3000 to access the application. Create an account by clicking "Sign up" - the first account created will have admin privileges.
Known Limitations & TODOs
- No CLI command to update ABIs automatically
- Admin account creation relies on first-signup mechanism, perhaps a dedicated CLI command?