diff --git a/data/networks.ts b/data/networks.ts index 847e08231..c1e3fc6a6 100644 --- a/data/networks.ts +++ b/data/networks.ts @@ -30,8 +30,8 @@ export const l1Networks = { ...sepolia, name: "Sepolia Testnet", rpcUrls: { - public: { http: ["https://sepolia.gateway.tenderly.co"] }, - default: { http: ["https://sepolia.gateway.tenderly.co"] }, + public: { http: ["https://ethereum-sepolia.publicnode.com"] }, + default: { http: ["https://ethereum-sepolia.publicnode.com"] }, }, }, } as const; @@ -144,6 +144,16 @@ export const eraNetworks: EraNetwork[] = [ l1Network: l1Networks.sepolia, hidden: true, }, + { + id: 300, + key: "era-boojnet", + name: "zkSync Era Boojnet", + shortName: "Era Boojnet", + rpcUrl: "https://sepolia.era.zksync.dev", + getTokens: () => getTokensByNetworkId(300), + l1Network: l1Networks.sepolia, + hidden: true, + }, ]; export type ZkSyncLiteNetwork = L2Network & { network: Network }; diff --git a/package-lock.json b/package-lock.json index 7c9ef57cd..9baeab2b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@chenfengyuan/vue-qrcode": "^2.0.0", "@headlessui/vue": "^1.7.7", "@heroicons/vue": "^2.0.14", - "@matterlabs/token-library": "^2.9.0", + "@matterlabs/token-library": "^2.9.1", "@metamask/logo": "^3.1.1", "@pinia/nuxt": "^0.4.7", "@semantic-release/changelog": "^6.0.3", @@ -2683,9 +2683,9 @@ "dev": true }, "node_modules/@matterlabs/token-library": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/@matterlabs/token-library/-/token-library-2.9.0.tgz", - "integrity": "sha512-Xkp0n0NdmG5UqHMRtY6BJSWbfTgv8OjhkWYuaevhwjb8+0uv3GpJC++2webB0jdebDVQBFUiwcC+Er7E49sryQ==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/@matterlabs/token-library/-/token-library-2.9.1.tgz", + "integrity": "sha512-NvHA28baiEYVc4i7916BbGpdhi7Dx4IRgdgpKsTrFaiLUxmg//dqSu0F5SiQQDOAtinZzeQy0xyKm8O+KCZSwA==", "dependencies": { "ohmyfetch": "^0.4.21" } diff --git a/package.json b/package.json index 678961834..2f63e203c 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@chenfengyuan/vue-qrcode": "^2.0.0", "@headlessui/vue": "^1.7.7", "@heroicons/vue": "^2.0.14", - "@matterlabs/token-library": "^2.9.0", + "@matterlabs/token-library": "^2.9.1", "@metamask/logo": "^3.1.1", "@pinia/nuxt": "^0.4.7", "@semantic-release/changelog": "^6.0.3", diff --git a/utils/zksync/era/token-library.ts b/utils/zksync/era/token-library.ts index b3eeb9f75..efcd1401f 100644 --- a/utils/zksync/era/token-library.ts +++ b/utils/zksync/era/token-library.ts @@ -1,9 +1,9 @@ import { getTokenCollection } from "@matterlabs/token-library"; export const getTokensByNetworkId = async (networkId: number) => { - if (![270, 324, 280].includes(networkId)) throw new Error(`Network id ${networkId} is not supported`); + if (![270, 300, 324, 280].includes(networkId)) throw new Error(`Network id ${networkId} is not supported`); - const tokens = await getTokenCollection(networkId as 270 | 324 | 280); + const tokens = await getTokenCollection(networkId as 270 | 300 | 324 | 280); return tokens.map((token) => { const l2Address = token.l2Address === ETH_L1_ADDRESS ? ETH_L2_ADDRESS : checksumAddress(token.l2Address); return {