Skip to content

tommyz7/CIP-001

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CIP-001

Implementation of CIP-001 https://github.com/Canto-Improvement-Proposals/CIPs/blob/main/CIP-001.md

Setup

forge install

Deploy

Create .env file and set Ethereum RPC at ETHEREUM_RPC_URL and deployer private key at PRIVATE_KEY.

Run

source .env
forge script script/Turnstile.s.sol:TurnstileScript --rpc-url $ETHEREUM_RPC_URL --broadcast -vvvv

Test

forge test -vvv

Test coverage

forge coverage

+------------------------+-----------------+-----------------+-----------------+---------------+
| File                   | % Lines         | % Statements    | % Branches      | % Funcs       |
+==============================================================================================+
| src/Turnstile.sol      | 100.00% (26/26) | 100.00% (32/32) | 100.00% (12/12) | 100.00% (7/7) |
|------------------------+-----------------+-----------------+-----------------+---------------|
| Total                  | 100.00% (26/26) | 100.00% (32/32) | 100.00% (12/12) | 100.00% (7/7) |
+------------------------+-----------------+-----------------+-----------------+---------------+

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published