Skip to content

ariady-putra-emurgo/aiken_spending_validator

Repository files navigation

aiken_spending_validator

This showcase project contains 5 validators:

  • check_datum
  • check_redeemer
  • sc_wallet
  • receipts
  • cip_68

Install pnpm if you have not by running npm i -g pnpm, and then go to offchain:

  • Run pnpm i if you have never run the offchain
  • Run pnpm dev to run the offchain

Open http://localhost:3000

check_datum

In this spending validator, we see one way to work with Option using when-is.

See:

check_redeemer

Here, we see another way to work with Option using the aiken/option.{or_else} utility function.

See: https://aiken-lang.github.io/stdlib/aiken/option.html#or_else

sc_wallet

With this validator, we see how we can provide a script parameter.

receipts

This validator explores the concept of:

We see how these 2 concepts can be combined together.

cip_68

This is our validator for the CIP-68 token minting and metadata updating.

See: https://developers.cardano.org/docs/governance/cardano-improvement-proposals/CIP-0068

The logic of this validator is somewhat arbitrary, the important concept of CIP-68 can be seen at the transaction building on the offchain code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published