@privy-io/js-sdk-core 0.46.1 → 0.46.3
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/cjs/client/EmbeddedWalletApi.js +1 -1
- package/dist/cjs/client/Privy.js +1 -1
- package/dist/cjs/client/PrivyInternal.js +1 -1
- package/dist/cjs/client/funding/FundingApi.js +1 -1
- package/dist/cjs/client/funding/MoonpayOnRampApi.js +1 -1
- package/dist/cjs/embedded/EmbeddedWalletProvider.js +1 -1
- package/dist/cjs/embedded/gas/arbitrum.js +1 -1
- package/dist/cjs/embedded/gas/op-stack.js +1 -1
- package/dist/cjs/embedded/gas/polygon.js +1 -1
- package/dist/cjs/embedded/index.js +1 -1
- package/dist/cjs/embedded/polygonGasStation.js +1 -1
- package/dist/cjs/embedded/utils/gas.js +1 -1
- package/dist/cjs/embedded/utils/index.js +1 -1
- package/dist/cjs/funding/coinbase.js +1 -1
- package/dist/cjs/funding/moonpay.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/utils/getIsTokenUsdc.js +1 -1
- package/dist/cjs/wallet-api/create.js +1 -0
- package/dist/cjs/wallet-api/rpc.js +1 -0
- package/dist/dts/index.d.mts +43 -119
- package/dist/dts/index.d.ts +43 -119
- package/dist/esm/client/EmbeddedWalletApi.mjs +1 -1
- package/dist/esm/client/Privy.mjs +1 -1
- package/dist/esm/client/PrivyInternal.mjs +1 -1
- package/dist/esm/client/funding/FundingApi.mjs +1 -1
- package/dist/esm/client/funding/MoonpayOnRampApi.mjs +1 -1
- package/dist/esm/embedded/EmbeddedWalletProvider.mjs +1 -1
- package/dist/esm/embedded/gas/arbitrum.mjs +1 -1
- package/dist/esm/embedded/gas/op-stack.mjs +1 -1
- package/dist/esm/embedded/gas/polygon.mjs +1 -1
- package/dist/esm/embedded/index.mjs +1 -1
- package/dist/esm/embedded/polygonGasStation.mjs +1 -1
- package/dist/esm/embedded/utils/gas.mjs +1 -1
- package/dist/esm/embedded/utils/index.mjs +1 -1
- package/dist/esm/funding/coinbase.mjs +1 -1
- package/dist/esm/funding/moonpay.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/utils/getIsTokenUsdc.mjs +1 -1
- package/dist/esm/wallet-api/create.mjs +1 -0
- package/dist/esm/wallet-api/rpc.mjs +1 -0
- package/package.json +5 -3
- package/dist/cjs/chains/arbitrum.js +0 -1
- package/dist/cjs/chains/arbitrumGoerli.js +0 -1
- package/dist/cjs/chains/arbitrumSepolia.js +0 -1
- package/dist/cjs/chains/avalanche.js +0 -1
- package/dist/cjs/chains/avalancheFuji.js +0 -1
- package/dist/cjs/chains/base.js +0 -1
- package/dist/cjs/chains/baseGoerli.js +0 -1
- package/dist/cjs/chains/baseSepolia.js +0 -1
- package/dist/cjs/chains/berachainArtio.js +0 -1
- package/dist/cjs/chains/celo.js +0 -1
- package/dist/cjs/chains/celoAlfajores.js +0 -1
- package/dist/cjs/chains/filecoin.js +0 -1
- package/dist/cjs/chains/filecoinCalibration.js +0 -1
- package/dist/cjs/chains/garnetHolesky.js +0 -1
- package/dist/cjs/chains/goerli.js +0 -1
- package/dist/cjs/chains/holesky.js +0 -1
- package/dist/cjs/chains/index.js +0 -1
- package/dist/cjs/chains/linea.js +0 -1
- package/dist/cjs/chains/lineaTestnet.js +0 -1
- package/dist/cjs/chains/mainnet.js +0 -1
- package/dist/cjs/chains/optimism.js +0 -1
- package/dist/cjs/chains/optimismGoerli.js +0 -1
- package/dist/cjs/chains/optimismSepolia.js +0 -1
- package/dist/cjs/chains/polygon.js +0 -1
- package/dist/cjs/chains/polygonAmoy.js +0 -1
- package/dist/cjs/chains/polygonMumbai.js +0 -1
- package/dist/cjs/chains/redstone.js +0 -1
- package/dist/cjs/chains/redstoneHolesky.js +0 -1
- package/dist/cjs/chains/sepolia.js +0 -1
- package/dist/cjs/chains/types.js +0 -1
- package/dist/cjs/chains/zora.js +0 -1
- package/dist/cjs/chains/zoraSepolia.js +0 -1
- package/dist/cjs/chains/zoraTestnet.js +0 -1
- package/dist/esm/chains/arbitrum.mjs +0 -1
- package/dist/esm/chains/arbitrumGoerli.mjs +0 -1
- package/dist/esm/chains/arbitrumSepolia.mjs +0 -1
- package/dist/esm/chains/avalanche.mjs +0 -1
- package/dist/esm/chains/avalancheFuji.mjs +0 -1
- package/dist/esm/chains/base.mjs +0 -1
- package/dist/esm/chains/baseGoerli.mjs +0 -1
- package/dist/esm/chains/baseSepolia.mjs +0 -1
- package/dist/esm/chains/berachainArtio.mjs +0 -1
- package/dist/esm/chains/celo.mjs +0 -1
- package/dist/esm/chains/celoAlfajores.mjs +0 -1
- package/dist/esm/chains/filecoin.mjs +0 -1
- package/dist/esm/chains/filecoinCalibration.mjs +0 -1
- package/dist/esm/chains/garnetHolesky.mjs +0 -1
- package/dist/esm/chains/goerli.mjs +0 -1
- package/dist/esm/chains/holesky.mjs +0 -1
- package/dist/esm/chains/index.mjs +0 -1
- package/dist/esm/chains/linea.mjs +0 -1
- package/dist/esm/chains/lineaTestnet.mjs +0 -1
- package/dist/esm/chains/mainnet.mjs +0 -1
- package/dist/esm/chains/optimism.mjs +0 -1
- package/dist/esm/chains/optimismGoerli.mjs +0 -1
- package/dist/esm/chains/optimismSepolia.mjs +0 -1
- package/dist/esm/chains/polygon.mjs +0 -1
- package/dist/esm/chains/polygonAmoy.mjs +0 -1
- package/dist/esm/chains/polygonMumbai.mjs +0 -1
- package/dist/esm/chains/redstone.mjs +0 -1
- package/dist/esm/chains/redstoneHolesky.mjs +0 -1
- package/dist/esm/chains/sepolia.mjs +0 -1
- package/dist/esm/chains/types.mjs +0 -1
- package/dist/esm/chains/zora.mjs +0 -1
- package/dist/esm/chains/zoraSepolia.mjs +0 -1
- package/dist/esm/chains/zoraTestnet.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseUnits as e}from"@ethersproject/units";import t from"fetch-retry";import{polygon as
|
|
1
|
+
import{parseUnits as e}from"@ethersproject/units";import t from"fetch-retry";import{polygon as r,polygonAmoy as a}from"@privy-io/chains";let o=t(fetch,{retries:3,retryDelay:500});const i=e=>[r.id,a.id].includes(e);let s=t=>({maxPriorityFee:e(t.maxPriorityFee.toFixed(9),"gwei").toHexString(),maxFee:e(t.maxFee.toFixed(9),"gwei").toHexString()}),n=e=>({safeLow:s(e.safeLow),standard:s(e.standard),fast:s(e.fast)});const c=async e=>{let t="";switch(e){case r.id:t="https://gasstation.polygon.technology/v2";break;case a.id:t="https://gasstation.polygon.technology/amoy";break;default:throw Error(`chainId ${e} does not support polygon gas stations`)}let i=await o(t),s=await i.json();if(i.status>399)throw s;return n(s)};async function d(e){if(!i(e.chainId))throw Error("Invalid chain ID for Polygon gas estimation.");if(void 0===e.type&&(e.type=2),e.maxPriorityFeePerGas&&e.maxFeePerGas)return e;try{let{standard:t}=await c(e.chainId);e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=t.maxPriorityFee),e.maxFeePerGas||(e.maxFeePerGas=t.maxFee),e.gasPrice&&(console.warn("`gasPrice` is not supported on this chain and will be ignored. Use `maxPriorityFeePerGas` and/or `maxFeePerGas` instead."),delete e.gasPrice)}catch(e){throw Error(`Failed to set gas prices from Polygon gas station with error: ${e}.`)}return e}export{d as defaultGasForPolygon,c as getPolygonGasStationFees,i as isPolygon};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{EmbeddedWalletProvider}from"./EmbeddedWalletProvider.mjs";export{EmbeddedSolanaWalletProvider}from"./EmbeddedSolanaWalletProvider.mjs";export{EmbeddedWalletProxy}from"./EmbeddedWalletProxy.mjs";import"eventemitter3";import"../Error.mjs";import"./errors.mjs";import"./types.mjs";import"./methods.mjs";import"./utils/index.mjs";import"@ethersproject/abstract-signer";import"@ethersproject/providers";import"./gas/arbitrum.mjs";import"@ethersproject/bignumber";import"
|
|
1
|
+
export{EmbeddedWalletProvider}from"./EmbeddedWalletProvider.mjs";export{EmbeddedSolanaWalletProvider}from"./EmbeddedSolanaWalletProvider.mjs";export{EmbeddedWalletProxy}from"./EmbeddedWalletProxy.mjs";import"eventemitter3";import"../Error.mjs";import"./errors.mjs";import"./types.mjs";import"./methods.mjs";import"./utils/index.mjs";import"@ethersproject/abstract-signer";import"@ethersproject/providers";import"./gas/arbitrum.mjs";import"@ethersproject/bignumber";import"@privy-io/chains";import"./utils/ethers.mjs";import"./gas/bsc.mjs";import"./gas/op-stack.mjs";import"@ethersproject/contracts";import"@ethersproject/transactions";import"./gas/polygon.mjs";import"@ethersproject/units";import"fetch-retry";import"./utils/gas.mjs";import"../solana/getWalletPublicKeyFromTransaction.mjs";import"../solana/isVersionedTransaction.mjs";import"../utils/sleep.mjs";import"./EventCallbackQueue.mjs";import"./withMfa.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parseUnits as
|
|
1
|
+
import{parseUnits as t}from"@ethersproject/units";import{polygon as o,polygonAmoy as e}from"@privy-io/chains";const a=[o.id,e.id];let i=o=>({maxPriorityFee:t(o.maxPriorityFee.toFixed(9),"gwei").toHexString(),maxFee:t(o.maxFee.toFixed(9),"gwei").toHexString()}),s=t=>({safeLow:i(t.safeLow),standard:i(t.standard),fast:i(t.fast)});const r=async t=>{let a="";switch(t){case o.id:a="https://gasstation.polygon.technology/v2";break;case e.id:a="https://gasstation.polygon.technology/amoy";break;default:throw Error(`chainId ${t} does not support polygon gas stations`)}let i=await fetch(a);return s(await i.json())};export{a as POLYGON_GAS_STATION_CHAIN_IDS,r as getPolygonGasStationFees};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{BigNumber as e}from"@ethersproject/bignumber";import{PrivyProviderRpcError as t}from"../errors.mjs";import{isOpStack as
|
|
1
|
+
import{BigNumber as e}from"@ethersproject/bignumber";import{PrivyProviderRpcError as t}from"../errors.mjs";import{isOpStack as r,estimateOpStackL1Gas as a}from"../gas/op-stack.mjs";import{QuantityToBigNumber as i}from"./ethers.mjs";import"../types.mjs";import"@ethersproject/contracts";import"@ethersproject/transactions";import"@privy-io/chains";const s=async(e,t)=>{if(void 0===e.type&&(e.type=2),2===e.type){if(!e.maxFeePerGas||!e.maxPriorityFeePerGas){let r=await t.getFeeData();e.maxFeePerGas||(e.maxFeePerGas=r.maxFeePerGas?.toHexString()),e.maxPriorityFeePerGas||(e.maxPriorityFeePerGas=r.maxPriorityFeePerGas?.toHexString())}}else if(!e.gasPrice){let r=await t.getFeeData();e.gasPrice=r.gasPrice?.toHexString()}return e};async function o(s,o){if(!s.gasLimit)throw new t("gasLimit was not successfully set for transaction.");let n=i(s.gasLimit),m=e.from(0);if(2==s.type){if(!s.maxFeePerGas)throw new t("maxFeePerGas was not successfully set for transaction of type 2.");m=i(s.maxFeePerGas)}else{if(!s.gasPrice)throw new t("gasPrice was not successfully set for transaction of type 0 or 1.");m=i(s.gasPrice)}let c=n.mul(m),f=e.from(0);if(s.chainId&&r(s.chainId))try{f=await a(s,o),c=c.add(f)}catch(e){}return{totalGasEstimate:c,l1ExecutionFeeEstimate:f}}async function n(e,t){try{return(await t.estimateGas(e)).toHexString()}catch(r){let a;if("message"in r&&r.message.includes("insufficient funds")&&(console.warn(`Gas estimation failed with error: ${r}. Retrying gas estimation by omitting the 'value'`),a=await async function({txRequest:e,provider:t}){try{let r={...e,value:void 0};return(await t.estimateGas(r)).toHexString()}catch(e){return console.warn(`Gas estimation failed with error: ${e} when omitting the 'value'`),null}}({txRequest:e,provider:t})),a||(console.warn(`Gas estimation failed with error: ${r}. Retrying gas estimation by omitting the 'from'`),a=await async function({txRequest:e,provider:t}){try{let r={...e,from:void 0};return(await t.estimateGas(r)).toHexString()}catch(e){return console.warn(`Gas estimation failed with error: ${e} when omitting the 'from' address`),null}}({txRequest:e,provider:t})),!a)throw r;return a}}export{o as calculateTotalGasEstimate,s as defaultGasForEvmChain,n as defaultGasLimit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{VoidSigner as r}from"@ethersproject/abstract-signer";import{StaticJsonRpcProvider as
|
|
1
|
+
import{VoidSigner as r}from"@ethersproject/abstract-signer";import{StaticJsonRpcProvider as e}from"@ethersproject/providers";import{PrivyConnectorError as t}from"../errors.mjs";import{isArbitrum as i,defaultGasForArbitrum as p}from"../gas/arbitrum.mjs";import{isBsc as s,defaultGasForBsc as o}from"../gas/bsc.mjs";import{isOpStack as a,defaultGasForOpStack as c}from"../gas/op-stack.mjs";import{isPolygon as n,defaultGasForPolygon as l}from"../gas/polygon.mjs";import{defaultGasLimit as m,defaultGasForEvmChain as d}from"./gas.mjs";import"../types.mjs";import"@ethersproject/bignumber";import"@privy-io/chains";import"./ethers.mjs";import"@ethersproject/contracts";import"@ethersproject/transactions";import"@ethersproject/units";import"fetch-retry";const u=(r,i,p,s)=>{let o=Number(r),a=i.find((r=>r.id===o));if(!a)throw new t(`Unsupported chainId ${r}`,4901);return new e(a.rpcUrls.privyWalletOverride&&a.rpcUrls.privyWalletOverride.http[0]?a.rpcUrls.privyWalletOverride.http[0]:p.rpcUrls&&p.rpcUrls[o]?p.rpcUrls[o]:a.rpcUrls.privy?.http[0]?{url:a.rpcUrls.privy.http[0],headers:{"privy-app-id":s.appId}}:a.rpcUrls.public?.http[0]?a.rpcUrls.public?.http[0]:a.rpcUrls.default?.http[0])},h=(r,e,i)=>{let p,s=r.id,o=Number(r.id);if(r.rpcUrls.privyWalletOverride&&r.rpcUrls.privyWalletOverride.http[0])p=r.rpcUrls.privyWalletOverride.http[0];else if(e.rpcUrls&&e.rpcUrls[o])p=e.rpcUrls[o];else if(r.rpcUrls.privy?.http[0]){let e=new URL(r.rpcUrls.privy.http[0]);e.searchParams.append("privyAppId",i),p=e.toString()}else p=r.rpcUrls.public?.http[0]?r.rpcUrls.public.http[0]:r.rpcUrls.default?.http[0];if(!p)throw new t(`No RPC url found for ${s}`);return p};function y(r){return/^-?0x[a-f0-9]+$/i.test(r)}function f(r){for(let e of["gasLimit","gasPrice","value","maxPriorityFeePerGas","maxFeePerGas"]){let t=r[e];if(void 0!==t&&!function(r){let e="number"==typeof r,t="bigint"==typeof r,i="string"==typeof r&&y(r);return e||t||i}(t))throw Error(`Transaction request property '${e}' must be a valid number, bigint, or hex string representing a quantity`)}if("number"!=typeof r.chainId)throw Error("Transaction request property 'chainId' must be a number")}async function g(e,t,u){if(t.chainId=Number(t.chainId),f(t),t.from||(t.from=e),!t.nonce){let i=new r(e,u);t.nonce=await i.getTransactionCount("pending")}return t.gasLimit||(t.gas?(t.gasLimit=t.gas,delete t.gas):t.gasLimit=await m(t,u)),"string"==typeof t.type&&y(t.type)&&(t.type=Number(t.type)),[23294,23295].includes(t.chainId)&&(t.type=0),0===(t=n(t.chainId)?await l(t):i(t.chainId)?await p(t,u):a(t.chainId)?await c(t,u):s(t.chainId)?await o(t,u):await d(t,u)).type&&delete t.accessList,2!==t.type&&(delete t.maxPriorityFeePerGas,delete t.maxFeePerGas),t}function v({currentRecoveryMethod:r,upgradeToRecoveryMethod:e}){switch(r){case"privy":case"user-passcode":case"recovery-encryption-key":return!0;case"icloud":case"google-drive":if(r===e)throw Error("Cannot upgrade to the existing cloud platform");return!0;default:throw Error("Unknown recovery method")}}export{h as getJsonRpcEndpointFromChain,u as getJsonRpcProvider,g as populateTransactionRequest,v as throwIfInvalidRecoveryUpgradePath,f as validateTransactionRequest};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mainnet as e,base as a,optimism as s,polygon as t,arbitrum as r}from"@privy-io/chains";let n=new Set([e.id,a.id,s.id,t.id,r.id]),c=new Set([e.id,a.id,t.id,s.id]),i={buy:"CARD",send:"CRYPTO_ACCOUNT"},d={USDC:"2b92315d-eab7-5bef-84fa-089a131333f5",ETH:"d85dce9b-5b73-5c3c-8978-522ce1d1c1b4",BTC:"5b71fc48-3dd3-540c-809b-f8c94d0e68b5",SOL:"4f039497-3af8-5bb3-951c-6df9afa9be1c",POL:"026bcc1e-9163-591c-a709-34dd18b2e7a1"},o={[e.id]:"ethereum",[a.id]:"base",[s.id]:"optimism",[t.id]:"polygon",[r.id]:"arbitrum"};function u({input:e,amount:a,blockchain:s,asset:t,experience:r}){let n=new URL("https://pay.coinbase.com/buy/select-asset");return n.searchParams.set("appId",e.app_id),n.searchParams.set("sessionToken",e.session_token),n.searchParams.set("defaultExperience",r),n.searchParams.set("presetCryptoAmount",a.startsWith(".")?`0${a}`:a),n.searchParams.set("defaultNetwork",s),n.searchParams.set("defaultPaymentMethod",i[r]),n.searchParams.set("defaultAsset",d[t]),n.searchParams.set("partnerUserId",e.partner_user_id),{url:n}}const b=(e,a)=>{switch(a){case"native-currency":return n.has(e);case"USDC":return c.has(e);default:return console.warn("Unknown asset passed to Coinbase Onramp"),!1}};function p(e){return o[e]}function m(e,a){return"USDC"===a?"USDC":e===t.id?"POL":"ETH"}export{u as getCoinbaseOnRampUrl,b as isSupportedChainIdForCoinbaseOnramp,m as toCoinbaseAssetId,p as toCoinbaseBlockchainFromChainId};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mainnet as e,arbitrum as r,base as n,polygon as t,avalanche as i,celo as a,optimism as c}from"@privy-io/chains";const o={prod:{url:"https://api.moonpay.com/v1",key:"pk_live_hirbpu0cVcLHrjktC9l7fbc9ctjv0SL"},sandbox:{url:"https://api.moonpay.com/v1",key:"pk_test_fqWjXZMSFwloh7orvJsRfjiUHXJqFzI"}};let d=new Set([e.id,r.id,n.id,t.id,i.id,a.id]),s=new Set([e.id,r.id,c.id,n.id,t.id]);function u(e,r){switch(r){case"native-currency":return d.has(e);case"USDC":return s.has(e);default:return console.warn("Unknown asset passed to MoonPay Onramp"),!1}}function p(c,o){switch(c){case r.id:return"native-currency"===o?"ETH_ARBITRUM":"USDC_ARBITRUM";case i.id:return"AVAX_CCHAIN";case n.id:return"native-currency"===o?"ETH_BASE":"USDC_BASE";case a.id:return"CELO_CELO";case t.id:return"native-currency"===o?"MATIC_POLYGON":"USDC_POLYGON";case e.id:return"native-currency"===o?"ETH_ETHEREUM":"USDC_ETHEREUM";default:return console.warn(`Chain ${c} not supported by Moonpay, defaulting to Ethereum mainnet`),"ETH_ETHEREUM"}}function E(e){switch(e){case"card":case"payment-request":return"credit_debit_card";default:throw Error(`Unsupported Moonpay funding method ${e}`)}}export{o as MoonpayEnvironments,p as chainToMoonpayCurrency,E as fundingMethodToMoonpayPaymentMethod,u as isSupportedChainIdForMoonpay};
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"./client/Privy.mjs";export{BICONOMY,COINBASE_SMART_WALLET,KERNEL,LIGHT_ACCOUNT,SAFE,THIRDWEB}from"@privy-io/public-api";export{LocalStorage}from"./storage/LocalStorage.mjs";export{InMemoryCache}from"./storage/InMemoryStorage.mjs";export{MoonpayApiError,PrivyApiError,PrivyClientError,createErrorFormatter,errorIndicatesMfaCanceled}from"./Error.mjs";export{EmbeddedProviderError,PrivyConnectorError,PrivyEmbeddedWalletErrorCode,PrivyProviderRpcError,ProviderErrors,errorIndicatesMaxMfaRetries,errorIndicatesMfaRateLimit,errorIndicatesMfaTimeout,errorIndicatesMfaVerificationFailed,errorIndicatesRecoveryIsNeeded}from"./embedded/errors.mjs";export{getUserEmbeddedEthereumWallet,getUserEmbeddedWallet}from"./utils/getUserEmbeddedEthereumWallet.mjs";export{getAllUserEmbeddedEthereumWallets}from"./utils/getAllUserEmbeddedEthereumWallets.mjs";export{getAllUserEmbeddedSolanaWallets}from"./utils/getAllUserEmbeddedSolanaWallets.mjs";export{getAllUserEmbeddedBitcoinWallets}from"./utils/getAllUserEmbeddedBitcoinWallets.mjs";export{getEntropyDetailsFromUser}from"./utils/getEntropyDetailsFromUser.mjs";export{getEntropyDetailsFromAccount}from"./utils/getEntropyDetailsFromAccount.mjs";export{getUserSmartWallet}from"./utils/getUserSmartWallet.mjs";export{getJsonRpcEndpointFromChain,populateTransactionRequest,throwIfInvalidRecoveryUpgradePath}from"./embedded/utils/index.mjs";export{countryCodesAndNumbers,formatPhoneNumber,getPhoneCountryCodeAndNumber,getPlaceholderPhoneNumber,lastFourDigits,phoneNumberTypingFormatter,validatePhoneNumber}from"./utils/phoneNumberUtils.mjs";export{getUserEmbeddedSolanaWallet}from"./utils/getUserEmbeddedSolanaWallet.mjs";export{toObjectKeys}from"./utils/toObjectKeys.mjs";export{calculateTotalGasEstimate}from"./embedded/utils/gas.mjs";export{QuantityToBigNumber,convertBigNumberish,toEthersUnsignedTransaction}from"./embedded/utils/ethers.mjs";export{UsdcAddressMap,getIsTokenUsdc}from"./utils/getIsTokenUsdc.mjs";export{chainToMoonpayCurrency,fundingMethodToMoonpayPaymentMethod,isSupportedChainIdForMoonpay}from"./funding/moonpay.mjs";export{getCoinbaseOnRampUrl,isSupportedChainIdForCoinbaseOnramp,toCoinbaseAssetId,toCoinbaseBlockchainFromChainId}from"./funding/coinbase.mjs";export{SolanaClient}from"./solana/client.mjs";export{createSiwsMessage}from"./solana/createSiwsMessage.mjs";export{getSolanaRpcEndpointForCluster}from"./solana/getSolanaRpcEndpointForCluster.mjs";export{getSolanaUsdcMintAddressForCluster}from"./solana/getSolanaUsdcMintAddressForCluster.mjs";export{getSolanaClusterDisplayName}from"./solana/getSolanaClusterDisplayName.mjs";export{ALL_WALLET_CLIENT_TYPES,SUPPORTED_CONNECTOR_TYPES}from"./types.mjs";export
|
|
1
|
+
import e from"./client/Privy.mjs";export{BICONOMY,COINBASE_SMART_WALLET,KERNEL,LIGHT_ACCOUNT,SAFE,THIRDWEB}from"@privy-io/public-api";export{LocalStorage}from"./storage/LocalStorage.mjs";export{InMemoryCache}from"./storage/InMemoryStorage.mjs";export{MoonpayApiError,PrivyApiError,PrivyClientError,createErrorFormatter,errorIndicatesMfaCanceled}from"./Error.mjs";export{EmbeddedProviderError,PrivyConnectorError,PrivyEmbeddedWalletErrorCode,PrivyProviderRpcError,ProviderErrors,errorIndicatesMaxMfaRetries,errorIndicatesMfaRateLimit,errorIndicatesMfaTimeout,errorIndicatesMfaVerificationFailed,errorIndicatesRecoveryIsNeeded}from"./embedded/errors.mjs";export{getUserEmbeddedEthereumWallet,getUserEmbeddedWallet}from"./utils/getUserEmbeddedEthereumWallet.mjs";export{getAllUserEmbeddedEthereumWallets}from"./utils/getAllUserEmbeddedEthereumWallets.mjs";export{getAllUserEmbeddedSolanaWallets}from"./utils/getAllUserEmbeddedSolanaWallets.mjs";export{getAllUserEmbeddedBitcoinWallets}from"./utils/getAllUserEmbeddedBitcoinWallets.mjs";export{getEntropyDetailsFromUser}from"./utils/getEntropyDetailsFromUser.mjs";export{getEntropyDetailsFromAccount}from"./utils/getEntropyDetailsFromAccount.mjs";export{getUserSmartWallet}from"./utils/getUserSmartWallet.mjs";export{getJsonRpcEndpointFromChain,populateTransactionRequest,throwIfInvalidRecoveryUpgradePath}from"./embedded/utils/index.mjs";export{countryCodesAndNumbers,formatPhoneNumber,getPhoneCountryCodeAndNumber,getPlaceholderPhoneNumber,lastFourDigits,phoneNumberTypingFormatter,validatePhoneNumber}from"./utils/phoneNumberUtils.mjs";export{getUserEmbeddedSolanaWallet}from"./utils/getUserEmbeddedSolanaWallet.mjs";export{toObjectKeys}from"./utils/toObjectKeys.mjs";export{calculateTotalGasEstimate}from"./embedded/utils/gas.mjs";export{QuantityToBigNumber,convertBigNumberish,toEthersUnsignedTransaction}from"./embedded/utils/ethers.mjs";export{UsdcAddressMap,getIsTokenUsdc}from"./utils/getIsTokenUsdc.mjs";export{chainToMoonpayCurrency,fundingMethodToMoonpayPaymentMethod,isSupportedChainIdForMoonpay}from"./funding/moonpay.mjs";export{getCoinbaseOnRampUrl,isSupportedChainIdForCoinbaseOnramp,toCoinbaseAssetId,toCoinbaseBlockchainFromChainId}from"./funding/coinbase.mjs";export{SolanaClient}from"./solana/client.mjs";export{createSiwsMessage}from"./solana/createSiwsMessage.mjs";export{getSolanaRpcEndpointForCluster}from"./solana/getSolanaRpcEndpointForCluster.mjs";export{getSolanaUsdcMintAddressForCluster}from"./solana/getSolanaUsdcMintAddressForCluster.mjs";export{getSolanaClusterDisplayName}from"./solana/getSolanaClusterDisplayName.mjs";export{ALL_WALLET_CLIENT_TYPES,SUPPORTED_CONNECTOR_TYPES}from"./types.mjs";export*from"@privy-io/chains";export{formatLamportsAmount,formatTokenAmount,formatWalletAddress,formatWeiAmount}from"./utils/formatters.mjs";export{create}from"./wallet-api/create.mjs";export{rpc}from"./wallet-api/rpc.mjs";export{getCountryCallingCode}from"libphonenumber-js/min";export{i as delegatedActions}from"./index-g0cxoRWQ.mjs";export{i as crossApp}from"./index-Bu3ySxLM.mjs";import"./client/AppApi.mjs";import"./client/CrossAppApi.mjs";import"./Token.mjs";import"jose";import"./client/DelegatedWalletsApi.mjs";import"./client/EmbeddedWalletApi.mjs";import"./embedded/EmbeddedBitcoinWalletProvider.mjs";import"./embedded/EmbeddedWalletProxy.mjs";import"./utils/sleep.mjs";import"./embedded/EventCallbackQueue.mjs";import"./embedded/withMfa.mjs";import"./embedded/EmbeddedWalletProvider.mjs";import"eventemitter3";import"./embedded/methods.mjs";import"./embedded/EmbeddedSolanaWalletProvider.mjs";import"./solana/getWalletPublicKeyFromTransaction.mjs";import"./solana/isVersionedTransaction.mjs";import"./client/MfaPromises.mjs";import"./client/PrivyInternal.mjs";import"fetch-retry";import"uuid";import"@privy-io/api-base";import"./Session.mjs";import"js-cookie";import"./utils/allSettled.mjs";import"./toAbortSignalTimeout.mjs";import"./utils/toSearchParams.mjs";import"./client/UserApi.mjs";import"./client/auth/AuthApi.mjs";import"./client/auth/CustomProviderApi.mjs";import"./client/auth/maybeCreateWalletOnLogin.mjs";import"./utils/shouldCreateEmbeddedEthWallet.mjs";import"./utils/shouldCreateEmbeddedSolWallet.mjs";import"./client/auth/EmailApi.mjs";import"./client/auth/FarcasterApi.mjs";import"./client/auth/FarcasterV2Api.mjs";import"./client/auth/GuestApi.mjs";import"./client/auth/OAuthApi.mjs";import"./pkce.mjs";import"./client/auth/PasskeyApi.mjs";import"./client/auth/PhoneApi.mjs";import"./client/auth/SiweApi.mjs";import"./client/auth/SiwsApi.mjs";import"./client/auth/SmartWalletApi.mjs";import"./client/funding/FundingApi.mjs";import"./client/funding/CoinbaseOnRampApi.mjs";import"./client/funding/MoonpayOnRampApi.mjs";import"./client/mfa/MfaApi.mjs";import"./client/mfa/MfaPasskeyApi.mjs";import"./client/mfa/MfaSmsApi.mjs";import"./client/recovery/RecoveryApi.mjs";import"./client/recovery/RecoveryICloudApi.mjs";import"./client/recovery/RecoveryOAuthApi.mjs";import"./embedded/types.mjs";import"@ethersproject/abstract-signer";import"@ethersproject/providers";import"./embedded/gas/arbitrum.mjs";import"@ethersproject/bignumber";import"./embedded/gas/bsc.mjs";import"./embedded/gas/op-stack.mjs";import"@ethersproject/contracts";import"@ethersproject/transactions";import"./embedded/gas/polygon.mjs";import"@ethersproject/units";import"libphonenumber-js/examples.mobile.json";import"viem";import"canonicalize";import"./action/delegatedActions/delegateWallet.mjs";import"./action/delegatedActions/utils.mjs";import"./action/delegatedActions/revokeWallets.mjs";import"./action/crossApp/loginWithCrossAppAuth.mjs";import"./action/crossApp/linkWithCrossAppAuth.mjs";import"./index-DTAjYY8z.mjs";import"./action/crossApp/wallet/signMessage.mjs";import"./action/crossApp/wallet/utils/isCrossAppWalletSmart.mjs";import"./action/crossApp/wallet/utils/sendCrossAppRequest.mjs";import"./action/crossApp/wallet/utils/getCrossAppAccountByWalletAddress.mjs";import"./action/crossApp/wallet/utils/getProviderAccessTokenOrRelink.mjs";import"./action/crossApp/wallet/utils/throwIfNotLoggedIn.mjs";import"./action/crossApp/wallet/signTypedData.mjs";import"./utils/typedData/generateDomainType.mjs";import"./action/crossApp/wallet/sendTransaction.mjs";export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{mainnet as d,sepolia as c,optimism as e,optimismSepolia as f,polygon as b,polygonAmoy as i,base as a,baseSepolia as x,avalanche as C,avalancheFuji as D,arbitrum as E,arbitrumSepolia as F}from"@privy-io/chains";const o={[d.id]:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",[c.id]:"0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",[e.id]:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",[f.id]:"0x5fd84259d66Cd46123540766Be93DFE6D43130D7",[b.id]:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",[i.id]:"0x41e94eb019c0762f9bfcf9fb1e58725bfb0e7582",[a.id]:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",[x.id]:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",[C.id]:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",[D.id]:"0x5425890298aed601595a70ab815c96711a31bc65",[E.id]:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",[F.id]:"0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d"};function r(d,c){return d===o[c.id]}export{o as UsdcAddressMap,r as getIsTokenUsdc};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function t(t,{request:a}){return await t.fetchPrivyRoute(e,{body:a})}let e={method:"POST",path:"/v1/wallets"};export{t as create};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import a from"canonicalize";async function e(e,i,{wallet_id:r,...o}){let l={version:1,url:e.getCompiledPath(t,{params:{wallet_id:r}}),method:"POST",headers:{"privy-app-id":e.app.appId},body:{...o}},p=Buffer.from(a(l)).toString("base64"),{signature:d}=await i({message:p});return await e.fetchPrivyRoute(t,{body:o,params:{wallet_id:r},headers:{"privy-authorization-signature":d}})}let t={method:"POST",path:"/v1/wallets/:wallet_id/rpc"};export{e as rpc};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privy-io/js-sdk-core",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.3",
|
|
4
4
|
"description": "Vanilla JS client for the Privy Auth API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -67,8 +67,10 @@
|
|
|
67
67
|
"@ethersproject/providers": "^5.7.2",
|
|
68
68
|
"@ethersproject/transactions": "^5.7.0",
|
|
69
69
|
"@ethersproject/units": "^5.7.0",
|
|
70
|
-
"@privy-io/api-base": "
|
|
71
|
-
"@privy-io/public-api": "2.20.
|
|
70
|
+
"@privy-io/api-base": "1.4.5",
|
|
71
|
+
"@privy-io/public-api": "2.20.3",
|
|
72
|
+
"canonicalize": "^2.0.0",
|
|
73
|
+
"@privy-io/chains": "0.0.1",
|
|
72
74
|
"eventemitter3": "^5.0.1",
|
|
73
75
|
"fetch-retry": "^6.0.0",
|
|
74
76
|
"jose": "^4.15.5",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.arbitrum={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.arbitrumGoerli={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"AGOR",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.arbitrumSepolia={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.avalanche={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.avalancheFuji={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0};
|
package/dist/cjs/chains/base.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.base={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},blast:{http:["https://base-mainnet.blastapi.io"],webSocket:["wss://base-mainnet.blastapi.io"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.baseGoerli={id:84531,network:"base-goerli",name:"Base Goerli Testnet",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.baseSepolia={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.berachainArtio={id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0};
|
package/dist/cjs/chains/celo.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.celo={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.celoAlfajores={id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.filecoin={id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.filecoinCalibration={id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.garnetHolesky={id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.goerli={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.holesky={id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}};
|
package/dist/cjs/chains/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./arbitrum.js"),i=require("./arbitrumGoerli.js"),r=require("./arbitrumSepolia.js"),o=require("./avalanche.js"),a=require("./avalancheFuji.js"),s=require("./base.js"),l=require("./baseGoerli.js"),n=require("./baseSepolia.js"),t=require("./berachainArtio.js"),u=require("./celo.js"),p=require("./celoAlfajores.js"),m=require("./filecoin.js"),j=require("./filecoinCalibration.js"),b=require("./garnetHolesky.js"),c=require("./goerli.js"),q=require("./holesky.js"),S=require("./linea.js"),y=require("./lineaTestnet.js"),g=require("./mainnet.js"),h=require("./optimism.js"),f=require("./optimismGoerli.js"),d=require("./optimismSepolia.js"),k=require("./polygon.js"),z=require("./polygonMumbai.js"),G=require("./redstone.js"),T=require("./redstoneHolesky.js"),A=require("./sepolia.js"),H=require("./zora.js"),v=require("./zoraSepolia.js"),C=require("./zoraTestnet.js");const D={mainnet:g.mainnet,goerli:c.goerli,sepolia:A.sepolia,arbitrum:e.arbitrum,arbitrumGoerli:i.arbitrumGoerli,arbitrumSepolia:r.arbitrumSepolia,optimism:h.optimism,optimismGoerli:f.optimismGoerli,optimismSepolia:d.optimismSepolia,polygon:k.polygon,polygonMumbai:z.polygonMumbai,celo:u.celo,celoAlfajores:p.celoAlfajores,filecoin:m.filecoin,filecoinCalibration:j.filecoinCalibration,base:s.base,baseGoerli:l.baseGoerli,baseSepolia:n.baseSepolia,linea:S.linea,lineaTestnet:y.lineaTestnet,avalanche:o.avalanche,avalancheFuji:a.avalancheFuji,holesky:q.holesky,redstone:G.redstone,garnetHolesky:b.garnetHolesky,redstoneHolesky:T.redstoneHolesky,zora:H.zora,zoraSepolia:v.zoraSepolia,zoraTestnet:C.zoraTestnet},F=[g.mainnet,c.goerli,A.sepolia,e.arbitrum,i.arbitrumGoerli,r.arbitrumSepolia,h.optimism,f.optimismGoerli,d.optimismSepolia,k.polygon,z.polygonMumbai,u.celo,p.celoAlfajores,m.filecoin,j.filecoinCalibration,s.base,l.baseGoerli,n.baseSepolia,t.berachainArtio,S.linea,y.lineaTestnet,o.avalanche,a.avalancheFuji,q.holesky,G.redstone,b.garnetHolesky,T.redstoneHolesky,H.zora,v.zoraSepolia,C.zoraTestnet],_=new Set(F.map((e=>e.id)));exports.DEFAULT_SUPPORTED_CHAINS=F,exports.DEFAULT_SUPPORTED_CHAIN_IDS=_,exports.chainDefs=D,exports.getSupportedChainById=function(e){return F.find((i=>i.id===e))};
|
package/dist/cjs/chains/linea.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.linea={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.lineaTestnet={id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.mainnet={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.optimism={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.optimismGoerli={id:420,name:"Optimism Goerli Testnet",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.optimismSepolia={id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.polygon={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.polygonAmoy={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.polygonMumbai={id:80001,name:"Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.redstone={id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.redstoneHolesky={id:17001,name:"Redstone Holesky",network:"redstone-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.holesky.redstone.xyz"]},public:{http:["https://rpc.holesky.redstone.xyz"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://explorer.holesky.redstone.xyz"},default:{name:"EtherScan",url:"https://explorer.holesky.redstone.xyz"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.sepolia={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0};
|
package/dist/cjs/chains/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
package/dist/cjs/chains/zora.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.zora={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.zoraSepolia={id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";exports.zoraTestnet={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-mainnet.rpc.privy.systems"]},alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}}};export{t as arbitrum};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r={id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"AGOR",decimals:18},rpcUrls:{default:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://goerli.arbiscan.io/"}},testnet:!0};export{r as arbitrumGoerli};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r={id:421614,name:"Arbitrum Sepolia",network:"arbitrum-sepolia",nativeCurrency:{name:"Arbitrum Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://arbitrum-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia-rollup.arbitrum.io/rpc"]},public:{http:["https://sepolia-rollup.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-explorer.arbitrum.io"}},testnet:!0};export{r as arbitrumSepolia};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a={id:43114,name:"Avalanche",network:"avalanche",nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]},public:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://snowtrace.io"},default:{name:"SnowTrace",url:"https://snowtrace.io"}}};export{a as avalanche};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:43113,name:"Avalanche Fuji",network:"avalanche-fuji",nativeCurrency:{decimals:18,name:"Avalanche Fuji",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax-test.network/ext/bc/C/rpc"]},public:{http:["https://api.avax-test.network/ext/bc/C/rpc"]}},blockExplorers:{etherscan:{name:"SnowTrace",url:"https://testnet.snowtrace.io"},default:{name:"SnowTrace",url:"https://testnet.snowtrace.io"}},testnet:!0};export{t as avalancheFuji};
|
package/dist/esm/chains/base.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:8453,network:"base",name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-mainnet.rpc.privy.systems"]},blast:{http:["https://base-mainnet.blastapi.io"],webSocket:["wss://base-mainnet.blastapi.io"]},default:{http:["https://mainnet.base.org"]},public:{http:["https://mainnet.base.org"]}},blockExplorers:{etherscan:{name:"Basescan",url:"https://basescan.org"},default:{name:"Basescan",url:"https://basescan.org"}}};export{t as base};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:84531,network:"base-goerli",name:"Base Goerli Testnet",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://goerli.basescan.org"}},testnet:!0};export{e as baseGoerli};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://base-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.base.org"]},public:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://base-sepolia.blockscout.com"}},testnet:!0};export{e as baseSepolia};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:80085,network:"berachain-artio",name:"Berachain Artio",nativeCurrency:{name:"BERA",symbol:"BERA",decimals:18},rpcUrls:{default:{http:["https://berachain-artio.rpc.privy.systems"]},public:{http:["https://berachain-artio.rpc.privy.systems"]}},blockExplorers:{default:{name:"Beratrail",url:"https://artio.beratrail.io"}},testnet:!0};export{t as berachainArtio};
|
package/dist/esm/chains/celo.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:42220,name:"Celo Mainnet",network:"celo",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://forno.celo.org"]},infura:{http:["https://celo-mainnet.infura.io/v3"]},public:{http:["https://forno.celo.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/mainnet"},etherscan:{name:"CeloScan",url:"https://celoscan.io"}},testnet:!1};export{e as celo};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:44787,name:"Celo Alfajores Testnet",network:"celo-alfajores",nativeCurrency:{decimals:18,name:"CELO",symbol:"CELO"},rpcUrls:{default:{http:["https://alfajores-forno.celo-testnet.org"]},infura:{http:["https://celo-alfajores.infura.io/v3"]},public:{http:["https://alfajores-forno.celo-testnet.org"]}},blockExplorers:{default:{name:"Celo Explorer",url:"https://explorer.celo.org/alfajores"},etherscan:{name:"CeloScan",url:"https://alfajores.celoscan.io/"}},testnet:!0};export{e as celoAlfajores};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i={id:314,name:"Filecoin - Mainnet",network:"filecoin-mainnet",nativeCurrency:{decimals:18,name:"filecoin",symbol:"FIL"},rpcUrls:{default:{http:["https://api.node.glif.io/rpc/v1"]},public:{http:["https://api.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filfox",url:"https://filfox.info/en"},filscan:{name:"Filscan",url:"https://filscan.io"},filscout:{name:"Filscout",url:"https://filscout.io/en"},glif:{name:"Glif",url:"https://explorer.glif.io"}}};export{i as filecoin};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const i={id:314159,name:"Filecoin - Calibration testnet",network:"filecoin-calibration",nativeCurrency:{decimals:18,name:"testnet filecoin",symbol:"tFIL"},rpcUrls:{default:{http:["https://api.calibration.node.glif.io/rpc/v1"]},public:{http:["https://api.calibration.node.glif.io/rpc/v1"]}},blockExplorers:{default:{name:"Filscan",url:"https://calibration.filscan.io"}}};export{i as filecoinCalibration};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:17069,name:"Garnet Holesky",network:"garnet-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"]},public:{http:["https://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}}};export{t as garnetHolesky};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:5,network:"goerli",name:"Goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/eth_goerli"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.etherscan.io"}},testnet:!0};export{e as goerli};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:17e3,name:"Holesky",network:"holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky.publicnode.com"]},public:{http:["https://ethereum-holesky.publicnode.com"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://holesky.etherscan.io"},default:{name:"EtherScan",url:"https://holesky.etherscan.io"}}};export{e as holesky};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{arbitrum as o}from"./arbitrum.mjs";import{arbitrumGoerli as m}from"./arbitrumGoerli.mjs";import{arbitrumSepolia as r}from"./arbitrumSepolia.mjs";import{avalanche as i}from"./avalanche.mjs";import{avalancheFuji as e}from"./avalancheFuji.mjs";import{base as t}from"./base.mjs";import{baseGoerli as s}from"./baseGoerli.mjs";import{baseSepolia as a}from"./baseSepolia.mjs";import{berachainArtio as p}from"./berachainArtio.mjs";import{celo as l}from"./celo.mjs";import{celoAlfajores as n}from"./celoAlfajores.mjs";import{filecoin as f}from"./filecoin.mjs";import{filecoinCalibration as j}from"./filecoinCalibration.mjs";import{garnetHolesky as b}from"./garnetHolesky.mjs";import{goerli as c}from"./goerli.mjs";import{holesky as u}from"./holesky.mjs";import{linea as y}from"./linea.mjs";import{lineaTestnet as S}from"./lineaTestnet.mjs";import{mainnet as g}from"./mainnet.mjs";import{optimism as d}from"./optimism.mjs";import{optimismGoerli as h}from"./optimismGoerli.mjs";import{optimismSepolia as k}from"./optimismSepolia.mjs";import{polygon as z}from"./polygon.mjs";import{polygonMumbai as G}from"./polygonMumbai.mjs";import{redstone as v}from"./redstone.mjs";import{redstoneHolesky as H}from"./redstoneHolesky.mjs";import{sepolia as T}from"./sepolia.mjs";import{zora as A}from"./zora.mjs";import{zoraSepolia as C}from"./zoraSepolia.mjs";import{zoraTestnet as F}from"./zoraTestnet.mjs";const M={mainnet:g,goerli:c,sepolia:T,arbitrum:o,arbitrumGoerli:m,arbitrumSepolia:r,optimism:d,optimismGoerli:h,optimismSepolia:k,polygon:z,polygonMumbai:G,celo:l,celoAlfajores:n,filecoin:f,filecoinCalibration:j,base:t,baseGoerli:s,baseSepolia:a,linea:y,lineaTestnet:S,avalanche:i,avalancheFuji:e,holesky:u,redstone:v,garnetHolesky:b,redstoneHolesky:H,zora:A,zoraSepolia:C,zoraTestnet:F},w=[g,c,T,o,m,r,d,h,k,z,G,l,n,f,j,t,s,a,p,y,S,i,e,u,v,b,H,A,C,F],x=new Set(w.map((o=>o.id)));function q(o){return w.find((m=>m.id===o))}export{w as DEFAULT_SUPPORTED_CHAINS,x as DEFAULT_SUPPORTED_CHAIN_IDS,M as chainDefs,q as getSupportedChainById};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:59144,network:"linea-mainnet",name:"Linea Mainnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]},public:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build"},etherscan:{name:"Etherscan",url:"https://lineascan.build"}},testnet:!1};export{e as linea};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:59140,network:"linea-testnet",name:"Linea Goerli Testnet",nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{infura:{http:["https://linea-goerli.infura.io/v3"],webSocket:["wss://linea-goerli.infura.io/ws/v3"]},default:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]},public:{http:["https://rpc.goerli.linea.build"],webSocket:["wss://rpc.goerli.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli.lineascan.build"},etherscan:{name:"Etherscan",url:"https://goerli.lineascan.build"}},testnet:!0};export{e as lineaTestnet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://mainnet.rpc.privy.systems"]},alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}}};export{t as mainnet};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-mainnet.rpc.privy.systems"]},alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}}};export{t as optimism};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:420,name:"Optimism Goerli Testnet",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://goerli.optimism.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},testnet:!0};export{e as optimismGoerli};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:11155420,name:"Optimism Sepolia",network:"optimism-sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{privy:{http:["https://optimism-sepolia.rpc.privy.systems"]},default:{http:["https://sepolia.optimism.io"]},public:{http:["https://sepolia.optimism.io"]},infura:{http:["https://optimism-sepolia.infura.io/v3"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}},testnet:!0};export{t as optimismSepolia};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o={id:137,name:"Polygon Mainnet",network:"polygon",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-mainnet.rpc.privy.systems"]},alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}}};export{o as polygon};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const o={id:80002,name:"Polygon Amoy",network:"polygon-amoy",nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{privy:{http:["https://polygon-amoy.rpc.privy.systems"]},infura:{http:["https://polygon-amoy.infura.io/v3"],webSocket:["wss://polygon-amoy.infura.io/ws/v3"]},default:{http:["https://rpc-amoy.polygon.technology"]}},blockExplorers:{default:{name:"OK LINK",url:"https://www.oklink.com/amoy"}},testnet:!0};export{o as polygonAmoy};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const t={id:80001,name:"Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{default:{http:["https://matic-mumbai.chainstacklabs.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},testnet:!0};export{t as polygonMumbai};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:690,name:"Redstone",network:"redstone",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.redstonechain.com"]},public:{http:["https://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz/"}}};export{e as redstone};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:17001,name:"Redstone Holesky",network:"redstone-holesky",nativeCurrency:{name:"ETH",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.holesky.redstone.xyz"]},public:{http:["https://rpc.holesky.redstone.xyz"]}},blockExplorers:{etherscan:{name:"EtherScan",url:"https://explorer.holesky.redstone.xyz"},default:{name:"EtherScan",url:"https://explorer.holesky.redstone.xyz"}}};export{e as redstoneHolesky};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{privy:{http:["https://sepolia.rpc.privy.systems"]},alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},testnet:!0};export{e as sepolia};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/dist/esm/chains/zora.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r={id:7777777,name:"Zora",network:"zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]},public:{http:["https://rpc.zora.energy"],webSocket:["wss://rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://explorer.zora.energy"}}};export{r as zora};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:999999999,name:"Zora Sepolia",network:"zora-sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},rpcUrls:{default:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]},public:{http:["https://sepolia.rpc.zora.energy"],webSocket:["wss://sepolia.rpc.zora.energy"]}},blockExplorers:{default:{name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}},testnet:!0};export{e as zoraSepolia};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e={id:999,name:"Zora Goerli Testnet",network:"zora-testnet",nativeCurrency:{decimals:18,name:"Zora Goerli",symbol:"ETH"},rpcUrls:{default:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]},public:{http:["https://testnet.rpc.zora.energy"],webSocket:["wss://testnet.rpc.zora.energy"]}},blockExplorers:{default:{name:"Explorer",url:"https://testnet.explorer.zora.energy"}},testnet:!0};export{e as zoraTestnet};
|