Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 deploy #95

Merged
merged 26 commits into from
Dec 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8200889
moved hardhat deploy over
0xdavinchee Nov 9, 2021
1d4aced
updating deploy scripts
ind-igo Nov 11, 2021
4ff2f7e
wip
ind-igo Nov 13, 2021
41d6d02
staking
ind-igo Nov 13, 2021
492fabd
Merge branch 'Version-2' into v2-deploy
Zayen-X Nov 18, 2021
33a463a
attempting to introduce olympus authority
Zayen-X Nov 18, 2021
b8b2ecc
Merge branch 'Version-2' into v2-deploy
Zayen-X Nov 19, 2021
86fad0f
re-ordered deployements + added setup script
Zayen-X Nov 19, 2021
55244ad
removed unused var
Zayen-X Nov 19, 2021
0bddad7
moved stuff around
Zayen-X Nov 19, 2021
7454fe4
adjust deployments. add package.json scripts
ind-igo Nov 24, 2021
14e7e40
merged v2 into branch
Zayen-X Dec 13, 2021
607f0d0
renaming scripts to match order
Zayen-X Dec 13, 2021
394ae1f
renamed shit
Zayen-X Dec 13, 2021
348dd1b
upating hardhat config to point to deploy scripts
Zayen-X Dec 13, 2021
4a2b183
Deployment scripts run YEEHAWW
Zayen-X Dec 13, 2021
5872017
rename setup file
ind-igo Dec 13, 2021
b091475
deployment setup working now
ind-igo Dec 13, 2021
4373fe1
debugging import of past deployments
ind-igo Dec 14, 2021
0581618
removing backup folders
Zayen-X Dec 15, 2021
3c5d23d
testing comment
Zayen-X Dec 15, 2021
a09ee28
added faucet and rinkeby deployments
Zayen-X Dec 16, 2021
13b2e53
got faucet and deployments working on rinkeby
Zayen-X Dec 18, 2021
6110a69
Merge branch 'Version-2' into v2-deploy
Zayen-X Dec 18, 2021
5b900b3
updated rinkeby deployments
Zayen-X Dec 18, 2021
3b8469c
added a comment, and removed testnet hardhat config
Zayen-X Dec 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ALCHEMY_API_KEY=RuGxhTpkUt3S6InAt33l_3NZc4pFwXxS
ETHERSCAN_API_KEY=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
MNEMONIC=here is where your twelve words mnemonic should be put my friend
PRIVATE_KEY=PrivateKeyGoesHere
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ types/
node_modules/
.env
yarn-error.log
.package-lock.json

.yalc
yalc.lock

contractsInfo.json
deployments/hardhat
deployments/localhost
deployments/**/solcinputs

/.dapp

Expand Down
2 changes: 1 addition & 1 deletion contracts/BondDepository.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;
pragma abicoder v2;

Expand Down
2 changes: 1 addition & 1 deletion contracts/BondTeller.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/OlympusAuthority.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./interfaces/IOlympusAuthority.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/OlympusERC20.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Staking.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/StakingDistributor.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/StandardBondingCalculator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/Treasury.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBondingCalculator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IBondingCalculator {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IDistributor.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IDistributor {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC20.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IERC20 {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IGovernable.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;


Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IGuardable.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;


Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IOHM.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IOlympusAuthority.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity =0.7.5;

interface IOlympusAuthority {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IOracle.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IOracle {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IOwnable.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;


Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IStaking.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IStaking {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IStakingV1.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IStakingV1 {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITeller.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface ITeller {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITreasury.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface ITreasury {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/ITreasuryV1.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface ITreasuryV1 {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IUniswapV2ERC20.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IUniswapV2ERC20 {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IUniswapV2Pair.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IUniswapV2ERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IUniswapV2Router.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IUniswapV2Router {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IWarmup.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

interface IWarmup {
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IgOHM.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IsOHM.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IwsOHM.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity >=0.7.5;

import "./IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Address.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;


Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/Counters.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./SafeMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/FixedPoint.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./FullMath.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/FullMath.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

library FullMath {
Expand Down
2 changes: 1 addition & 1 deletion contracts/libraries/SafeMath.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;


Expand Down
2 changes: 1 addition & 1 deletion contracts/migration/CrossChainMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.7.5;

import "../interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/migration/OlympusTokenMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.7.5;

import "../interfaces/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/DAI.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.7.5;

contract LibNote {
Expand Down
2 changes: 1 addition & 1 deletion contracts/sOlympusERC20.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.7.5;

import "./libraries/Address.sol";
Expand Down
21 changes: 21 additions & 0 deletions contracts/testnet/OhmFaucet.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity 0.7.5;

import "../interfaces/IERC20.sol";
import "../types/Ownable.sol";

contract OhmFaucet is Ownable {
IERC20 public ohm;

constructor(address _ohm) {
ohm = IERC20(_ohm);
}

function setOhm(address _ohm) external onlyOwner {
ohm = IERC20(_ohm);
}

function dispense() external {
ohm.transfer(msg.sender, 1e9);
}
}
1 change: 1 addition & 0 deletions deployments/mainnet/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Loading