Skip to content

shramee/linear-erc20

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linear ERC20

A linear type system implementation of ERC20

Functions

TokenHelpers

  • fn balance Gets u256 balance of an account
  • fn withdraw Withdraw Tokens from an account. Only if account is the caller
  • fn withdraw_unsafe Withdraw Tokens from an account. Unsafe, verify if the caller can withdraw from account
  • fn deposit Takes tokens and deposit into an account (consumes)
  • fn mint Mints Tokens to an account
  • fn total_supply Returns total supply amount of tokens

Tests

About

A linear type system implementation of ERC20

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages