GithubHelp home page GithubHelp logo

celer-network / layer2-finance-v2-contracts Goto Github PK

View Code? Open in Web Editor NEW
11.0 19.0 11.0 183.25 MB

Contracts for the Layer 2 Finance DeFi aggregator V2, powered by optimistic rollup.

License: MIT License

JavaScript 0.18% Solidity 60.54% TypeScript 38.58% Shell 0.70%
ethererum blockchain defi layer-2

layer2-finance-v2-contracts's Introduction

Layer 2 Finance V2 Contracts

Contracts for the Layer 2 Finance DeFi aggregator V2, powered by optimistic rollup.

Run unit tests

yarn test

Benchmark gas cost

yarn report-gas:benchmark
yarn report-gas:summary

Check reports/gas_usage.

Update contract sizes

yarn size-contracts

Check reports/contract_sizes.txt.

Deployment

  1. In the project root directory, update .env. Example values are in .env.template.

  2. Run deployment commands:

hardhat deploy --network <network> --tags <deployment-tags>
  1. To verify on Etherscan using Hardhat, try:
hardhat etherscan-verify --network <network>
  1. To verify on Etherscan using solt, run:
source scripts/solt.sh
run_solt_write

Then try:

solt verify --license 3 --network <network> solc-input-<contract>.json <deployed address> <contract name>

If the second step fails, go to Etherscan and manually verify using the standard JSON input files.

  1. (Not recommended, does not work with ABIEncoderV2) To flatten and manually verify on Etherscan:

First, flatten the contract to verify:

hardhat flatten <path-to-contract> > flattened.out

Edit flattened.out to remove the duplicate SPDX-License-Identifier lines and submit to Etherscan.

layer2-finance-v2-contracts's People

Contributors

dependabot[bot] avatar dominator008 avatar hezhihua81 avatar i9 avatar patrickmao93 avatar thashimoto1998 avatar xiaozhou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.