Skip to content

Commit

Permalink
refactor: subgraph mainnet to sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrosaturnino committed Oct 17, 2023
1 parent 7b41372 commit fac3c1b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/subgraph/subgraph.yaml.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require("fs");

const network = process.argv[2] || "mainnet";
const network = process.argv[2] || "sepolia";
const { addresses, startBlock } = require(`@liquity/lib-ethers/deployments/${network}.json`);

console.log(`Preparing subgraph manifest for network "${network}"`);
Expand All @@ -20,7 +20,7 @@ schema:
dataSources:
- name: TroveManager
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: TroveManager
address: "${addresses.troveManager}"
Expand Down Expand Up @@ -55,7 +55,7 @@ dataSources:
handler: handleLTermsUpdated
- name: BorrowerOperations
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: BorrowerOperations
address: "${addresses.borrowerOperations}"
Expand All @@ -82,7 +82,7 @@ dataSources:
handler: handleTHUSDBorrowingFeePaid
- name: PriceFeed
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: PriceFeed
address: "${addresses.priceFeed}"
Expand All @@ -105,7 +105,7 @@ dataSources:
handler: handleLastGoodPriceUpdated
- name: StabilityPool
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: StabilityPool
address: "${addresses.stabilityPool}"
Expand Down Expand Up @@ -133,7 +133,7 @@ dataSources:
handler: handleCollateralGainWithdrawn
- name: CollSurplusPool
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: CollSurplusPool
address: "${addresses.collSurplusPool}"
Expand Down Expand Up @@ -162,7 +162,7 @@ ${[
([name, address]) => yaml`
- name: ${name}
kind: ethereum/contract
network: mainnet
network: sepolia
source:
abi: ERC20
address: "${address}"
Expand Down

0 comments on commit fac3c1b

Please sign in to comment.