Skip to content

aviate-labs/ext.std

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Extendable Token Standard

| Table of Contents

Usage

Vessel

  1. Run vessel init to create the config files.
  2. Import this package.

You can find an example configurations in one of the example directories.

Type Checking

$(dfx cache show)/moc $(vessel sources) -r MyToken.mo

Interfaces

You can use the predefined interfaces to check whether you have implemented al the required methods.

import Ext "mo:std/EXT/Ext";
import Interface "mo:std/EXT/Interface";

shared({caller = owner}) actor class Token() : async Interface.FungibleToken = {
    // ...
};

References