From 044792e0dfd342276576452bac8fa588684d7f56 Mon Sep 17 00:00:00 2001 From: bennett Date: Thu, 11 Jul 2024 14:37:50 -0600 Subject: [PATCH 1/3] improve(NetworkUtils): add chainIsL1Function Signed-off-by: bennett --- src/utils/NetworkUtils.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/NetworkUtils.ts b/src/utils/NetworkUtils.ts index 5e2ecde9..a59b5d75 100644 --- a/src/utils/NetworkUtils.ts +++ b/src/utils/NetworkUtils.ts @@ -89,6 +89,15 @@ export function chainIsLinea(chainId: number): boolean { return [CHAIN_IDs.LINEA].includes(chainId); } +/** + * Determines whether a chain ID has a corresponding hub pool contract. + * @param chainId Chain ID to evaluate. + * @returns True if chain corresponding to chainId has a hub pool implementation. + */ +export function chainIsL1(chainId: number): boolean { + return [CHAIN_IDs.MAINNET, CHAIN_IDs.SEPOLIA].includes(chainId); +} + /** * Determines whether a chain ID has the capacity for having its USDC bridged via CCTP. * @param chainId Chain ID to evaluate. From 580b8f98c01036b66e9f0d1ebce053de960c4bc7 Mon Sep 17 00:00:00 2001 From: bennett Date: Mon, 15 Jul 2024 09:23:33 -0600 Subject: [PATCH 2/3] bump package Signed-off-by: bennett --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f3da420b..2149e9e6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@across-protocol/sdk", "author": "UMA Team", - "version": "3.1.11", + "version": "3.1.12", "license": "AGPL-3.0", "homepage": "https://docs.across.to/reference/sdk", "files": [ From e839e27cd49220e4d111a2d22a59527a83741bc4 Mon Sep 17 00:00:00 2001 From: bennett Date: Mon, 15 Jul 2024 09:24:57 -0600 Subject: [PATCH 3/3] revert package bump Signed-off-by: bennett --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2149e9e6..f3da420b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@across-protocol/sdk", "author": "UMA Team", - "version": "3.1.12", + "version": "3.1.11", "license": "AGPL-3.0", "homepage": "https://docs.across.to/reference/sdk", "files": [