Skip to content

Commit

Permalink
feat: update valid chains (#81)
Browse files Browse the repository at this point in the history
* feat: update valid chains

* chore: format
  • Loading branch information
marcomariscal authored Aug 1, 2024
1 parent 583ecfc commit bc3b403
Showing 1 changed file with 45 additions and 4 deletions.
49 changes: 45 additions & 4 deletions src/lib/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,53 @@ import type {
Transport,
WalletActions
} from 'viem';
import { type Chain, foundry, sepolia } from 'viem/chains';
export type VALID_CHAIN_IDS = typeof sepolia.id | typeof foundry.id;
import {
type Chain,
arbitrum,
arbitrumSepolia,
base,
baseSepolia,
foundry,
gnosis,
holesky,
mainnet,
optimism,
optimismSepolia,
polygon,
scroll,
sepolia
} from 'viem/chains';
export type VALID_CHAIN_IDS =
| typeof arbitrum.id
| typeof arbitrumSepolia.id
| typeof base.id
| typeof baseSepolia.id
| typeof foundry.id
| typeof gnosis.id
| typeof holesky.id
| typeof mainnet.id
| typeof optimism.id
| typeof optimismSepolia.id
| typeof polygon.id
| typeof scroll.id
| typeof sepolia.id;

// Valid chains where the ERC5564 and ERC6538 contracts are deployed
// The contract addresses for each chain can be found here: https://stealthaddress.dev/contracts/deployments
export const VALID_CHAINS: Record<VALID_CHAIN_IDS, Chain> = {
[sepolia.id]: sepolia,
[foundry.id]: foundry
[arbitrum.id]: arbitrum,
[arbitrumSepolia.id]: arbitrumSepolia,
[base.id]: base,
[baseSepolia.id]: baseSepolia,
[foundry.id]: foundry,
[gnosis.id]: gnosis,
[holesky.id]: holesky,
[mainnet.id]: mainnet,
[optimism.id]: optimism,
[optimismSepolia.id]: optimismSepolia,
[polygon.id]: polygon,
[scroll.id]: scroll,
[sepolia.id]: sepolia
};

// A Viem WalletClient with public actions
Expand Down

0 comments on commit bc3b403

Please sign in to comment.