File tree Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Expand file tree Collapse file tree 5 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @clober/v2-sdk" ,
3
- "version" : " 0.0.15 " ,
3
+ "version" : " 0.0.16 " ,
4
4
"description" : " 🛠 An SDK for building applications on top of Clober V2" ,
5
5
"files" : [
6
6
" dist"
Original file line number Diff line number Diff line change @@ -14,4 +14,14 @@ export const CONTRACT_ADDRESSES: {
14
14
BookManager : getAddress ( '0x4a4eaF7382821da4Fb85e8A8d515f5555383d58A' ) ,
15
15
BookViewer : getAddress ( '0xA7603C4c895a533E66c30EA76cC6F6A6A0c5cbFe' ) ,
16
16
} ,
17
+ [ CHAIN_IDS . BASE ] : {
18
+ Controller : getAddress ( '0x4ed2804b5409298290654D665619c7b092297dB2' ) ,
19
+ BookManager : getAddress ( '0x59fAD5b95e755034572702991ABBA937Cc90254a' ) ,
20
+ BookViewer : getAddress ( '0x0e7fc8F067470424589Cc25DceEd0dA9a1a8E72A' ) ,
21
+ } ,
22
+ [ CHAIN_IDS . BERACHAIN_TESTNET ] : {
23
+ Controller : getAddress ( '0x2EF0F04fbA5bCa42cC9569f4f2E3A4D11f182600' ) ,
24
+ BookManager : getAddress ( '0x982c57388101D012846aDC4997E9b073F3bC16BD' ) ,
25
+ BookViewer : getAddress ( '0x16CF06ECB016e449c57b94B8368f2d45D5cf343D' ) ,
26
+ } ,
17
27
}
Original file line number Diff line number Diff line change 1
- import { arbitrumSepolia , type Chain , mainnet } from 'viem/chains'
1
+ import {
2
+ arbitrumSepolia ,
3
+ base ,
4
+ berachainTestnet ,
5
+ type Chain ,
6
+ } from 'viem/chains'
2
7
3
8
export enum CHAIN_IDS {
4
- MAINNET = mainnet . id ,
5
9
ARBITRUM_SEPOLIA = arbitrumSepolia . id ,
10
+ BASE = base . id ,
11
+ BERACHAIN_TESTNET = berachainTestnet . id ,
6
12
}
7
13
8
14
export const CHAIN_MAP : {
9
15
[ chain in CHAIN_IDS ] : Chain
10
16
} = {
11
17
[ CHAIN_IDS . ARBITRUM_SEPOLIA ] : arbitrumSepolia ,
18
+ [ CHAIN_IDS . BASE ] : base ,
19
+ [ CHAIN_IDS . BERACHAIN_TESTNET ] : berachainTestnet ,
12
20
}
Original file line number Diff line number Diff line change @@ -6,10 +6,20 @@ export const WETH_ADDRESSES: {
6
6
[ chain in CHAIN_IDS ] : `0x${string } `[ ]
7
7
} = {
8
8
[ CHAIN_IDS . ARBITRUM_SEPOLIA ] : [ zeroAddress ] ,
9
+ [ CHAIN_IDS . BASE ] : [ '0x4200000000000000000000000000000000000006' ] ,
10
+ [ CHAIN_IDS . BERACHAIN_TESTNET ] : [
11
+ '0x5806E416dA447b267cEA759358cF22Cc41FAE80F' , // WBERA
12
+ ] ,
9
13
}
10
14
11
15
export const STABLE_COIN_ADDRESSES : {
12
16
[ chain in CHAIN_IDS ] : `0x${string } `[ ]
13
17
} = {
14
18
[ CHAIN_IDS . ARBITRUM_SEPOLIA ] : [ '0x00BFD44e79FB7f6dd5887A9426c8EF85A0CD23e0' ] ,
19
+ [ CHAIN_IDS . BASE ] : [
20
+ '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' , // USDC
21
+ ] ,
22
+ [ CHAIN_IDS . BERACHAIN_TESTNET ] : [
23
+ '0x7EeCA4205fF31f947EdBd49195a7A88E6A91161B' , // HONEY
24
+ ] ,
15
25
}
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ const SUBGRAPH_URL: {
5
5
} = {
6
6
[ CHAIN_IDS . ARBITRUM_SEPOLIA ] :
7
7
'https://subgraph.satsuma-prod.com/f6a8c4889b7b/clober/v2-core-subgraph/api' ,
8
+ [ CHAIN_IDS . BASE ] :
9
+ 'https://subgraph.satsuma-prod.com/f6a8c4889b7b/clober/v2-core-subgraph-base/api' ,
10
+ [ CHAIN_IDS . BERACHAIN_TESTNET ] :
11
+ 'https://api.goldsky.com/api/public/project_clsljw95chutg01w45cio46j0/subgraphs/v2-core-subgraph/v1.2.0/gn' ,
8
12
}
9
13
10
14
class Subgraph {
You can’t perform that action at this time.
0 commit comments