Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs & common: add support for boba, boba-bnb and fix for blast #1021

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs & common: add support for boba, boba-bnb and fix for blast
pdiogo authored and dwerner committed Nov 29, 2024
commit 020ca8563b2923ed135f3b70c2a676ab81e18902
4 changes: 3 additions & 1 deletion docs/feature-support-matrix.md
Original file line number Diff line number Diff line change
@@ -28,7 +28,9 @@ The matrix below reflects the canonical Council-ratified version. As outlined in
| eip155:59144 | linea | Yes | Yes | Yes | Yes | Yes |
| eip155:56 | bsc | Yes | Yes | Yes | Yes | Yes |
| eip155:122 | fuse | Yes | Yes | Yes | Yes | Yes |
| eip155:81457 | blast | Yes | Yes | Yes | Yes | Yes |
| eip155:81457 | blast-mainnet | Yes | Yes | Yes | Yes | Yes |
| eip155:288 | boba | Yes | Yes | Yes | Yes | Yes |
| eip155:56288 | boba-bnb | Yes | Yes | Yes | Yes | Yes |
| **Data Source Features** | | | | | | |
| ipfs.cat in mappings | | Yes | Yes | No | No | No |
| ENS | | Yes | Yes | Yes | Yes | Yes |
6 changes: 5 additions & 1 deletion packages/indexer-common/src/indexer-management/types.ts
Original file line number Diff line number Diff line change
@@ -186,7 +186,9 @@ export const Caip2ByChainAlias: { [key: string]: string } = {
base: 'eip155:8453',
moonbeam: 'eip155:1284',
fuse: 'eip155:122',
blast: 'eip155:81457',
'blast-mainnet': 'eip155:81457',
boba: 'eip155:288',
'boba-bnb': 'eip155:56288',
}

export const Caip2ByChainId: { [key: number]: string } = {
@@ -210,6 +212,8 @@ export const Caip2ByChainId: { [key: number]: string } = {
1284: 'eip155:1284',
122: 'eip155:122',
81457: 'eip155:81457',
288: 'eip155:288',
56288: 'eip155:56288',
}

/// Unified entrypoint to resolve CAIP ID based either on chain aliases (strings)