@dcl/governance-site 2.5.0 → 2.5.1
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/assets/{ConstantsUtil-689989f0.js → ConstantsUtil-c3a75781.js} +1 -1
- package/assets/{ExchangeController-88f78111.js → ExchangeController-de6066de.js} +1 -1
- package/assets/{HelpersUtil-40f31189.js → HelpersUtil-47bce835.js} +1 -1
- package/assets/{NetworkUtil-2fb81493.js → NetworkUtil-cfdab321.js} +1 -1
- package/assets/{ReownAuthentication-e5d1d4cc.js → ReownAuthentication-c1098727.js} +1 -1
- package/assets/{SwapController-f47e6f17.js → SwapController-6f3f28da.js} +1 -1
- package/assets/{UserAvatar-0c19fd64.js → UserAvatar-4217a7be.js} +1 -1
- package/assets/{W3MFrameProviderSingleton-33e9645e.js → W3MFrameProviderSingleton-316899f0.js} +2 -2
- package/assets/{basic-509eb412.js → basic-d9c0f288.js} +1 -1
- package/assets/{biconomy-6fa3eb98.js → biconomy-bc04f7cc.js} +1 -1
- package/assets/{ccip-040f274b.js → ccip-d88eddf3.js} +1 -1
- package/assets/{ccip-6d1e4a15.js → ccip-e509a2bd.js} +1 -1
- package/assets/{chains-bae55e5f.js → chains-12910e1f.js} +1 -1
- package/assets/{common-f2e88a7e.js → common-583dfda9.js} +1 -1
- package/assets/{compat-b432550d.js → compat-000e5801.js} +1 -1
- package/assets/{controller-83cf739b.js → controller-5a843a75.js} +1 -1
- package/assets/{core-71a03396.js → core-1a166f08.js} +3 -3
- package/assets/{custom-7ae31f11.js → custom-3c5e7814.js} +1 -1
- package/assets/{data-capture-f1f485c2.js → data-capture-a27f6e5c.js} +1 -1
- package/assets/decimals-50f9fee1.js +1 -0
- package/assets/{decimals-9d5fec14.js → decimals-bddbc743.js} +1 -1
- package/assets/{email-be31d86e.js → email-0c5024d9.js} +1 -1
- package/assets/{embedded-wallet-41341ab4.js → embedded-wallet-d5992bd8.js} +1 -1
- package/assets/{engine-8d2b111b.js → engine-9b39863f.js} +1 -1
- package/assets/{estimate-l1-fee-8acb8860.js → estimate-l1-fee-69110584.js} +1 -1
- package/assets/eth_estimateGas-945ce595.js +1 -0
- package/assets/{eth_getStorageAt-2d8a4700.js → eth_getStorageAt-125a2bc1.js} +1 -1
- package/assets/{eth_getTransactionCount-273004ec.js → eth_getTransactionCount-6240f912.js} +1 -1
- package/assets/{ethereum-667be7dc.js → ethereum-0d579241.js} +1 -1
- package/assets/{execute-6c88dd5f.js → execute-264a98ed.js} +1 -1
- package/assets/{extractIPFS-640303a3.js → extractIPFS-d48a2b7b.js} +1 -1
- package/assets/features-7c8dc530.js +1 -0
- package/assets/{fetchTokenMetadata-1e138f21.js → fetchTokenMetadata-f32fb87e.js} +1 -1
- package/assets/{fortmatic-d34f42c3.js → fortmatic-5f1bb82e.js} +1 -1
- package/assets/{get-bytecode-8cb4e224.js → get-bytecode-7a8c6215.js} +1 -1
- package/assets/{get-ecosystem-wallet-info-ec712acc.js → get-ecosystem-wallet-info-0a9d1fa7.js} +1 -1
- package/assets/{getBalance-0308f38f.js → getBalance-e2e6d859.js} +1 -1
- package/assets/{getInstalledModules-17fa1a09.js → getInstalledModules-4e23fa8a.js} +1 -1
- package/assets/{getNFT-06eb1406.js → getNFT-5486b2f7.js} +1 -1
- package/assets/{getNFT-30795fe1.js → getNFT-74f5ae81.js} +1 -1
- package/assets/{hashBytecode-a29db705.js → hashBytecode-7a0e56f5.js} +1 -1
- package/assets/{hashTypedData-23a00dc9.js → hashTypedData-03b693eb.js} +1 -1
- package/assets/{hashTypedData-ba8e399b.js → hashTypedData-cc1589a7.js} +1 -1
- package/assets/{in-app-9acc158b.js → in-app-1d212717.js} +1 -1
- package/assets/{in-app-wallet-calls-48ca2694.js → in-app-wallet-calls-7fdb5823.js} +1 -1
- package/assets/{index-89cbc69d.js → index-06d7a58c.js} +1 -1
- package/assets/{index-355751ab.js → index-10c73e9d.js} +245 -245
- package/assets/{index-9ecf773e.js → index-19891b89.js} +1 -1
- package/assets/{index-2ebd7a81.js → index-206ffe7d.js} +1 -1
- package/assets/{index-f4401a12.js → index-20b33848.js} +1 -1
- package/assets/{index-6e64d31e.js → index-23dd6251.js} +2 -2
- package/assets/{index-2124b7cd.js → index-2cab452e.js} +1 -1
- package/assets/{index-9c2f8893.js → index-2f82abe0.js} +1 -1
- package/assets/{index-a5c29e80.js → index-30a8f53e.js} +1 -1
- package/assets/{index-4bc8eee8.js → index-31022e63.js} +1 -1
- package/assets/{index-a5876580.js → index-32a45902.js} +1 -1
- package/assets/{index-b7605561.js → index-3b678484.js} +1 -1
- package/assets/{index-3cdab001.js → index-3bc5c9df.js} +1 -1
- package/assets/{index-d7ed4af8.js → index-3d19d06c.js} +1 -1
- package/assets/{index-1368749b.js → index-401eba13.js} +1 -1
- package/assets/{index-f4841b7d.js → index-5071722a.js} +1 -1
- package/assets/{index-e7f3149f.css → index-59db4a58.css} +4 -4
- package/assets/{index-e6ba4bbe.js → index-5d7b6c51.js} +1 -1
- package/assets/{index-78689969.js → index-5ece9033.js} +1 -1
- package/assets/{index-33bd3c33.js → index-610c7efb.js} +1 -1
- package/assets/{index-a91bb597.js → index-69a0492a.js} +1 -1
- package/assets/{index-76dbec48.js → index-6d8da0b7.js} +1 -1
- package/assets/{index-863b5c53.js → index-6ec6d7c7.js} +1 -1
- package/assets/{index-ec8cf158.js → index-780a2232.js} +1 -1
- package/assets/{index-b40ed19e.js → index-7ad05b06.js} +1 -1
- package/assets/{index-e332724b.js → index-7f01a27a.js} +1 -1
- package/assets/{index-69ac8519.js → index-877ffe4a.js} +1 -1
- package/assets/{index-e6d2ed90.js → index-8aeaab91.js} +1 -1
- package/assets/{index-66d53073.js → index-8cbb4ff7.js} +2 -2
- package/assets/{index-e2d1a06e.js → index-8d81098b.js} +1 -1
- package/assets/{index-3ad96675.js → index-8fa35f13.js} +1 -1
- package/assets/{index-5f847edd.js → index-93724bad.js} +2 -2
- package/assets/index-9bee2cc7.js +77 -0
- package/assets/{index-2e071cd2.js → index-9d37fa54.js} +1 -1
- package/assets/{index-57dbcd5d.js → index-a151f6d7.js} +1 -1
- package/assets/{index-54323fc3.js → index-a22875e4.js} +2 -2
- package/assets/{index-d7bf28d3.js → index-a69ba1cc.js} +1 -1
- package/assets/{index-6c8c5091.js → index-a6a44c61.js} +1 -1
- package/assets/{index-b41b719c.js → index-aae2726c.js} +1 -1
- package/assets/{index-8bdd54b7.js → index-ad63abcf.js} +1 -1
- package/assets/{index-375e28ad.js → index-b3691f6b.js} +1 -1
- package/assets/{index-276c1c99.js → index-b3889ac8.js} +1 -1
- package/assets/{index-2537319c.js → index-bb13bbcd.js} +1 -1
- package/assets/{index-05f3c18a.js → index-bcedc0e6.js} +1 -1
- package/assets/{index-9e3730d4.js → index-c49dee70.js} +1 -1
- package/assets/{index-c7839713.js → index-cafc0996.js} +1 -1
- package/assets/{index-1c9749d2.js → index-d22cfc35.js} +1 -1
- package/assets/{index-9c119afb.js → index-d2f37bee.js} +1 -1
- package/assets/{index-ffdeacb2.js → index-d44b19e2.js} +1 -1
- package/assets/{index-8b5a06dd.js → index-d77a63d3.js} +1 -1
- package/assets/{index-ab687c6f.js → index-e332040b.js} +1 -1
- package/assets/{index-5b4e7208.js → index-e583ff4e.js} +1 -1
- package/assets/{index-5947dd15.js → index-e9ab8876.js} +1 -1
- package/assets/{index-3c50ab3b.js → index-f49c89c1.js} +1 -1
- package/assets/{index-3d2bada3.js → index-fe892b11.js} +1 -1
- package/assets/{index.es-2aacf970.js → index.es-0f7943d8.js} +1 -1
- package/assets/{index.es-ce0aa5fd.js → index.es-30a0ec70.js} +3 -3
- package/assets/{index.es-ac60fff2.js → index.es-4520fb10.js} +1 -1
- package/assets/{index.web-1837e57d.js → index.web-e2526e19.js} +1 -1
- package/assets/{localBatchGatewayRequest-b2e2be89.js → localBatchGatewayRequest-ff5d42f6.js} +1 -1
- package/assets/{native-8dd45a06.js → native-3e8a86bb.js} +1 -1
- package/assets/{networks-2b49f856.js → networks-fc1b1902.js} +1 -1
- package/assets/{onramp-7ba26b97.js → onramp-cf41485f.js} +1 -1
- package/assets/{openzeppelin-56d83a0f.js → openzeppelin-e72c7daa.js} +1 -1
- package/assets/{ownerOf-558180d2.js → ownerOf-c09a8f45.js} +1 -1
- package/assets/parseNft-147a451f.js +1 -0
- package/assets/{parseSignature-16c7c561.js → parseSignature-6b0b4698.js} +2 -2
- package/assets/{parseSignature-7a759338.js → parseSignature-b975d9a6.js} +1 -1
- package/assets/{passkeys-fd92f407.js → passkeys-bb25d43e.js} +1 -1
- package/assets/{pay-with-exchange-542b5282.js → pay-with-exchange-cd96ece6.js} +1 -1
- package/assets/{prepare-contract-call-ac31a985.js → prepare-contract-call-4be4cc68.js} +1 -1
- package/assets/{qr-overlay-548b2074.js → qr-overlay-fd67e1ca.js} +1 -1
- package/assets/{receive-9119a0fc.js → receive-9ddd4e2d.js} +1 -1
- package/assets/{redirect-state-202ec690.js → redirect-state-301cb22c.js} +1 -1
- package/assets/{resolveImplementation-ffd32467.js → resolveImplementation-6b55308f.js} +1 -1
- package/assets/{rpc-4fa5fbde.js → rpc-83ca4b71.js} +1 -1
- package/assets/{secp256k1-61174a68.js → secp256k1-44255658.js} +1 -1
- package/assets/{secp256k1-587b447b.js → secp256k1-4ab38443.js} +1 -1
- package/assets/{secp256k1-2e39eaab.js → secp256k1-ac683ebc.js} +1 -1
- package/assets/{send-5e9549ca.js → send-7e34f1e6.js} +1 -1
- package/assets/{send-batch-transaction-16b5b747.js → send-batch-transaction-429c82ee.js} +1 -1
- package/assets/{send-eip712-transaction-67b51817.js → send-eip712-transaction-20a9b9ed.js} +1 -1
- package/assets/send-gasless-transaction-0435da18.js +1 -0
- package/assets/{send-transaction-5984dc09.js → send-transaction-c3053b90.js} +1 -1
- package/assets/{session-proposal-548687be.js → session-proposal-d1473b74.js} +1 -1
- package/assets/{session-request-543a34de.js → session-request-f0a8f695.js} +1 -1
- package/assets/{sha256-865a5e2e.js → sha256-937f482f.js} +1 -1
- package/assets/{signing-67cb53a5.js → signing-6d6682ec.js} +2 -2
- package/assets/{socials-1c5f45aa.js → socials-d1713bee.js} +1 -1
- package/assets/{swaps-a0b58cae.js → swaps-8bad12fe.js} +1 -1
- package/assets/{thirdweb-d54893e0.js → thirdweb-73096eef.js} +2 -2
- package/assets/{to-serializable-transaction-2ea802ff.js → to-serializable-transaction-9e540f8c.js} +2 -2
- package/assets/{totalSupply-f714505e.js → totalSupply-7e83596b.js} +1 -1
- package/assets/{transaction-e500e7c4.js → transaction-ea614a5a.js} +1 -1
- package/assets/{transactionReceipt-c6fe2381.js → transactionReceipt-1e425ab1.js} +1 -1
- package/assets/{transactions-9a79e8f9.js → transactions-a47e2cb5.js} +1 -1
- package/assets/{tslib.es6-b444c8f1.js → tslib.es6-24024d67.js} +1 -1
- package/assets/{utils-74c631d9.js → utils-dddc86ba.js} +1 -1
- package/assets/{verifyHash-34edded7.js → verifyHash-b21b75c2.js} +1 -1
- package/assets/{w3m-modal-0795c078.js → w3m-modal-e914d462.js} +1 -1
- package/assets/{w3m-modal-906aa735.js → w3m-modal-ff2f112d.js} +1 -1
- package/assets/{wait-for-tx-receipt-dbf6b521.js → wait-for-tx-receipt-50389b4e.js} +1 -1
- package/assets/{wallets-331c410d.js → wallets-4e23dd0f.js} +4 -4
- package/assets/{web-connector-3a1204fd.js → web-connector-351693f5.js} +2 -2
- package/assets/{writeContract-f6b81199.js → writeContract-03e44e49.js} +2 -2
- package/assets/{zora-sepolia-eaf59a0b.js → zora-sepolia-72e60034.js} +1 -1
- package/assets/{zoraTestnet-55836178.js → zoraTestnet-1485f0af.js} +1 -1
- package/index.html +4 -4
- package/package.json +3 -3
- package/assets/decimals-37678a25.js +0 -1
- package/assets/eth_estimateGas-79dc1763.js +0 -1
- package/assets/features-0025dc16.js +0 -1
- package/assets/index-7ee82e4f.js +0 -77
- package/assets/parseNft-93d99682.js +0 -1
- package/assets/send-gasless-transaction-8bdf3649.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a2 as pe,f as D,n as z,B as p,a4 as ye,aP as l0,aL as J,b as Ae,a9 as Je,t as Ve,h as G,ac as b0,L as Xe,aE as _n,aQ as Qe,Y as We,a3 as Nn,av as h0,an as he,ab as p0,as as y0,e as m0,s as g0,aR as x0,X as Ne,a0 as Et,aq as tn,ay as nn,az as rn,ax as sn,ar as on,at as an,au as cn,aF as fn,a1 as $t,ah as et,aS as un,a as w0,i as P0,c as E0,$ as dn,F as $0,I as A0,R as v0}from"./createBatchScheduler-7c9ada66.js";import{_ as jn}from"./index-355751ab.js";function tt(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const i=t(s,o);if(n)for(const a of n)delete i[a];return{...i,...r(s,o)}},type:e})}const Hn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function kt(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?pe(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?pe(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Hn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=I0(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Ma=tt("transaction",kt);function I0(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Rn(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:kt(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const ka=tt("block",Rn);function Dn(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const B0={"0x0":"reverted","0x1":"success"};function F0(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Dn(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?pe(e.transactionIndex):null,status:e.status?B0[e.status]:null,type:e.type?Hn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ua=tt("transactionReceipt",F0),S0={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ue(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=T0(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>D(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=z(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=z(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=z(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=z(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=z(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=z(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=S0[e.type]),typeof e.value<"u"&&(n.value=z(e.value)),n}const Oa=tt("transactionRequest",Ue);function T0(e){return e.map(t=>({address:t.address,r:t.r?z(BigInt(t.r)):t.r,s:t.s?z(BigInt(t.s)):t.s,chainId:z(t.chainId),nonce:z(t.nonce),...typeof t.yParity<"u"?{yParity:z(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:z(t.v)}:{}}))}const Ga=2n**(8n-1n)-1n,La=2n**(16n-1n)-1n,_a=2n**(24n-1n)-1n,Na=2n**(32n-1n)-1n,ja=2n**(40n-1n)-1n,Ha=2n**(48n-1n)-1n,Ra=2n**(56n-1n)-1n,Da=2n**(64n-1n)-1n,Va=2n**(72n-1n)-1n,Wa=2n**(80n-1n)-1n,Ka=2n**(88n-1n)-1n,Za=2n**(96n-1n)-1n,qa=2n**(104n-1n)-1n,Ya=2n**(112n-1n)-1n,Ja=2n**(120n-1n)-1n,Xa=2n**(128n-1n)-1n,Qa=2n**(136n-1n)-1n,ec=2n**(144n-1n)-1n,tc=2n**(152n-1n)-1n,nc=2n**(160n-1n)-1n,rc=2n**(168n-1n)-1n,sc=2n**(176n-1n)-1n,ic=2n**(184n-1n)-1n,oc=2n**(192n-1n)-1n,ac=2n**(200n-1n)-1n,cc=2n**(208n-1n)-1n,fc=2n**(216n-1n)-1n,uc=2n**(224n-1n)-1n,dc=2n**(232n-1n)-1n,lc=2n**(240n-1n)-1n,bc=2n**(248n-1n)-1n,hc=2n**(256n-1n)-1n,pc=-(2n**(8n-1n)),yc=-(2n**(16n-1n)),mc=-(2n**(24n-1n)),gc=-(2n**(32n-1n)),xc=-(2n**(40n-1n)),wc=-(2n**(48n-1n)),Pc=-(2n**(56n-1n)),Ec=-(2n**(64n-1n)),$c=-(2n**(72n-1n)),Ac=-(2n**(80n-1n)),vc=-(2n**(88n-1n)),Ic=-(2n**(96n-1n)),Bc=-(2n**(104n-1n)),Fc=-(2n**(112n-1n)),Sc=-(2n**(120n-1n)),Tc=-(2n**(128n-1n)),zc=-(2n**(136n-1n)),Cc=-(2n**(144n-1n)),Mc=-(2n**(152n-1n)),kc=-(2n**(160n-1n)),Uc=-(2n**(168n-1n)),Oc=-(2n**(176n-1n)),Gc=-(2n**(184n-1n)),Lc=-(2n**(192n-1n)),_c=-(2n**(200n-1n)),Nc=-(2n**(208n-1n)),jc=-(2n**(216n-1n)),Hc=-(2n**(224n-1n)),Rc=-(2n**(232n-1n)),Dc=-(2n**(240n-1n)),Vc=-(2n**(248n-1n)),Wc=-(2n**(256n-1n)),Kc=2n**8n-1n,Zc=2n**16n-1n,qc=2n**24n-1n,Yc=2n**32n-1n,Jc=2n**40n-1n,Xc=2n**48n-1n,Qc=2n**56n-1n,ef=2n**64n-1n,tf=2n**72n-1n,nf=2n**80n-1n,rf=2n**88n-1n,sf=2n**96n-1n,of=2n**104n-1n,af=2n**112n-1n,cf=2n**120n-1n,ff=2n**128n-1n,uf=2n**136n-1n,df=2n**144n-1n,lf=2n**152n-1n,bf=2n**160n-1n,hf=2n**168n-1n,pf=2n**176n-1n,yf=2n**184n-1n,mf=2n**192n-1n,gf=2n**200n-1n,xf=2n**208n-1n,wf=2n**216n-1n,Pf=2n**224n-1n,Ef=2n**232n-1n,$f=2n**240n-1n,Af=2n**248n-1n,z0=2n**256n-1n;function ln(e){return typeof e[0]=="string"?Q(e):C0(e)}function C0(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Q(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}class bn extends p{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Vn extends p{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class M0 extends p{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const k0={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new M0({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Vn({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new bn({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new bn({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Ut(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(k0);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ot(e,t="hex"){const n=Wn(e),r=Ut(new Uint8Array(n.length));return n.encode(r),t==="hex"?D(r.bytes):r.bytes}function vf(e,t="bytes"){return Ot(e,t)}function If(e,t="hex"){return Ot(e,t)}function Wn(e){return Array.isArray(e)?U0(e.map(t=>Wn(t))):O0(e)}function U0(e){const t=e.reduce((s,o)=>s+o.length,0),n=Kn(t);return{length:(()=>t<=55?1+t:1+n+t)(),encode(s){t<=55?s.pushByte(192+t):(s.pushByte(192+55+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function O0(e){const t=typeof e=="string"?ye(e):e,n=Kn(t.length);return{length:(()=>t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length)(),encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(128+55+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function Kn(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new p("Length is too large.")}function Gt(e,t="wei"){return l0(e,t)}function Oe(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
|
|
1
|
+
import{a2 as pe,f as D,n as z,B as p,a4 as ye,aP as l0,aL as J,b as Ae,a9 as Je,t as Ve,h as G,ac as b0,L as Xe,aE as _n,aQ as Qe,Y as We,a3 as Nn,av as h0,an as he,ab as p0,as as y0,e as m0,s as g0,aR as x0,X as Ne,a0 as Et,aq as tn,ay as nn,az as rn,ax as sn,ar as on,at as an,au as cn,aF as fn,a1 as $t,ah as et,aS as un,a as w0,i as P0,c as E0,$ as dn,F as $0,I as A0,R as v0}from"./createBatchScheduler-7c9ada66.js";import{_ as jn}from"./index-10c73e9d.js";function tt(e,t){return({exclude:n,format:r})=>({exclude:n,format:(s,o)=>{const i=t(s,o);if(n)for(const a of n)delete i[a];return{...i,...r(s,o)}},type:e})}const Hn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function kt(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?pe(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?pe(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Hn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=I0(e.authorizationList)),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof n.v=="bigint"){if(n.v===0n||n.v===27n)return 0;if(n.v===1n||n.v===28n)return 1;if(n.v>=35n)return n.v%2n===0n?1:0}})(),n.type==="legacy"&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),n.type==="eip2930"&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),n.type==="eip1559"&&delete n.maxFeePerBlobGas,n}const Ma=tt("transaction",kt);function I0(e){return e.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))}function Rn(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:kt(r));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const ka=tt("block",Rn);function Dn(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}const B0={"0x0":"reverted","0x1":"success"};function F0(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(r=>Dn(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?pe(e.transactionIndex):null,status:e.status?B0[e.status]:null,type:e.type?Hn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const Ua=tt("transactionReceipt",F0),S0={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Ue(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=T0(e.authorizationList)),typeof e.accessList<"u"&&(n.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(n.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?n.blobs=e.blobs.map(r=>D(r)):n.blobs=e.blobs),typeof e.data<"u"&&(n.data=e.data),e.account&&(n.from=e.account.address),typeof e.from<"u"&&(n.from=e.from),typeof e.gas<"u"&&(n.gas=z(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=z(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=z(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=z(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=z(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=z(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=S0[e.type]),typeof e.value<"u"&&(n.value=z(e.value)),n}const Oa=tt("transactionRequest",Ue);function T0(e){return e.map(t=>({address:t.address,r:t.r?z(BigInt(t.r)):t.r,s:t.s?z(BigInt(t.s)):t.s,chainId:z(t.chainId),nonce:z(t.nonce),...typeof t.yParity<"u"?{yParity:z(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:z(t.v)}:{}}))}const Ga=2n**(8n-1n)-1n,La=2n**(16n-1n)-1n,_a=2n**(24n-1n)-1n,Na=2n**(32n-1n)-1n,ja=2n**(40n-1n)-1n,Ha=2n**(48n-1n)-1n,Ra=2n**(56n-1n)-1n,Da=2n**(64n-1n)-1n,Va=2n**(72n-1n)-1n,Wa=2n**(80n-1n)-1n,Ka=2n**(88n-1n)-1n,Za=2n**(96n-1n)-1n,qa=2n**(104n-1n)-1n,Ya=2n**(112n-1n)-1n,Ja=2n**(120n-1n)-1n,Xa=2n**(128n-1n)-1n,Qa=2n**(136n-1n)-1n,ec=2n**(144n-1n)-1n,tc=2n**(152n-1n)-1n,nc=2n**(160n-1n)-1n,rc=2n**(168n-1n)-1n,sc=2n**(176n-1n)-1n,ic=2n**(184n-1n)-1n,oc=2n**(192n-1n)-1n,ac=2n**(200n-1n)-1n,cc=2n**(208n-1n)-1n,fc=2n**(216n-1n)-1n,uc=2n**(224n-1n)-1n,dc=2n**(232n-1n)-1n,lc=2n**(240n-1n)-1n,bc=2n**(248n-1n)-1n,hc=2n**(256n-1n)-1n,pc=-(2n**(8n-1n)),yc=-(2n**(16n-1n)),mc=-(2n**(24n-1n)),gc=-(2n**(32n-1n)),xc=-(2n**(40n-1n)),wc=-(2n**(48n-1n)),Pc=-(2n**(56n-1n)),Ec=-(2n**(64n-1n)),$c=-(2n**(72n-1n)),Ac=-(2n**(80n-1n)),vc=-(2n**(88n-1n)),Ic=-(2n**(96n-1n)),Bc=-(2n**(104n-1n)),Fc=-(2n**(112n-1n)),Sc=-(2n**(120n-1n)),Tc=-(2n**(128n-1n)),zc=-(2n**(136n-1n)),Cc=-(2n**(144n-1n)),Mc=-(2n**(152n-1n)),kc=-(2n**(160n-1n)),Uc=-(2n**(168n-1n)),Oc=-(2n**(176n-1n)),Gc=-(2n**(184n-1n)),Lc=-(2n**(192n-1n)),_c=-(2n**(200n-1n)),Nc=-(2n**(208n-1n)),jc=-(2n**(216n-1n)),Hc=-(2n**(224n-1n)),Rc=-(2n**(232n-1n)),Dc=-(2n**(240n-1n)),Vc=-(2n**(248n-1n)),Wc=-(2n**(256n-1n)),Kc=2n**8n-1n,Zc=2n**16n-1n,qc=2n**24n-1n,Yc=2n**32n-1n,Jc=2n**40n-1n,Xc=2n**48n-1n,Qc=2n**56n-1n,ef=2n**64n-1n,tf=2n**72n-1n,nf=2n**80n-1n,rf=2n**88n-1n,sf=2n**96n-1n,of=2n**104n-1n,af=2n**112n-1n,cf=2n**120n-1n,ff=2n**128n-1n,uf=2n**136n-1n,df=2n**144n-1n,lf=2n**152n-1n,bf=2n**160n-1n,hf=2n**168n-1n,pf=2n**176n-1n,yf=2n**184n-1n,mf=2n**192n-1n,gf=2n**200n-1n,xf=2n**208n-1n,wf=2n**216n-1n,Pf=2n**224n-1n,Ef=2n**232n-1n,$f=2n**240n-1n,Af=2n**248n-1n,z0=2n**256n-1n;function ln(e){return typeof e[0]=="string"?Q(e):C0(e)}function C0(e){let t=0;for(const s of e)t+=s.length;const n=new Uint8Array(t);let r=0;for(const s of e)n.set(s,r),r+=s.length;return n}function Q(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}class bn extends p{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Vn extends p{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class M0 extends p{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const k0={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new M0({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Vn({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new bn({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new bn({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Ut(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(k0);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function Ot(e,t="hex"){const n=Wn(e),r=Ut(new Uint8Array(n.length));return n.encode(r),t==="hex"?D(r.bytes):r.bytes}function vf(e,t="bytes"){return Ot(e,t)}function If(e,t="hex"){return Ot(e,t)}function Wn(e){return Array.isArray(e)?U0(e.map(t=>Wn(t))):O0(e)}function U0(e){const t=e.reduce((s,o)=>s+o.length,0),n=Kn(t);return{length:(()=>t<=55?1+t:1+n+t)(),encode(s){t<=55?s.pushByte(192+t):(s.pushByte(192+55+n),n===1?s.pushUint8(t):n===2?s.pushUint16(t):n===3?s.pushUint24(t):s.pushUint32(t));for(const{encode:o}of e)o(s)}}}function O0(e){const t=typeof e=="string"?ye(e):e,n=Kn(t.length);return{length:(()=>t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length)(),encode(s){t.length===1&&t[0]<128?s.pushBytes(t):t.length<=55?(s.pushByte(128+t.length),s.pushBytes(t)):(s.pushByte(128+55+n),n===1?s.pushUint8(t.length):n===2?s.pushUint16(t.length):n===3?s.pushUint24(t.length):s.pushUint32(t.length),s.pushBytes(t))}}}function Kn(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new p("Length is too large.")}function Gt(e,t="wei"){return l0(e,t)}function Oe(e){const t=Object.entries(e).map(([r,s])=>s===void 0||s===!1?null:[r,s]).filter(Boolean),n=t.reduce((r,[s])=>Math.max(r,s.length),0);return t.map(([r,s])=>` ${`${r}:`.padEnd(n+1)} ${s}`).join(`
|
|
2
2
|
`)}class Bf extends p{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
|
|
3
3
|
`),{name:"FeeConflictError"})}}class Zn extends p{constructor({filledNonce:t,requestedNonce:n}){super("The filled transaction nonce does not match the requested nonce.",{metaMessages:[`Requested Nonce: ${n}`,`Filled Nonce: ${t}`],name:"FeePayerNonceMismatchError"})}}class Ff extends p{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Sf extends p{constructor({yParity:t}){super(`Invalid \`yParity\` value "${t}". Expected 0 or 1.`,{name:"InvalidYParityError"})}}class G0 extends p{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Oe(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Tf extends p{constructor({serializedType:t}){super(`Serialized transaction type "${t}" is invalid.`,{name:"InvalidSerializedTransactionType"}),Object.defineProperty(this,"serializedType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedType=t}}class zf extends p{constructor({attributes:t,serializedTransaction:n,type:r}){const s=Object.entries(t).map(([o,i])=>typeof i>"u"?o:void 0).filter(Boolean);super(`Invalid serialized transaction of type "${r}" was provided.`,{metaMessages:[`Serialized Transaction: "${n}"`,s.length>0?`Missing Attributes: ${s.join(", ")}`:""].filter(Boolean),name:"InvalidSerializedTransactionError"}),Object.defineProperty(this,"serializedTransaction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.serializedTransaction=n,this.type=r}}class Cf extends p{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class L0 extends p{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:f,nonce:u,to:d,value:l}){var h;const b=Oe({chain:s&&`${s==null?void 0:s.name} (id: ${s==null?void 0:s.id})`,from:n==null?void 0:n.address,to:d,value:typeof l<"u"&&`${Gt(l)} ${((h=s==null?void 0:s.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${J(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${J(c)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${J(f)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",b].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Mf extends p{constructor({blockHash:t,blockNumber:n,blockTag:r,hash:s,index:o}){let i="Transaction";r&&o!==void 0&&(i=`Transaction at block time "${r}" at index "${o}"`),t&&o!==void 0&&(i=`Transaction at block hash "${t}" at index "${o}"`),n&&o!==void 0&&(i=`Transaction at block number "${n}" at index "${o}"`),s&&(i=`Transaction with hash "${s}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class kf extends p{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Uf extends p{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Of extends p{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function qn(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(o=>ye(o)):e.blobs,s=[];for(const o of r)s.push(Uint8Array.from(t.blobToKzgCommitment(o)));return n==="bytes"?s:s.map(o=>D(o))}function Yn(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),r=typeof e.blobs[0]=="string"?e.blobs.map(i=>ye(i)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(i=>ye(i)):e.commitments,o=[];for(let i=0;i<r.length;i++){const a=r[i],c=s[i];o.push(Uint8Array.from(t.computeBlobKzgProof(a,c)))}return n==="bytes"?o:o.map(i=>D(i))}const we=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function _0(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Ke(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function ve(e,...t){if(!_0(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Gf(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Ke(e.outputLen),Ke(e.blockLen)}function Ze(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Jn(e,t){ve(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function N0(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function me(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function dt(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Y(e,t){return e<<32-t|e>>>t}function Lf(e,t){return e<<t|e>>>32-t>>>0}const j0=(()=>new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68)();function H0(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function R0(e){for(let t=0;t<e.length;t++)e[t]=H0(e[t]);return e}const hn=j0?e=>e:R0;function D0(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function Lt(e){return typeof e=="string"&&(e=D0(e)),ve(e),e}function _f(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];ve(s),t+=s.length}const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}class Xn{}function nt(e){const t=r=>e().update(Lt(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Nf(e=32){if(we&&typeof we.getRandomValues=="function")return we.getRandomValues(new Uint8Array(e));if(we&&typeof we.randomBytes=="function")return Uint8Array.from(we.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}function V0(e,t,n,r){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,r);const s=BigInt(32),o=BigInt(4294967295),i=Number(n>>s&o),a=Number(n&o),c=r?4:0,f=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+f,a,r)}function W0(e,t,n){return e&t^~e&n}function K0(e,t,n){return e&t^e&n^t&n}class Qn extends Xn{constructor(t,n,r,s){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=r,this.isLE=s,this.buffer=new Uint8Array(t),this.view=dt(this.buffer)}update(t){Ze(this),t=Lt(t),ve(t);const{view:n,buffer:r,blockLen:s}=this,o=t.length;for(let i=0;i<o;){const a=Math.min(s-this.pos,o-i);if(a===s){const c=dt(t);for(;s<=o-i;i+=s)this.process(c,i);continue}r.set(t.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===s&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ze(this),Jn(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:s,isLE:o}=this;let{pos:i}=this;n[i++]=128,me(this.buffer.subarray(i)),this.padOffset>s-i&&(this.process(r,0),i=0);for(let d=i;d<s;d++)n[d]=0;V0(r,s-8,BigInt(this.length*8),o),this.process(r,0);const a=dt(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=c/4,u=this.get();if(f>u.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<f;d++)a.setUint32(4*d,u[d],o)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const r=t.slice(0,n);return this.destroy(),r}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:r,length:s,finished:o,destroyed:i,pos:a}=this;return t.destroyed=i,t.finished=o,t.length=s,t.pos=a,s%n&&t.buffer.set(r),t}clone(){return this._cloneInto()}}const fe=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),L=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),_=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),je=BigInt(2**32-1),pn=BigInt(32);function Z0(e,t=!1){return t?{h:Number(e&je),l:Number(e>>pn&je)}:{h:Number(e>>pn&je)|0,l:Number(e&je)|0}}function er(e,t=!1){const n=e.length;let r=new Uint32Array(n),s=new Uint32Array(n);for(let o=0;o<n;o++){const{h:i,l:a}=Z0(e[o],t);[r[o],s[o]]=[i,a]}return[r,s]}const yn=(e,t,n)=>e>>>n,mn=(e,t,n)=>e<<32-n|t>>>n,Pe=(e,t,n)=>e>>>n|t<<32-n,Ee=(e,t,n)=>e<<32-n|t>>>n,He=(e,t,n)=>e<<64-n|t>>>n-32,Re=(e,t,n)=>e>>>n-32|t<<64-n,q0=(e,t,n)=>e<<n|t>>>32-n,Y0=(e,t,n)=>t<<n|e>>>32-n,J0=(e,t,n)=>t<<n-32|e>>>64-n,X0=(e,t,n)=>e<<n-32|t>>>64-n;function re(e,t,n,r){const s=(t>>>0)+(r>>>0);return{h:e+n+(s/2**32|0)|0,l:s|0}}const Q0=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),es=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,ts=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),ns=(e,t,n,r,s)=>t+n+r+s+(e/2**32|0)|0,rs=(e,t,n,r,s)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(s>>>0),ss=(e,t,n,r,s,o)=>t+n+r+s+o+(e/2**32|0)|0,is=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),ue=new Uint32Array(64);class os extends Qn{constructor(t=32){super(64,t,8,!1),this.A=fe[0]|0,this.B=fe[1]|0,this.C=fe[2]|0,this.D=fe[3]|0,this.E=fe[4]|0,this.F=fe[5]|0,this.G=fe[6]|0,this.H=fe[7]|0}get(){const{A:t,B:n,C:r,D:s,E:o,F:i,G:a,H:c}=this;return[t,n,r,s,o,i,a,c]}set(t,n,r,s,o,i,a,c){this.A=t|0,this.B=n|0,this.C=r|0,this.D=s|0,this.E=o|0,this.F=i|0,this.G=a|0,this.H=c|0}process(t,n){for(let d=0;d<16;d++,n+=4)ue[d]=t.getUint32(n,!1);for(let d=16;d<64;d++){const l=ue[d-15],b=ue[d-2],h=Y(l,7)^Y(l,18)^l>>>3,g=Y(b,17)^Y(b,19)^b>>>10;ue[d]=g+ue[d-7]+h+ue[d-16]|0}let{A:r,B:s,C:o,D:i,E:a,F:c,G:f,H:u}=this;for(let d=0;d<64;d++){const l=Y(a,6)^Y(a,11)^Y(a,25),b=u+l+W0(a,c,f)+is[d]+ue[d]|0,g=(Y(r,2)^Y(r,13)^Y(r,22))+K0(r,s,o)|0;u=f,f=c,c=a,a=i+b|0,i=o,o=s,s=r,r=b+g|0}r=r+this.A|0,s=s+this.B|0,o=o+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,f=f+this.G|0,u=u+this.H|0,this.set(r,s,o,i,a,c,f,u)}roundClean(){me(ue)}destroy(){this.set(0,0,0,0,0,0,0,0),me(this.buffer)}}const tr=(()=>er(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),as=(()=>tr[0])(),cs=(()=>tr[1])(),de=new Uint32Array(80),le=new Uint32Array(80);class nr extends Qn{constructor(t=64){super(128,t,16,!1),this.Ah=_[0]|0,this.Al=_[1]|0,this.Bh=_[2]|0,this.Bl=_[3]|0,this.Ch=_[4]|0,this.Cl=_[5]|0,this.Dh=_[6]|0,this.Dl=_[7]|0,this.Eh=_[8]|0,this.El=_[9]|0,this.Fh=_[10]|0,this.Fl=_[11]|0,this.Gh=_[12]|0,this.Gl=_[13]|0,this.Hh=_[14]|0,this.Hl=_[15]|0}get(){const{Ah:t,Al:n,Bh:r,Bl:s,Ch:o,Cl:i,Dh:a,Dl:c,Eh:f,El:u,Fh:d,Fl:l,Gh:b,Gl:h,Hh:g,Hl:E}=this;return[t,n,r,s,o,i,a,c,f,u,d,l,b,h,g,E]}set(t,n,r,s,o,i,a,c,f,u,d,l,b,h,g,E){this.Ah=t|0,this.Al=n|0,this.Bh=r|0,this.Bl=s|0,this.Ch=o|0,this.Cl=i|0,this.Dh=a|0,this.Dl=c|0,this.Eh=f|0,this.El=u|0,this.Fh=d|0,this.Fl=l|0,this.Gh=b|0,this.Gl=h|0,this.Hh=g|0,this.Hl=E|0}process(t,n){for(let y=0;y<16;y++,n+=4)de[y]=t.getUint32(n),le[y]=t.getUint32(n+=4);for(let y=16;y<80;y++){const I=de[y-15]|0,C=le[y-15]|0,M=Pe(I,C,1)^Pe(I,C,8)^yn(I,C,7),P=Ee(I,C,1)^Ee(I,C,8)^mn(I,C,7),x=de[y-2]|0,A=le[y-2]|0,U=Pe(x,A,19)^He(x,A,61)^yn(x,A,6),F=Ee(x,A,19)^Re(x,A,61)^mn(x,A,6),S=ts(P,F,le[y-7],le[y-16]),B=ns(S,M,U,de[y-7],de[y-16]);de[y]=B|0,le[y]=S|0}let{Ah:r,Al:s,Bh:o,Bl:i,Ch:a,Cl:c,Dh:f,Dl:u,Eh:d,El:l,Fh:b,Fl:h,Gh:g,Gl:E,Hh:w,Hl:v}=this;for(let y=0;y<80;y++){const I=Pe(d,l,14)^Pe(d,l,18)^He(d,l,41),C=Ee(d,l,14)^Ee(d,l,18)^Re(d,l,41),M=d&b^~d&g,P=l&h^~l&E,x=rs(v,C,P,cs[y],le[y]),A=ss(x,w,I,M,as[y],de[y]),U=x|0,F=Pe(r,s,28)^He(r,s,34)^He(r,s,39),S=Ee(r,s,28)^Re(r,s,34)^Re(r,s,39),B=r&o^r&a^o&a,O=s&i^s&c^i&c;w=g|0,v=E|0,g=b|0,E=h|0,b=d|0,h=l|0,{h:d,l}=re(f|0,u|0,A|0,U|0),f=a|0,u=c|0,a=o|0,c=i|0,o=r|0,i=s|0;const m=Q0(U,S,O);r=es(m,A,F,B),s=m|0}({h:r,l:s}=re(this.Ah|0,this.Al|0,r|0,s|0)),{h:o,l:i}=re(this.Bh|0,this.Bl|0,o|0,i|0),{h:a,l:c}=re(this.Ch|0,this.Cl|0,a|0,c|0),{h:f,l:u}=re(this.Dh|0,this.Dl|0,f|0,u|0),{h:d,l}=re(this.Eh|0,this.El|0,d|0,l|0),{h:b,l:h}=re(this.Fh|0,this.Fl|0,b|0,h|0),{h:g,l:E}=re(this.Gh|0,this.Gl|0,g|0,E|0),{h:w,l:v}=re(this.Hh|0,this.Hl|0,w|0,v|0),this.set(r,s,o,i,a,c,f,u,d,l,b,h,g,E,w,v)}roundClean(){me(de,le)}destroy(){me(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class fs extends nr{constructor(){super(48),this.Ah=L[0]|0,this.Al=L[1]|0,this.Bh=L[2]|0,this.Bl=L[3]|0,this.Ch=L[4]|0,this.Cl=L[5]|0,this.Dh=L[6]|0,this.Dl=L[7]|0,this.Eh=L[8]|0,this.El=L[9]|0,this.Fh=L[10]|0,this.Fl=L[11]|0,this.Gh=L[12]|0,this.Gl=L[13]|0,this.Hh=L[14]|0,this.Hl=L[15]|0}}const us=nt(()=>new os),jf=nt(()=>new nr),Hf=nt(()=>new fs),ds=us;function ls(e,t){const n=t||"hex",r=ds(Ae(e,{strict:!1})?Je(e):e);return n==="bytes"?r:Ve(r)}function bs(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),s=ls(t,"bytes");return s.set([n],0),r==="bytes"?s:D(s)}function hs(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const o of t)s.push(bs({commitment:o,to:r,version:n}));return s}const gn=6,rr=32,_t=4096,sr=rr*_t,xn=sr*gn-1-1*_t*gn,ps=1;class ys extends p{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class ms extends p{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class Rf extends p{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class Df extends p{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${ps}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function gs(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?ye(e.data):e.data,r=G(n);if(!r)throw new ms;if(r>xn)throw new ys({maxSize:xn,size:r});const s=[];let o=!0,i=0;for(;o;){const a=Ut(new Uint8Array(sr));let c=0;for(;c<_t;){const f=n.slice(i,i+(rr-1));if(a.pushByte(0),a.pushBytes(f),f.length<31){a.pushByte(128),o=!1;break}c++,i+=31}s.push(a)}return t==="bytes"?s.map(a=>a.bytes):s.map(a=>D(a.bytes))}function xs(e){const{data:t,kzg:n,to:r}=e,s=e.blobs??gs({data:t,to:r}),o=e.commitments??qn({blobs:s,kzg:n,to:r}),i=e.proofs??Yn({blobs:s,commitments:o,kzg:n,to:r}),a=[];for(let c=0;c<s.length;c++)a.push({blob:s[c],commitment:o[c],proof:i[c]});return a}class ge extends p{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class At extends p{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class ws extends p{constructor({chain:t,currentChainId:n}){super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${n}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class Ps extends p{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join(`
|
|
4
4
|
`),{name:"ChainNotFoundError"})}}class ir extends p{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Vf extends p{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const Es=BigInt(0),ze=BigInt(1),$s=BigInt(2),As=BigInt(7),vs=BigInt(256),Is=BigInt(113),or=[],ar=[],cr=[];for(let e=0,t=ze,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],or.push(2*(5*r+n)),ar.push((e+1)*(e+2)/2%64);let s=Es;for(let o=0;o<7;o++)t=(t<<ze^(t>>As)*Is)%vs,t&$s&&(s^=ze<<(ze<<BigInt(o))-ze);cr.push(s)}const fr=er(cr,!0),Bs=fr[0],Fs=fr[1],wn=(e,t,n)=>n>32?J0(e,t,n):q0(e,t,n),Pn=(e,t,n)=>n>32?X0(e,t,n):Y0(e,t,n);function Ss(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let i=0;i<10;i++)n[i]=e[i]^e[i+10]^e[i+20]^e[i+30]^e[i+40];for(let i=0;i<10;i+=2){const a=(i+8)%10,c=(i+2)%10,f=n[c],u=n[c+1],d=wn(f,u,1)^n[a],l=Pn(f,u,1)^n[a+1];for(let b=0;b<50;b+=10)e[i+b]^=d,e[i+b+1]^=l}let s=e[2],o=e[3];for(let i=0;i<24;i++){const a=ar[i],c=wn(s,o,a),f=Pn(s,o,a),u=or[i];s=e[u],o=e[u+1],e[u]=c,e[u+1]=f}for(let i=0;i<50;i+=10){for(let a=0;a<10;a++)n[a]=e[i+a];for(let a=0;a<10;a++)e[i+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=Bs[r],e[1]^=Fs[r]}me(n)}class Nt extends Xn{constructor(t,n,r,s=!1,o=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=s,this.rounds=o,Ke(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=N0(this.state)}clone(){return this._cloneInto()}keccak(){hn(this.state32),Ss(this.state32,this.rounds),hn(this.state32),this.posOut=0,this.pos=0}update(t){Ze(this),t=Lt(t),ve(t);const{blockLen:n,state:r}=this,s=t.length;for(let o=0;o<s;){const i=Math.min(n-this.pos,s-o);for(let a=0;a<i;a++)r[this.pos++]^=t[o++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:r,blockLen:s}=this;t[r]^=n,n&128&&r===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){Ze(this,!1),ve(t),this.finish();const n=this.state,{blockLen:r}=this;for(let s=0,o=t.length;s<o;){this.posOut>=r&&this.keccak();const i=Math.min(r-this.posOut,o-s);t.set(n.subarray(this.posOut,this.posOut+i),s),this.posOut+=i,s+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Ke(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(Jn(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,me(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:s,rounds:o,enableXOF:i}=this;return t||(t=new Nt(n,r,s,i,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=s,t.enableXOF=i,t.destroyed=this.destroyed,t}}const Ts=(e,t,n)=>nt(()=>new Nt(t,e,n)),zs=(()=>Ts(1,136,256/8))();function Ge(e,t){const n=t||"hex",r=zs(Ae(e,{strict:!1})?Je(e):e);return n==="bytes"?r:Ve(r)}const lt=new Xe(8192);function rt(e,t){if(lt.has(`${e}.${t}`))return lt.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=Ge(b0(n),"bytes"),s=(t?n.substring(`${t}0x`.length):n).split("");for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&s[i]&&(s[i]=s[i].toUpperCase()),(r[i>>1]&15)>=8&&s[i+1]&&(s[i+1]=s[i+1].toUpperCase());const o=`0x${s.join("")}`;return lt.set(`${e}.${t}`,o),o}function Wf(e,t){if(!ee(e,{strict:!1}))throw new ge({address:e});return rt(e,t)}const Cs=/^0x[a-fA-F0-9]{40}$/,bt=new Xe(8192);function ee(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(bt.has(r))return bt.get(r);const s=(()=>Cs.test(e)?e.toLowerCase()===e?!0:n?rt(e)===e:!0:!1)();return bt.set(r,s),s}function qe(e,t,n,{strict:r}={}){return Ae(e,{strict:!1})?Ms(e,t,n,{strict:r}):lr(e,t,n,{strict:r})}function ur(e,t){if(typeof t=="number"&&t>0&&t>G(e)-1)throw new _n({offset:t,position:"start",size:G(e)})}function dr(e,t,n){if(typeof t=="number"&&typeof n=="number"&&G(e)!==n-t)throw new _n({offset:n,position:"end",size:G(e)})}function lr(e,t,n,{strict:r}={}){ur(e,t);const s=e.slice(t,n);return r&&dr(s,t,n),s}function Ms(e,t,n,{strict:r}={}){ur(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&dr(s,t,n),s}function ks(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new G0({transaction:e})}function Us({chain:e,currentChainId:t}){if(!e)throw new Ps;if(t!==e.id)throw new ws({chain:e,currentChainId:t})}function Os({blockNumber:e,chain:t,contract:n}){var s;const r=(s=t==null?void 0:t.contracts)==null?void 0:s[n];if(!r)throw new At({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new At({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function te(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}class br extends p{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join(`
|
|
@@ -34,4 +34,4 @@ import{a2 as pe,f as D,n as z,B as p,a4 as ye,aP as l0,aL as J,b as Ae,a9 as Je,
|
|
|
34
34
|
`).slice(0,-1)}class bo extends p{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:f,nonce:u,to:d,value:l,stateOverride:b}){var E;const h=n?te(n):void 0;let g=Oe({from:h==null?void 0:h.address,to:d,value:typeof l<"u"&&`${Gt(l)} ${((E=s==null?void 0:s.nativeCurrency)==null?void 0:E.symbol)||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${J(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${J(c)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${J(f)} gwei`,nonce:u});b&&(g+=`
|
|
35
35
|
${lo(b)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",g].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class ho extends p{constructor(t,{abi:n,args:r,contractAddress:s,docsPath:o,functionName:i,sender:a}){const c=Wt({abi:n,args:r,name:i}),f=c?kr({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,u=c?be(c,{includeName:!0}):void 0,d=Oe({address:s&&x0(s),function:u,args:f&&f!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${f}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],d&&"Contract Call:",d].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=s,this.functionName=i,this.sender=a}}class po extends p{constructor({abi:t,data:n,functionName:r,message:s,cause:o}){let i,a,c,f;if(n&&n!=="0x")try{a=co({abi:t,data:n,cause:o});const{abiItem:d,errorName:l,args:b}=a;if(l==="Error")f=b[0];else if(l==="Panic"){const[h]=b;f=Gs[h]}else{const h=d?be(d,{includeName:!0}):void 0,g=d&&b?kr({abiItem:d,args:b,includeFunctionName:!1,includeName:!1}):void 0;c=[h?`Error: ${h}`:"",g&&g!=="()"?` ${[...Array((l==null?void 0:l.length)??0).keys()].map(()=>" ").join("")}${g}`:""]}}catch(d){i=d}else s&&(f=s);let u;i instanceof pr&&(u=i.signature,c=[`Unable to decode signature "${u}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${u}.`]),super(f&&f!=="execution reverted"||u?[`The contract function "${r}" reverted with the following ${u?"signature":"reason"}:`,f||u].join(`
|
|
36
36
|
`):`The contract function "${r}" reverted.`,{cause:i??o,metaMessages:c,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=a,this.raw=n,this.reason=f,this.signature=u}}class yo extends p{constructor({functionName:t,cause:n}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError",cause:n})}}class mo extends p{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Or extends p{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function Kt(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof p?e.walk(s=>(s==null?void 0:s.code)===Ne.code):e;return r instanceof p?new Ne({cause:e,message:r.details}):Ne.nodeMessage.test(n)?new Ne({cause:e,message:e.details}):Et.nodeMessage.test(n)?new Et({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):tn.nodeMessage.test(n)?new tn({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas}):nn.nodeMessage.test(n)?new nn({cause:e,nonce:t==null?void 0:t.nonce}):rn.nodeMessage.test(n)?new rn({cause:e,nonce:t==null?void 0:t.nonce}):sn.nodeMessage.test(n)?new sn({cause:e,nonce:t==null?void 0:t.nonce}):on.nodeMessage.test(n)?new on({cause:e}):an.nodeMessage.test(n)?new an({cause:e,gas:t==null?void 0:t.gas}):cn.nodeMessage.test(n)?new cn({cause:e,gas:t==null?void 0:t.gas}):fn.nodeMessage.test(n)?new fn({cause:e}):$t.nodeMessage.test(n)?new $t({cause:e,maxFeePerGas:t==null?void 0:t.maxFeePerGas,maxPriorityFeePerGas:t==null?void 0:t.maxPriorityFeePerGas}):new et({cause:e})}function go(e,{docsPath:t,...n}){const r=(()=>{const s=Kt(e,n);return s instanceof et?e:s})();return new bo(r,{docsPath:t,...n})}function at(e,{format:t}){if(!t)return{};const n={};function r(o){const i=Object.keys(o);for(const a of i)a in e&&(n[a]=e[a]),o[a]&&typeof o[a]=="object"&&!Array.isArray(o[a])&&r(o[a])}const s=t(e||{});return r(s),n}function Le(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:s}=e,o=t?te(t):void 0;if(o&&!ee(o.address))throw new ge({address:o.address});if(s&&!ee(s))throw new ge({address:s});if(n&&n>z0)throw new Et({maxFeePerGas:n});if(r&&n&&r>n)throw new $t({maxFeePerGas:n,maxPriorityFeePerGas:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Zt=BigInt(0),zt=BigInt(1);function qt(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Yt(e){if(!qt(e))throw new Error("Uint8Array expected")}function a1(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}function c1(e){const t=e.toString(16);return t.length&1?"0"+t:t}function Gr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?Zt:BigInt("0x"+e)}const Lr=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",xo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function _r(e){if(Yt(e),Lr)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=xo[e[n]];return t}const se={_0:48,_9:57,A:65,F:70,a:97,f:102};function Bn(e){if(e>=se._0&&e<=se._9)return e-se._0;if(e>=se.A&&e<=se.F)return e-(se.A-10);if(e>=se.a&&e<=se.f)return e-(se.a-10)}function Nr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Lr)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let s=0,o=0;s<n;s++,o+=2){const i=Bn(e.charCodeAt(o)),a=Bn(e.charCodeAt(o+1));if(i===void 0||a===void 0){const c=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+o)}r[s]=i*16+a}return r}function f1(e){return Gr(_r(e))}function u1(e){return Yt(e),Gr(_r(Uint8Array.from(e).reverse()))}function wo(e,t){return Nr(e.toString(16).padStart(t*2,"0"))}function d1(e,t){return wo(e,t).reverse()}function l1(e,t,n){let r;if(typeof t=="string")try{r=Nr(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else if(qt(t))r=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const s=r.length;if(typeof n=="number"&&s!==n)throw new Error(e+" of length "+n+" expected, got "+s);return r}function Po(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];Yt(s),t+=s.length}const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}function Eo(e,t){if(e.length!==t.length)return!1;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return n===0}function b1(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}const yt=e=>typeof e=="bigint"&&Zt<=e;function $o(e,t,n){return yt(e)&&yt(t)&&yt(n)&&t<=e&&e<n}function h1(e,t,n,r){if(!$o(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function p1(e){let t;for(t=0;e>Zt;e>>=zt,t+=1);return t}const y1=e=>(zt<<BigInt(e))-zt,mt=e=>new Uint8Array(e),Fn=e=>Uint8Array.from(e);function m1(e,t,n){if(typeof e!="number"||e<2)throw new Error("hashLen must be a number");if(typeof t!="number"||t<2)throw new Error("qByteLen must be a number");if(typeof n!="function")throw new Error("hmacFn must be a function");let r=mt(e),s=mt(e),o=0;const i=()=>{r.fill(1),s.fill(0),o=0},a=(...d)=>n(s,r,...d),c=(d=mt(0))=>{s=a(Fn([0]),d),r=a(),d.length!==0&&(s=a(Fn([1]),d),r=a())},f=()=>{if(o++>=1e3)throw new Error("drbg: tried 1000 values");let d=0;const l=[];for(;d<t;){r=a();const b=r.slice();l.push(b),d+=r.length}return Po(...l)};return(d,l)=>{i(),c(d);let b;for(;!(b=l(f()));)c();return i(),b}}const Ao={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||qt(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function g1(e,t,n={}){const r=(s,o,i)=>{const a=Ao[o];if(typeof a!="function")throw new Error("invalid validator function");const c=e[s];if(!(i&&c===void 0)&&!a(c,e))throw new Error("param "+String(s)+" is invalid. Expected "+o+", got "+c)};for(const[s,o]of Object.entries(t))r(s,o,!1);for(const[s,o]of Object.entries(n))r(s,o,!0);return e}function x1(e){const t=new WeakMap;return(n,...r)=>{const s=t.get(n);if(s!==void 0)return s;const o=e(n,...r);return t.set(n,o),o}}const vo="0.1.1";function Io(){return vo}class T extends Error{static setStaticOptions(t){T.prototype.docsOrigin=t.docsOrigin,T.prototype.showVersion=t.showVersion,T.prototype.version=t.version}constructor(t,n={}){const r=(()=>{var u;if(n.cause instanceof T){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(u=n.cause)!=null&&u.message?n.cause.message:n.details})(),s=(()=>n.cause instanceof T&&n.cause.docsPath||n.docsPath)(),o=n.docsOrigin??T.prototype.docsOrigin,i=`${o}${s??""}`,a=!!(n.version??T.prototype.showVersion),c=n.version??T.prototype.version,f=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||s||a?["",r?`Details: ${r}`:void 0,s?`See: ${i}`:void 0,a?`Version: ${c}`:void 0]:[]].filter(u=>typeof u=="string").join(`
|
|
37
|
-
`);super(f,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=i,this.docsOrigin=o,this.docsPath=s,this.shortMessage=t,this.showVersion=a,this.version=c}walk(t){return jr(this,t)}}Object.defineProperty(T,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${Io()}`}});T.setStaticOptions(T.defaultStaticOptions);function jr(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?jr(e.cause,t):t?null:e}function Te(e,t){if(Ie(e)>t)throw new Ho({givenSize:Ie(e),maxSize:t})}function Bo(e,t){if(typeof t=="number"&&t>0&&t>Ie(e)-1)throw new Kr({offset:t,position:"start",size:Ie(e)})}function Fo(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Ie(e)!==n-t)throw new Kr({offset:n,position:"end",size:Ie(e)})}const ie={zero:48,nine:57,A:65,F:70,a:97,f:102};function Sn(e){if(e>=ie.zero&&e<=ie.nine)return e-ie.zero;if(e>=ie.A&&e<=ie.F)return e-(ie.A-10);if(e>=ie.a&&e<=ie.f)return e-(ie.a-10)}function So(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new Ro({size:e.length,targetSize:r,type:"Bytes"});const s=new Uint8Array(r);for(let o=0;o<r;o++){const i=n==="right";s[i?o:r-o-1]=e[i?o:e.length-o-1]}return s}function Hr(e,t={}){const{dir:n="left"}=t;let r=e,s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r}function ct(e,t){if(Fe(e)>t)throw new qo({givenSize:Fe(e),maxSize:t})}function To(e,t){if(typeof t=="number"&&t>0&&t>Fe(e)-1)throw new Jr({offset:t,position:"start",size:Fe(e)})}function zo(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Fe(e)!==n-t)throw new Jr({offset:n,position:"end",size:Fe(e)})}function Rr(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const s=e.replace("0x","");if(s.length>r*2)throw new Yo({size:Math.ceil(s.length/2),targetSize:r,type:"Hex"});return`0x${s[n==="right"?"padEnd":"padStart"](r*2,"0")}`}function Co(e,t={}){const{dir:n="left"}=t;let r=e.replace("0x",""),s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r==="0"?"0x":n==="right"&&r.length%2===1?`0x${r}0`:`0x${r}`}const Mo="#__bigint";function Dr(e,t,n){return JSON.stringify(e,(r,s)=>typeof t=="function"?t(r,s):typeof s=="bigint"?s.toString()+Mo:s,n)}const ko=new TextDecoder,Uo=new TextEncoder;function Oo(e){if(!(e instanceof Uint8Array)){if(!e)throw new De(e);if(typeof e!="object")throw new De(e);if(!("BYTES_PER_ELEMENT"in e))throw new De(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new De(e)}}function w1(...e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}function P1(e){return e instanceof Uint8Array?e:typeof e=="string"?Vr(e):Go(e)}function Go(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Vr(e,t={}){const{size:n}=t;let r=e;n&&(ct(e,n),r=qr(e,n));let s=r.slice(2);s.length%2&&(s=`0${s}`);const o=s.length/2,i=new Uint8Array(o);for(let a=0,c=0;a<o;a++){const f=Sn(s.charCodeAt(c++)),u=Sn(s.charCodeAt(c++));if(f===void 0||u===void 0)throw new T(`Invalid byte sequence ("${s[c-2]}${s[c-1]}" in "${s}").`);i[a]=f<<4|u}return i}function E1(e,t={}){const{size:n}=t,r=Uo.encode(e);return typeof n=="number"?(Te(r,n),Lo(r,n)):r}function $1(e,t){return Eo(e,t)}function Lo(e,t){return So(e,{dir:"right",size:t})}function _o(e){return crypto.getRandomValues(new Uint8Array(e))}function Ie(e){return e.length}function A1(e,t,n,r={}){const{strict:s}=r;Bo(e,t);const o=e.slice(t,n);return s&&Fo(o,t,n),o}function v1(e,t={}){const{size:n}=t;typeof n<"u"&&Te(e,n);const r=Be(e,t);return Yr(r,t)}function I1(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(Te(r,n),r=No(r)),r.length>1||r[0]>1)throw new jo(r);return!!r[0]}function B1(e,t={}){const{size:n}=t;typeof n<"u"&&Te(e,n);const r=Be(e,t);return Ko(r,t)}function F1(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(Te(r,n),r=Wr(r)),ko.decode(r)}function No(e){return Hr(e,{dir:"left"})}function Wr(e){return Hr(e,{dir:"right"})}function S1(e){try{return Oo(e),!0}catch{return!1}}class jo extends T{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class De extends T{constructor(t){super(`Value \`${typeof t=="object"?Dr(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Ho=class extends T{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Kr=class extends T{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Ro=class extends T{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const Do=new TextEncoder,Vo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Wo(e,t={}){const{strict:n=!1}=t;if(!e)throw new Tn(e);if(typeof e!="string")throw new Tn(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new zn(e);if(!e.startsWith("0x"))throw new zn(e)}function M1(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function k1(e){return e instanceof Uint8Array?Be(e):Array.isArray(e)?Be(new Uint8Array(e)):e}function U1(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(ct(n,t.size),Zr(n,t.size)):n}function Be(e,t={}){let n="";for(let s=0;s<e.length;s++)n+=Vo[e[s]];const r=`0x${n}`;return typeof t.size=="number"?(ct(r,t.size),qr(r,t.size)):r}function oe(e,t={}){const{signed:n,size:r}=t,s=BigInt(e);let o;r?n?o=(1n<<BigInt(r)*8n-1n)-1n:o=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof o=="bigint"&&n?-o-1n:0;if(o&&s>o||s<i){const f=typeof e=="bigint"?"n":"";throw new Zo({max:o?`${o}${f}`:void 0,min:`${i}${f}`,signed:n,size:r,value:`${e}${f}`})}const c=`0x${(n&&s<0?BigInt.asUintN(r*8,BigInt(s)):s).toString(16)}`;return r?Zr(c,r):c}function O1(e,t={}){return Be(Do.encode(e),t)}function Zr(e,t){return Rr(e,{dir:"left",size:t})}function qr(e,t){return Rr(e,{dir:"right",size:t})}function G1(e){return Be(_o(e))}function L1(e,t,n,r={}){const{strict:s}=r;To(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return s&&zo(o,t,n),o}function Fe(e){return Math.ceil((e.length-2)/2)}function _1(e){return Co(e,{dir:"left"})}function Yr(e,t={}){const{signed:n}=t;t.size&&ct(e,t.size);const r=BigInt(e);if(!n)return r;const s=(e.length-2)/2,o=(1n<<BigInt(s)*8n)-1n,i=o>>1n;return r<=i?r:r-o-1n}function Ko(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:Yr(e,t))}function N1(e,t={}){const{size:n}=t;let r=Vr(e);return n&&(Te(r,n),r=Wr(r)),new TextDecoder().decode(r)}function j1(e,t={}){const{strict:n=!1}=t;try{return Wo(e,{strict:n}),!0}catch{return!1}}class Zo extends T{constructor({max:t,min:n,signed:r,size:s,value:o}){super(`Number \`${o}\` is not in safe${s?` ${s*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class Tn extends T{constructor(t){super(`Value \`${typeof t=="object"?Dr(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class zn extends T{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class H1 extends T{constructor(t){super(`Hex value \`"${t}"\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class qo extends T{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class Jr extends T{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class Yo extends T{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function Jt(e){const{blockHash:t,blockNumber:n,blockTag:r,requireCanonical:s}=e;if(s!==void 0&&!t)throw new p("`requireCanonical` can only be provided when `blockHash` is set.");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:typeof n=="bigint"?z(n):r??"latest"}const Jo="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Xo="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",R1="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",Qo="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",gt="/docs/contract/encodeDeployData";function Xr(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const s=t.find(i=>"type"in i&&i.type==="constructor");if(!s)throw new js({docsPath:gt});if(!("inputs"in s))throw new En({docsPath:gt});if(!s.inputs||s.inputs.length===0)throw new En({docsPath:gt});const o=Mr(s.inputs,n);return Q([r,o])}const Cn="/docs/contract/encodeFunctionData";function ea(e){const{abi:t,args:n,functionName:r}=e;let s=t[0];if(r){const o=Wt({abi:t,args:n,name:r});if(!o)throw new Ye(r,{docsPath:Cn});s=o}if(s.type!=="function")throw new Ye(void 0,{docsPath:Cn});return{abi:[s],functionName:Ht(be(s))}}function Qr(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var a;return e.abi.length===1&&((a=e.functionName)!=null&&a.startsWith("0x"))?e:ea(e)})(),s=n[0],o=r,i="inputs"in s&&s.inputs?Mr(s.inputs,t??[]):void 0;return Q([o,i??"0x"])}function e0(e,t){if(!ee(e,{strict:!1}))throw new ge({address:e});if(!ee(t,{strict:!1}))throw new ge({address:t});return e.toLowerCase()===t.toLowerCase()}function ta(e){const t=Ge(`0x${e.substring(4)}`).substring(26);return rt(`0x${t}`)}async function na({hash:e,signature:t}){const n=Ae(e)?e:Ve(e),{secp256k1:r}=await jn(()=>import("./secp256k1-61174a68.js").then(i=>i.a),[]);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:f,s:u,v:d,yParity:l}=t,b=Number(l??d),h=Mn(b);return new r.Signature(We(f),We(u)).addRecoveryBit(h)}const i=Ae(t)?t:Ve(t);if(G(i)!==65)throw new Error("invalid signature length");const a=pe(`0x${i.slice(130)}`),c=Mn(a);return r.Signature.fromCompact(i.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function Mn(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function ra({hash:e,signature:t}){return ta(await na({hash:e,signature:t}))}function sa(e){const{chainId:t,nonce:n,to:r}=e,s=e.contractAddress??e.address,o=Ge(Q(["0x05",Ot([t?z(t):"0x",s,n?z(n):"0x"])]));return r==="bytes"?ye(o):o}async function t0(e){const{authorization:t,signature:n}=e;return ra({hash:sa(t),signature:n??t})}function N(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const s=e[n];return typeof s=="function"?s:o=>t(e,o)}function ia(e){return{address:e.address,amount:oe(e.amount),index:oe(e.index),validatorIndex:oe(e.validatorIndex)}}function oa(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:oe(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:oe(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:oe(e.gasLimit)},...typeof e.number=="bigint"&&{number:oe(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:oe(e.prevRandao)},...typeof e.time=="bigint"&&{time:oe(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(ia)}}}const aa="0x82ad56cb",xt="/docs/contract/decodeFunctionResult";function ca(e){const{abi:t,args:n,functionName:r,data:s}=e;let o=t[0];if(r){const a=Wt({abi:t,args:n,name:r});if(!a)throw new Ye(r,{docsPath:xt});o=a}if(o.type!=="function")throw new Ye(void 0,{docsPath:xt});if(!o.outputs)throw new Ks(o.name,{docsPath:xt});const i=ot(o.outputs,s);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}function kn(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new un({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new un({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function fa(e){const{balance:t,nonce:n,state:r,stateDiff:s,code:o}=e,i={};if(o!==void 0&&(i.code=o),t!==void 0&&(i.balance=z(t)),n!==void 0&&(i.nonce=z(n)),r!==void 0&&(i.state=kn(r)),s!==void 0){if(i.state)throw new uo;i.stateDiff=kn(s)}return i}function n0(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!ee(n,{strict:!1}))throw new ge({address:n});if(t[n])throw new fo({address:n});t[n]=fa(r)}return t}async function D1(e,t){var k,$,Z,R,V,W;const{account:n=e.account,authorizationList:r,batch:s=!!((k=e.batch)!=null&&k.multicall),blockHash:o,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",requireCanonical:c,accessList:f,blobs:u,blockOverrides:d,code:l,data:b,factory:h,factoryData:g,gas:E,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:y,maxPriorityFeePerGas:I,nonce:C,requestOptions:M,to:P,value:x,stateOverride:A,...U}=t,F=n?te(n):void 0;if(l&&(h||g))throw new p("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(l&&P)throw new p("Cannot provide both `code` & `to` as parameters.");const S=l&&b,B=h&&g&&P&&b,O=S||B,m=(()=>S?s0({code:l,data:b}):B?pa({data:b,factory:h,factoryData:g,to:P}):b)();try{Le(t);const ne=Jt({blockHash:o,blockNumber:i,blockTag:a,requireCanonical:c}),j=d?oa(d):void 0,ce=n0(A),_e=(R=(Z=($=e.chain)==null?void 0:$.formatters)==null?void 0:Z.transactionRequest)==null?void 0:R.format,ft=(_e||Ue)({...at(U,{format:_e}),accessList:f,account:F,authorizationList:r,blobs:u,data:m,gas:E,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:y,maxPriorityFeePerGas:I,nonce:C,to:O?void 0:P,value:x},"call");if(s&&ua({request:ft})&&!j&&o===void 0)try{const{deployless:q=!1}=typeof((V=e.batch)==null?void 0:V.multicall)=="object"?e.batch.multicall:{},ut=r0(e,{blockNumber:i,deployless:q});if(!ut||!ha(ce,ut))return await ba(e,{...ft,blockHash:o,blockNumber:i,blockTag:a,multicallAddress:ut,requestOptions:M,requireCanonical:c,rpcStateOverride:ce})}catch(q){if(!(q instanceof ir)&&!(q instanceof At))throw q}const d0=(()=>{const q=[ft,ne];return ce&&j?[...q,ce,j]:ce?[...q,ce]:j?[...q,{},j]:q})(),en=await e.request({method:"eth_call",params:d0},M);return en==="0x"?{data:void 0}:{data:en}}catch(ne){if((W=M==null?void 0:M.signal)!=null&&W.aborted)throw w0(M.signal);if(P0(ne))throw ne;const j=ya(ne),{offchainLookup:ce,offchainLookupSignature:_e}=await jn(()=>import("./ccip-040f274b.js"),["assets/ccip-040f274b.js","assets/createBatchScheduler-7c9ada66.js","assets/localBatchGatewayRequest-b2e2be89.js","assets/index-355751ab.js","assets/index-e7f3149f.css"]);if(e.ccipRead!==!1&&(j==null?void 0:j.slice(0,10))===_e&&P)return{data:await ce(e,{data:j,requestOptions:M,to:P})};throw O&&(j==null?void 0:j.slice(0,10))==="0x101bb98d"?new mo({factory:h}):go(ne,{...t,account:F,chain:e.chain})}}function ua({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(aa)||!n||Object.values(r).filter(s=>typeof s<"u").length>0)}let da=0;const Un=new WeakMap;function la(e){if(!e)return"default";const t=Un.get(e);if(t!==void 0)return t;const n=da++;return Un.set(e,n),n}async function ba(e,t){var C;const{batchSize:n=1024,deployless:r=!1,wait:s=0}=typeof((C=e.batch)==null?void 0:C.multicall)=="object"?e.batch.multicall:{},{blockHash:o,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",requireCanonical:c,data:f,multicallAddress:u,requestOptions:d,rpcStateOverride:l,to:b}=t,h=u!==void 0?u:r0(e,{blockNumber:i,deployless:r}),g=Jt({blockHash:o,blockNumber:i,blockTag:a,requireCanonical:c}),E=typeof g=="string"?g:JSON.stringify(g),w=l?`.${JSON.stringify(l)}`:"",{schedule:v}=E0({id:`${e.uid}.${E}.${la(d)}${w}`,wait:s,shouldSplitBatch(M){return M.reduce((x,{data:A})=>x+(A.length-2),0)>n*2},fn:async M=>{const P=M.map(F=>({allowFailure:!0,callData:F.data,target:F.to})),x=Qr({abi:dn,args:[P],functionName:"aggregate3"}),A={...h===null?{data:s0({code:Qo,data:x})}:{to:h,data:x}},U=await e.request({method:"eth_call",params:l?[A,g,l]:[A,g]},d);return ca({abi:dn,args:[P],functionName:"aggregate3",data:U||"0x"})}}),[{returnData:y,success:I}]=await v({data:f,to:b});if(!I)throw new Or({data:y});return y==="0x"?{data:void 0}:{data:y}}function r0(e,t){const{blockNumber:n,deployless:r}=t;if(r)return null;if(e.chain)return Os({blockNumber:n,chain:e.chain,contract:"multicall3"});throw new ir}function ha(e,t){return e?Object.keys(e).some(n=>e0(n,t)):!1}function s0(e){const{code:t,data:n}=e;return Xr({abi:Fr(["constructor(bytes, bytes)"]),bytecode:Jo,args:[t,n]})}function pa(e){const{data:t,factory:n,factoryData:r,to:s}=e;return Xr({abi:Fr(["constructor(address, bytes, address, bytes)"]),bytecode:Xo,args:[s,t,n,r]})}function ya(e){var n;if(!(e instanceof p))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}const ma=3;function ga(e,{abi:t,address:n,args:r,docsPath:s,functionName:o,sender:i}){const a=e instanceof Or?e:e instanceof p?e.walk(h=>"data"in h)||e.walk():{},{code:c,data:f,details:u,message:d,shortMessage:l}=a,b=(()=>e instanceof jt?new yo({functionName:o,cause:e}):[ma,$0.code].includes(c)&&(f||u||d||l)||c===A0.code&&u==="execution reverted"&&f?new po({abi:t,data:typeof f=="object"?f.data:f,functionName:o,message:a instanceof v0?u:l??d,cause:e}):e)();return new ho(b,{abi:t,args:r,contractAddress:n,docsPath:s,functionName:o,sender:i})}const On="/docs/contract/decodeEventLog";function Gn(e){const{abi:t,data:n,strict:r,topics:s}=e,o=r??!0,[i,...a]=s;if(!i)throw new Vs({docsPath:On});const c=t.find(w=>w.type==="event"&&i===Vt(be(w)));if(!(c&&"name"in c)||c.type!=="event")throw new Ws(i,{docsPath:On});const{name:f,inputs:u}=c,d=u==null?void 0:u.some(w=>!("name"in w&&w.name)),l=d?[]:{},b=u.map((w,v)=>[w,v]).filter(([w])=>"indexed"in w&&w.indexed),h=[];for(let w=0;w<b.length;w++){const[v,y]=b[w],I=a[w];if(!I){if(o)throw new qs({abiItem:c,param:v});h.push([v,y]);continue}l[d?y:v.name||y]=xa({param:v,value:I})}const g=u.filter(w=>!("indexed"in w&&w.indexed)),E=o?g:[...h.map(([w])=>w),...g];if(E.length>0){if(n&&n!=="0x")try{const w=ot(E,n);if(w){let v=0;if(!o)for(const[y,I]of h)l[d?I:y.name||I]=w[v++];if(d)for(let y=0;y<u.length;y++)l[y]===void 0&&v<w.length&&(l[y]=w[v++]);else for(let y=0;y<g.length;y++)l[g[y].name]=w[v++]}}catch(w){if(o)throw w instanceof hr||w instanceof Vn?new $n({abiItem:c,data:n,params:E,size:G(n)}):w}else if(o)throw new $n({abiItem:c,data:"0x",params:E,size:0})}return{eventName:f,args:Object.values(l).length>0?l:void 0}}function xa({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(ot([e],t)||[])[0]}function V1(e){const{abi:t,args:n,logs:r,strict:s=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),i=t.filter(a=>a.type==="event").map(a=>({abi:a,selector:Vt(a)}));return r.map(a=>{var l;const c=typeof a.blockNumber=="string"?Dn(a):a,f=i.filter(b=>c.topics[0]===b.selector);if(f.length===0)return null;let u,d;for(const b of f)try{u=Gn({...c,abi:[b.abi],strict:!0}),d=b;break}catch{}if(!u&&!s){d=f[0];try{u=Gn({data:c.data,topics:c.topics,abi:[d.abi],strict:!1})}catch{const b=(l=d.abi.inputs)==null?void 0:l.some(h=>!("name"in h&&h.name));return{...c,args:b?[]:{},eventName:d.abi.name}}}return!u||!d||o&&!o.includes(u.eventName)||!wa({args:u.args,inputs:d.abi.inputs,matchArgs:n})?null:{...u,...c}}).filter(Boolean)}function wa(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function s(o,i,a){try{return o.type==="address"?e0(i,a):o.type==="string"||o.type==="bytes"?Ge(Je(i))===a:i===a}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((o,i)=>{if(o==null)return!0;const a=n[i];return a?(Array.isArray(o)?o:[o]).some(f=>s(a,f,t[i])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([o,i])=>{if(i==null)return!0;const a=n.find(f=>f.name===o);return a?(Array.isArray(i)?i:[i]).some(f=>s(a,f,t[o])):!1}):!1}function i0(e,{docsPath:t,...n}){const r=(()=>{const s=Kt(e,n);return s instanceof et?e:s})();return new L0(r,{docsPath:t,...n})}async function Xt(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return pe(t)}class o0 extends p{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Qt extends p{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Pa extends p{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${J(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Ea extends p{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}async function ke(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:s}={}){var f,u,d;const o=s??!1,i=n!==void 0?z(n):void 0;let a=null;if(t?a=await e.request({method:"eth_getBlockByHash",params:[t,o]},{dedupe:!0}):a=await e.request({method:"eth_getBlockByNumber",params:[i||r,o]},{dedupe:!!i}),!a)throw new Ea({blockHash:t,blockNumber:n});return(((d=(u=(f=e.chain)==null?void 0:f.formatters)==null?void 0:u.block)==null?void 0:d.format)||Rn)(a,"getBlock")}async function a0(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function W1(e,t){return c0(e,t)}async function c0(e,t){var o,i;const{block:n,chain:r=e.chain,request:s}=t||{};try{const a=((o=r==null?void 0:r.fees)==null?void 0:o.maxPriorityFeePerGas)??((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee);if(typeof a=="function"){const f=n||await N(e,ke,"getBlock")({}),u=await a({block:f,client:e,request:s});if(u===null)throw new Error;return u}if(typeof a<"u")return a;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return We(c)}catch{const[a,c]=await Promise.all([n?Promise.resolve(n):N(e,ke,"getBlock")({}),N(e,a0,"getGasPrice")({})]);if(typeof a.baseFeePerGas!="bigint")throw new Qt;const f=c-a.baseFeePerGas;return f<0n?0n:f}}async function K1(e,t){return Ct(e,t)}async function Ct(e,t){var l,b;const{block:n,chain:r=e.chain,request:s,type:o="eip1559"}=t||{},i=await(async()=>{var h,g;return typeof((h=r==null?void 0:r.fees)==null?void 0:h.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:s}):((g=r==null?void 0:r.fees)==null?void 0:g.baseFeeMultiplier)??1.2})();if(i<1)throw new o0;const c=10**(((l=i.toString().split(".")[1])==null?void 0:l.length)??0),f=h=>h*BigInt(Math.round(i*c))/BigInt(c),u=n||await N(e,ke,"getBlock")({});if(typeof((b=r==null?void 0:r.fees)==null?void 0:b.estimateFeesPerGas)=="function"){const h=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:s,type:o});if(h!==null)return h}if(o==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new Qt;const h=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await c0(e,{block:u,chain:r,request:s}),g=f(u.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??g+h,maxPriorityFeePerGas:h}}return{gasPrice:(s==null?void 0:s.gasPrice)??f(await N(e,a0,"getGasPrice")({}))}}class $a extends p{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:f,nonce:u,to:d,value:l}){var h;const b=Oe({from:n==null?void 0:n.address,to:d,value:typeof l<"u"&&`${Gt(l)} ${((h=s==null?void 0:s.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${J(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${J(c)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${J(f)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",b].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function Aa(e,{docsPath:t,...n}){const r=(()=>{const s=Kt(e,n);return s instanceof et?e:s})();return new $a(r,{docsPath:t,...n})}async function va(e,t){var i,a,c;const{account:n=e.account,prepare:r=!0}=t,s=n?te(n):void 0,o=(()=>{if(Array.isArray(r))return r;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const f=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await t0({authorization:t.authorizationList[0]}).catch(()=>{throw new p("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:u,authorizationList:d,blobs:l,blobVersionedHashes:b,blockNumber:h,blockTag:g,data:E,gas:w,gasPrice:v,maxFeePerBlobGas:y,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,value:P,stateOverride:x,...A}=r?await u0(e,{...t,parameters:o,to:f}):t;if(w&&t.gas!==w)return w;const F=(typeof h=="bigint"?z(h):void 0)||g,S=n0(x);Le(t);const B=(c=(a=(i=e.chain)==null?void 0:i.formatters)==null?void 0:a.transactionRequest)==null?void 0:c.format,m=(B||Ue)({...at(A,{format:B}),account:s,accessList:u,authorizationList:d,blobs:l,blobVersionedHashes:b,data:E,gasPrice:v,maxFeePerBlobGas:y,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,to:f,value:P},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:S?[m,F??e.experimental_blockTag??"latest",S]:F?[m,F]:[m]}))}catch(f){throw Aa(f,{...t,account:s,chain:e.chain})}}async function Ia(e,{address:t,blockHash:n,blockNumber:r,blockTag:s="latest",requireCanonical:o}){const i=Jt({blockHash:n,blockNumber:r,blockTag:s,requireCanonical:o}),a=await e.request({method:"eth_getTransactionCount",params:[t,i]},{dedupe:typeof r=="bigint"||n!==void 0});return pe(a)}async function Ba(e,t){var x,A,U,F,S;const{account:n=e.account,accessList:r,authorizationList:s,chain:o=e.chain,blobVersionedHashes:i,blobs:a,data:c,gas:f,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:l,maxPriorityFeePerGas:b,nonce:h,nonceManager:g,to:E,type:w,value:v,...y}=t,I=await(async()=>{if(!n||!g||typeof h<"u")return h;const B=te(n),O=o?o.id:await N(e,Xt,"getChainId")({});return await g.consume({address:B.address,chainId:O,client:e})})();Le(t);const C=(A=(x=o==null?void 0:o.formatters)==null?void 0:x.transactionRequest)==null?void 0:A.format,P=(C||Ue)({...at(y,{format:C}),account:n?te(n):void 0,accessList:r,authorizationList:s,blobs:a,blobVersionedHashes:i,data:c,gas:f,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:l,maxPriorityFeePerGas:b,nonce:I,to:E,type:w,value:v},"fillTransaction");try{const B=await e.request({method:"eth_fillTransaction",params:[P]}),m=(((F=(U=o==null?void 0:o.formatters)==null?void 0:U.transaction)==null?void 0:F.format)||kt)(B.tx);delete m.blockHash,delete m.blockNumber,delete m.r,delete m.s,delete m.transactionIndex,delete m.v,delete m.yParity,m.data=m.input;const k=typeof m.feePayerSignature<"u"&&m.feePayerSignature!==null;if(k&&typeof I<"u"&&m.nonce!==I)throw new Zn({filledNonce:m.nonce,requestedNonce:I});if(!k){m.gas&&(m.gas=t.gas??m.gas),m.gasPrice&&(m.gasPrice=t.gasPrice??m.gasPrice),m.maxFeePerBlobGas&&(m.maxFeePerBlobGas=t.maxFeePerBlobGas??m.maxFeePerBlobGas),m.maxFeePerGas&&(m.maxFeePerGas=t.maxFeePerGas??m.maxFeePerGas),m.maxPriorityFeePerGas&&(m.maxPriorityFeePerGas=t.maxPriorityFeePerGas??m.maxPriorityFeePerGas),typeof m.nonce<"u"&&(m.nonce=t.nonce??m.nonce);const $=await(async()=>{var W,ne;if(typeof((W=o==null?void 0:o.fees)==null?void 0:W.baseFeeMultiplier)=="function"){const j=await N(e,ke,"getBlock")({});return o.fees.baseFeeMultiplier({block:j,client:e,request:t})}return((ne=o==null?void 0:o.fees)==null?void 0:ne.baseFeeMultiplier)??1.2})();if($<1)throw new o0;const R=10**(((S=$.toString().split(".")[1])==null?void 0:S.length)??0),V=W=>W*BigInt(Math.round($*R))/BigInt(R);m.maxFeePerGas&&!t.maxFeePerGas&&(m.maxFeePerGas=V(m.maxFeePerGas)),m.gasPrice&&!t.gasPrice&&(m.gasPrice=V(m.gasPrice))}return{raw:B.raw,transaction:{from:P.from,...m},...B.capabilities?{capabilities:B.capabilities}:{}}}catch(B){throw i0(B,{...t,chain:e.chain})}}const f0=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Ln=new Map,wt=new Xe(128);async function u0(e,t){var I,C,M;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=f0);const{account:r,chain:s=e.chain,nonceManager:o,parameters:i}=n,a=(()=>{if(typeof(s==null?void 0:s.prepareTransactionRequest)=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s==null?void 0:s.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let c;async function f(){return c||(typeof n.chainId<"u"?n.chainId:s?s.id:(c=await N(e,Xt,"getChainId")({}),c))}let u=r&&te(r),d=n.nonce;if(a!=null&&a.fn&&((I=a.runAt)!=null&&I.includes("beforeFillTransaction"))){n=await a.fn({...n,chain:s},{client:e,phase:"beforeFillTransaction"}),d??(d=n.nonce);const P=n.account??n.from;u=P?te(P):void 0}if(i.includes("nonce")&&typeof d>"u"&&u&&o){const P=await f();d=await o.consume({address:u.address,chainId:P,client:e})}const b=(()=>(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&n.kzg&&n.blobs?!1:i.length>0&&"feePayer"in n&&n.feePayer&&!("feePayerSignature"in n&&n.feePayerSignature)?!0:wt.get(e.uid)===!1||!["fees","gas"].some(x=>i.includes(x))?!1:!!(i.includes("chainId")&&typeof n.chainId!="number"||i.includes("nonce")&&typeof d!="number"||i.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||i.includes("gas")&&typeof n.gas!="bigint"))()?await N(e,Ba,"fillTransaction")({...n,nonce:d}).then(P=>{const{chainId:x,from:A,gas:U,gasPrice:F,nonce:S,maxFeePerBlobGas:B,maxFeePerGas:O,maxPriorityFeePerGas:m,type:k,...$}=P.transaction,Z="feeToken"in $?$.feeToken:void 0,R="feePayerSignature"in $&&$.feePayerSignature!==null&&typeof $.feePayerSignature<"u",V=typeof Z<"u"&&Z!==null&&(!("feeToken"in n)||R);return wt.set(e.uid,!0),{...n,...A?{from:A}:{},...k&&!n.type?{type:k}:{},...typeof x<"u"?{chainId:x}:{},...typeof U<"u"?{gas:U}:{},...typeof F<"u"?{gasPrice:F}:{},...typeof S<"u"?{nonce:S}:{},...typeof B<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:B}:{},...typeof O<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:O}:{},...typeof m<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:m}:{},..."nonceKey"in $&&typeof $.nonceKey<"u"?{nonceKey:$.nonceKey}:{},..."keyAuthorization"in $&&typeof $.keyAuthorization<"u"&&$.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:$.keyAuthorization}:{},..."feePayerSignature"in $&&typeof $.feePayerSignature<"u"&&$.feePayerSignature!==null?{feePayerSignature:$.feePayerSignature}:{},...V?{feeToken:Z}:{},...P.capabilities?{_capabilities:P.capabilities}:{}}}).catch(P=>{var S,B,O;const x=P;if(x.name!=="TransactionExecutionError")return n;if(((S=x.walk)==null?void 0:S.call(x,m=>m instanceof Zn))||((B=x.walk)==null?void 0:B.call(x,m=>m.name==="ExecutionRevertedError")))throw P;return((O=x.walk)==null?void 0:O.call(x,m=>{var $;const k=m;return k.name==="MethodNotFoundRpcError"||k.name==="MethodNotSupportedRpcError"||(($=k.message)==null?void 0:$.includes("eth_fillTransaction is not available"))}))&&wt.set(e.uid,!1),n}):n;d??(d=b.nonce),n={...b,...u?{from:u==null?void 0:u.address}:{},...typeof d<"u"?{nonce:d}:{}};const{blobs:h,gas:g,kzg:E,type:w}=n;a!=null&&a.fn&&((C=a.runAt)!=null&&C.includes("beforeFillParameters"))&&(n=await a.fn({...n,chain:s},{client:e,phase:"beforeFillParameters"}));let v;async function y(){return v||(v=await N(e,ke,"getBlock")({blockTag:"latest"}),v)}if(i.includes("nonce")&&typeof d>"u"&&u&&!o&&(n.nonce=await N(e,Ia,"getTransactionCount")({address:u.address,blockTag:"pending"})),(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&h&&E){const P=qn({blobs:h,kzg:E});if(i.includes("blobVersionedHashes")){const x=hs({commitments:P,to:"hex"});n.blobVersionedHashes=x}if(i.includes("sidecars")){const x=Yn({blobs:h,commitments:P,kzg:E}),A=xs({blobs:h,commitments:P,proofs:x,to:"hex"});n.sidecars=A}}if(i.includes("chainId")&&(n.chainId=await f()),(i.includes("fees")||i.includes("type"))&&typeof w>"u")try{n.type=ks(n)}catch{let P=Ln.get(e.uid);if(typeof P>"u"){const x=await y();P=typeof(x==null?void 0:x.baseFeePerGas)=="bigint",Ln.set(e.uid,P)}n.type=P?"eip1559":"legacy"}if(i.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const P=await y(),{maxFeePerGas:x,maxPriorityFeePerGas:A}=await Ct(e,{block:P,chain:s,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<A)throw new Pa({maxPriorityFeePerGas:A});n.maxPriorityFeePerGas=A,n.maxFeePerGas=x}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new Qt;if(typeof n.gasPrice>"u"){const P=await y(),{gasPrice:x}=await Ct(e,{block:P,chain:s,request:n,type:"legacy"});n.gasPrice=x}}return i.includes("gas")&&typeof g>"u"&&(n.gas=await N(e,va,"estimateGas")({...n,account:u,prepare:(u==null?void 0:u.type)==="local"?[]:["blobVersionedHashes"]})),a!=null&&a.fn&&((M=a.runAt)!=null&&M.includes("afterFillParameters"))&&(n=await a.fn({...n,chain:s},{client:e,phase:"afterFillParameters"})),Le(n),delete n.parameters,n}async function Fa(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Pt=new Xe(128);async function Sa(e,t){var C,M,P,x,A,U;const{account:n=e.account,assertChainId:r=!0,chain:s=e.chain,accessList:o,authorizationList:i,blobs:a,data:c,dataSuffix:f=typeof e.dataSuffix=="string"?e.dataSuffix:(C=e.dataSuffix)==null?void 0:C.value,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,type:E,value:w,...v}=t;if(typeof n>"u")throw new br({docsPath:"/docs/actions/wallet/sendTransaction"});const y=n?te(n):null;let I;try{Le(t);const F=await(async()=>{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await t0({authorization:i[0]}).catch(()=>{throw new p("`to` is required. Could not infer from `authorizationList`.")})})();if((y==null?void 0:y.type)==="json-rpc"||y===null){let S;s!==null&&(S=await N(e,Xt,"getChainId")({}),r&&Us({currentChainId:S,chain:s}));const B=(x=(P=(M=e.chain)==null?void 0:M.formatters)==null?void 0:P.transactionRequest)==null?void 0:x.format,m=(B||Ue)({...at(v,{format:B}),accessList:o,account:y,authorizationList:i,blobs:a,chainId:S,data:f?ln([c??"0x",f]):c,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,to:F,type:E,value:w},"sendTransaction"),k=Pt.get(e.uid),$=k?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:$,params:[m]},{retryCount:0})}catch(Z){if(k===!1)throw Z;const R=Z;if(R.name==="InvalidInputRpcError"||R.name==="InvalidParamsRpcError"||R.name==="MethodNotFoundRpcError"||R.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[m]},{retryCount:0}).then(V=>(Pt.set(e.uid,!0),V)).catch(V=>{const W=V;throw W.name==="MethodNotFoundRpcError"||W.name==="MethodNotSupportedRpcError"?(Pt.set(e.uid,!1),R):W});throw R}}if((y==null?void 0:y.type)==="local"){const S=(()=>{if(!y.nonceManager||typeof g<"u")return y.nonceManager;const k=y.nonceManager;return{consume($){return I={address:$.address,chainId:$.chainId},k.consume($)},get($){return k.get($)},increment($){return k.increment($)},reset($){return k.reset($)}}})(),B=await N(e,u0,"prepareTransactionRequest")({account:y,accessList:o,authorizationList:i,blobs:a,chain:s,data:f?ln([c??"0x",f]):c,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,nonceManager:S,parameters:[...f0,"sidecars"],type:E,value:w,...v,to:F}),O=(A=s==null?void 0:s.serializers)==null?void 0:A.transaction,m=await y.signTransaction(B,{serializer:O});return await N(e,Fa,"sendRawTransaction")({serializedTransaction:m})}throw(y==null?void 0:y.type)==="smart"?new ht({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ht({docsPath:"/docs/actions/wallet/sendTransaction",type:y==null?void 0:y.type})}catch(F){throw F instanceof ht?F:(I&&((U=y==null?void 0:y.nonceManager)==null||U.reset(I)),i0(F,{...t,account:y,chain:t.chain||void 0}))}}async function Mt(e,t){return Mt.internal(e,Sa,"sendTransaction",t)}(function(e){async function t(n,r,s,o){const{abi:i,account:a=n.account,address:c,args:f,functionName:u,...d}=o;if(typeof a>"u")throw new br({docsPath:"/docs/contract/writeContract"});const l=a?te(a):null,b=Qr({abi:i,args:f,functionName:u});try{return await N(n,r,s)({data:b,to:c,account:l,...d})}catch(h){throw ga(h,{abi:i,address:c,args:f,docsPath:"/docs/contract/writeContract",functionName:u,sender:l==null?void 0:l.address})}}e.internal=t})(Mt||(Mt={}));export{us as $,Jf as A,Xf as B,y1 as C,d1 as D,wo as E,u1 as F,f1 as G,Xn as H,Xs as I,Ke as J,g1 as K,Yt as L,b1 as M,Po as N,p1 as O,a1 as P,$o as Q,h1 as R,l1 as S,Nr as T,m1 as U,qt as V,c1 as W,_r as X,x1 as Y,_f as Z,Nf as _,ln as a,U1 as a$,Wf as a0,te as a1,Dn as a2,V1 as a3,Mf as a4,kt as a5,kf as a6,F0 as a7,N as a8,Of as a9,r1 as aA,e1 as aB,zs as aC,P1 as aD,Be as aE,ds as aF,j1 as aG,Fe as aH,T as aI,H1 as aJ,Vr as aK,S1 as aL,L1 as aM,M1 as aN,oe as aO,k1 as aP,Dr as aQ,E1 as aR,_1 as aS,A1 as aT,B1 as aU,I1 as aV,v1 as aW,F1 as aX,No as aY,Zr as aZ,qr as a_,ke as aa,Ea as ab,Jt as ac,Qr as ad,ca as ae,br as af,Vf as ag,z0 as ah,ms as ai,Rf as aj,ps as ak,Df as al,Cf as am,ks as an,Ot as ao,qn as ap,hs as aq,Yn as ar,xs as as,Ff as at,Ti as au,Hi as av,$r as aw,t1 as ax,K as ay,xe as az,ot as b,En as b$,Zo as b0,O1 as b1,Ie as b2,Ce as b3,ri as b4,Ko as b5,t0 as b6,ga as b7,ra as b8,Qo as b9,at as bA,go as bB,jt as bC,Or as bD,oa as bE,n0 as bF,Rn as bG,Kt as bH,Jo as bI,Xt as bJ,K1 as bK,a0 as bL,W1 as bM,Ba as bN,Fa as bO,n1 as bP,nt as bQ,Qn as bR,Lf as bS,Us as bT,f0 as bU,ht as bV,Ut as bW,Tf as bX,zf as bY,Sf as bZ,js as b_,Xr as ba,bo as bb,ho as bc,R1 as bd,va as be,u0 as bf,Sa as bg,Mt as bh,rt as bi,Yf as bj,Vt as bk,Gn as bl,$n as bm,qs as bn,Uf as bo,Ds as bp,i1 as bq,Qf as br,Ia as bs,i0 as bt,B0 as bu,Ms as bv,po as bw,Os as bx,Le as by,Ue as bz,D1 as c,sc as c$,bs as c0,Kf as c1,hr as c2,Hs as c3,Rs as c4,pr as c5,Vs as c6,Ws as c7,fo as c8,o0 as c9,vi as cA,gi as cB,Tr as cC,zr as cD,X as cE,vf as cF,Cr as cG,C0 as cH,ka as cI,Ma as cJ,Ua as cK,Oa as cL,Xo as cM,Gt as cN,s1 as cO,Vi as cP,If as cQ,qa as cR,Ya as cS,Ja as cT,Xa as cU,Qa as cV,ec as cW,tc as cX,La as cY,nc as cZ,rc as c_,At as ca,ws as cb,Ps as cc,Bi as cd,ir as ce,yo as cf,mo as cg,Qt as ch,$a as ci,Bf as cj,Zn as ck,Js as cl,Ys as cm,Ai as cn,Qs as co,$i as cp,Ei as cq,wi as cr,Fi as cs,G0 as ct,Se as cu,Ii as cv,Pa as cw,Pi as cx,uo as cy,L0 as cz,co as d,Oc as d$,ic as d0,oc as d1,ac as d2,cc as d3,fc as d4,uc as d5,dc as d6,_a as d7,lc as d8,bc as d9,xf as dA,wf as dB,Pf as dC,Ef as dD,qc as dE,$f as dF,Af as dG,Yc as dH,Jc as dI,Xc as dJ,Qc as dK,ef as dL,tf as dM,Kc as dN,nf as dO,rf as dP,sf as dQ,Bc as dR,Fc as dS,Sc as dT,Tc as dU,zc as dV,Cc as dW,Mc as dX,yc as dY,kc as dZ,Uc as d_,hc as da,Na as db,ja as dc,Ha as dd,Ra as de,Da as df,Va as dg,Ga as dh,Wa as di,Ka as dj,Za as dk,of as dl,af as dm,cf as dn,ff as dp,uf as dq,df as dr,lf as ds,Zc as dt,bf as du,hf as dv,pf as dw,yf as dx,mf as dy,gf as dz,Mr as e,Gc as e0,Lc as e1,_c as e2,Nc as e3,jc as e4,Hc as e5,Rc as e6,mc as e7,Dc as e8,Vc as e9,N1 as eA,Wo as eB,G1 as eC,Wc as ea,gc as eb,xc as ec,wc as ed,Pc as ee,Ec as ef,$c as eg,pc as eh,Ac as ei,vc as ej,Ic as ek,Fr as el,ea as em,na as en,S0 as eo,ls as ep,lr as eq,gs as er,Sr as es,Hn as et,Oe as eu,Hf as ev,jf as ew,$1 as ex,w1 as ey,Yr as ez,be as f,Wt as g,qf as h,e0 as i,Zf as j,Q as k,Ye as l,Ks as m,Ls as n,Ge as o,Wi as p,ee as q,ge as r,qe as s,Ht as t,o1 as u,Gf as v,Lt as w,me as x,Ze as y,ve as z};
|
|
37
|
+
`);super(f,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsOrigin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"showVersion",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=i,this.docsOrigin=o,this.docsPath=s,this.shortMessage=t,this.showVersion=a,this.version=c}walk(t){return jr(this,t)}}Object.defineProperty(T,"defaultStaticOptions",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:"https://oxlib.sh",showVersion:!1,version:`ox@${Io()}`}});T.setStaticOptions(T.defaultStaticOptions);function jr(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?jr(e.cause,t):t?null:e}function Te(e,t){if(Ie(e)>t)throw new Ho({givenSize:Ie(e),maxSize:t})}function Bo(e,t){if(typeof t=="number"&&t>0&&t>Ie(e)-1)throw new Kr({offset:t,position:"start",size:Ie(e)})}function Fo(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Ie(e)!==n-t)throw new Kr({offset:n,position:"end",size:Ie(e)})}const ie={zero:48,nine:57,A:65,F:70,a:97,f:102};function Sn(e){if(e>=ie.zero&&e<=ie.nine)return e-ie.zero;if(e>=ie.A&&e<=ie.F)return e-(ie.A-10);if(e>=ie.a&&e<=ie.f)return e-(ie.a-10)}function So(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;if(e.length>r)throw new Ro({size:e.length,targetSize:r,type:"Bytes"});const s=new Uint8Array(r);for(let o=0;o<r;o++){const i=n==="right";s[i?o:r-o-1]=e[i?o:e.length-o-1]}return s}function Hr(e,t={}){const{dir:n="left"}=t;let r=e,s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r}function ct(e,t){if(Fe(e)>t)throw new qo({givenSize:Fe(e),maxSize:t})}function To(e,t){if(typeof t=="number"&&t>0&&t>Fe(e)-1)throw new Jr({offset:t,position:"start",size:Fe(e)})}function zo(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Fe(e)!==n-t)throw new Jr({offset:n,position:"end",size:Fe(e)})}function Rr(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const s=e.replace("0x","");if(s.length>r*2)throw new Yo({size:Math.ceil(s.length/2),targetSize:r,type:"Hex"});return`0x${s[n==="right"?"padEnd":"padStart"](r*2,"0")}`}function Co(e,t={}){const{dir:n="left"}=t;let r=e.replace("0x",""),s=0;for(let o=0;o<r.length-1&&r[n==="left"?o:r.length-o-1].toString()==="0";o++)s++;return r=n==="left"?r.slice(s):r.slice(0,r.length-s),r==="0"?"0x":n==="right"&&r.length%2===1?`0x${r}0`:`0x${r}`}const Mo="#__bigint";function Dr(e,t,n){return JSON.stringify(e,(r,s)=>typeof t=="function"?t(r,s):typeof s=="bigint"?s.toString()+Mo:s,n)}const ko=new TextDecoder,Uo=new TextEncoder;function Oo(e){if(!(e instanceof Uint8Array)){if(!e)throw new De(e);if(typeof e!="object")throw new De(e);if(!("BYTES_PER_ELEMENT"in e))throw new De(e);if(e.BYTES_PER_ELEMENT!==1||e.constructor.name!=="Uint8Array")throw new De(e)}}function w1(...e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);for(let r=0,s=0;r<e.length;r++){const o=e[r];n.set(o,s),s+=o.length}return n}function P1(e){return e instanceof Uint8Array?e:typeof e=="string"?Vr(e):Go(e)}function Go(e){return e instanceof Uint8Array?e:new Uint8Array(e)}function Vr(e,t={}){const{size:n}=t;let r=e;n&&(ct(e,n),r=qr(e,n));let s=r.slice(2);s.length%2&&(s=`0${s}`);const o=s.length/2,i=new Uint8Array(o);for(let a=0,c=0;a<o;a++){const f=Sn(s.charCodeAt(c++)),u=Sn(s.charCodeAt(c++));if(f===void 0||u===void 0)throw new T(`Invalid byte sequence ("${s[c-2]}${s[c-1]}" in "${s}").`);i[a]=f<<4|u}return i}function E1(e,t={}){const{size:n}=t,r=Uo.encode(e);return typeof n=="number"?(Te(r,n),Lo(r,n)):r}function $1(e,t){return Eo(e,t)}function Lo(e,t){return So(e,{dir:"right",size:t})}function _o(e){return crypto.getRandomValues(new Uint8Array(e))}function Ie(e){return e.length}function A1(e,t,n,r={}){const{strict:s}=r;Bo(e,t);const o=e.slice(t,n);return s&&Fo(o,t,n),o}function v1(e,t={}){const{size:n}=t;typeof n<"u"&&Te(e,n);const r=Be(e,t);return Yr(r,t)}function I1(e,t={}){const{size:n}=t;let r=e;if(typeof n<"u"&&(Te(r,n),r=No(r)),r.length>1||r[0]>1)throw new jo(r);return!!r[0]}function B1(e,t={}){const{size:n}=t;typeof n<"u"&&Te(e,n);const r=Be(e,t);return Ko(r,t)}function F1(e,t={}){const{size:n}=t;let r=e;return typeof n<"u"&&(Te(r,n),r=Wr(r)),ko.decode(r)}function No(e){return Hr(e,{dir:"left"})}function Wr(e){return Hr(e,{dir:"right"})}function S1(e){try{return Oo(e),!0}catch{return!1}}class jo extends T{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class De extends T{constructor(t){super(`Value \`${typeof t=="object"?Dr(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Ho=class extends T{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Kr=class extends T{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Ro=class extends T{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const Do=new TextEncoder,Vo=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Wo(e,t={}){const{strict:n=!1}=t;if(!e)throw new Tn(e);if(typeof e!="string")throw new Tn(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new zn(e);if(!e.startsWith("0x"))throw new zn(e)}function M1(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function k1(e){return e instanceof Uint8Array?Be(e):Array.isArray(e)?Be(new Uint8Array(e)):e}function U1(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(ct(n,t.size),Zr(n,t.size)):n}function Be(e,t={}){let n="";for(let s=0;s<e.length;s++)n+=Vo[e[s]];const r=`0x${n}`;return typeof t.size=="number"?(ct(r,t.size),qr(r,t.size)):r}function oe(e,t={}){const{signed:n,size:r}=t,s=BigInt(e);let o;r?n?o=(1n<<BigInt(r)*8n-1n)-1n:o=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(o=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof o=="bigint"&&n?-o-1n:0;if(o&&s>o||s<i){const f=typeof e=="bigint"?"n":"";throw new Zo({max:o?`${o}${f}`:void 0,min:`${i}${f}`,signed:n,size:r,value:`${e}${f}`})}const c=`0x${(n&&s<0?BigInt.asUintN(r*8,BigInt(s)):s).toString(16)}`;return r?Zr(c,r):c}function O1(e,t={}){return Be(Do.encode(e),t)}function Zr(e,t){return Rr(e,{dir:"left",size:t})}function qr(e,t){return Rr(e,{dir:"right",size:t})}function G1(e){return Be(_o(e))}function L1(e,t,n,r={}){const{strict:s}=r;To(e,t);const o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return s&&zo(o,t,n),o}function Fe(e){return Math.ceil((e.length-2)/2)}function _1(e){return Co(e,{dir:"left"})}function Yr(e,t={}){const{signed:n}=t;t.size&&ct(e,t.size);const r=BigInt(e);if(!n)return r;const s=(e.length-2)/2,o=(1n<<BigInt(s)*8n)-1n,i=o>>1n;return r<=i?r:r-o-1n}function Ko(e,t={}){const{signed:n,size:r}=t;return Number(!n&&!r?e:Yr(e,t))}function N1(e,t={}){const{size:n}=t;let r=Vr(e);return n&&(Te(r,n),r=Wr(r)),new TextDecoder().decode(r)}function j1(e,t={}){const{strict:n=!1}=t;try{return Wo(e,{strict:n}),!0}catch{return!1}}class Zo extends T{constructor({max:t,min:n,signed:r,size:s,value:o}){super(`Number \`${o}\` is not in safe${s?` ${s*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class Tn extends T{constructor(t){super(`Value \`${typeof t=="object"?Dr(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class zn extends T{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class H1 extends T{constructor(t){super(`Hex value \`"${t}"\` is an odd length (${t.length-2} nibbles).`,{metaMessages:["It must be an even length."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidLengthError"})}}class qo extends T{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class Jr extends T{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class Yo extends T{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function Jt(e){const{blockHash:t,blockNumber:n,blockTag:r,requireCanonical:s}=e;if(s!==void 0&&!t)throw new p("`requireCanonical` can only be provided when `blockHash` is set.");return t?s?{blockHash:t,requireCanonical:s}:{blockHash:t}:typeof n=="bigint"?z(n):r??"latest"}const Jo="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Xo="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",R1="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",Qo="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033",gt="/docs/contract/encodeDeployData";function Xr(e){const{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;const s=t.find(i=>"type"in i&&i.type==="constructor");if(!s)throw new js({docsPath:gt});if(!("inputs"in s))throw new En({docsPath:gt});if(!s.inputs||s.inputs.length===0)throw new En({docsPath:gt});const o=Mr(s.inputs,n);return Q([r,o])}const Cn="/docs/contract/encodeFunctionData";function ea(e){const{abi:t,args:n,functionName:r}=e;let s=t[0];if(r){const o=Wt({abi:t,args:n,name:r});if(!o)throw new Ye(r,{docsPath:Cn});s=o}if(s.type!=="function")throw new Ye(void 0,{docsPath:Cn});return{abi:[s],functionName:Ht(be(s))}}function Qr(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var a;return e.abi.length===1&&((a=e.functionName)!=null&&a.startsWith("0x"))?e:ea(e)})(),s=n[0],o=r,i="inputs"in s&&s.inputs?Mr(s.inputs,t??[]):void 0;return Q([o,i??"0x"])}function e0(e,t){if(!ee(e,{strict:!1}))throw new ge({address:e});if(!ee(t,{strict:!1}))throw new ge({address:t});return e.toLowerCase()===t.toLowerCase()}function ta(e){const t=Ge(`0x${e.substring(4)}`).substring(26);return rt(`0x${t}`)}async function na({hash:e,signature:t}){const n=Ae(e)?e:Ve(e),{secp256k1:r}=await jn(()=>import("./secp256k1-44255658.js").then(i=>i.a),[]);return`0x${(()=>{if(typeof t=="object"&&"r"in t&&"s"in t){const{r:f,s:u,v:d,yParity:l}=t,b=Number(l??d),h=Mn(b);return new r.Signature(We(f),We(u)).addRecoveryBit(h)}const i=Ae(t)?t:Ve(t);if(G(i)!==65)throw new Error("invalid signature length");const a=pe(`0x${i.slice(130)}`),c=Mn(a);return r.Signature.fromCompact(i.substring(2,130)).addRecoveryBit(c)})().recoverPublicKey(n.substring(2)).toHex(!1)}`}function Mn(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function ra({hash:e,signature:t}){return ta(await na({hash:e,signature:t}))}function sa(e){const{chainId:t,nonce:n,to:r}=e,s=e.contractAddress??e.address,o=Ge(Q(["0x05",Ot([t?z(t):"0x",s,n?z(n):"0x"])]));return r==="bytes"?ye(o):o}async function t0(e){const{authorization:t,signature:n}=e;return ra({hash:sa(t),signature:n??t})}function N(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const s=e[n];return typeof s=="function"?s:o=>t(e,o)}function ia(e){return{address:e.address,amount:oe(e.amount),index:oe(e.index),validatorIndex:oe(e.validatorIndex)}}function oa(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:oe(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:oe(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:oe(e.gasLimit)},...typeof e.number=="bigint"&&{number:oe(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:oe(e.prevRandao)},...typeof e.time=="bigint"&&{time:oe(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(ia)}}}const aa="0x82ad56cb",xt="/docs/contract/decodeFunctionResult";function ca(e){const{abi:t,args:n,functionName:r,data:s}=e;let o=t[0];if(r){const a=Wt({abi:t,args:n,name:r});if(!a)throw new Ye(r,{docsPath:xt});o=a}if(o.type!=="function")throw new Ye(void 0,{docsPath:xt});if(!o.outputs)throw new Ks(o.name,{docsPath:xt});const i=ot(o.outputs,s);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}function kn(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new un({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new un({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function fa(e){const{balance:t,nonce:n,state:r,stateDiff:s,code:o}=e,i={};if(o!==void 0&&(i.code=o),t!==void 0&&(i.balance=z(t)),n!==void 0&&(i.nonce=z(n)),r!==void 0&&(i.state=kn(r)),s!==void 0){if(i.state)throw new uo;i.stateDiff=kn(s)}return i}function n0(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!ee(n,{strict:!1}))throw new ge({address:n});if(t[n])throw new fo({address:n});t[n]=fa(r)}return t}async function D1(e,t){var k,$,Z,R,V,W;const{account:n=e.account,authorizationList:r,batch:s=!!((k=e.batch)!=null&&k.multicall),blockHash:o,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",requireCanonical:c,accessList:f,blobs:u,blockOverrides:d,code:l,data:b,factory:h,factoryData:g,gas:E,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:y,maxPriorityFeePerGas:I,nonce:C,requestOptions:M,to:P,value:x,stateOverride:A,...U}=t,F=n?te(n):void 0;if(l&&(h||g))throw new p("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(l&&P)throw new p("Cannot provide both `code` & `to` as parameters.");const S=l&&b,B=h&&g&&P&&b,O=S||B,m=(()=>S?s0({code:l,data:b}):B?pa({data:b,factory:h,factoryData:g,to:P}):b)();try{Le(t);const ne=Jt({blockHash:o,blockNumber:i,blockTag:a,requireCanonical:c}),j=d?oa(d):void 0,ce=n0(A),_e=(R=(Z=($=e.chain)==null?void 0:$.formatters)==null?void 0:Z.transactionRequest)==null?void 0:R.format,ft=(_e||Ue)({...at(U,{format:_e}),accessList:f,account:F,authorizationList:r,blobs:u,data:m,gas:E,gasPrice:w,maxFeePerBlobGas:v,maxFeePerGas:y,maxPriorityFeePerGas:I,nonce:C,to:O?void 0:P,value:x},"call");if(s&&ua({request:ft})&&!j&&o===void 0)try{const{deployless:q=!1}=typeof((V=e.batch)==null?void 0:V.multicall)=="object"?e.batch.multicall:{},ut=r0(e,{blockNumber:i,deployless:q});if(!ut||!ha(ce,ut))return await ba(e,{...ft,blockHash:o,blockNumber:i,blockTag:a,multicallAddress:ut,requestOptions:M,requireCanonical:c,rpcStateOverride:ce})}catch(q){if(!(q instanceof ir)&&!(q instanceof At))throw q}const d0=(()=>{const q=[ft,ne];return ce&&j?[...q,ce,j]:ce?[...q,ce]:j?[...q,{},j]:q})(),en=await e.request({method:"eth_call",params:d0},M);return en==="0x"?{data:void 0}:{data:en}}catch(ne){if((W=M==null?void 0:M.signal)!=null&&W.aborted)throw w0(M.signal);if(P0(ne))throw ne;const j=ya(ne),{offchainLookup:ce,offchainLookupSignature:_e}=await jn(()=>import("./ccip-d88eddf3.js"),["assets/ccip-d88eddf3.js","assets/createBatchScheduler-7c9ada66.js","assets/localBatchGatewayRequest-ff5d42f6.js","assets/index-10c73e9d.js","assets/index-59db4a58.css"]);if(e.ccipRead!==!1&&(j==null?void 0:j.slice(0,10))===_e&&P)return{data:await ce(e,{data:j,requestOptions:M,to:P})};throw O&&(j==null?void 0:j.slice(0,10))==="0x101bb98d"?new mo({factory:h}):go(ne,{...t,account:F,chain:e.chain})}}function ua({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(aa)||!n||Object.values(r).filter(s=>typeof s<"u").length>0)}let da=0;const Un=new WeakMap;function la(e){if(!e)return"default";const t=Un.get(e);if(t!==void 0)return t;const n=da++;return Un.set(e,n),n}async function ba(e,t){var C;const{batchSize:n=1024,deployless:r=!1,wait:s=0}=typeof((C=e.batch)==null?void 0:C.multicall)=="object"?e.batch.multicall:{},{blockHash:o,blockNumber:i,blockTag:a=e.experimental_blockTag??"latest",requireCanonical:c,data:f,multicallAddress:u,requestOptions:d,rpcStateOverride:l,to:b}=t,h=u!==void 0?u:r0(e,{blockNumber:i,deployless:r}),g=Jt({blockHash:o,blockNumber:i,blockTag:a,requireCanonical:c}),E=typeof g=="string"?g:JSON.stringify(g),w=l?`.${JSON.stringify(l)}`:"",{schedule:v}=E0({id:`${e.uid}.${E}.${la(d)}${w}`,wait:s,shouldSplitBatch(M){return M.reduce((x,{data:A})=>x+(A.length-2),0)>n*2},fn:async M=>{const P=M.map(F=>({allowFailure:!0,callData:F.data,target:F.to})),x=Qr({abi:dn,args:[P],functionName:"aggregate3"}),A={...h===null?{data:s0({code:Qo,data:x})}:{to:h,data:x}},U=await e.request({method:"eth_call",params:l?[A,g,l]:[A,g]},d);return ca({abi:dn,args:[P],functionName:"aggregate3",data:U||"0x"})}}),[{returnData:y,success:I}]=await v({data:f,to:b});if(!I)throw new Or({data:y});return y==="0x"?{data:void 0}:{data:y}}function r0(e,t){const{blockNumber:n,deployless:r}=t;if(r)return null;if(e.chain)return Os({blockNumber:n,chain:e.chain,contract:"multicall3"});throw new ir}function ha(e,t){return e?Object.keys(e).some(n=>e0(n,t)):!1}function s0(e){const{code:t,data:n}=e;return Xr({abi:Fr(["constructor(bytes, bytes)"]),bytecode:Jo,args:[t,n]})}function pa(e){const{data:t,factory:n,factoryData:r,to:s}=e;return Xr({abi:Fr(["constructor(address, bytes, address, bytes)"]),bytecode:Xo,args:[s,t,n,r]})}function ya(e){var n;if(!(e instanceof p))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}const ma=3;function ga(e,{abi:t,address:n,args:r,docsPath:s,functionName:o,sender:i}){const a=e instanceof Or?e:e instanceof p?e.walk(h=>"data"in h)||e.walk():{},{code:c,data:f,details:u,message:d,shortMessage:l}=a,b=(()=>e instanceof jt?new yo({functionName:o,cause:e}):[ma,$0.code].includes(c)&&(f||u||d||l)||c===A0.code&&u==="execution reverted"&&f?new po({abi:t,data:typeof f=="object"?f.data:f,functionName:o,message:a instanceof v0?u:l??d,cause:e}):e)();return new ho(b,{abi:t,args:r,contractAddress:n,docsPath:s,functionName:o,sender:i})}const On="/docs/contract/decodeEventLog";function Gn(e){const{abi:t,data:n,strict:r,topics:s}=e,o=r??!0,[i,...a]=s;if(!i)throw new Vs({docsPath:On});const c=t.find(w=>w.type==="event"&&i===Vt(be(w)));if(!(c&&"name"in c)||c.type!=="event")throw new Ws(i,{docsPath:On});const{name:f,inputs:u}=c,d=u==null?void 0:u.some(w=>!("name"in w&&w.name)),l=d?[]:{},b=u.map((w,v)=>[w,v]).filter(([w])=>"indexed"in w&&w.indexed),h=[];for(let w=0;w<b.length;w++){const[v,y]=b[w],I=a[w];if(!I){if(o)throw new qs({abiItem:c,param:v});h.push([v,y]);continue}l[d?y:v.name||y]=xa({param:v,value:I})}const g=u.filter(w=>!("indexed"in w&&w.indexed)),E=o?g:[...h.map(([w])=>w),...g];if(E.length>0){if(n&&n!=="0x")try{const w=ot(E,n);if(w){let v=0;if(!o)for(const[y,I]of h)l[d?I:y.name||I]=w[v++];if(d)for(let y=0;y<u.length;y++)l[y]===void 0&&v<w.length&&(l[y]=w[v++]);else for(let y=0;y<g.length;y++)l[g[y].name]=w[v++]}}catch(w){if(o)throw w instanceof hr||w instanceof Vn?new $n({abiItem:c,data:n,params:E,size:G(n)}):w}else if(o)throw new $n({abiItem:c,data:"0x",params:E,size:0})}return{eventName:f,args:Object.values(l).length>0?l:void 0}}function xa({param:e,value:t}){return e.type==="string"||e.type==="bytes"||e.type==="tuple"||e.type.match(/^(.*)\[(\d+)?\]$/)?t:(ot([e],t)||[])[0]}function V1(e){const{abi:t,args:n,logs:r,strict:s=!0}=e,o=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),i=t.filter(a=>a.type==="event").map(a=>({abi:a,selector:Vt(a)}));return r.map(a=>{var l;const c=typeof a.blockNumber=="string"?Dn(a):a,f=i.filter(b=>c.topics[0]===b.selector);if(f.length===0)return null;let u,d;for(const b of f)try{u=Gn({...c,abi:[b.abi],strict:!0}),d=b;break}catch{}if(!u&&!s){d=f[0];try{u=Gn({data:c.data,topics:c.topics,abi:[d.abi],strict:!1})}catch{const b=(l=d.abi.inputs)==null?void 0:l.some(h=>!("name"in h&&h.name));return{...c,args:b?[]:{},eventName:d.abi.name}}}return!u||!d||o&&!o.includes(u.eventName)||!wa({args:u.args,inputs:d.abi.inputs,matchArgs:n})?null:{...u,...c}}).filter(Boolean)}function wa(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function s(o,i,a){try{return o.type==="address"?e0(i,a):o.type==="string"||o.type==="bytes"?Ge(Je(i))===a:i===a}catch{return!1}}return Array.isArray(t)&&Array.isArray(r)?r.every((o,i)=>{if(o==null)return!0;const a=n[i];return a?(Array.isArray(o)?o:[o]).some(f=>s(a,f,t[i])):!1}):typeof t=="object"&&!Array.isArray(t)&&typeof r=="object"&&!Array.isArray(r)?Object.entries(r).every(([o,i])=>{if(i==null)return!0;const a=n.find(f=>f.name===o);return a?(Array.isArray(i)?i:[i]).some(f=>s(a,f,t[o])):!1}):!1}function i0(e,{docsPath:t,...n}){const r=(()=>{const s=Kt(e,n);return s instanceof et?e:s})();return new L0(r,{docsPath:t,...n})}async function Xt(e){const t=await e.request({method:"eth_chainId"},{dedupe:!0});return pe(t)}class o0 extends p{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class Qt extends p{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Pa extends p{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${J(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Ea extends p{constructor({blockHash:t,blockNumber:n}){let r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}async function ke(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??"latest",includeTransactions:s}={}){var f,u,d;const o=s??!1,i=n!==void 0?z(n):void 0;let a=null;if(t?a=await e.request({method:"eth_getBlockByHash",params:[t,o]},{dedupe:!0}):a=await e.request({method:"eth_getBlockByNumber",params:[i||r,o]},{dedupe:!!i}),!a)throw new Ea({blockHash:t,blockNumber:n});return(((d=(u=(f=e.chain)==null?void 0:f.formatters)==null?void 0:u.block)==null?void 0:d.format)||Rn)(a,"getBlock")}async function a0(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function W1(e,t){return c0(e,t)}async function c0(e,t){var o,i;const{block:n,chain:r=e.chain,request:s}=t||{};try{const a=((o=r==null?void 0:r.fees)==null?void 0:o.maxPriorityFeePerGas)??((i=r==null?void 0:r.fees)==null?void 0:i.defaultPriorityFee);if(typeof a=="function"){const f=n||await N(e,ke,"getBlock")({}),u=await a({block:f,client:e,request:s});if(u===null)throw new Error;return u}if(typeof a<"u")return a;const c=await e.request({method:"eth_maxPriorityFeePerGas"});return We(c)}catch{const[a,c]=await Promise.all([n?Promise.resolve(n):N(e,ke,"getBlock")({}),N(e,a0,"getGasPrice")({})]);if(typeof a.baseFeePerGas!="bigint")throw new Qt;const f=c-a.baseFeePerGas;return f<0n?0n:f}}async function K1(e,t){return Ct(e,t)}async function Ct(e,t){var l,b;const{block:n,chain:r=e.chain,request:s,type:o="eip1559"}=t||{},i=await(async()=>{var h,g;return typeof((h=r==null?void 0:r.fees)==null?void 0:h.baseFeeMultiplier)=="function"?r.fees.baseFeeMultiplier({block:n,client:e,request:s}):((g=r==null?void 0:r.fees)==null?void 0:g.baseFeeMultiplier)??1.2})();if(i<1)throw new o0;const c=10**(((l=i.toString().split(".")[1])==null?void 0:l.length)??0),f=h=>h*BigInt(Math.round(i*c))/BigInt(c),u=n||await N(e,ke,"getBlock")({});if(typeof((b=r==null?void 0:r.fees)==null?void 0:b.estimateFeesPerGas)=="function"){const h=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:f,request:s,type:o});if(h!==null)return h}if(o==="eip1559"){if(typeof u.baseFeePerGas!="bigint")throw new Qt;const h=typeof(s==null?void 0:s.maxPriorityFeePerGas)=="bigint"?s.maxPriorityFeePerGas:await c0(e,{block:u,chain:r,request:s}),g=f(u.baseFeePerGas);return{maxFeePerGas:(s==null?void 0:s.maxFeePerGas)??g+h,maxPriorityFeePerGas:h}}return{gasPrice:(s==null?void 0:s.gasPrice)??f(await N(e,a0,"getGasPrice")({}))}}class $a extends p{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:f,nonce:u,to:d,value:l}){var h;const b=Oe({from:n==null?void 0:n.address,to:d,value:typeof l<"u"&&`${Gt(l)} ${((h=s==null?void 0:s.nativeCurrency)==null?void 0:h.symbol)||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${J(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${J(c)} gwei`,maxPriorityFeePerGas:typeof f<"u"&&`${J(f)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",b].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}function Aa(e,{docsPath:t,...n}){const r=(()=>{const s=Kt(e,n);return s instanceof et?e:s})();return new $a(r,{docsPath:t,...n})}async function va(e,t){var i,a,c;const{account:n=e.account,prepare:r=!0}=t,s=n?te(n):void 0,o=(()=>{if(Array.isArray(r))return r;if((s==null?void 0:s.type)!=="local")return["blobVersionedHashes"]})();try{const f=await(async()=>{if(t.to)return t.to;if(t.authorizationList&&t.authorizationList.length>0)return await t0({authorization:t.authorizationList[0]}).catch(()=>{throw new p("`to` is required. Could not infer from `authorizationList`")})})(),{accessList:u,authorizationList:d,blobs:l,blobVersionedHashes:b,blockNumber:h,blockTag:g,data:E,gas:w,gasPrice:v,maxFeePerBlobGas:y,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,value:P,stateOverride:x,...A}=r?await u0(e,{...t,parameters:o,to:f}):t;if(w&&t.gas!==w)return w;const F=(typeof h=="bigint"?z(h):void 0)||g,S=n0(x);Le(t);const B=(c=(a=(i=e.chain)==null?void 0:i.formatters)==null?void 0:a.transactionRequest)==null?void 0:c.format,m=(B||Ue)({...at(A,{format:B}),account:s,accessList:u,authorizationList:d,blobs:l,blobVersionedHashes:b,data:E,gasPrice:v,maxFeePerBlobGas:y,maxFeePerGas:I,maxPriorityFeePerGas:C,nonce:M,to:f,value:P},"estimateGas");return BigInt(await e.request({method:"eth_estimateGas",params:S?[m,F??e.experimental_blockTag??"latest",S]:F?[m,F]:[m]}))}catch(f){throw Aa(f,{...t,account:s,chain:e.chain})}}async function Ia(e,{address:t,blockHash:n,blockNumber:r,blockTag:s="latest",requireCanonical:o}){const i=Jt({blockHash:n,blockNumber:r,blockTag:s,requireCanonical:o}),a=await e.request({method:"eth_getTransactionCount",params:[t,i]},{dedupe:typeof r=="bigint"||n!==void 0});return pe(a)}async function Ba(e,t){var x,A,U,F,S;const{account:n=e.account,accessList:r,authorizationList:s,chain:o=e.chain,blobVersionedHashes:i,blobs:a,data:c,gas:f,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:l,maxPriorityFeePerGas:b,nonce:h,nonceManager:g,to:E,type:w,value:v,...y}=t,I=await(async()=>{if(!n||!g||typeof h<"u")return h;const B=te(n),O=o?o.id:await N(e,Xt,"getChainId")({});return await g.consume({address:B.address,chainId:O,client:e})})();Le(t);const C=(A=(x=o==null?void 0:o.formatters)==null?void 0:x.transactionRequest)==null?void 0:A.format,P=(C||Ue)({...at(y,{format:C}),account:n?te(n):void 0,accessList:r,authorizationList:s,blobs:a,blobVersionedHashes:i,data:c,gas:f,gasPrice:u,maxFeePerBlobGas:d,maxFeePerGas:l,maxPriorityFeePerGas:b,nonce:I,to:E,type:w,value:v},"fillTransaction");try{const B=await e.request({method:"eth_fillTransaction",params:[P]}),m=(((F=(U=o==null?void 0:o.formatters)==null?void 0:U.transaction)==null?void 0:F.format)||kt)(B.tx);delete m.blockHash,delete m.blockNumber,delete m.r,delete m.s,delete m.transactionIndex,delete m.v,delete m.yParity,m.data=m.input;const k=typeof m.feePayerSignature<"u"&&m.feePayerSignature!==null;if(k&&typeof I<"u"&&m.nonce!==I)throw new Zn({filledNonce:m.nonce,requestedNonce:I});if(!k){m.gas&&(m.gas=t.gas??m.gas),m.gasPrice&&(m.gasPrice=t.gasPrice??m.gasPrice),m.maxFeePerBlobGas&&(m.maxFeePerBlobGas=t.maxFeePerBlobGas??m.maxFeePerBlobGas),m.maxFeePerGas&&(m.maxFeePerGas=t.maxFeePerGas??m.maxFeePerGas),m.maxPriorityFeePerGas&&(m.maxPriorityFeePerGas=t.maxPriorityFeePerGas??m.maxPriorityFeePerGas),typeof m.nonce<"u"&&(m.nonce=t.nonce??m.nonce);const $=await(async()=>{var W,ne;if(typeof((W=o==null?void 0:o.fees)==null?void 0:W.baseFeeMultiplier)=="function"){const j=await N(e,ke,"getBlock")({});return o.fees.baseFeeMultiplier({block:j,client:e,request:t})}return((ne=o==null?void 0:o.fees)==null?void 0:ne.baseFeeMultiplier)??1.2})();if($<1)throw new o0;const R=10**(((S=$.toString().split(".")[1])==null?void 0:S.length)??0),V=W=>W*BigInt(Math.round($*R))/BigInt(R);m.maxFeePerGas&&!t.maxFeePerGas&&(m.maxFeePerGas=V(m.maxFeePerGas)),m.gasPrice&&!t.gasPrice&&(m.gasPrice=V(m.gasPrice))}return{raw:B.raw,transaction:{from:P.from,...m},...B.capabilities?{capabilities:B.capabilities}:{}}}catch(B){throw i0(B,{...t,chain:e.chain})}}const f0=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Ln=new Map,wt=new Xe(128);async function u0(e,t){var I,C,M;let n=t;n.account??(n.account=e.account),n.parameters??(n.parameters=f0);const{account:r,chain:s=e.chain,nonceManager:o,parameters:i}=n,a=(()=>{if(typeof(s==null?void 0:s.prepareTransactionRequest)=="function")return{fn:s.prepareTransactionRequest,runAt:["beforeFillTransaction"]};if(Array.isArray(s==null?void 0:s.prepareTransactionRequest))return{fn:s.prepareTransactionRequest[0],runAt:s.prepareTransactionRequest[1].runAt}})();let c;async function f(){return c||(typeof n.chainId<"u"?n.chainId:s?s.id:(c=await N(e,Xt,"getChainId")({}),c))}let u=r&&te(r),d=n.nonce;if(a!=null&&a.fn&&((I=a.runAt)!=null&&I.includes("beforeFillTransaction"))){n=await a.fn({...n,chain:s},{client:e,phase:"beforeFillTransaction"}),d??(d=n.nonce);const P=n.account??n.from;u=P?te(P):void 0}if(i.includes("nonce")&&typeof d>"u"&&u&&o){const P=await f();d=await o.consume({address:u.address,chainId:P,client:e})}const b=(()=>(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&n.kzg&&n.blobs?!1:i.length>0&&"feePayer"in n&&n.feePayer&&!("feePayerSignature"in n&&n.feePayerSignature)?!0:wt.get(e.uid)===!1||!["fees","gas"].some(x=>i.includes(x))?!1:!!(i.includes("chainId")&&typeof n.chainId!="number"||i.includes("nonce")&&typeof d!="number"||i.includes("fees")&&typeof n.gasPrice!="bigint"&&(typeof n.maxFeePerGas!="bigint"||typeof n.maxPriorityFeePerGas!="bigint")||i.includes("gas")&&typeof n.gas!="bigint"))()?await N(e,Ba,"fillTransaction")({...n,nonce:d}).then(P=>{const{chainId:x,from:A,gas:U,gasPrice:F,nonce:S,maxFeePerBlobGas:B,maxFeePerGas:O,maxPriorityFeePerGas:m,type:k,...$}=P.transaction,Z="feeToken"in $?$.feeToken:void 0,R="feePayerSignature"in $&&$.feePayerSignature!==null&&typeof $.feePayerSignature<"u",V=typeof Z<"u"&&Z!==null&&(!("feeToken"in n)||R);return wt.set(e.uid,!0),{...n,...A?{from:A}:{},...k&&!n.type?{type:k}:{},...typeof x<"u"?{chainId:x}:{},...typeof U<"u"?{gas:U}:{},...typeof F<"u"?{gasPrice:F}:{},...typeof S<"u"?{nonce:S}:{},...typeof B<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerBlobGas:B}:{},...typeof O<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxFeePerGas:O}:{},...typeof m<"u"&&n.type!=="legacy"&&n.type!=="eip2930"?{maxPriorityFeePerGas:m}:{},..."nonceKey"in $&&typeof $.nonceKey<"u"?{nonceKey:$.nonceKey}:{},..."keyAuthorization"in $&&typeof $.keyAuthorization<"u"&&$.keyAuthorization!==null&&!("keyAuthorization"in n)?{keyAuthorization:$.keyAuthorization}:{},..."feePayerSignature"in $&&typeof $.feePayerSignature<"u"&&$.feePayerSignature!==null?{feePayerSignature:$.feePayerSignature}:{},...V?{feeToken:Z}:{},...P.capabilities?{_capabilities:P.capabilities}:{}}}).catch(P=>{var S,B,O;const x=P;if(x.name!=="TransactionExecutionError")return n;if(((S=x.walk)==null?void 0:S.call(x,m=>m instanceof Zn))||((B=x.walk)==null?void 0:B.call(x,m=>m.name==="ExecutionRevertedError")))throw P;return((O=x.walk)==null?void 0:O.call(x,m=>{var $;const k=m;return k.name==="MethodNotFoundRpcError"||k.name==="MethodNotSupportedRpcError"||(($=k.message)==null?void 0:$.includes("eth_fillTransaction is not available"))}))&&wt.set(e.uid,!1),n}):n;d??(d=b.nonce),n={...b,...u?{from:u==null?void 0:u.address}:{},...typeof d<"u"?{nonce:d}:{}};const{blobs:h,gas:g,kzg:E,type:w}=n;a!=null&&a.fn&&((C=a.runAt)!=null&&C.includes("beforeFillParameters"))&&(n=await a.fn({...n,chain:s},{client:e,phase:"beforeFillParameters"}));let v;async function y(){return v||(v=await N(e,ke,"getBlock")({blockTag:"latest"}),v)}if(i.includes("nonce")&&typeof d>"u"&&u&&!o&&(n.nonce=await N(e,Ia,"getTransactionCount")({address:u.address,blockTag:"pending"})),(i.includes("blobVersionedHashes")||i.includes("sidecars"))&&h&&E){const P=qn({blobs:h,kzg:E});if(i.includes("blobVersionedHashes")){const x=hs({commitments:P,to:"hex"});n.blobVersionedHashes=x}if(i.includes("sidecars")){const x=Yn({blobs:h,commitments:P,kzg:E}),A=xs({blobs:h,commitments:P,proofs:x,to:"hex"});n.sidecars=A}}if(i.includes("chainId")&&(n.chainId=await f()),(i.includes("fees")||i.includes("type"))&&typeof w>"u")try{n.type=ks(n)}catch{let P=Ln.get(e.uid);if(typeof P>"u"){const x=await y();P=typeof(x==null?void 0:x.baseFeePerGas)=="bigint",Ln.set(e.uid,P)}n.type=P?"eip1559":"legacy"}if(i.includes("fees"))if(n.type!=="legacy"&&n.type!=="eip2930"){if(typeof n.maxFeePerGas>"u"||typeof n.maxPriorityFeePerGas>"u"){const P=await y(),{maxFeePerGas:x,maxPriorityFeePerGas:A}=await Ct(e,{block:P,chain:s,request:n});if(typeof n.maxPriorityFeePerGas>"u"&&n.maxFeePerGas&&n.maxFeePerGas<A)throw new Pa({maxPriorityFeePerGas:A});n.maxPriorityFeePerGas=A,n.maxFeePerGas=x}}else{if(typeof n.maxFeePerGas<"u"||typeof n.maxPriorityFeePerGas<"u")throw new Qt;if(typeof n.gasPrice>"u"){const P=await y(),{gasPrice:x}=await Ct(e,{block:P,chain:s,request:n,type:"legacy"});n.gasPrice=x}}return i.includes("gas")&&typeof g>"u"&&(n.gas=await N(e,va,"estimateGas")({...n,account:u,prepare:(u==null?void 0:u.type)==="local"?[]:["blobVersionedHashes"]})),a!=null&&a.fn&&((M=a.runAt)!=null&&M.includes("afterFillParameters"))&&(n=await a.fn({...n,chain:s},{client:e,phase:"afterFillParameters"})),Le(n),delete n.parameters,n}async function Fa(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}const Pt=new Xe(128);async function Sa(e,t){var C,M,P,x,A,U;const{account:n=e.account,assertChainId:r=!0,chain:s=e.chain,accessList:o,authorizationList:i,blobs:a,data:c,dataSuffix:f=typeof e.dataSuffix=="string"?e.dataSuffix:(C=e.dataSuffix)==null?void 0:C.value,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,type:E,value:w,...v}=t;if(typeof n>"u")throw new br({docsPath:"/docs/actions/wallet/sendTransaction"});const y=n?te(n):null;let I;try{Le(t);const F=await(async()=>{if(t.to)return t.to;if(t.to!==null&&i&&i.length>0)return await t0({authorization:i[0]}).catch(()=>{throw new p("`to` is required. Could not infer from `authorizationList`.")})})();if((y==null?void 0:y.type)==="json-rpc"||y===null){let S;s!==null&&(S=await N(e,Xt,"getChainId")({}),r&&Us({currentChainId:S,chain:s}));const B=(x=(P=(M=e.chain)==null?void 0:M.formatters)==null?void 0:P.transactionRequest)==null?void 0:x.format,m=(B||Ue)({...at(v,{format:B}),accessList:o,account:y,authorizationList:i,blobs:a,chainId:S,data:f?ln([c??"0x",f]):c,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,to:F,type:E,value:w},"sendTransaction"),k=Pt.get(e.uid),$=k?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:$,params:[m]},{retryCount:0})}catch(Z){if(k===!1)throw Z;const R=Z;if(R.name==="InvalidInputRpcError"||R.name==="InvalidParamsRpcError"||R.name==="MethodNotFoundRpcError"||R.name==="MethodNotSupportedRpcError")return await e.request({method:"wallet_sendTransaction",params:[m]},{retryCount:0}).then(V=>(Pt.set(e.uid,!0),V)).catch(V=>{const W=V;throw W.name==="MethodNotFoundRpcError"||W.name==="MethodNotSupportedRpcError"?(Pt.set(e.uid,!1),R):W});throw R}}if((y==null?void 0:y.type)==="local"){const S=(()=>{if(!y.nonceManager||typeof g<"u")return y.nonceManager;const k=y.nonceManager;return{consume($){return I={address:$.address,chainId:$.chainId},k.consume($)},get($){return k.get($)},increment($){return k.increment($)},reset($){return k.reset($)}}})(),B=await N(e,u0,"prepareTransactionRequest")({account:y,accessList:o,authorizationList:i,blobs:a,chain:s,data:f?ln([c??"0x",f]):c,gas:u,gasPrice:d,maxFeePerBlobGas:l,maxFeePerGas:b,maxPriorityFeePerGas:h,nonce:g,nonceManager:S,parameters:[...f0,"sidecars"],type:E,value:w,...v,to:F}),O=(A=s==null?void 0:s.serializers)==null?void 0:A.transaction,m=await y.signTransaction(B,{serializer:O});return await N(e,Fa,"sendRawTransaction")({serializedTransaction:m})}throw(y==null?void 0:y.type)==="smart"?new ht({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new ht({docsPath:"/docs/actions/wallet/sendTransaction",type:y==null?void 0:y.type})}catch(F){throw F instanceof ht?F:(I&&((U=y==null?void 0:y.nonceManager)==null||U.reset(I)),i0(F,{...t,account:y,chain:t.chain||void 0}))}}async function Mt(e,t){return Mt.internal(e,Sa,"sendTransaction",t)}(function(e){async function t(n,r,s,o){const{abi:i,account:a=n.account,address:c,args:f,functionName:u,...d}=o;if(typeof a>"u")throw new br({docsPath:"/docs/contract/writeContract"});const l=a?te(a):null,b=Qr({abi:i,args:f,functionName:u});try{return await N(n,r,s)({data:b,to:c,account:l,...d})}catch(h){throw ga(h,{abi:i,address:c,args:f,docsPath:"/docs/contract/writeContract",functionName:u,sender:l==null?void 0:l.address})}}e.internal=t})(Mt||(Mt={}));export{us as $,Jf as A,Xf as B,y1 as C,d1 as D,wo as E,u1 as F,f1 as G,Xn as H,Xs as I,Ke as J,g1 as K,Yt as L,b1 as M,Po as N,p1 as O,a1 as P,$o as Q,h1 as R,l1 as S,Nr as T,m1 as U,qt as V,c1 as W,_r as X,x1 as Y,_f as Z,Nf as _,ln as a,U1 as a$,Wf as a0,te as a1,Dn as a2,V1 as a3,Mf as a4,kt as a5,kf as a6,F0 as a7,N as a8,Of as a9,r1 as aA,e1 as aB,zs as aC,P1 as aD,Be as aE,ds as aF,j1 as aG,Fe as aH,T as aI,H1 as aJ,Vr as aK,S1 as aL,L1 as aM,M1 as aN,oe as aO,k1 as aP,Dr as aQ,E1 as aR,_1 as aS,A1 as aT,B1 as aU,I1 as aV,v1 as aW,F1 as aX,No as aY,Zr as aZ,qr as a_,ke as aa,Ea as ab,Jt as ac,Qr as ad,ca as ae,br as af,Vf as ag,z0 as ah,ms as ai,Rf as aj,ps as ak,Df as al,Cf as am,ks as an,Ot as ao,qn as ap,hs as aq,Yn as ar,xs as as,Ff as at,Ti as au,Hi as av,$r as aw,t1 as ax,K as ay,xe as az,ot as b,En as b$,Zo as b0,O1 as b1,Ie as b2,Ce as b3,ri as b4,Ko as b5,t0 as b6,ga as b7,ra as b8,Qo as b9,at as bA,go as bB,jt as bC,Or as bD,oa as bE,n0 as bF,Rn as bG,Kt as bH,Jo as bI,Xt as bJ,K1 as bK,a0 as bL,W1 as bM,Ba as bN,Fa as bO,n1 as bP,nt as bQ,Qn as bR,Lf as bS,Us as bT,f0 as bU,ht as bV,Ut as bW,Tf as bX,zf as bY,Sf as bZ,js as b_,Xr as ba,bo as bb,ho as bc,R1 as bd,va as be,u0 as bf,Sa as bg,Mt as bh,rt as bi,Yf as bj,Vt as bk,Gn as bl,$n as bm,qs as bn,Uf as bo,Ds as bp,i1 as bq,Qf as br,Ia as bs,i0 as bt,B0 as bu,Ms as bv,po as bw,Os as bx,Le as by,Ue as bz,D1 as c,sc as c$,bs as c0,Kf as c1,hr as c2,Hs as c3,Rs as c4,pr as c5,Vs as c6,Ws as c7,fo as c8,o0 as c9,vi as cA,gi as cB,Tr as cC,zr as cD,X as cE,vf as cF,Cr as cG,C0 as cH,ka as cI,Ma as cJ,Ua as cK,Oa as cL,Xo as cM,Gt as cN,s1 as cO,Vi as cP,If as cQ,qa as cR,Ya as cS,Ja as cT,Xa as cU,Qa as cV,ec as cW,tc as cX,La as cY,nc as cZ,rc as c_,At as ca,ws as cb,Ps as cc,Bi as cd,ir as ce,yo as cf,mo as cg,Qt as ch,$a as ci,Bf as cj,Zn as ck,Js as cl,Ys as cm,Ai as cn,Qs as co,$i as cp,Ei as cq,wi as cr,Fi as cs,G0 as ct,Se as cu,Ii as cv,Pa as cw,Pi as cx,uo as cy,L0 as cz,co as d,Oc as d$,ic as d0,oc as d1,ac as d2,cc as d3,fc as d4,uc as d5,dc as d6,_a as d7,lc as d8,bc as d9,xf as dA,wf as dB,Pf as dC,Ef as dD,qc as dE,$f as dF,Af as dG,Yc as dH,Jc as dI,Xc as dJ,Qc as dK,ef as dL,tf as dM,Kc as dN,nf as dO,rf as dP,sf as dQ,Bc as dR,Fc as dS,Sc as dT,Tc as dU,zc as dV,Cc as dW,Mc as dX,yc as dY,kc as dZ,Uc as d_,hc as da,Na as db,ja as dc,Ha as dd,Ra as de,Da as df,Va as dg,Ga as dh,Wa as di,Ka as dj,Za as dk,of as dl,af as dm,cf as dn,ff as dp,uf as dq,df as dr,lf as ds,Zc as dt,bf as du,hf as dv,pf as dw,yf as dx,mf as dy,gf as dz,Mr as e,Gc as e0,Lc as e1,_c as e2,Nc as e3,jc as e4,Hc as e5,Rc as e6,mc as e7,Dc as e8,Vc as e9,N1 as eA,Wo as eB,G1 as eC,Wc as ea,gc as eb,xc as ec,wc as ed,Pc as ee,Ec as ef,$c as eg,pc as eh,Ac as ei,vc as ej,Ic as ek,Fr as el,ea as em,na as en,S0 as eo,ls as ep,lr as eq,gs as er,Sr as es,Hn as et,Oe as eu,Hf as ev,jf as ew,$1 as ex,w1 as ey,Yr as ez,be as f,Wt as g,qf as h,e0 as i,Zf as j,Q as k,Ye as l,Ks as m,Ls as n,Ge as o,Wi as p,ee as q,ge as r,qe as s,Ht as t,o1 as u,Gf as v,Lt as w,me as x,Ze as y,ve as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e}from"./utils-
|
|
1
|
+
import{d as e}from"./utils-dddc86ba.js";const o=e({blockExplorers:[{apiUrl:"https://api.basescan.org/api",name:"Basescan",url:"https://basescan.org"}],id:8453,name:"Base",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"}}),r=e({blockExplorers:[{apiUrl:"https://api-sepolia.basescan.org/api",name:"Basescan",url:"https://sepolia.basescan.org"}],id:84532,name:"Base Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},testnet:!0}),s=e({blockExplorers:[{apiUrl:"https://api-optimistic.etherscan.io",name:"Optimism Explorer",url:"https://optimistic.etherscan.io"}],id:10,name:"OP Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"}}),i=e({blockExplorers:[{apiUrl:"https://optimism-sepolia.blockscout.com/api",name:"Blockscout",url:"https://optimism-sepolia.blockscout.com"}],id:11155420,name:"OP Sepolia",nativeCurrency:{decimals:18,name:"Sepolia Ether",symbol:"ETH"},testnet:!0}),t=e({blockExplorers:[{apiUrl:"https://explorer.zora.energy/api",name:"Explorer",url:"https://explorer.zora.energy"}],id:7777777,name:"Zora",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"}}),p=e({blockExplorers:[{apiUrl:"https://sepolia.explorer.zora.energy/api",name:"Zora Sepolia Explorer",url:"https://sepolia.explorer.zora.energy/"}],id:999999999,name:"Zora Sepolia",nativeCurrency:{decimals:18,name:"Zora Sepolia",symbol:"ETH"},testnet:!0});export{r as a,o as b,i as c,p as d,s as o,t as z};
|