Skip to content

Commit

Permalink
Merge pull request #443 from rabbitholegg/mmackz/utils-blast-support
Browse files Browse the repository at this point in the history
feat(utils): add support for blast
  • Loading branch information
mmackz authored Jun 11, 2024
2 parents 13df6a6 + dfdd6bb commit ee7ebcb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-singers-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rabbitholegg/questdk-plugin-utils": minor
---

add support for blast
2 changes: 2 additions & 0 deletions packages/utils/src/constants/layer-zero-relayer-addresses.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Address } from 'viem'
import { Chains } from './chain-ids'

// to find relayer address, check a tx on https://layerzeroscan.com/
export const RELAYER_ADDRESSES: { [chain in Chains]?: Address } = {
[Chains.ETHEREUM]: '0x902F09715B6303d4173037652FA7377e5b98089E',
[Chains.OPTIMISM]: '0x81E792e5a9003CC1C8BF5569A00f34b65d75b017',
Expand All @@ -12,4 +13,5 @@ export const RELAYER_ADDRESSES: { [chain in Chains]?: Address } = {
[Chains.ARBITRUM_ONE]: '0x177d36dBE2271A4DdB2Ad8304d82628eb921d790',
[Chains.AVALANCHE]: '0xCD2E3622d483C7Dc855F72e5eafAdCD577ac78B4',
[Chains.ZORA]: '0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9',
[Chains.BLAST]: '0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9',
}
3 changes: 3 additions & 0 deletions packages/utils/src/helpers/chain-id-to-viem-chain.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
arbitrum,
base,
blast,
mainnet,
optimism,
polygon,
Expand All @@ -14,6 +15,8 @@ export const chainIdToViemChain = (chainId: number) => {
return arbitrum
case base.id:
return base
case blast.id:
return blast
case mainnet.id:
return mainnet
case optimism.id:
Expand Down

0 comments on commit ee7ebcb

Please sign in to comment.