Skip to content

Commit 40e5851

Browse files
committed
monad
1 parent 347e9b1 commit 40e5851

File tree

4 files changed

+52
-5
lines changed

4 files changed

+52
-5
lines changed

config/monad/.subgraph-env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
V2_TOKEN_SUBGRAPH_NAME="v2-tokens-monad"
2+
V2_SUBGRAPH_NAME="uniswap-v2-monad"

config/monad/chain.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts/index'
2+
3+
export const FACTORY_ADDRESS = '0x182a927119d56008d921126764bf884221b10f59'
4+
5+
export const REFERENCE_TOKEN = '0x3bd359c1119da7da1d913d1c4d2b7c461115433a'
6+
export const STABLE_TOKEN_PAIRS = ['0x3fe12728ea1b89e4bac6e59a9130b61a27d032f8']
7+
8+
// token where amounts should contribute to tracked volume and liquidity
9+
export const WHITELIST: string[] = [
10+
'0x3bd359c1119da7da1d913d1c4d2b7c461115433a', // WMON
11+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
12+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
13+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
14+
'0xee8c0e9f1bffb4eb878d8f15f368a02a35481242', // WETH
15+
'0xea17e5a9efebf1477db45082d67010e2245217f1', // WSOL
16+
]
17+
18+
export const STABLECOINS = [
19+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
20+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
21+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
22+
]
23+
24+
// minimum liquidity required to count towards tracked volume for pairs with small # of Lps
25+
export const MINIMUM_USD_THRESHOLD_NEW_PAIRS = BigDecimal.fromString('10000')
26+
27+
// minimum liquidity for price to get tracked
28+
export const MINIMUM_LIQUIDITY_THRESHOLD_ETH = BigDecimal.fromString('100000')
29+
30+
export class TokenDefinition {
31+
address: Address
32+
symbol: string
33+
name: string
34+
decimals: BigInt
35+
}
36+
37+
export const STATIC_TOKEN_DEFINITIONS: TokenDefinition[] = []
38+
39+
export const SKIP_TOTAL_SUPPLY: string[] = []

config/monad/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"network": "monad",
3+
"factory": "0x182a927119D56008d921126764bF884221b10f59",
4+
"startblock": "29255814"
5+
}

script/utils/prepareNetwork.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ export enum NETWORK {
1212
CELO = 'celo',
1313
ETHEREUM = 'ethereum',
1414
MATIC = 'matic',
15+
MONAD = 'monad',
1516
OPTIMISM = 'optimism',
1617
SONEIUM = 'soneium-mainnet',
1718
UNICHAIN = 'unichain-mainnet',
1819
WORLDCHAIN = 'worldchain-mainnet',
19-
ZORA = 'zora-mainnet',
20+
ZORA = 'zora-mainnet'
2021
}
2122

2223
export enum SUBGRAPH_TYPE {
2324
V2_TOKENS = 'v2-tokens',
24-
V2 = 'v2',
25+
V2 = 'v2'
2526
}
2627

2728
const CHAIN_CONSTANTS_FILE_NAME = 'chain.ts'
@@ -35,7 +36,7 @@ export function validateNetwork(network: string) {
3536

3637
if (
3738
!Object.values(NETWORK)
38-
.map((n) => n.toString())
39+
.map(n => n.toString())
3940
.includes(network)
4041
) {
4142
console.error('invalid network parameter passed, pass either: ', ...Object.values(NETWORK))
@@ -51,7 +52,7 @@ export function validateSubgraphType(subgraphType: string) {
5152

5253
if (
5354
!Object.values(SUBGRAPH_TYPE)
54-
.map((n) => n.toString())
55+
.map(n => n.toString())
5556
.includes(subgraphType)
5657
) {
5758
console.error('invalid subgraph name parameter passed, pass either: ', ...Object.values(SUBGRAPH_TYPE))
@@ -99,7 +100,7 @@ export function getAlchemyDeploymentParams(): {
99100
return {
100101
node: process.env.ALCHEMY_DEPLOY_URL,
101102
ipfs: process.env.ALCHEMY_IPFS_URL,
102-
deployKey: process.env.ALCHEMY_DEPLOY_KEY,
103+
deployKey: process.env.ALCHEMY_DEPLOY_KEY
103104
}
104105
}
105106

0 commit comments

Comments
 (0)