From bfcf4f77a87ef38bd766bb852ebddc1f72b711d8 Mon Sep 17 00:00:00 2001 From: JP <36560907+0xfourzerofour@users.noreply.github.com> Date: Mon, 15 Jul 2024 12:02:23 -0400 Subject: [PATCH] feat(aa): new chain (#835) * feat(aa): new chain * feat(aa): add camelcase * feat(aa): fix export --- account-kit/infra/src/chains.ts | 36 +++++++++++++++++++++++++++++++++ account-kit/infra/src/index.ts | 2 ++ 2 files changed, 38 insertions(+) diff --git a/account-kit/infra/src/chains.ts b/account-kit/infra/src/chains.ts index 5f7c0bb669..83945fb94c 100644 --- a/account-kit/infra/src/chains.ts +++ b/account-kit/infra/src/chains.ts @@ -236,3 +236,39 @@ export const zoraSepolia: Chain = { ...vzoras.rpcUrls, }, }; + +export const worldChainSepolia: Chain = defineChain({ + id: 4801, + name: "World Chain Sepolia", + network: "World Chain Sepolia", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + default: { + http: ["https://worldchain-sepolia.g.alchemy.com/v2"], + }, + public: { + http: ["https://worldchain-sepolia.g.alchemy.com/v2"], + }, + alchemy: { + http: ["https://worldchain-sepolia.g.alchemy.com/v2"], + }, + }, +}); + +export const worldChain: Chain = defineChain({ + id: 480, + name: "World Chain", + network: "World Chain", + nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 }, + rpcUrls: { + default: { + http: ["https://worldchain-mainnet.g.alchemy.com/v2"], + }, + public: { + http: ["https://worldchain-mainnet.g.alchemy.com/v2"], + }, + alchemy: { + http: ["https://worldchain-mainnet.g.alchemy.com/v2"], + }, + }, +}); diff --git a/account-kit/infra/src/index.ts b/account-kit/infra/src/index.ts index d48eda6390..5ede3c273e 100644 --- a/account-kit/infra/src/index.ts +++ b/account-kit/infra/src/index.ts @@ -23,6 +23,8 @@ export { sepolia, zora, zoraSepolia, + worldChain, + worldChainSepolia, } from "./chains.js"; export type * from "./client/decorators/alchemyEnhancedApis.js"; export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js";