Skip to content

Commit

Permalink
fix metis eth price and add mock deploys to localhost.json
Browse files Browse the repository at this point in the history
  • Loading branch information
hellobart committed Sep 13, 2024
1 parent af6bbb4 commit 8d07602
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contracts/core/test/subgraphMocks/MetisEthUniswapPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ contract MockMetisEthUniswapPool {

constructor() {
slot0 = Slot0({
sqrtPriceX96: 921607156908519294832225,
sqrtPriceX96: 9016690058901672876185056108,
tick: -43030,
observationIndex: 52,
observationCardinality: 80,
Expand Down
19 changes: 18 additions & 1 deletion scripts/test/deploy/modules/deploy-subgraph-mocks.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { deploy } from '../../../utils/deployment'
import { deploy, updateDeployments } from '../../../utils/deployment'

export async function deploySubgraphMockContracts() {
const mockEthUsdAggregator = await deploy(
Expand Down Expand Up @@ -30,4 +30,21 @@ export async function deploySubgraphMockContracts() {
[]
)
console.log('MockMetisEthUniswapPool deployed: ', mockMetisEthUniswapPool.target)

updateDeployments(
{
mockEthUsdAggregator: mockEthUsdAggregator.target,
mockLinkSdlSushiPool: mockLinkSdlSushiPool.target,
mockLinkSdlUniswapPool: mockLinkSdlUniswapPool.target,
mockLinkUsdAggregator: mockLinkUsdAggregator.target,
mockMetisEthUniswapPool: mockMetisEthUniswapPool.target,
},
{
mockEthUsdAggregator: 'mockEthUsdAggregator',
mockLinkSdlSushiPool: 'mockLinkSdlSushiPool',
mockLinkSdlUniswapPool: 'mockLinkSdlUniswapPool',
mockLinkUsdAggregator: 'mockLinkUsdAggregator',
mockMetisEthUniswapPool: 'mockMetisEthUniswapPool',
}
)
}

0 comments on commit 8d07602

Please sign in to comment.