Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.09 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.09 KB

snet-minting-policy-v2

Use the provided VSCode devcontainer to get an environment with the correct tools set up. This approach is the easiest & fastest one. Clone repository and open it in VSCode. Docker setup.

Installation tips for NodeJs

    cd code
    npm i
    npm i --save-dev @types/node

Compile Token.hs

    cd code
    cabal build

Get test PlutusScriptV2 for Token.hs

In Token.hs you can specify:

  • testOwners
  • testTokenName
    cd code
    cabal repl
    > saveTestTokenPolicy

Run tests

In secret.ts file in code folder specify:

  • blockfrostKey
  • owner1PrivateKey
  • owner2PrivateKey
  • owner3PrivateKey
  • payerPrivateKey

In offchain.ts you can also specify your own PlutusScriptV2 for Token.hs in variables:

  • scriptWith1Signer
  • scriptWith2Signers
  • scriptWith3Signers

Plutus scripts are received from .plutus file(s) that are saved by Token.hs module from previous step

    deno run -A ./src/offchain.ts