Skip to content

Commit

Permalink
feat: Add Polygon support to SDK Router
Browse files Browse the repository at this point in the history
- Clear CCTP_ROUTER_ADDRESS for future update
- Add Polygon to CCTP_SUPPORTED_CHAIN_IDS
- Define median time for Polygon in MEDIAN_TIME_CCTP
  • Loading branch information
aureliusbtc committed Dec 12, 2023
1 parent e01c3ca commit 3a6dad3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sdk-router/src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export const ROUTER_ADDRESS_MAP: AddressMap = generateAddressMap(
/**
* SynapseCCTP contract address for all chains except ones from CCTP_ROUTER_EXCEPTION_MAP.
*/
const CCTP_ROUTER_ADDRESS = '0xD359bc471554504f683fbd4f6e36848612349DDF'

// TODO: Update to use new Router contract addresses
const CCTP_ROUTER_ADDRESS = ''
const CCTP_ROUTER_EXCEPTION_MAP: AddressMap = {}

export const CCTP_ROUTER_ADDRESS_MAP: AddressMap = generateAddressMap(
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-router/src/constants/chainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ export const CCTP_SUPPORTED_CHAIN_IDS: number[] = [
SupportedChainId.OPTIMISM,
SupportedChainId.ARBITRUM,
SupportedChainId.BASE,
SupportedChainId.POLYGON, // Circle domain 7
]
1 change: 1 addition & 0 deletions packages/sdk-router/src/constants/medianTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ export const MEDIAN_TIME_CCTP = {
[SupportedChainId.BASE]: 1170,
[SupportedChainId.ARBITRUM]: 1170,
[SupportedChainId.AVALANCHE]: 30,
[SupportedChainId.POLYGON]: 440,
}

0 comments on commit 3a6dad3

Please sign in to comment.