File tree Expand file tree Collapse file tree 7 files changed +14
-21
lines changed Expand file tree Collapse file tree 7 files changed +14
-21
lines changed Original file line number Diff line number Diff line change 12
12
build :
13
13
strategy :
14
14
matrix :
15
- node-version : [18, 20, 22]
15
+ node-version : [20, 22]
16
16
system :
17
17
- os : ubuntu-22.04
18
18
runs-on : ${{ matrix.system.os }}
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ The Graph Network's testnet is on Arbitrum Sepolia (eip155:421614). Sepolia netw
7
7
| Component | Release |
8
8
| ------------------ | ------------------------------------------------------------------------------------ |
9
9
| contracts | [ 5.3.3] ( https://github.com/graphprotocol/contracts/releases/tag/v5.3.3 ) |
10
- | indexer-agent | [ 0.23.5 ] ( https://github.com/graphprotocol/indexer/releases/tag/v0.23.5 ) |
11
- | indexer-cli | [ 0.23.5 ] ( https://github.com/graphprotocol/indexer/releases/tag/v0.23.5 ) |
10
+ | indexer-agent | [ 0.23.8 ] ( https://github.com/graphprotocol/indexer/releases/tag/v0.23.8 ) |
11
+ | indexer-cli | [ 0.23.8 ] ( https://github.com/graphprotocol/indexer/releases/tag/v0.23.8 ) |
12
12
| indexer-service-rs | [ 1.0.0] ( https://github.com/graphprotocol/indexer-rs/releases/tag/v1.0.0 ) |
13
13
| tap-agent | [ 1.0.0] ( https://github.com/graphprotocol/indexer-rs/releases/tag/v1.0.0 ) |
14
14
| graph-node | [ 0.35.1] ( https://github.com/graphprotocol/graph-node/releases/tag/v0.35.1 ) |
Original file line number Diff line number Diff line change 4
4
],
5
5
"npmClient" : " yarn" ,
6
6
"useWorkspaces" : true ,
7
- "version" : " 0.23.5 "
7
+ "version" : " 0.23.8 "
8
8
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @graphprotocol/indexer-agent" ,
3
- "version" : " 0.23.5 " ,
3
+ "version" : " 0.23.8 " ,
4
4
"description" : " Indexer agent" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
30
30
},
31
31
"dependencies" : {
32
32
"@graphprotocol/common-ts" : " 3.0.1" ,
33
- "@graphprotocol/indexer-common" : " ^0.23.5 " ,
33
+ "@graphprotocol/indexer-common" : " ^0.23.8 " ,
34
34
"@thi.ng/heaps" : " ^1.3.1" ,
35
35
"axios" : " 0.26.1" ,
36
36
"bs58" : " 5.0.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @graphprotocol/indexer-cli" ,
3
- "version" : " 0.23.5 " ,
3
+ "version" : " 0.23.8 " ,
4
4
"description" : " Indexer CLI for The Graph Network" ,
5
5
"main" : " ./dist/cli.js" ,
6
6
"files" : [
27
27
},
28
28
"dependencies" : {
29
29
"@graphprotocol/common-ts" : " 3.0.1" ,
30
- "@graphprotocol/indexer-common" : " ^0.23.5 " ,
30
+ "@graphprotocol/indexer-common" : " ^0.23.8 " ,
31
31
"@iarna/toml" : " 2.2.5" ,
32
32
"@thi.ng/iterators" : " 5.1.74" ,
33
33
"@urql/core" : " 3.1.0" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @graphprotocol/indexer-common" ,
3
- "version" : " 0.23.5 " ,
3
+ "version" : " 0.23.8 " ,
4
4
"description" : " Common library for Graph Protocol indexer components" ,
5
5
"main" : " ./dist/index.js" ,
6
6
"types" : " ./dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -238,23 +238,16 @@ const caip2ByChainAlias: { [key: string]: string } = {
238
238
boba : 'eip155:288' ,
239
239
'boba-bnb' : 'eip155:56288' ,
240
240
zora : 'eip155:7777777' ,
241
- mode : 'eip155:34443' ,
241
+ ' mode-mainnet' : 'eip155:34443' ,
242
242
}
243
243
244
244
async function buildCaip2MappingsFromRegistry ( ) {
245
- const networks = registry . networks
246
-
247
- for ( const network of networks ) {
248
- if ( ! network . aliases ) {
245
+ for ( const network of registry . networks ) {
246
+ const alias = network . id
247
+ caip2ByChainAlias [ alias ] = network . caip2Id
248
+ if ( ! network . caip2Id . startsWith ( 'eip155' ) ) {
249
249
continue
250
250
}
251
- for ( const alias of network . aliases ) {
252
- caip2ByChainAlias [ alias ] = network . caip2Id
253
- if ( alias . endsWith ( '-mainnet' ) ) {
254
- const aliasWithoutSuffix = alias . replace ( '-mainnet' , '' )
255
- caip2ByChainAlias [ aliasWithoutSuffix ] = network . caip2Id
256
- }
257
- }
258
251
const chainId = parseInt ( network . caip2Id . split ( ':' ) [ 1 ] )
259
252
if (
260
253
typeof chainId === 'number' &&
You can’t perform that action at this time.
0 commit comments