Psychedelic / DIP20

DIP20: A fungible token standard for the DFINITY Internet Computer.
GNU General Public License v3.0
63 stars 37 forks source link

Update the motoko implementation #10

Open ccyanxyz opened 2 years ago

ccyanxyz commented 2 years ago

Need to update the motoko implementation:

  1. CAP integration
  2. ok -> Ok, err -> Err
  3. More error types
ccyanxyz commented 2 years ago
public type TxReceipt = {
    #Ok: Nat;
    #Err: {
         #InsufficientAllowance;
         #InsufficientBalance;
         #ErrorOperationStyle;
         #Unauthorized;
         #LedgerTrap;
         #ErrorTo;
         #Other;
         #BlockUsed;
         #AmountTooSmall;
    };
};