Skip to content

hyeonLewis/simperby-evm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simperby-evm

License: MIT Twitter

This repository implements the settlement chain interface for an EVM-based ecosystem that can interact with simperby. If you don't know what simperby is, please visit simperby.

Building

  1. git clone https://github.com/postech-dao/simperby-evm.git
  2. npm install
  3. Install foundry if you want to use for testing.
  4. forge install
  5. (Optional) Create .env and fill your environment variables with the format of .env.example.

Testing

Currently, we support both 'hardhat' and 'foundry' for testing.

Hardhat

  1. Install dependencies
  2. npx hardhat compile
  3. npx hardhat node
  4. npx hardhat test --network localhost

You can check build results in /artifacts and gas reports in /contract.

Foundry

  1. set up foundry with the above instructions.
  2. forge build
  3. forge test or forge test -vv if you want to check logs.
  4. anvil if you want to run a local node with foundry.

For more details about foundry, please refer to foundry

Deployment

If you want to deploy EVMTreasury to any EVM chains, you need to fill .env file and check hardhat.config.ts.

  1. npx hardhat compile
  2. npx hardhat run --network <network> scripts/_01_deploy_treasury.sol.
  3. You must check your initial block header is properly set with initialHeader variable in misc/constants.ts.
  4. Update misc/addresses.ts with deployed contract address.

Misc

You can use prettier for code formatting.

npx prettier --write .

License

This project is licensed under the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 51.0%
  • Rust 30.5%
  • TypeScript 18.2%
  • JavaScript 0.3%