A simple IOTA dApp to understand about Move object concept with pizza and pizza box analogy.
Network: Testnet
Package ID: 0x60cc7119c2418cd870138e9df1acd0f36bafd760a524b532575cdef1911d23cb
Explorer: View on Explorer
-
Install dependencies:
npm install --legacy-peer-deps
-
Run the development server:
npm run dev
-
Open http://localhost:3000 in your browser
cd contract/<your-project-name>
iota move build
iota client publishThen manually copy the package ID and update lib/config.ts:
export const TESTNET_PACKAGE_ID = "0xYOUR_PACKAGE_ID"- Adjust
Provider.tsxfor the default environment of your dApp. - Adjust
useContracts.tsfor methods to interact with your contract. - Adjust
components/sample.tsxto customize how your dApp looks.
Edit lib/config.ts to configure different networks:
export const TESTNET_PACKAGE_ID = "0x..."
export const DEVNET_PACKAGE_ID = "0x..."
export const MAINNET_PACKAGE_ID = "0x..."