Skip to content

[Owner: Steven Jehannet] Extendable library of financial assets in Ligo (tzip12)

Notifications You must be signed in to change notification settings

smart-chain-fr/ligoExtendableFA2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generic FA2

Experiment with generic FA2 contracts.

Original contracts code:

Token metadata

Because temple wallet and better call dev platform follows a FA2 standard (with multiple assets), the single_asset follows the same type definition of the token metadata than multi_asset. Thus the single asset handles only one asset, it defines the token metadata as a big_map which contains a single entry. For example:

  Big_map.literal ([
    (0n, { token_id = 0n; token_info = Map.literal([ ("", 0x03) ]) })
  ]) 

How to use this library

Install the library with ligo CLI (with docker)

ligo install ligo-extendable-fa2

This command will add a dependency in a package.json file.

Here is an example of the resulting package.json file.

{ "dependencies": { "@ligo/fa": "^1.0.4", "ligo-extendable-fa2": "^1.0.1" } }

About

[Owner: Steven Jehannet] Extendable library of financial assets in Ligo (tzip12)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •