Skip to content

Commit

Permalink
refactor: group abis into a tmp dir (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGorilla authored Sep 1, 2023
1 parent b4cc398 commit 45de94d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ src/artifacts
*.tgz
package
yarn-error.log
abis/imported
tmp
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions group-abis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rm -rf ./tmp/abis
mkdir -p ./tmp/abis
cp ./node_modules/@hai-on-op/abis/abi/*.json ./abis/*.json ./tmp/abis
2 changes: 0 additions & 2 deletions move-abis.sh

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
],
"scripts": {
"prebuild": "yarn --cwd ./solidity install && yarn --cwd ./solidity compile",
"build": "sh ./move-abis.sh && yarn generate-types && tsc",
"generate-types": "typechain --target ethers-v5 --out-dir src/typechained --glob ./abis/**/*.json",
"build": "sh ./group-abis.sh && yarn generate-types && tsc",
"generate-types": "typechain --target ethers-v5 --out-dir src/typechained --glob ./tmp/abis/**/*.json",
"lint:check": "prettier --check .",
"lint:fix": "sort-package-json && prettier --write .",
"prepare": "husky install",
Expand Down
4 changes: 2 additions & 2 deletions src/auctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import {
RestartAuctionEventFilter as SurplusRestartAuctonEventFilter,
SettleAuctionEventFilter as SurplusSettleAuctionEventFilter,
StartAuctionEventFilter as SurplusStartAuctionEventFilter,
} from './typechained/imported/ISurplusAuctionHouse'
} from './typechained/ISurplusAuctionHouse'

import {
DecreaseSoldAmountEventFilter as DebtDecreaseSoldAmountEventFilter,
RestartAuctionEventFilter as DebtRestartAuctonEventFilter,
SettleAuctionEventFilter as DebtSettleAuctionEventFilter,
StartAuctionEventFilter as DebtStartAuctionEventFilter,
} from './typechained/imported/IDebtAuctionHouse'
} from './typechained/IDebtAuctionHouse'

/**
* The main package used to interact with the GEB system. Includes [[deployProxy |helper functions]] for safe
Expand Down
6 changes: 3 additions & 3 deletions src/schema/auction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { BigNumber } from 'ethers'
import {
IncreaseBidSizeEvent,
StartAuctionEvent as SurplusStartAuctionEvent,
} from '../typechained/imported/ISurplusAuctionHouse'
import { StartAuctionEvent as DebtStartAuctionEvent } from '../typechained/imported/IDebtAuctionHouse'
} from '../typechained/ISurplusAuctionHouse'
import { StartAuctionEvent as DebtStartAuctionEvent } from '../typechained/IDebtAuctionHouse'
import {
BuyCollateralEvent,
StartAuctionEvent as CollateralAuctionStartEvent,
} from '../typechained/imported/ICollateralAuctionHouse'
} from '../typechained/ICollateralAuctionHouse'

export interface ISurplusAuction {
auctionId: string
Expand Down

0 comments on commit 45de94d

Please sign in to comment.