Code Monkey home page Code Monkey logo

contracts-latest's Introduction

Velocimeter

run this script after cloning the repo to get the openzeppelin contracts and foundry setup etc.

https://github.com/Velocimeter/instruments/blob/master/gitsubmodules.sh

deploy command: npx hardhat --network arbitrumGoerli deploy

verify command: npx hardhat --network arbitrumGoerli etherscan-verify --solc-input --sleep

export abis command: npx hardhat --network arbitrumGoerli export --export ./exported.json

{ BribeFactory: '0x560b401d9F28F80980451d8582DEe903dD5295c3', GaugeFactory: '0xeAA8Ebb77A7e3b7AE2d8090E7A1c2F9B605dc919', MerkleClaim: '0x92eB499DBC33446Ace4f84Fba84E3A230370858D', Minter: '0x402f3c314149F252144EE4Ca8646b4a215ACD6aC', PairFactory: '0x6389e934d35fC9e066FAb549C8DBc9FddaC10e0D', RedemptionReceiver: '0x52018E83E84ebe30ac6923F3747c7aE503923aaB', RewardsDistributor: '0xc4b9295487B4C43C1929299076820D8f55BBf957', Router: '0x1B0aC6bf6f35E638f6cce8D69C6074561273dc52', VeArtProxy: '0x821B98D42D3AB509AF4F54205f0c52B019b9E2D5', Flow: '0x84Ca387E7ede764A3284c67Ff8c68a305a9030a0', FlowGovernor: '0x1a79b9daa3E741774bf67732F8a8B5820De8A53a', VelocimeterLibrary: '0xcbE4714A95f866EB9C2eB50856F431f9E7353Ab6', Voter: '0x854086d39955d28317aE3856399312b8Edb1B473', VotingEscrow: '0xBf05364D6cf1586852c18c6b1CbEe218E3e09885' } // asdfa;kjsdhf

Testing

This repo uses both Foundry (for Solidity testing) and Hardhat (for deployment).

Foundry Setup

forge init
forge build
forge test

Hardhat Setup

npm i
npx hardhat compile

Deployment

This project's deployment process uses Hardhat tasks. The scripts are found in tasks/.

Deployment contains 3 steps:

  1. npx hardhat deploy:op which deploys the core contracts, along with RedemptionReceiver, to Optimism.

  2. npx hardhat deploy:ftm which deploys the RedemptionSender contract to Fantom. The RedemptionReceiver address from Step 1 should be recorded in deployed.ts prior.

Security

The Velocimeter team engaged with Code 4rena for a security review. The results of that audit are available here. Our up-to-date security findings are located on our website here.

Contracts

Name Address
WETH 0x4200000000000000000000000000000000000006
Flow 0x3c8B650257cFb5f272f799F5e2b4e65093a11a05
MerkleClaim 0x00D59BC35174C3b250Dd92a363495d38C8777a49
RedemptionSender 0x9809fB94eED086F9529df00d6f125Bf25Ee84A93
RedemptionReceiver 0x846e822e9a00669dcC647079d7d625d2cd25A951
PairFactory 0x25CbdDb98b35ab1FF77413456B31EC81A6B6B746
BribeFactory 0xA84EA94Aa705F7d009CDDF2a60f65c0d446b748E
GaugeFactory 0xC5be2c918EB04B091962fDF095A217A55CFA42C5
Voter 0x09236cfF45047DBee6B921e00704bed6D6B8Cf7e
FlowGovernor 0x64DD805aa894dc001f8505e000c7535179D96C9E
VotingEscrow 0x9c7305eb78a432ced5C4D14Cac27E8Ed569A2e26
VeArtProxy 0x5F2f6721Ca0C5AC522BC875fA3F09bF693dcFa1D
RewardsDistributor 0x5d5Bea9f0Fc13d967511668a60a3369fD53F784F
Minter 0x3460Dc71A8863710D1C907B8d9D5DBC053a4102d

contracts-latest's People

Contributors

0xmotto avatar ceazor avatar pooltypes 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.