@@ -2,21 +2,23 @@ import { useAppKitProvider } from "@reown/appkit/vue";
22import { type Address , createPublicClient , createWalletClient , custom , type Hex , http , publicActions , walletActions } from "viem" ;
33import { createBundlerClient } from "viem/account-abstraction" ;
44import { /* generatePrivateKey, */ privateKeyToAccount } from "viem/accounts" ;
5- import { localhost } from "viem/chains" ;
5+ import { localhost , sepolia } from "viem/chains" ;
66import { createPasskeyClient } from "zksync-sso-4337/client" ;
77
88// TODO: OIDC and guardian recovery are not yet available in sdk-4337
99// import { createZkSyncOidcClient, type ZkSyncSsoClient } from "zksync-sso/client/oidc";
1010// import { createZksyncRecoveryGuardianClient } from "zksync-sso/client/recovery";
1111import localChainData from "./local-node.json" ;
1212
13- export const supportedChains = [ localhost ] ;
13+ export const supportedChains = [ localhost , sepolia ] ;
1414export type SupportedChainId = ( typeof supportedChains ) [ number ] [ "id" ] ;
1515export const blockExplorerUrlByChain : Record < SupportedChainId , string > = {
1616 [ localhost . id ] : "http://localhost:3010" ,
17+ [ sepolia . id ] : "https://sepolia.etherscan.io" ,
1718} ;
1819export const blockExplorerApiByChain : Record < SupportedChainId , string > = {
1920 [ localhost . id ] : "http://localhost:3020" ,
21+ [ sepolia . id ] : "https://api-sepolia.etherscan.io/api" ,
2022} ;
2123
2224type ChainContracts = {
@@ -30,12 +32,23 @@ type ChainContracts = {
3032
3133export const contractsByChain : Record < SupportedChainId , ChainContracts > = {
3234 [ localhost . id ] : localChainData as ChainContracts ,
35+ [ sepolia . id ] : {
36+ eoaValidator : "0x027ce1d8244318e38c3B65E3EABC2537BD712077" ,
37+ webauthnValidator : "0xAbcB5AB6eBb69F4F5F8cf1a493F56Ad3d28562bd" ,
38+ sessionValidator : "0x09fbd5b956AF5c64C7eB4fb473E7E64DAF0f79D7" ,
39+ factory : "0xF33128d7Cd2ab37Af12B3a22D9dA79f928c2B450" ,
40+ bundlerUrl : "https://bundler-api.sso.zksync.dev" ,
41+ beacon : "0xd1Ab9B640995124D3FD311d70BA4F216AD5b1aD5" ,
42+ } ,
3343} ;
3444
3545export const chainParameters : Record < SupportedChainId , { blockTime : number } > = {
3646 [ localhost . id ] : {
3747 blockTime : 1 ,
3848 } ,
49+ [ sepolia . id ] : {
50+ blockTime : 12 ,
51+ } ,
3952} ;
4053
4154export const useClientStore = defineStore ( "client" , ( ) => {
0 commit comments