Skip to content
Merged
Show file tree
Hide file tree
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
272 changes: 78 additions & 194 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"dependencies": {
"@apollo/client": "^3.8.1",
"@bosonprotocol/chat-sdk": "^1.3.1-alpha.9",
"@bosonprotocol/react-kit": "^0.39.0-alpha.4",
"@bosonprotocol/react-kit": "^0.39.1-alpha.1",
"@davatar/react": "^1.10.4",
"@ethersproject/address": "^5.6.1",
"@ethersproject/units": "^5.7.0",
Expand Down
15 changes: 15 additions & 0 deletions src/lib/constants/chainInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,21 @@ const CHAIN_INFO: ChainInfoMap = {
decimals: 18
}
},
[ChainId.ARBITRUM_SEPOLIA]: {
networkType: NetworkType.L2,
blockWaitMsBeforeWarning: ms(`10m`),
bridge: "https://testnets.superbridge.app/arbitrum-sepolia",
docs: "https://docs.arbitrum.io",
explorer: "https://sepolia.arbiscan.io/",
infoLink: "https://info.uniswap.org/#/arbitrum-sepolia/",
label: "Arbitrum Sepolia",
logoUrl: arbitrumLogoUrl,
circleLogoUrl: arbitrumCircleLogoUrl,
defaultListUrl: ARBITRUM_LIST,
helpCenterUrl:
"https://help.uniswap.org/en/collections/3137787-uniswap-on-arbitrum",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }
},
[ChainId.POLYGON]: {
networkType: NetworkType.L1,
blockWaitMsBeforeWarning: ms(`10m`),
Expand Down
18 changes: 12 additions & 6 deletions src/lib/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const CHAIN_IDS_TO_FRIENDLY_NAMES = {
[ChainId.CELO_ALFAJORES]: "Celo Alfajores",
[ChainId.ARBITRUM_ONE]: "Arbitrum",
[ChainId.ARBITRUM_GOERLI]: "Arbitrum Goerli",
[ChainId.ARBITRUM_SEPOLIA]: "Arbitrum Sepolia",
[ChainId.OPTIMISM]: "Optimism",
[ChainId.OPTIMISM_GOERLI]: "Optimism Goerli",
[ChainId.OPTIMISM_SEPOLIA]: "OP-Sepolia",
Expand All @@ -67,7 +68,9 @@ const SUPPORTED_CHAINS = [
ChainId.SEPOLIA,
ChainId_POLYGON_AMOY,
ChainId_BASE_SEPOLIA,
ChainId.OPTIMISM_SEPOLIA
ChainId.OPTIMISM_SEPOLIA,
ChainId.ARBITRUM_ONE,
ChainId.ARBITRUM_SEPOLIA
] as const;
export declare type SupportedChainsType = (typeof SUPPORTED_CHAINS)[number];

Expand Down Expand Up @@ -110,7 +113,7 @@ export const SUPPORTED_GAS_ESTIMATE_CHAIN_IDS = [
ChainId.POLYGON,
// ChainId.CELO,
ChainId.OPTIMISM,
// ChainId.ARBITRUM_ONE
ChainId.ARBITRUM_ONE,
// ChainId.BNB,
// ChainId.AVALANCHE,
ChainId.BASE
Expand All @@ -123,6 +126,7 @@ export const TESTNET_CHAIN_IDS = [
ChainId_POLYGON_AMOY,
ChainId_BASE_SEPOLIA,
ChainId.OPTIMISM_SEPOLIA,
ChainId.ARBITRUM_SEPOLIA,
LocalChainId
// ChainId.ARBITRUM_GOERLI,
// ChainId.OPTIMISM_GOERLI,
Expand Down Expand Up @@ -154,7 +158,8 @@ export type SupportedL1ChainId = (typeof L1_CHAIN_IDS)[number];
* The expectation is that all of these networks have immediate transaction confirmation.
*/
export const L2_CHAIN_IDS = [
// ChainId.ARBITRUM_ONE,
ChainId.ARBITRUM_ONE,
ChainId.ARBITRUM_SEPOLIA,
// ChainId.ARBITRUM_GOERLI,
ChainId.OPTIMISM,
ChainId.OPTIMISM_SEPOLIA,
Expand Down Expand Up @@ -182,9 +187,10 @@ export function getChainPriority(chainId: number): number {
case ChainId.BASE:
case ChainId_BASE_SEPOLIA:
return 1;
// case ChainId.ARBITRUM_ONE:
// case ChainId.ARBITRUM_GOERLI:
// return 2;
case ChainId.ARBITRUM_ONE:
case ChainId.ARBITRUM_SEPOLIA:
// case ChainId.ARBITRUM_GOERLI:
return 2;
case ChainId.OPTIMISM:
case ChainId.OPTIMISM_SEPOLIA:
return 3;
Expand Down
4 changes: 3 additions & 1 deletion src/lib/constants/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ export const RPC_PROVIDERS: {
[ChainId.SEPOLIA]: new AppJsonRpcProvider(ChainId.SEPOLIA),
[ChainId.OPTIMISM]: new AppJsonRpcProvider(ChainId.OPTIMISM),
[ChainId.POLYGON]: new AppJsonRpcProvider(ChainId.POLYGON),
[ChainId.ARBITRUM_ONE]: new AppJsonRpcProvider(ChainId.ARBITRUM_ONE),
[ChainId_POLYGON_AMOY]: new AppJsonRpcProvider(ChainId_POLYGON_AMOY),
[ChainId.BASE]: new AppJsonRpcProvider(ChainId.BASE),
[ChainId_BASE_SEPOLIA]: new AppJsonRpcProvider(ChainId_BASE_SEPOLIA),
[ChainId.OPTIMISM_SEPOLIA]: new AppJsonRpcProvider(ChainId.OPTIMISM_SEPOLIA)
[ChainId.OPTIMISM_SEPOLIA]: new AppJsonRpcProvider(ChainId.OPTIMISM_SEPOLIA),
[ChainId.ARBITRUM_SEPOLIA]: new AppJsonRpcProvider(ChainId.ARBITRUM_SEPOLIA)
};
4 changes: 4 additions & 0 deletions src/lib/constants/routing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ export const COMMON_BASES: ChainCurrencyList = {
WRAPPED_NATIVE_CURRENCY[ChainId.ARBITRUM_GOERLI] as Token,
USDC_ARBITRUM_GOERLI
],
[ChainId.ARBITRUM_SEPOLIA]: [
nativeOnChain(ChainId.ARBITRUM_SEPOLIA),
WRAPPED_NATIVE_CURRENCY[ChainId.ARBITRUM_SEPOLIA] as Token
],
[ChainId.OPTIMISM]: [
nativeOnChain(ChainId.OPTIMISM),
OP,
Expand Down
7 changes: 7 additions & 0 deletions src/lib/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,13 @@ export const WRAPPED_NATIVE_CURRENCY: { [chainId: number]: Token | undefined } =
"WETH",
"Wrapped Ether"
),
[ChainId.ARBITRUM_SEPOLIA]: new Token(
ChainId.ARBITRUM_SEPOLIA,
"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",
18,
"WETH",
"Wrapped Ether"
),
[ChainId.SEPOLIA]: new Token(
ChainId.SEPOLIA,
"0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
Expand Down
Loading