Skip to content

Commit

Permalink
Merge pull request #101 from bgd-labs/feat/sonic
Browse files Browse the repository at this point in the history
feat: add sonic chain id
  • Loading branch information
sendra authored Feb 7, 2025
2 parents 163e5e3 + 9a21a4e commit 263a7cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/contracts/adapters/ccip/CCIPAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ contract CCIPAdapter is ICCIPAdapter, BaseAdapter, IAny2EVMMessageReceiver, IERC
return ChainIds.BNB;
} else if (nativeChainId == uint64(1346049177634351622)) {
return ChainIds.CELO;
} else if (nativeChainId == uint64(1673871237479749969)) {
return ChainIds.SONIC;
}
return nativeChainId;
}
Expand All @@ -155,6 +157,8 @@ contract CCIPAdapter is ICCIPAdapter, BaseAdapter, IAny2EVMMessageReceiver, IERC
return uint64(11344663589394136015);
} else if (infraChainId == ChainIds.CELO) {
return uint64(1346049177634351622);
} else if (infraChainId == ChainIds.SONIC) {
return uint64(1673871237479749969);
}
return infraChainId;
}
Expand Down
4 changes: 4 additions & 0 deletions src/contracts/adapters/layerZero/LayerZeroAdapter.sol
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ contract LayerZeroAdapter is BaseAdapter, ILayerZeroAdapter, ILayerZeroReceiver
return ChainIds.GNOSIS;
} else if (nativeChainId == 30125) {
return ChainIds.CELO;
} else if (nativeChainId == 30332) {
return ChainIds.SONIC;
} else {
return 0;
}
Expand Down Expand Up @@ -160,6 +162,8 @@ contract LayerZeroAdapter is BaseAdapter, ILayerZeroAdapter, ILayerZeroReceiver
return 30145;
} else if (infraChainId == ChainIds.CELO) {
return 30125;
} else if (infraChainId == ChainIds.SONIC) {
return 30332;
} else {
return uint16(0);
}
Expand Down

0 comments on commit 263a7cf

Please sign in to comment.