Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.48 KB

README.md

File metadata and controls

69 lines (51 loc) · 1.48 KB

Cadence

NOTE: Rest of Scripts and Transactions were updated in Frontend and Backend as per the need.

Installation

  1. Clone the repository

    git clone [email protected]:melomint-dev/cadence.git
    
  2. Install the Flow CLI Link

  3. Initialize Flow Project

    flow init
    
  4. 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
  5. Add Smart Contract Path in flow.json

    {
      "contracts": {
        "MeloMint": "./contracts/MeloMint.cdc"
      },
      "networks": {
        ...
      },
      ...
      "deployments": {
        "testnet": {
          "<account name>": [
            "MeloMint"
          ]
        }
      }
    }
    
  6. Deploy the Smart contract in the testnet account created

    flow project deploy
    
  7. To run scripts and transactions, refer these documents