Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 3.4 KB

3_Write-Applications.md

File metadata and controls

60 lines (43 loc) · 3.4 KB

Write & Explore Applications

Write your first Application

If you installed Juvix on you machine, clone this repo

git clone https://github.com/anoma/applications-workshop.git

and open it in your preferred IDE.

Alternatively, you can use our GitHub Codespace by clicking

Open in GitHub Codespaces

or go to github.com/anoma/applications-workshop.

Go through the folders Excercise_X and find the assignments as comments inside the .juvix files.

Command Description
juvix clean --global Delete your juvix dependencies
juvix clean Delete build artifacts
juvix dependencies update Fetch & update the dependencies specified in the Package.juvix file
juvix typecheck Check your app for type errors.
juvix format --in-place Format your files

Do it all at once with

juvix clean --global && juvix clean  && juvix dependencies update && juvix typecheck  && juvix format --in-place

Explore the Kudos Token

Kudos is an accounting primitive for Anoma. Kudos intents can embody trust relationships between identities.

Feature Set

  • Identifiers (name, symbol, decimals)
  • Originator
    • Can initially create new quantities of this kind/
  • Supply
    • Fixed: The total quantity of resources of this kind is fixed. Resources can still be split and merged.
    • Capped: Upper bound on the total quantity. Originator cannot create more than this limit. Owners can burn tokens,
    • Unbound: Originator can inflate the supply.
  • Transferability
    • Transferable: Your normal token (ERC-20, NFT)
    • Non-transferable: Soulbound token (SBT)
  • Interface
    • mint, burn, transfer, split, merge (no counterparty required)
    • swap intent (counterparty required)

Token Implementation

  • Resource Label: 1,2
  • Resource Logic Function: 1,2
  • Transaction functions (write interface): 1,2
  • Projection functions (read interface): 1,2