Skip to content

ShareRing/ShareToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERC20 Share Token contract

New ShareToken contract with optimizations.

Legacy contract.

Build

$ forge build

Test

$ forge test

To see gas report for transfer/TransferFrom function in the new contract:

transfer

forge test -vv --gas-report --match-path test/ShareToken.t.sol --match-test testMigrateWhenTransferToSelf

transferFrom

forge test -vv --gas-report --match-path test/ShareToken.t.sol --match-test testMigrateWhenTransferFromToSelf

To see gas report for transfer/TransferFrom function only in the current contract:

transfer

forge test -vv --gas-report --match-path test/PrevShareToken.t.sol --match-test testMigrateWhenTransfer

transferFrom

forge test -vv --gas-report --match-path test/PrevShareToken.t.sol --match-test testMigrateWhenTransferFrom

Deploy

See DEPLOYMENT.md

About

Smart Contract for ShareToken and MainSale ICO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •