Skip to content

Commit

Permalink
chore: Add opbnb mainnet deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
chefjackson committed Sep 19, 2023
1 parent b10c0bc commit 5903f90
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion config/opbnb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const USDT = "0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3";
* @type import('./config').NetworkConfig
*/
module.exports = {
network: "opbnb",
network: "opbnb-mainnet",
wNativeAddress: WETH,
v3: {
// WBNB-USDT 500
Expand Down
3 changes: 2 additions & 1 deletion subgraphs/exchange-v3/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"deploy:bsc": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/exchange-v3-bsc subgraph.yaml",
"deploy:zksync-goerli": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ chef-jojo/exchange-v3-zksync-goerli subgraph.yaml",
"deploy:arb": "graph deploy --product hosted-service pancakeswap/exchange-v3-arb",
"deploy:polygon-zkevm-testnet": "graph deploy --studio exchange-v3-polygon-zkevm-test"
"deploy:polygon-zkevm-testnet": "graph deploy --studio exchange-v3-polygon-zkevm-test",
"deploy:opbnb": "graph deploy --node https://open-platform-ap.nodereal.io/$API_KEY/opbnb-mainnet-graph-indexer/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/exchange-v3"
}
}
14 changes: 7 additions & 7 deletions subgraphs/exchange-v3/template/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ features:
dataSources:
- kind: ethereum/contract
name: Factory
network: base
network: opbnb-mainnet
source:
address: "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865"
address: "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865"
abi: Factory
startBlock: 2912007
startBlock: 1721753
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand All @@ -37,11 +37,11 @@ dataSources:
handler: handlePoolCreated
- kind: ethereum/contract
name: NonfungiblePositionManager
network: base
network: opbnb-mainnet
source:
address: "0x46a15b0b27311cedf172ab29e4f4766fbe7f4364"
address: "0x46A15B0b27311cedF172AB29E4f4766fbE7F4364"
abi: NonfungiblePositionManager
startBlock: 2912503
startBlock: 1730685
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand Down Expand Up @@ -71,7 +71,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: Pool
network: base
network: opbnb-mainnet
source:
abi: Pool
mapping:
Expand Down
2 changes: 1 addition & 1 deletion subgraphs/exchange-v3/template/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Factory as FactoryContract } from "../generated/templates/Pool/Factory"

export const ADDRESS_ZERO = "0x0000000000000000000000000000000000000000";
// prettier-ignore
export const FACTORY_ADDRESS = "0x0bfbcf9fa4f9c56b0f40a671ad40e0805a091865";
export const FACTORY_ADDRESS = "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865";

export let ZERO_BI = BigInt.fromI32(0);
export let ONE_BI = BigInt.fromI32(1);
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/exchange-v3/template/utils/pricing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import { exponentToBigDecimal, safeDiv } from "./index";
// prettier-ignore
const WETH_ADDRESS = "0x4200000000000000000000000000000000000006";
// prettier-ignore
const USDC_WETH_03_POOL = "0xe58b73ff901325b8b2056b29712c50237242f520";
const USDC_WETH_03_POOL = "0xc4f981189558682F15F60513158B699354B30204";

const STABLE_IS_TOKEN0 = "false" as string;

// token where amounts should contribute to tracked volume and liquidity
// usually tokens that many tokens are paired with s
// prettier-ignore
export let WHITELIST_TOKENS: string[] = "0x4200000000000000000000000000000000000006,0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0x2ae3f1ec7f1f5012cfeab0185bfc7aa3cf0dec22,0xb6fe221fe9eef5aba221c348ba20a1bf5e73624c,0x50c5725949a6f0c72e6c4a641f24049a917db0cb,0x417ac0e078398c154edfadd9ef675d30be60af93,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913".split(",");
export let WHITELIST_TOKENS: string[] = "0x4200000000000000000000000000000000000006,0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3".split(",");

// prettier-ignore
let STABLE_COINS: string[] = "0xd9aaec86b65d86f6a7b5b1b0c42ffa531710b6ca,0x50c5725949a6f0c72e6c4a641f24049a917db0cb,0x417ac0e078398c154edfadd9ef675d30be60af93,0x833589fcd6edb6e08f4c7c32d4f71b54bda02913".split(",");
let STABLE_COINS: string[] = "0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3".split(",");

let MINIMUM_ETH_LOCKED = BigDecimal.fromString("1");

Expand Down

0 comments on commit 5903f90

Please sign in to comment.