Skip to content

Commit

Permalink
Remove DApp related code (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahthepro committed Dec 13, 2023
1 parent f5920db commit 4e7bd0b
Show file tree
Hide file tree
Showing 1,023 changed files with 6 additions and 335,600 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/defi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,44 +173,6 @@ jobs:
with:
fail_ci_if_error: true

dapp-lint:
name: "OUSD DApp Linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
cache-dependency-path: dapp/yarn.lock

- run: yarn install --frozen-lockfile
working-directory: ./dapp

- run: yarn prettier:check
working-directory: ./dapp

dapp-oeth-lint:
name: "OETH DApp Linter"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: "yarn"
cache-dependency-path: dapp-oeth/yarn.lock

- run: yarn install --frozen-lockfile
working-directory: ./dapp-oeth

- run: yarn prettier:check
working-directory: ./dapp-oeth

slither:
name: "Slither"
runs-on: ubuntu-latest
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,6 @@ contracts/coverage/
contracts/coverage.json
contracts/build/
contracts/dist/
dapp/network.json
dapp/keys/
dapp/ganache-network.json
website/network.json
/playground/public/build/

todo.txt
brownie/env-brownie/
Expand Down
22 changes: 0 additions & 22 deletions Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion Procfile

This file was deleted.

12 changes: 4 additions & 8 deletions contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"name": "origin-dollar-contracts",
"name": "origin-defi-contracts",
"version": "0.1.0",
"description": "Origin Dollar Contracts",
"description": "Origin DeFi Contracts",
"main": "index.js",
"scripts": {
"deploy": "(rm -rf deployments/hardhat && npx hardhat deploy --export '../dapp/network.json') && yarn run copy-interface-artifacts",
"deploy:mainnet": "(npx hardhat deploy --network mainnet --verbose --export '../dapp/network.mainnet.json') && yarn run copy-interface-artifacts",
"deploy:oeth": "(rm -rf deployments/hardhat && npx hardhat deploy --export '../dapp-oeth/network.json') && yarn run copy-interface-artifacts:oeth",
"deploy:oeth:mainnet": "(npx hardhat deploy --network mainnet --verbose --export '../dapp-oeth/network.mainnet.json') && yarn run copy-interface-artifacts",
"deploy": "rm -rf deployments/hardhat && npx hardhat deploy",
"deploy:mainnet": "npx hardhat deploy --network mainnet --verbose",
"abi:generate": "(rm -rf deployments/hardhat && mkdir -p dist/abi && npx hardhat deploy --export '../dist/network.json')",
"abi:dist": "find ./artifacts/contracts -name \"*.json\" -type f -exec cp {} ./dist/abi \\; && rm -rf dist/abi/*.dbg.json dist/abi/Mock*.json && cp ./abi.package.json dist/package.json && cp ./.npmrc.abi dist/.npmrc",
"node": "yarn run node:fork",
Expand All @@ -23,8 +21,6 @@
"test:fork": "./fork-test.sh",
"test:fork:w_trace": "TRACE=true ./fork-test.sh",
"fund": "FORK=true npx hardhat fund --network localhost",
"copy-interface-artifacts": "mkdir -p ../dapp/abis && cp artifacts/contracts/interfaces/IVault.sol/IVault.json ../dapp/abis/IVault.json && cp artifacts/contracts/liquidity/LiquidityReward.sol/LiquidityReward.json ../dapp/abis/LiquidityReward.json && cp artifacts/contracts/interfaces/uniswap/IUniswapV2Pair.sol/IUniswapV2Pair.json ../dapp/abis/IUniswapV2Pair.json && cp artifacts/contracts/staking/SingleAssetStaking.sol/SingleAssetStaking.json ../dapp/abis/SingleAssetStaking.json && cp artifacts/contracts/compensation/CompensationClaims.sol/CompensationClaims.json ../dapp/abis/CompensationClaims.json && cp artifacts/contracts/flipper/Flipper.sol/Flipper.json ../dapp/abis/Flipper.json",
"copy-interface-artifacts:oeth": "mkdir -p ../dapp-oeth/abis && cp artifacts/contracts/interfaces/IVault.sol/IVault.json ../dapp-oeth/abis/IVault.json && cp artifacts/contracts/liquidity/LiquidityReward.sol/LiquidityReward.json ../dapp-oeth/abis/LiquidityReward.json && cp artifacts/contracts/interfaces/uniswap/IUniswapV2Pair.sol/IUniswapV2Pair.json ../dapp-oeth/abis/IUniswapV2Pair.json && cp artifacts/contracts/staking/SingleAssetStaking.sol/SingleAssetStaking.json ../dapp-oeth/abis/SingleAssetStaking.json && cp artifacts/contracts/compensation/CompensationClaims.sol/CompensationClaims.json ../dapp-oeth/abis/CompensationClaims.json && cp artifacts/contracts/vault/OETHZapper.sol/OETHZapper.json ../dapp-oeth/abis/OETHZapper.json && cp artifacts/contracts/oracle/OracleRouter.sol/OETHOracleRouter.json ../dapp-oeth/abis/OETHOracleRouter.json",
"echidna": "yarn run clean && rm -rf echidna-corpus && echidna . --contract Echidna --config echidna-config.yaml",
"compute-merkle-proofs-local": "HARDHAT_NETWORK=localhost node scripts/staking/airDrop.js reimbursements.csv scripts/staking/merkleProofedAccountsToBeCompensated.json && cp scripts/staking/merkleProofedAccountsToBeCompensated.json ../dapp/src/constants/merkleProofedAccountsToBeCompensated.json",
"compute-merkle-proofs-mainnet": "HARDHAT_NETWORK=mainnet node scripts/staking/airDrop.js reimbursements.csv scripts/staking/merkleProofedAccountsToBeCompensated.json && cp scripts/staking/merkleProofedAccountsToBeCompensated.json ../dapp/src/constants/merkleProofedAccountsToBeCompensated.json",
Expand Down
21 changes: 0 additions & 21 deletions dapp-oeth/.babelrc

This file was deleted.

1 change: 0 additions & 1 deletion dapp-oeth/.enum_manifest.json

This file was deleted.

59 changes: 0 additions & 59 deletions dapp-oeth/.gitignore

This file was deleted.

Loading

0 comments on commit 4e7bd0b

Please sign in to comment.