-
Contracts:
-
Transactions:
-
Scripts:
NOTE: Rest of Scripts and Transactions were updated in Frontend and Backend as per the need.
-
Clone the repository
git clone [email protected]:melomint-dev/cadence.git
-
Install the Flow CLI Link
-
Initialize Flow Project
flow init
-
Create a testnet account via CLI
flow accounts create
- Select Testnet and give your designed name
- Your account address with name will be added in flow.json along with .pkey (private key) will be generated
-
Add Smart Contract Path in flow.json
{ "contracts": { "MeloMint": "./contracts/MeloMint.cdc" }, "networks": { ... }, ... "deployments": { "testnet": { "<account name>": [ "MeloMint" ] } } }
-
Deploy the Smart contract in the testnet account created
flow project deploy
-
To run scripts and transactions, refer these documents
- Execute Scripts with CLI
- Send transactions with CLI
- NOTE: Dont' forget to add
-n testnet --signer <account-name>
as arguments while running these scripts