Giter VIP home page Giter VIP logo

float-staking's Introduction

Float Contracts

The smart contracts behind Float Protocol. See the docs

The contracts are compiled with Hardhat and tested using Waffle and TypeScript.

2๏ธโƒฃ If you are looking for Phase 2 Contracts:

Usage

Installation

yarn

Build

yarn build

Test

yarn test

Coverage

yarn coverage

Deploy to Hardhat EVM

yarn dev
yarn local:dev

Will deploy the contracts to localhost:8545.

Production deploy

  1. Generate whitelist
  2. Copy whitelist to contracts repo
  3. yarn <network>:deploy
  4. yarn <network>:verify
  5. Hand verify proxies and implementation on etherscan
  6. yarn <network>:run ./scripts/generate_proof.ts
  7. yarn <network>:run ./scripts/load_pools.ts - Quick starts the pools
  8. yarn <network>:run ./scripts/revoke_deployer.ts - Revoke minting abilities of deployer
  9. yarn <network>:export --export deployment.json
  10. Copy merkle tree and deployment generated to frontend.

Running Slither

Slither is a Solidity static analysis framework. To run it locally:

pip3 install slither-analyzer
slither .

In-Depth security testing

Use the eth-security-toolbox docker image.

docker pull trailofbits/eth-security-toolbox
docker run -it -v $(pwd):/share trailofbits/eth-security-toolbox

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.