@gfxlabs/oku-chains 1.12.21 → 1.12.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -5706,6 +5706,92 @@
5706
5706
  },
5707
5707
  });
5708
5708
 
5709
+ const sepolia = makeConfig({
5710
+ ...chains.sepolia,
5711
+ blockTimeSeconds: 12,
5712
+ launchTime: 1655683200,
5713
+ transactionType: "eip1559",
5714
+ sortIndex: 47,
5715
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/ethereum-logo.webp",
5716
+ deprecated: true,
5717
+ liteChain: true,
5718
+ estimatedSwapGas: 300000,
5719
+ estimatedBridgeGas: 200000,
5720
+ estimatedWrapGas: 60000,
5721
+ safeReorgDistance: 90000,
5722
+ blockAid: "",
5723
+ externalId: {},
5724
+ markets: {},
5725
+ bridges: {},
5726
+ oracles: {},
5727
+ morpho: {},
5728
+ initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
5729
+ uniswap: {
5730
+ deployBlock: 0,
5731
+ poolFactory: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
5732
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
5733
+ multicall2: "0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",
5734
+ tickLens: "0xd7f33bcdb21b359c8ee6f0251d30e94832baad07",
5735
+ quoter: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
5736
+ swapRouter02: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
5737
+ NFTDescriptor: "0x3B5E3c5E595D85fbFBC2a42ECC091e183E76697C",
5738
+ nonfungibleTokenPositionDescriptor: "0x5bE4DAa6982C69aD20A57F1e68cBcA3D37de6207",
5739
+ nonfungiblePositionManager: "0x1238536071E1c677A632429e3655c799b22cDA52",
5740
+ v3Migrator: "0x729004182cF005CEC8Bd85df140094b6aCbe8b15",
5741
+ positionsNFT: "0x1238536071E1c677A632429e3655c799b22cDA52",
5742
+ positionsNFTDeployBlock: 0,
5743
+ universalRouter: "0xB0C89059d7190EDb17eFF19829cc009cEe923916",
5744
+ wrappedNativeAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5745
+ wrappedNativeSymbol: "WETH",
5746
+ wrappedNativeName: "Wrapped Ether",
5747
+ wrappedNativeDecimals: 18,
5748
+ nativeCurrencyName: "ETH",
5749
+ },
5750
+ uniswapv4: {
5751
+ deployBlock: 0,
5752
+ poolManager: "0xE03A1074c86CFeDd5C142C4F04F1a1536e203543",
5753
+ positionManager: "0x429ba70129df741B2Ca2a85BC3A2a3328e5c09b4",
5754
+ universalRouter: "0xB0C89059d7190EDb17eFF19829cc009cEe923916",
5755
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
5756
+ defaultPool: viem.zeroHash,
5757
+ stateView: "0xE1Dd9c3fA50EDB962E442f60DfBc432e24537E4C",
5758
+ },
5759
+ token: {
5760
+ usdcAddress: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17",
5761
+ wethAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5762
+ },
5763
+ oku: {
5764
+ pricing: {
5765
+ nativeWrappedToken: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5766
+ nativeWrappedName: "ETH",
5767
+ },
5768
+ },
5769
+ defaultPool: viem.zeroAddress,
5770
+ defaultToken0: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17",
5771
+ defaultToken1: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5772
+ tokenList: [
5773
+ { symbol: "USDC", address: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17" },
5774
+ { symbol: "WETH", address: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14" },
5775
+ ],
5776
+ stables: ["0x699CFe8997D647d03325Ef4BFd039d5bb0984A17"],
5777
+ watchlist: [],
5778
+ v4Watchlist: [],
5779
+ internalName: "sepolia",
5780
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/eth.png",
5781
+ contracts: {
5782
+ ...chains.sepolia.contracts,
5783
+ nftManager: {
5784
+ address: "0x1238536071E1c677A632429e3655c799b22cDA52",
5785
+ },
5786
+ weth9: {
5787
+ address: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5788
+ },
5789
+ multicall2: {
5790
+ address: "0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",
5791
+ },
5792
+ },
5793
+ });
5794
+
5709
5795
  const sonic = makeConfig({
5710
5796
  ...chains.sonic,
5711
5797
  blockTimeSeconds: 3,
@@ -6959,7 +7045,10 @@
6959
7045
  (function (ChainType) {
6960
7046
  /** EVM chains (CAIP-2 namespace `eip155`). */
6961
7047
  ChainType["EVM"] = "eip155";
6962
- /** Bitcoin (CAIP-2 namespace `bip122`). */
7048
+ /**
7049
+ * Bitcoin and Bitcoin-derived chains, e.g. Zcash (CAIP-2 namespace
7050
+ * `bip122`).
7051
+ */
6963
7052
  ChainType["Bitcoin"] = "bip122";
6964
7053
  /** Solana (CAIP-2 namespace `solana`). */
6965
7054
  ChainType["Solana"] = "solana";
@@ -7059,7 +7148,7 @@
7059
7148
  * Refs:
7060
7149
  * - https://github.com/ChainAgnostic/namespaces/blob/main/bip122/caip2.md
7061
7150
  */
7062
- const chain = viem.defineChain({
7151
+ const chain$2 = viem.defineChain({
7063
7152
  id: NON_EVM_CHAIN_ID,
7064
7153
  name: "Bitcoin",
7065
7154
  nativeCurrency: {
@@ -7081,7 +7170,7 @@
7081
7170
  },
7082
7171
  });
7083
7172
  const bitcoin = makeConfig({
7084
- ...chain,
7173
+ ...chain$2,
7085
7174
  caip2Namespace: "bip122",
7086
7175
  caip2Reference: "000000000019d6689c085ae165831e93",
7087
7176
  internalName: "bitcoin",
@@ -7126,6 +7215,173 @@
7126
7215
  },
7127
7216
  });
7128
7217
 
7218
+ /**
7219
+ * Solana mainnet-beta.
7220
+ *
7221
+ * A non-EVM chain expressed within the EVM-shaped {@link IChainInfo} so it
7222
+ * flows through the existing resolvers and consumers unchanged. Because viem's
7223
+ * `Chain` requires a numeric `id`, Solana uses the {@link NON_EVM_CHAIN_ID}
7224
+ * (`0`) placeholder and is identified/resolved via CAIP-2 instead:
7225
+ * `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`, where the reference is the first
7226
+ * 32 base58 chars of the genesis hash per the CAIP-2 `solana` namespace.
7227
+ *
7228
+ * EVM-only fields (uniswap, morpho, contracts, etc.) are present but empty.
7229
+ *
7230
+ * Refs:
7231
+ * - https://github.com/ChainAgnostic/namespaces/blob/main/solana/caip2.md
7232
+ */
7233
+ const chain$1 = viem.defineChain({
7234
+ id: NON_EVM_CHAIN_ID,
7235
+ name: "Solana",
7236
+ nativeCurrency: {
7237
+ name: "Solana",
7238
+ symbol: "SOL",
7239
+ decimals: 9,
7240
+ },
7241
+ rpcUrls: {
7242
+ default: {
7243
+ http: ["https://api.mainnet-beta.solana.com"],
7244
+ },
7245
+ },
7246
+ blockExplorers: {
7247
+ default: {
7248
+ name: "Solscan",
7249
+ url: "https://solscan.io",
7250
+ apiUrl: "https://public-api.solscan.io",
7251
+ },
7252
+ },
7253
+ });
7254
+ const solana = makeConfig({
7255
+ ...chain$1,
7256
+ caip2Namespace: "solana",
7257
+ caip2Reference: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
7258
+ internalName: "solana",
7259
+ transactionType: "solana",
7260
+ sortIndex: 1001,
7261
+ launchTime: 1584368940,
7262
+ blockTimeSeconds: 0.4,
7263
+ deprecated: false,
7264
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/solana-logo.webp",
7265
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/sol.png",
7266
+ blockAid: "solana",
7267
+ estimatedSwapGas: 0,
7268
+ estimatedBridgeGas: 0,
7269
+ estimatedWrapGas: 0,
7270
+ initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
7271
+ defaultPool: "0x0000000000000000000000000000000000000000",
7272
+ defaultToken0: "0x0000000000000000000000000000000000000000",
7273
+ defaultToken1: "0x0000000000000000000000000000000000000000",
7274
+ tokenList: [],
7275
+ stables: [],
7276
+ watchlist: [],
7277
+ v4Watchlist: [],
7278
+ externalId: {
7279
+ coingecko: "solana",
7280
+ },
7281
+ markets: {},
7282
+ bridges: {},
7283
+ oracles: {
7284
+ coingecko: {
7285
+ slug: "solana",
7286
+ native: "solana",
7287
+ },
7288
+ },
7289
+ uniswap: {},
7290
+ morpho: {},
7291
+ token: {},
7292
+ oku: {},
7293
+ contracts: {
7294
+ nftManager: {
7295
+ address: "0x0000000000000000000000000000000000000000",
7296
+ },
7297
+ },
7298
+ });
7299
+
7300
+ /**
7301
+ * Zcash mainnet.
7302
+ *
7303
+ * A non-EVM chain expressed within the EVM-shaped {@link IChainInfo} so it
7304
+ * flows through the existing resolvers and consumers unchanged. Because viem's
7305
+ * `Chain` requires a numeric `id`, Zcash uses the {@link NON_EVM_CHAIN_ID}
7306
+ * (`0`) placeholder and is identified/resolved via CAIP-2 instead:
7307
+ * `bip122:00040fe8ec8471911baa1db1266ea15d`, where the reference is the first
7308
+ * 32 hex chars of the genesis block hash per the CAIP-2 `bip122` namespace.
7309
+ * Zcash is a Bitcoin-derived chain and therefore shares the `bip122`
7310
+ * namespace, so `chainType(zcash)` is `ChainType.Bitcoin`; use `internalName`
7311
+ * (or the CAIP-2 identifier) to distinguish it from Bitcoin itself.
7312
+ *
7313
+ * EVM-only fields (uniswap, morpho, contracts, etc.) are present but empty.
7314
+ *
7315
+ * Refs:
7316
+ * - https://github.com/ChainAgnostic/namespaces/blob/main/bip122/caip2.md
7317
+ */
7318
+ const chain = viem.defineChain({
7319
+ id: NON_EVM_CHAIN_ID,
7320
+ name: "Zcash",
7321
+ nativeCurrency: {
7322
+ name: "Zcash",
7323
+ symbol: "ZEC",
7324
+ decimals: 8,
7325
+ },
7326
+ rpcUrls: {
7327
+ default: {
7328
+ http: ["https://zec.rocks:443"],
7329
+ },
7330
+ },
7331
+ blockExplorers: {
7332
+ default: {
7333
+ name: "Blockchair",
7334
+ url: "https://blockchair.com/zcash",
7335
+ apiUrl: "https://api.blockchair.com/zcash",
7336
+ },
7337
+ },
7338
+ });
7339
+ const zcash = makeConfig({
7340
+ ...chain,
7341
+ caip2Namespace: "bip122",
7342
+ caip2Reference: "00040fe8ec8471911baa1db1266ea15d",
7343
+ internalName: "zcash",
7344
+ transactionType: "zcash",
7345
+ sortIndex: 1002,
7346
+ launchTime: 1477641360,
7347
+ blockTimeSeconds: 75,
7348
+ deprecated: false,
7349
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/zcash-logo.webp",
7350
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/zec.png",
7351
+ blockAid: "",
7352
+ estimatedSwapGas: 0,
7353
+ estimatedBridgeGas: 0,
7354
+ estimatedWrapGas: 0,
7355
+ initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
7356
+ defaultPool: "0x0000000000000000000000000000000000000000",
7357
+ defaultToken0: "0x0000000000000000000000000000000000000000",
7358
+ defaultToken1: "0x0000000000000000000000000000000000000000",
7359
+ tokenList: [],
7360
+ stables: [],
7361
+ watchlist: [],
7362
+ v4Watchlist: [],
7363
+ externalId: {
7364
+ coingecko: "zcash",
7365
+ },
7366
+ markets: {},
7367
+ bridges: {},
7368
+ oracles: {
7369
+ coingecko: {
7370
+ slug: "zcash",
7371
+ native: "zcash",
7372
+ },
7373
+ },
7374
+ uniswap: {},
7375
+ morpho: {},
7376
+ token: {},
7377
+ oku: {},
7378
+ contracts: {
7379
+ nftManager: {
7380
+ address: "0x0000000000000000000000000000000000000000",
7381
+ },
7382
+ },
7383
+ });
7384
+
7129
7385
  /**
7130
7386
  * Parse a CAIP-2 chain ID string into its namespace and reference components.
7131
7387
  *
@@ -7393,6 +7649,7 @@
7393
7649
  gensyn,
7394
7650
  pharos,
7395
7651
  robinhood,
7652
+ sepolia,
7396
7653
  ];
7397
7654
  /**
7398
7655
  * Non-EVM chains (e.g. Bitcoin). These share the {@link IChainInfo} shape as
@@ -7403,6 +7660,8 @@
7403
7660
  */
7404
7661
  const NON_EVM_CHAINS = [
7405
7662
  bitcoin,
7663
+ solana,
7664
+ zcash,
7406
7665
  ];
7407
7666
  /**
7408
7667
  * All networks, EVM and non-EVM. Use this when you need to enumerate every
@@ -7635,6 +7894,8 @@
7635
7894
  exports.saga = saga;
7636
7895
  exports.scroll = scroll;
7637
7896
  exports.sei = sei;
7897
+ exports.sepolia = sepolia;
7898
+ exports.solana = solana;
7638
7899
  exports.sonic = sonic;
7639
7900
  exports.taiko = taiko;
7640
7901
  exports.telos = telos;
@@ -7643,6 +7904,7 @@
7643
7904
  exports.unichain = unichain;
7644
7905
  exports.worldchain = worldchain;
7645
7906
  exports.xdc = xdc;
7907
+ exports.zcash = zcash;
7646
7908
  exports.zerog = zerog;
7647
7909
  exports.zkSync = zkSync;
7648
7910
 
package/dist/index-mjs.js CHANGED
@@ -1,5 +1,5 @@
1
- import { arbitrum as arbitrum$1, avalanche as avalanche$1, base as base$1, blast as blast$1, bob as bob$1, boba as boba$1, bsc as bsc$1, celo as celo$1, corn as corn$1, etherlink as etherlink$1, filecoin as filecoin$1, gensyn as gensyn$1, gnosis as gnosis$1, goat as goat$1, hemi as hemi$1, hyperEvm, lens as lens$1, lightlinkPhoenix, linea as linea$1, lisk as lisk$1, mainnet as mainnet$1, manta as manta$1, mantle as mantle$1, matchain as matchain$1, metalL2, monad as monad$1, moonbeam as moonbeam$1, nibiru as nibiru$1, optimism as optimism$1, plasma as plasma$1, polygon as polygon$1, redbellyMainnet, robinhood as robinhood$1, ronin as ronin$1, rootstock as rootstock$1, saga as saga$1, scroll as scroll$1, sei as sei$1, sonic as sonic$1, taiko as taiko$1, telos as telos$1, tronShasta as tronShasta$1, unichain as unichain$1, worldchain as worldchain$1, xdc as xdc$1, zeroGMainnet, polygonZkEvm as polygonZkEvm$1, zksync } from 'viem/chains';
2
- import { zeroAddress, defineChain } from 'viem';
1
+ import { arbitrum as arbitrum$1, avalanche as avalanche$1, base as base$1, blast as blast$1, bob as bob$1, boba as boba$1, bsc as bsc$1, celo as celo$1, corn as corn$1, etherlink as etherlink$1, filecoin as filecoin$1, gensyn as gensyn$1, gnosis as gnosis$1, goat as goat$1, hemi as hemi$1, hyperEvm, lens as lens$1, lightlinkPhoenix, linea as linea$1, lisk as lisk$1, mainnet as mainnet$1, manta as manta$1, mantle as mantle$1, matchain as matchain$1, metalL2, monad as monad$1, moonbeam as moonbeam$1, nibiru as nibiru$1, optimism as optimism$1, plasma as plasma$1, polygon as polygon$1, redbellyMainnet, robinhood as robinhood$1, ronin as ronin$1, rootstock as rootstock$1, saga as saga$1, scroll as scroll$1, sei as sei$1, sepolia as sepolia$1, sonic as sonic$1, taiko as taiko$1, telos as telos$1, tronShasta as tronShasta$1, unichain as unichain$1, worldchain as worldchain$1, xdc as xdc$1, zeroGMainnet, polygonZkEvm as polygonZkEvm$1, zksync } from 'viem/chains';
2
+ import { zeroAddress, defineChain, zeroHash } from 'viem';
3
3
 
4
4
  const makeConfig = (x) => {
5
5
  return { caip2Namespace: "eip155", ...x };
@@ -5703,6 +5703,92 @@ const sei = makeConfig({
5703
5703
  },
5704
5704
  });
5705
5705
 
5706
+ const sepolia = makeConfig({
5707
+ ...sepolia$1,
5708
+ blockTimeSeconds: 12,
5709
+ launchTime: 1655683200,
5710
+ transactionType: "eip1559",
5711
+ sortIndex: 47,
5712
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/ethereum-logo.webp",
5713
+ deprecated: true,
5714
+ liteChain: true,
5715
+ estimatedSwapGas: 300000,
5716
+ estimatedBridgeGas: 200000,
5717
+ estimatedWrapGas: 60000,
5718
+ safeReorgDistance: 90000,
5719
+ blockAid: "",
5720
+ externalId: {},
5721
+ markets: {},
5722
+ bridges: {},
5723
+ oracles: {},
5724
+ morpho: {},
5725
+ initCodeHash: "0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54",
5726
+ uniswap: {
5727
+ deployBlock: 0,
5728
+ poolFactory: "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
5729
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
5730
+ multicall2: "0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",
5731
+ tickLens: "0xd7f33bcdb21b359c8ee6f0251d30e94832baad07",
5732
+ quoter: "0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",
5733
+ swapRouter02: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
5734
+ NFTDescriptor: "0x3B5E3c5E595D85fbFBC2a42ECC091e183E76697C",
5735
+ nonfungibleTokenPositionDescriptor: "0x5bE4DAa6982C69aD20A57F1e68cBcA3D37de6207",
5736
+ nonfungiblePositionManager: "0x1238536071E1c677A632429e3655c799b22cDA52",
5737
+ v3Migrator: "0x729004182cF005CEC8Bd85df140094b6aCbe8b15",
5738
+ positionsNFT: "0x1238536071E1c677A632429e3655c799b22cDA52",
5739
+ positionsNFTDeployBlock: 0,
5740
+ universalRouter: "0xB0C89059d7190EDb17eFF19829cc009cEe923916",
5741
+ wrappedNativeAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5742
+ wrappedNativeSymbol: "WETH",
5743
+ wrappedNativeName: "Wrapped Ether",
5744
+ wrappedNativeDecimals: 18,
5745
+ nativeCurrencyName: "ETH",
5746
+ },
5747
+ uniswapv4: {
5748
+ deployBlock: 0,
5749
+ poolManager: "0xE03A1074c86CFeDd5C142C4F04F1a1536e203543",
5750
+ positionManager: "0x429ba70129df741B2Ca2a85BC3A2a3328e5c09b4",
5751
+ universalRouter: "0xB0C89059d7190EDb17eFF19829cc009cEe923916",
5752
+ permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3",
5753
+ defaultPool: zeroHash,
5754
+ stateView: "0xE1Dd9c3fA50EDB962E442f60DfBc432e24537E4C",
5755
+ },
5756
+ token: {
5757
+ usdcAddress: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17",
5758
+ wethAddress: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5759
+ },
5760
+ oku: {
5761
+ pricing: {
5762
+ nativeWrappedToken: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5763
+ nativeWrappedName: "ETH",
5764
+ },
5765
+ },
5766
+ defaultPool: zeroAddress,
5767
+ defaultToken0: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17",
5768
+ defaultToken1: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5769
+ tokenList: [
5770
+ { symbol: "USDC", address: "0x699CFe8997D647d03325Ef4BFd039d5bb0984A17" },
5771
+ { symbol: "WETH", address: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14" },
5772
+ ],
5773
+ stables: ["0x699CFe8997D647d03325Ef4BFd039d5bb0984A17"],
5774
+ watchlist: [],
5775
+ v4Watchlist: [],
5776
+ internalName: "sepolia",
5777
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/eth.png",
5778
+ contracts: {
5779
+ ...sepolia$1.contracts,
5780
+ nftManager: {
5781
+ address: "0x1238536071E1c677A632429e3655c799b22cDA52",
5782
+ },
5783
+ weth9: {
5784
+ address: "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
5785
+ },
5786
+ multicall2: {
5787
+ address: "0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",
5788
+ },
5789
+ },
5790
+ });
5791
+
5706
5792
  const sonic = makeConfig({
5707
5793
  ...sonic$1,
5708
5794
  blockTimeSeconds: 3,
@@ -6956,7 +7042,10 @@ var ChainType;
6956
7042
  (function (ChainType) {
6957
7043
  /** EVM chains (CAIP-2 namespace `eip155`). */
6958
7044
  ChainType["EVM"] = "eip155";
6959
- /** Bitcoin (CAIP-2 namespace `bip122`). */
7045
+ /**
7046
+ * Bitcoin and Bitcoin-derived chains, e.g. Zcash (CAIP-2 namespace
7047
+ * `bip122`).
7048
+ */
6960
7049
  ChainType["Bitcoin"] = "bip122";
6961
7050
  /** Solana (CAIP-2 namespace `solana`). */
6962
7051
  ChainType["Solana"] = "solana";
@@ -7056,7 +7145,7 @@ function isNonEvmChain$1(c) {
7056
7145
  * Refs:
7057
7146
  * - https://github.com/ChainAgnostic/namespaces/blob/main/bip122/caip2.md
7058
7147
  */
7059
- const chain = defineChain({
7148
+ const chain$2 = defineChain({
7060
7149
  id: NON_EVM_CHAIN_ID,
7061
7150
  name: "Bitcoin",
7062
7151
  nativeCurrency: {
@@ -7078,7 +7167,7 @@ const chain = defineChain({
7078
7167
  },
7079
7168
  });
7080
7169
  const bitcoin = makeConfig({
7081
- ...chain,
7170
+ ...chain$2,
7082
7171
  caip2Namespace: "bip122",
7083
7172
  caip2Reference: "000000000019d6689c085ae165831e93",
7084
7173
  internalName: "bitcoin",
@@ -7123,6 +7212,173 @@ const bitcoin = makeConfig({
7123
7212
  },
7124
7213
  });
7125
7214
 
7215
+ /**
7216
+ * Solana mainnet-beta.
7217
+ *
7218
+ * A non-EVM chain expressed within the EVM-shaped {@link IChainInfo} so it
7219
+ * flows through the existing resolvers and consumers unchanged. Because viem's
7220
+ * `Chain` requires a numeric `id`, Solana uses the {@link NON_EVM_CHAIN_ID}
7221
+ * (`0`) placeholder and is identified/resolved via CAIP-2 instead:
7222
+ * `solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp`, where the reference is the first
7223
+ * 32 base58 chars of the genesis hash per the CAIP-2 `solana` namespace.
7224
+ *
7225
+ * EVM-only fields (uniswap, morpho, contracts, etc.) are present but empty.
7226
+ *
7227
+ * Refs:
7228
+ * - https://github.com/ChainAgnostic/namespaces/blob/main/solana/caip2.md
7229
+ */
7230
+ const chain$1 = defineChain({
7231
+ id: NON_EVM_CHAIN_ID,
7232
+ name: "Solana",
7233
+ nativeCurrency: {
7234
+ name: "Solana",
7235
+ symbol: "SOL",
7236
+ decimals: 9,
7237
+ },
7238
+ rpcUrls: {
7239
+ default: {
7240
+ http: ["https://api.mainnet-beta.solana.com"],
7241
+ },
7242
+ },
7243
+ blockExplorers: {
7244
+ default: {
7245
+ name: "Solscan",
7246
+ url: "https://solscan.io",
7247
+ apiUrl: "https://public-api.solscan.io",
7248
+ },
7249
+ },
7250
+ });
7251
+ const solana = makeConfig({
7252
+ ...chain$1,
7253
+ caip2Namespace: "solana",
7254
+ caip2Reference: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
7255
+ internalName: "solana",
7256
+ transactionType: "solana",
7257
+ sortIndex: 1001,
7258
+ launchTime: 1584368940,
7259
+ blockTimeSeconds: 0.4,
7260
+ deprecated: false,
7261
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/solana-logo.webp",
7262
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/sol.png",
7263
+ blockAid: "solana",
7264
+ estimatedSwapGas: 0,
7265
+ estimatedBridgeGas: 0,
7266
+ estimatedWrapGas: 0,
7267
+ initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
7268
+ defaultPool: "0x0000000000000000000000000000000000000000",
7269
+ defaultToken0: "0x0000000000000000000000000000000000000000",
7270
+ defaultToken1: "0x0000000000000000000000000000000000000000",
7271
+ tokenList: [],
7272
+ stables: [],
7273
+ watchlist: [],
7274
+ v4Watchlist: [],
7275
+ externalId: {
7276
+ coingecko: "solana",
7277
+ },
7278
+ markets: {},
7279
+ bridges: {},
7280
+ oracles: {
7281
+ coingecko: {
7282
+ slug: "solana",
7283
+ native: "solana",
7284
+ },
7285
+ },
7286
+ uniswap: {},
7287
+ morpho: {},
7288
+ token: {},
7289
+ oku: {},
7290
+ contracts: {
7291
+ nftManager: {
7292
+ address: "0x0000000000000000000000000000000000000000",
7293
+ },
7294
+ },
7295
+ });
7296
+
7297
+ /**
7298
+ * Zcash mainnet.
7299
+ *
7300
+ * A non-EVM chain expressed within the EVM-shaped {@link IChainInfo} so it
7301
+ * flows through the existing resolvers and consumers unchanged. Because viem's
7302
+ * `Chain` requires a numeric `id`, Zcash uses the {@link NON_EVM_CHAIN_ID}
7303
+ * (`0`) placeholder and is identified/resolved via CAIP-2 instead:
7304
+ * `bip122:00040fe8ec8471911baa1db1266ea15d`, where the reference is the first
7305
+ * 32 hex chars of the genesis block hash per the CAIP-2 `bip122` namespace.
7306
+ * Zcash is a Bitcoin-derived chain and therefore shares the `bip122`
7307
+ * namespace, so `chainType(zcash)` is `ChainType.Bitcoin`; use `internalName`
7308
+ * (or the CAIP-2 identifier) to distinguish it from Bitcoin itself.
7309
+ *
7310
+ * EVM-only fields (uniswap, morpho, contracts, etc.) are present but empty.
7311
+ *
7312
+ * Refs:
7313
+ * - https://github.com/ChainAgnostic/namespaces/blob/main/bip122/caip2.md
7314
+ */
7315
+ const chain = defineChain({
7316
+ id: NON_EVM_CHAIN_ID,
7317
+ name: "Zcash",
7318
+ nativeCurrency: {
7319
+ name: "Zcash",
7320
+ symbol: "ZEC",
7321
+ decimals: 8,
7322
+ },
7323
+ rpcUrls: {
7324
+ default: {
7325
+ http: ["https://zec.rocks:443"],
7326
+ },
7327
+ },
7328
+ blockExplorers: {
7329
+ default: {
7330
+ name: "Blockchair",
7331
+ url: "https://blockchair.com/zcash",
7332
+ apiUrl: "https://api.blockchair.com/zcash",
7333
+ },
7334
+ },
7335
+ });
7336
+ const zcash = makeConfig({
7337
+ ...chain,
7338
+ caip2Namespace: "bip122",
7339
+ caip2Reference: "00040fe8ec8471911baa1db1266ea15d",
7340
+ internalName: "zcash",
7341
+ transactionType: "zcash",
7342
+ sortIndex: 1002,
7343
+ launchTime: 1477641360,
7344
+ blockTimeSeconds: 75,
7345
+ deprecated: false,
7346
+ logoUrl: "https://cms.oku.trade/cdn/public/chains/zcash-logo.webp",
7347
+ nativeLogoUrl: "https://cms.oku.trade/cdn/public/natives/zec.png",
7348
+ blockAid: "",
7349
+ estimatedSwapGas: 0,
7350
+ estimatedBridgeGas: 0,
7351
+ estimatedWrapGas: 0,
7352
+ initCodeHash: "0x0000000000000000000000000000000000000000000000000000000000000000",
7353
+ defaultPool: "0x0000000000000000000000000000000000000000",
7354
+ defaultToken0: "0x0000000000000000000000000000000000000000",
7355
+ defaultToken1: "0x0000000000000000000000000000000000000000",
7356
+ tokenList: [],
7357
+ stables: [],
7358
+ watchlist: [],
7359
+ v4Watchlist: [],
7360
+ externalId: {
7361
+ coingecko: "zcash",
7362
+ },
7363
+ markets: {},
7364
+ bridges: {},
7365
+ oracles: {
7366
+ coingecko: {
7367
+ slug: "zcash",
7368
+ native: "zcash",
7369
+ },
7370
+ },
7371
+ uniswap: {},
7372
+ morpho: {},
7373
+ token: {},
7374
+ oku: {},
7375
+ contracts: {
7376
+ nftManager: {
7377
+ address: "0x0000000000000000000000000000000000000000",
7378
+ },
7379
+ },
7380
+ });
7381
+
7126
7382
  /**
7127
7383
  * Parse a CAIP-2 chain ID string into its namespace and reference components.
7128
7384
  *
@@ -7390,6 +7646,7 @@ const MAINNET_CHAINS = [
7390
7646
  gensyn,
7391
7647
  pharos,
7392
7648
  robinhood,
7649
+ sepolia,
7393
7650
  ];
7394
7651
  /**
7395
7652
  * Non-EVM chains (e.g. Bitcoin). These share the {@link IChainInfo} shape as
@@ -7400,6 +7657,8 @@ const MAINNET_CHAINS = [
7400
7657
  */
7401
7658
  const NON_EVM_CHAINS = [
7402
7659
  bitcoin,
7660
+ solana,
7661
+ zcash,
7403
7662
  ];
7404
7663
  /**
7405
7664
  * All networks, EVM and non-EVM. Use this when you need to enumerate every
@@ -7571,4 +7830,4 @@ function isNonEvmChain(c) {
7571
7830
  return isNonEvmChain$1(namespaceOfChainLike(c));
7572
7831
  }
7573
7832
 
7574
- export { ALL_NETWORKS, ChainType, MAINNET_CHAINS, NON_EVM_CHAINS, NON_EVM_CHAIN_ID, NetworkNotFoundError, arbitrum, avalanche, base, bitcoin, blast, bob, boba, bsc, buildNetworkIndex, caip2Reference, celo, chainType, corn, etherlink, filecoin, formatCAIP2, fromCAIP2, gensyn, gnosis, goat, hemi, hyperevm, isEvmChain, isNetworkType, isNonEvmChain, lens, lightlink, linea, lisk, mainnet, makeConfig, manta, mantle, matchain, metal, monad, moonbeam, networkByAny, networkByCAIP2, networkById, networkByName, networkByString, nibiru, optimism, parseCAIP2, pharos, plasma, polygon, polygonZkEvm, redbelly, robinhood, ronin, rootstock, saga, scroll, sei, sonic, taiko, telos, toCAIP2, tronShasta, unichain, worldchain, xdc, zerog, zkSync };
7833
+ export { ALL_NETWORKS, ChainType, MAINNET_CHAINS, NON_EVM_CHAINS, NON_EVM_CHAIN_ID, NetworkNotFoundError, arbitrum, avalanche, base, bitcoin, blast, bob, boba, bsc, buildNetworkIndex, caip2Reference, celo, chainType, corn, etherlink, filecoin, formatCAIP2, fromCAIP2, gensyn, gnosis, goat, hemi, hyperevm, isEvmChain, isNetworkType, isNonEvmChain, lens, lightlink, linea, lisk, mainnet, makeConfig, manta, mantle, matchain, metal, monad, moonbeam, networkByAny, networkByCAIP2, networkById, networkByName, networkByString, nibiru, optimism, parseCAIP2, pharos, plasma, polygon, polygonZkEvm, redbelly, robinhood, ronin, rootstock, saga, scroll, sei, sepolia, solana, sonic, taiko, telos, toCAIP2, tronShasta, unichain, worldchain, xdc, zcash, zerog, zkSync };