Skip to content

Commit

Permalink
feat(aa): new chain (#835)
Browse files Browse the repository at this point in the history
* feat(aa): new chain

* feat(aa): add camelcase

* feat(aa): fix export
  • Loading branch information
0xfourzerofour authored and moldy530 committed Jul 30, 2024
1 parent f0f5922 commit bfcf4f7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions account-kit/infra/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
},
},
});
2 changes: 2 additions & 0 deletions account-kit/infra/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit bfcf4f7

Please sign in to comment.