Skip to content

Commit d89c095

Browse files
authored
monad (#287)
* monad * fix(lint): auto-fix [ci] --------- Co-authored-by: matteenm <matteenm@users.noreply.github.com>
1 parent 4c9c672 commit d89c095

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
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+
V3_TOKEN_SUBGRAPH_NAME="v3-tokens-monad"
2+
V3_SUBGRAPH_NAME="uniswap-v3-monad"

config/monad/chain.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { Address, BigDecimal, BigInt } from '@graphprotocol/graph-ts'
2+
3+
export const FACTORY_ADDRESS = '0x204faca1764b154221e35c0d20abb3c525710498'
4+
5+
export const REFERENCE_TOKEN = '0x3bd359c1119da7da1d913d1c4d2b7c461115433a' // WMON
6+
export const STABLE_TOKEN_POOL = '0x659bd0bc4167ba25c62e05656f78043e7ed4a9da'
7+
8+
export const TVL_MULTIPLIER_THRESHOLD = '2'
9+
export const MATURE_MARKET = '1000000'
10+
export const MINIMUM_NATIVE_LOCKED = BigDecimal.fromString('100000')
11+
12+
export const ROLL_DELETE_HOUR = 768
13+
export const ROLL_DELETE_MINUTE = 1680
14+
15+
export const ROLL_DELETE_HOUR_LIMITER = BigInt.fromI32(500)
16+
export const ROLL_DELETE_MINUTE_LIMITER = BigInt.fromI32(1000)
17+
18+
// token where amounts should contribute to tracked volume and liquidity
19+
// usually tokens that many tokens are paired with s
20+
export const WHITELIST_TOKENS: string[] = [
21+
'0x3bd359c1119da7da1d913d1c4d2b7c461115433a', // WMON
22+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
23+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
24+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
25+
'0xee8c0e9f1bffb4eb878d8f15f368a02a35481242', // WETH
26+
'0xea17e5a9efebf1477db45082d67010e2245217f1', // WSOL
27+
]
28+
29+
export const STABLE_COINS: string[] = [
30+
'0x754704bc059f8c67012fed69bc8a327a5aafb603', // USDC
31+
'0x00000000efe302beaa2b3e6e1b18d08d69a9012a', // AUSD
32+
'0xe7cd86e13ac4309349f30b3435a9d337750fc82d', // USDT
33+
]
34+
35+
export const SKIP_POOLS: string[] = []
36+
37+
export const POOL_MAPINGS: Array<Address[]> = []
38+
39+
export class TokenDefinition {
40+
address: Address
41+
symbol: string
42+
name: string
43+
decimals: BigInt
44+
}
45+
46+
export const STATIC_TOKEN_DEFINITIONS: TokenDefinition[] = []

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": "0x204faca1764b154221e35c0d20abb3c525710498",
4+
"startblock": "29255827"
5+
}

script/utils/prepareNetwork.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ 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',

0 commit comments

Comments
 (0)