A comprehensive Cardano smart contract project for gifting ADA, built with Aiken and MeshSDK.
validators/: Contains the Aiken smart contract code (gift.ak).lib/: Supporting Aiken functions.scripts/: Off-chain interaction scripts (Typescript/MeshSDK).plutus.json: Compiled smart contract blueprint (generated).
- Aiken installed.
- Javascript runtime (Node.js 18+).
npminstalled.
-
Install Dependencies:
npm install
-
Environment Variables: Create a
.envfile in the root directory (copied from.env.exampleif available) and add your mnemonic:MNEMONIC="your 24 word mnemonic here ..."
Compile the Aiken code to generate the plutus.json blueprint.
aiken buildExecute unit tests defined in validators/gift.ak.
aiken checkRun the off-chain script to interact with the contract (e.g., get contract address).
npm start