Skip to content

Commit f508a92

Browse files
committed
Merge remote-tracking branch 'origin/main' into horizon
2 parents 0e6c962 + 515ae20 commit f508a92

File tree

7 files changed

+14
-21
lines changed

7 files changed

+14
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
node-version: [18, 20, 22]
15+
node-version: [20, 22]
1616
system:
1717
- os: ubuntu-22.04
1818
runs-on: ${{ matrix.system.os }}

docs/networks/arbitrum-sepolia.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ The Graph Network's testnet is on Arbitrum Sepolia (eip155:421614). Sepolia netw
77
| Component | Release |
88
| ------------------ | ------------------------------------------------------------------------------------ |
99
| 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) |
1212
| indexer-service-rs | [1.0.0](https://github.com/graphprotocol/indexer-rs/releases/tag/v1.0.0) |
1313
| tap-agent | [1.0.0](https://github.com/graphprotocol/indexer-rs/releases/tag/v1.0.0) |
1414
| graph-node | [0.35.1](https://github.com/graphprotocol/graph-node/releases/tag/v0.35.1) |

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
],
55
"npmClient": "yarn",
66
"useWorkspaces": true,
7-
"version": "0.23.5"
7+
"version": "0.23.8"
88
}

packages/indexer-agent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/indexer-agent",
3-
"version": "0.23.5",
3+
"version": "0.23.8",
44
"description": "Indexer agent",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@graphprotocol/common-ts": "3.0.1",
33-
"@graphprotocol/indexer-common": "^0.23.5",
33+
"@graphprotocol/indexer-common": "^0.23.8",
3434
"@thi.ng/heaps": "^1.3.1",
3535
"axios": "0.26.1",
3636
"bs58": "5.0.0",

packages/indexer-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/indexer-cli",
3-
"version": "0.23.5",
3+
"version": "0.23.8",
44
"description": "Indexer CLI for The Graph Network",
55
"main": "./dist/cli.js",
66
"files": [
@@ -27,7 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@graphprotocol/common-ts": "3.0.1",
30-
"@graphprotocol/indexer-common": "^0.23.5",
30+
"@graphprotocol/indexer-common": "^0.23.8",
3131
"@iarna/toml": "2.2.5",
3232
"@thi.ng/iterators": "5.1.74",
3333
"@urql/core": "3.1.0",

packages/indexer-common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/indexer-common",
3-
"version": "0.23.5",
3+
"version": "0.23.8",
44
"description": "Common library for Graph Protocol indexer components",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/indexer-common/src/indexer-management/types.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,23 +238,16 @@ const caip2ByChainAlias: { [key: string]: string } = {
238238
boba: 'eip155:288',
239239
'boba-bnb': 'eip155:56288',
240240
zora: 'eip155:7777777',
241-
mode: 'eip155:34443',
241+
'mode-mainnet': 'eip155:34443',
242242
}
243243

244244
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')) {
249249
continue
250250
}
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-
}
258251
const chainId = parseInt(network.caip2Id.split(':')[1])
259252
if (
260253
typeof chainId === 'number' &&

0 commit comments

Comments
 (0)