@pufferfinance/puffer-sdk 1.30.2 → 1.31.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/dist/api/puffer-client-helpers.cjs +1 -1
- package/dist/api/puffer-client-helpers.cjs.map +1 -1
- package/dist/api/puffer-client-helpers.js +42 -42
- package/dist/api/puffer-client-helpers.js.map +1 -1
- package/dist/api/puffer-client.cjs +1 -1
- package/dist/api/puffer-client.js +2 -2
- package/dist/ccip-DLz1DupU.cjs +2 -0
- package/dist/ccip-DLz1DupU.cjs.map +1 -0
- package/dist/ccip-oHxlHOaH.js +158 -0
- package/dist/ccip-oHxlHOaH.js.map +1 -0
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.d.ts +2 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-C-rrOSfg.js +3837 -0
- package/dist/constants-C-rrOSfg.js.map +1 -0
- package/dist/constants-PXB3A4Yl.cjs +38 -0
- package/dist/constants-PXB3A4Yl.cjs.map +1 -0
- package/dist/contracts/abis/mainnet/Teller.cjs +1 -1
- package/dist/contracts/abis/mainnet/Teller.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/Teller.d.ts +234 -18
- package/dist/contracts/abis/mainnet/Teller.js +165 -13
- package/dist/contracts/abis/mainnet/Teller.js.map +1 -1
- package/dist/contracts/addresses.cjs +1 -1
- package/dist/contracts/addresses.js +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-staking-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
- package/dist/contracts/handlers/carrot-vesting-handler.cjs +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/carrot-vesting-handler.js +2 -2
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
- package/dist/contracts/handlers/distributor-handler.cjs +1 -1
- package/dist/contracts/handlers/distributor-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/distributor-handler.js +2 -2
- package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
- package/dist/contracts/handlers/erc20-permit-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
- package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.cjs +1 -1
- package/dist/contracts/handlers/gauge-registry-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/gauge-registry-handler.js +2 -2
- package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
- package/dist/contracts/handlers/guardian-module-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/guardian-module-handler.js +2 -2
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.cjs.map +1 -1
- package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/institutional-access-manager-handler.js +48 -49
- package/dist/contracts/handlers/institutional-access-manager-handler.js.map +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
- package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
- package/dist/contracts/handlers/lagoon-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/lagoon-vault-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/lagoon-vault-handler.js +2 -2
- package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
- package/dist/contracts/handlers/mtw-carrot-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/non-restaking-withdrawal-credentials-handler.cjs +1 -1
- package/dist/contracts/handlers/non-restaking-withdrawal-credentials-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/non-restaking-withdrawal-credentials-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.cjs.map +1 -1
- package/dist/contracts/handlers/nucleus-teller-handler.d.ts +1820 -5316
- package/dist/contracts/handlers/nucleus-teller-handler.js +63 -48
- package/dist/contracts/handlers/nucleus-teller-handler.js.map +1 -1
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puf-locker-handler.js +2 -2
- package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-depositor-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
- package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
- package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-protocol-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
- package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-vault-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
- package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
- package/dist/contracts/handlers/validator-ticket-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
- package/dist/contracts/handlers/vl-puffer-handler.cjs +1 -1
- package/dist/contracts/handlers/vl-puffer-handler.d.ts +1549 -5281
- package/dist/contracts/handlers/vl-puffer-handler.js +2 -2
- package/dist/contracts/tokens.cjs +1 -1
- package/dist/contracts/tokens.js +1 -1
- package/dist/contracts/vaults-addresses.cjs +1 -1
- package/dist/contracts/vaults-addresses.js +1 -1
- package/dist/{getContract-Cgkj3G1g.cjs → getContract-BL-M-dQc.cjs} +2 -2
- package/dist/{getContract-Cgkj3G1g.cjs.map → getContract-BL-M-dQc.cjs.map} +1 -1
- package/dist/{getContract-Dxh0At3n.js → getContract-BVdsHXdp.js} +11 -11
- package/dist/{getContract-Dxh0At3n.js.map → getContract-BVdsHXdp.js.map} +1 -1
- package/dist/http-BtVgpo6v.cjs +5 -0
- package/dist/http-BtVgpo6v.cjs.map +1 -0
- package/dist/{http-Clq2Hoy9.js → http-CJGQ2e7o.js} +1687 -1533
- package/dist/http-CJGQ2e7o.js.map +1 -0
- package/dist/{localBatchGatewayRequest-Dm7yXllz.js → localBatchGatewayRequest-BchhbxQ2.js} +18 -18
- package/dist/{localBatchGatewayRequest-Dm7yXllz.js.map → localBatchGatewayRequest-BchhbxQ2.js.map} +1 -1
- package/dist/{localBatchGatewayRequest-CuvkLo7E.cjs → localBatchGatewayRequest-Bz0YuhIJ.cjs} +2 -2
- package/dist/{localBatchGatewayRequest-CuvkLo7E.cjs.map → localBatchGatewayRequest-Bz0YuhIJ.cjs.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-BbMQ_WWG.js → secp256k1-Bm3EstvG.js} +62 -62
- package/dist/{secp256k1-BbMQ_WWG.js.map → secp256k1-Bm3EstvG.js.map} +1 -1
- package/dist/{secp256k1-DrUar53F.cjs → secp256k1-cRXUqGNw.cjs} +2 -2
- package/dist/{secp256k1-DrUar53F.cjs.map → secp256k1-cRXUqGNw.cjs.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/writeContract-D9xqoPDa.js +3527 -0
- package/dist/writeContract-D9xqoPDa.js.map +1 -0
- package/dist/writeContract-Gli_t0c1.cjs +6 -0
- package/dist/writeContract-Gli_t0c1.cjs.map +1 -0
- package/package.json +13 -13
- package/dist/ccip-BTVr5-VZ.js +0 -150
- package/dist/ccip-BTVr5-VZ.js.map +0 -1
- package/dist/ccip-DNgt9tzv.cjs +0 -2
- package/dist/ccip-DNgt9tzv.cjs.map +0 -1
- package/dist/constants-CUYeD71n.js +0 -2491
- package/dist/constants-CUYeD71n.js.map +0 -1
- package/dist/constants-Dhpa19or.cjs +0 -8
- package/dist/constants-Dhpa19or.cjs.map +0 -1
- package/dist/http-C-TIpf-V.cjs +0 -5
- package/dist/http-C-TIpf-V.cjs.map +0 -1
- package/dist/http-Clq2Hoy9.js.map +0 -1
- package/dist/writeContract-Bq8HaVjW.js +0 -4618
- package/dist/writeContract-Bq8HaVjW.js.map +0 -1
- package/dist/writeContract-PoCaxmyT.cjs +0 -36
- package/dist/writeContract-PoCaxmyT.cjs.map +0 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";function At(e,t){return e.exec(t)?.groups}const jn=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Dn=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Rn=/^\(.+?\).*?$/,dt=/^tuple(?<array>(\[(\d*)\])*)$/;function Se(e){let t=e.type;if(dt.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let s=0;s<n;s++){const o=e.components[s];t+=Se(o),s<n-1&&(t+=", ")}const r=At(dt,e.type);return t+=`)${r?.array||""}`,Se({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function X(e){let t="";const n=e.length;for(let r=0;r<n;r++){const s=e[r];t+=Se(s),r!==n-1&&(t+=", ")}return t}function vt(e){return e.type==="function"?`function ${e.name}(${X(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${X(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${X(e.inputs)})`:e.type==="error"?`error ${e.name}(${X(e.inputs)})`:e.type==="constructor"?`constructor(${X(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}function R(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new dr(e.type);return`${e.name}(${me(e.inputs,{includeName:t})})`}function me(e,{includeName:t=!1}={}){return e?e.map(n=>_n(n,{includeName:t})).join(t?", ":","):""}function _n(e,{includeName:t}){return e.type.startsWith("tuple")?`(${me(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function Z(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function y(e){return Z(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Bt="2.53.1";let $e={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${Bt}`};class u extends Error{constructor(t,n={}){const r=n.cause instanceof u?n.cause.details:n.cause?.message?n.cause.message:n.details,s=n.cause instanceof u&&n.cause.docsPath||n.docsPath,o=$e.getDocsUrl?.({...n,docsPath:s}),i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...r?[`Details: ${r}`]:[],...$e.version?[`Version: ${$e.version}`]:[]].join(`
|
|
2
|
+
`);super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{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,"metaMessages",{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,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=s,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=Bt}walk(t){return Pt(this,t)}}function Pt(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Pt(e.cause,t):t?null:e}class Vn extends u{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(`
|
|
3
|
+
`),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Wn extends u{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(`
|
|
4
|
+
`),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class $t extends u{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
|
|
5
|
+
`),{metaMessages:[`Params: (${me(n,{includeName:!0})})`,`Data: ${t} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=n,this.size=r}}class De extends u{constructor({cause:t}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:t})}}class Zn extends u{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
|
|
6
|
+
`),{name:"AbiEncodingArrayLengthMismatchError"})}}class Kn extends u{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${y(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class Yn extends u{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
|
|
7
|
+
`),{name:"AbiEncodingLengthMismatchError"})}}class Xn extends u{constructor(t,{docsPath:n}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(`
|
|
8
|
+
`),{docsPath:n,name:"AbiErrorInputsNotFoundError"})}}class Jn extends u{constructor(t,{docsPath:n}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(`
|
|
9
|
+
`),{docsPath:n,name:"AbiErrorNotFoundError"})}}class Tt extends u{constructor(t,{docsPath:n,cause:r}){super([`Encoded error signature "${t}" not found on 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=${t}.`].join(`
|
|
10
|
+
`),{docsPath:n,name:"AbiErrorSignatureNotFoundError",cause:r}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Qn extends u{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class qn extends u{constructor(t,{docsPath:n}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
|
|
11
|
+
`),{docsPath:n,name:"AbiEventSignatureNotFoundError"})}}class er extends u{constructor(t,{docsPath:n}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(`
|
|
12
|
+
`),{docsPath:n,name:"AbiEventNotFoundError"})}}class tr extends u{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
13
|
+
`),{docsPath:n,name:"AbiFunctionNotFoundError"})}}class nr extends u{constructor(t,{docsPath:n}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(`
|
|
14
|
+
`),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}}class rr extends u{constructor(t,{docsPath:n}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://4byte.sourcify.dev/?q=${t}.`].join(`
|
|
15
|
+
`),{docsPath:n,name:"AbiFunctionSignatureNotFoundError"})}}class sr extends u{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${R(t.abiItem)}\`, and`,`\`${n.type}\` in \`${R(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class or extends u{constructor({expectedSize:t,givenSize:n}){super(`Expected bytes${t}, got bytes${n}.`,{name:"BytesSizeMismatchError"})}}class ir extends u{constructor({abiItem:t,data:n,params:r,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(`
|
|
16
|
+
`),{metaMessages:[`Params: (${me(r,{includeName:!0})})`,`Data: ${n} (${s} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=n,this.params=r,this.size=s}}class ar extends u{constructor({abiItem:t,param:n}){super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${R(t,{includeName:!0})}".`].join(`
|
|
17
|
+
`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class cr extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
|
|
18
|
+
`),{docsPath:n,name:"InvalidAbiEncodingType"})}}class ur extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
|
|
19
|
+
`),{docsPath:n,name:"InvalidAbiDecodingType"})}}class Ft extends u{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
|
|
20
|
+
`),{name:"InvalidArrayError"})}}class dr extends u{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
|
|
21
|
+
`),{name:"InvalidDefinitionTypeError"})}}class It extends u{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}}class Ct extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class lr extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}}function te(e,{dir:t,size:n=32}={}){return typeof e=="string"?C(e,{dir:t,size:n}):fr(e,{dir:t,size:n})}function C(e,{dir:t,size:n=32}={}){if(n===null)return e;const r=e.replace("0x","");if(r.length>n*2)throw new Ct({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function fr(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new Ct({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let s=0;s<n;s++){const o=t==="right";r[o?s:n-s-1]=e[o?s:e.length-s-1]}return r}class Re extends u{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})`}`,{name:"IntegerOutOfRangeError"})}}class hr extends u{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class pr extends u{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class br extends u{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function B(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let s=0;s<n.length-1&&n[t==="left"?s:n.length-s-1].toString()==="0";s++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function $(e,{size:t}){if(y(e)>t)throw new br({givenSize:y(e),maxSize:t})}function L(e,t={}){const{signed:n}=t;t.size&&$(e,{size:t.size});const r=BigInt(e);if(!n)return r;const s=(e.length-2)/2,o=(1n<<BigInt(s)*8n-1n)-1n;return r<=o?r:r-BigInt(`0x${"f".padStart(s*2,"f")}`)-1n}function mr(e,t={}){let n=e;if(t.size&&($(n,{size:t.size}),n=B(n)),B(n)==="0x00")return!1;if(B(n)==="0x01")return!0;throw new pr(n)}function Q(e,t={}){const n=L(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new Re({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}const yr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function D(e,t={}){return typeof e=="number"||typeof e=="bigint"?f(e,t):typeof e=="string"?_e(e,t):typeof e=="boolean"?St(e,t):w(e,t)}function St(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?($(n,{size:t.size}),te(n,{size:t.size})):n}function w(e,t={}){let n="";for(let s=0;s<e.length;s++)n+=yr[e[s]];const r=`0x${n}`;return typeof t.size=="number"?($(r,{size:t.size}),te(r,{dir:"right",size:t.size})):r}function f(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 c=typeof e=="bigint"?"n":"";throw new Re({max:o?`${o}${c}`:void 0,min:`${i}${c}`,signed:n,size:r,value:`${e}${c}`})}const a=`0x${(n&&s<0?(1n<<BigInt(r*8))+BigInt(s):s).toString(16)}`;return r?te(a,{size:r}):a}const gr=new TextEncoder;function _e(e,t={}){const n=gr.encode(e);return w(n,t)}const xr=new TextEncoder;function ye(e,t={}){return typeof e=="number"||typeof e=="bigint"?wr(e,t):typeof e=="boolean"?Er(e,t):Z(e)?k(e,t):Ve(e,t)}function Er(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?($(n,{size:t.size}),te(n,{size:t.size})):n}const I={zero:48,nine:57,A:65,F:70,a:97,f:102};function lt(e){if(e>=I.zero&&e<=I.nine)return e-I.zero;if(e>=I.A&&e<=I.F)return e-(I.A-10);if(e>=I.a&&e<=I.f)return e-(I.a-10)}function k(e,t={}){let n=e;t.size&&($(n,{size:t.size}),n=te(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const s=r.length/2,o=new Uint8Array(s);for(let i=0,a=0;i<s;i++){const c=lt(r.charCodeAt(a++)),d=lt(r.charCodeAt(a++));if(c===void 0||d===void 0)throw new u(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);o[i]=c*16+d}return o}function wr(e,t){const n=f(e,t);return k(n)}function Ve(e,t={}){const n=xr.encode(e);return typeof t.size=="number"?($(n,{size:t.size}),te(n,{dir:"right",size:t.size})):n}const be=BigInt(2**32-1),ft=BigInt(32);function Ar(e,t=!1){return t?{h:Number(e&be),l:Number(e>>ft&be)}:{h:Number(e>>ft&be)|0,l:Number(e&be)|0}}function vr(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}=Ar(e[o],t);[r[o],s[o]]=[i,a]}return[r,s]}const Br=(e,t,n)=>e<<n|t>>>32-n,Pr=(e,t,n)=>t<<n|e>>>32-n,$r=(e,t,n)=>t<<n-32|e>>>64-n,Tr=(e,t,n)=>e<<n-32|t>>>64-n,Y=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;function Fr(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function ue(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function _(e,...t){if(!Fr(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 Ir(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");ue(e.outputLen),ue(e.blockLen)}function de(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 kt(e,t){_(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Cr(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function q(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Te(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function T(e,t){return e<<32-t|e>>>t}const Sr=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function kr(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function zr(e){for(let t=0;t<e.length;t++)e[t]=kr(e[t]);return e}const ht=Sr?e=>e:zr;function Ur(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ge(e){return typeof e=="string"&&(e=Ur(e)),_(e),e}function Mr(...e){let t=0;for(let r=0;r<e.length;r++){const s=e[r];_(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 We{}function zt(e){const t=r=>e().update(ge(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Lr(e=32){if(Y&&typeof Y.getRandomValues=="function")return Y.getRandomValues(new Uint8Array(e));if(Y&&typeof Y.randomBytes=="function")return Uint8Array.from(Y.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const Nr=BigInt(0),se=BigInt(1),Gr=BigInt(2),Or=BigInt(7),Hr=BigInt(256),jr=BigInt(113),Ut=[],Mt=[],Lt=[];for(let e=0,t=se,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],Ut.push(2*(5*r+n)),Mt.push((e+1)*(e+2)/2%64);let s=Nr;for(let o=0;o<7;o++)t=(t<<se^(t>>Or)*jr)%Hr,t&Gr&&(s^=se<<(se<<BigInt(o))-se);Lt.push(s)}const Nt=vr(Lt,!0),Dr=Nt[0],Rr=Nt[1],pt=(e,t,n)=>n>32?$r(e,t,n):Br(e,t,n),bt=(e,t,n)=>n>32?Tr(e,t,n):Pr(e,t,n);function _r(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,d=n[c],h=n[c+1],l=pt(d,h,1)^n[a],b=bt(d,h,1)^n[a+1];for(let p=0;p<50;p+=10)e[i+p]^=l,e[i+p+1]^=b}let s=e[2],o=e[3];for(let i=0;i<24;i++){const a=Mt[i],c=pt(s,o,a),d=bt(s,o,a),h=Ut[i];s=e[h],o=e[h+1],e[h]=c,e[h+1]=d}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]^=Dr[r],e[1]^=Rr[r]}q(n)}class Ze extends We{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,ue(r),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=Cr(this.state)}clone(){return this._cloneInto()}keccak(){ht(this.state32),_r(this.state32,this.rounds),ht(this.state32),this.posOut=0,this.pos=0}update(t){de(this),t=ge(t),_(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)!==0&&r===s-1&&this.keccak(),t[s-1]^=128,this.keccak()}writeInto(t){de(this,!1),_(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 ue(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(kt(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,q(this.state)}_cloneInto(t){const{blockLen:n,suffix:r,outputLen:s,rounds:o,enableXOF:i}=this;return t||(t=new Ze(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 Vr=(e,t,n)=>zt(()=>new Ze(t,e,n)),Gt=Vr(1,136,256/8);function Ke(e,t){const n=t||"hex",r=Gt(Z(e,{strict:!1})?ye(e):e);return n==="bytes"?r:D(r)}const Wr=e=>Ke(ye(e));function Zr(e){return Wr(e)}function Kr(e){let t=!0,n="",r=0,s="",o=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(s))s="";else if(s+=a,a===")"){o=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}s+=a,n+=a}}if(!o)throw new u("Unable to normalize signature.");return s}const Yr=e=>{const t=typeof e=="string"?e:vt(e);return Kr(t)};function Ot(e){return Zr(Yr(e))}const Ht=Ot;class v extends u{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 Ye extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&(super.delete(t),super.set(t,n)),n}set(t,n){if(super.has(t)&&super.delete(t),super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=super.keys().next().value;r!==void 0&&super.delete(r)}return this}}const Fe=new Ye(8192);function xe(e,t){if(Fe.has(`${e}.${t}`))return Fe.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=Ke(Ve(n),"bytes"),s=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 Fe.set(`${e}.${t}`,o),o}function Xr(e,t){if(!A(e,{strict:!1}))throw new v({address:e});return xe(e,t)}const Jr=/^0x[a-fA-F0-9]{40}$/,Ie=new Ye(8192);function A(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(Ie.has(r))return Ie.get(r);const s=Jr.test(e)?e.toLowerCase()===e?!0:n?xe(e)===e:!0:!1;return Ie.set(r,s),s}function V(e){return typeof e[0]=="string"?K(e):Qr(e)}function Qr(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 K(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function ee(e,t,n,{strict:r}={}){return Z(e,{strict:!1})?_t(e,t,n,{strict:r}):Rt(e,t,n,{strict:r})}function jt(e,t){if(typeof t=="number"&&t>0&&t>y(e)-1)throw new It({offset:t,position:"start",size:y(e)})}function Dt(e,t,n){if(typeof t=="number"&&typeof n=="number"&&y(e)!==n-t)throw new It({offset:n,position:"end",size:y(e)})}function Rt(e,t,n,{strict:r}={}){jt(e,t);const s=e.slice(t,n);return r&&Dt(s,t,n),s}function _t(e,t,n,{strict:r}={}){jt(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&Dt(s,t,n),s}const qr=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Vt=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function es(e,t){if(e.length!==t.length)throw new Yn({expectedLength:e.length,givenLength:t.length});const n=ts({params:e,values:t}),r=Je(n);return r.length===0?"0x":r}function ts({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Xe({param:e[r],value:t[r]}));return n}function Xe({param:e,value:t}){const n=Qe(e.type);if(n){const[r,s]=n;return rs(t,{length:r,param:{...e,type:s}})}if(e.type==="tuple")return cs(t,{param:e});if(e.type==="address")return ns(t);if(e.type==="bool")return os(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const r=e.type.startsWith("int"),[,,s="256"]=Vt.exec(e.type)??[];return is(t,{signed:r,size:Number(s)})}if(e.type.startsWith("bytes"))return ss(t,{param:e});if(e.type==="string")return as(t);throw new cr(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Je(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:i,encoded:a}=e[o];i?t+=32:t+=y(a)}const n=[],r=[];let s=0;for(let o=0;o<e.length;o++){const{dynamic:i,encoded:a}=e[o];i?(n.push(f(t+s,{size:32})),r.push(a),s+=y(a)):n.push(a)}return V([...n,...r])}function ns(e){if(!A(e))throw new v({address:e});return{dynamic:!1,encoded:C(e.toLowerCase())}}function rs(e,{length:t,param:n}){const r=t===null;if(!Array.isArray(e))throw new Ft(e);if(!r&&e.length!==t)throw new Zn({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let s=!1;const o=[];for(let i=0;i<e.length;i++){const a=Xe({param:n,value:e[i]});a.dynamic&&(s=!0),o.push(a)}if(r||s){const i=Je(o);if(r){const a=f(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?V([a,i]):a}}if(s)return{dynamic:!0,encoded:i}}return{dynamic:!1,encoded:V(o.map(({encoded:i})=>i))}}function ss(e,{param:t}){const[,n]=t.type.split("bytes"),r=y(e);if(!n){let s=e;return r%32!==0&&(s=C(s,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:V([C(f(r,{size:32})),s])}}if(r!==Number.parseInt(n,10))throw new Kn({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:C(e,{dir:"right"})}}function os(e){if(typeof e!="boolean")throw new u(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:C(St(e))}}function is(e,{signed:t,size:n=256}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new Re({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:f(e,{size:32,signed:t})}}function as(e){const t=_e(e),n=Math.ceil(y(t)/32),r=[];for(let s=0;s<n;s++)r.push(C(ee(t,s*32,(s+1)*32),{dir:"right"}));return{dynamic:!0,encoded:V([C(f(y(t),{size:32})),...r])}}function cs(e,{param:t}){let n=!1;const r=[];for(let s=0;s<t.components.length;s++){const o=t.components[s],i=Array.isArray(e)?s:o.name,a=Xe({param:o,value:e[i]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Je(r):V(r.map(({encoded:s})=>s))}}function Qe(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}const qe=e=>ee(Ot(e),0,4);function Wt(e){const{abi:t,args:n=[],name:r}=e,s=Z(r,{strict:!1}),o=t.filter(a=>s?a.type==="function"?qe(a)===r:a.type==="event"?Ht(a)===r:!1:"name"in a&&a.name===r);if(o.length===0)return;if(o.length===1)return o[0];let i;for(const a of o){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((d,h)=>{const l="inputs"in a&&a.inputs[h];return l?ke(d,l):!1})){if(i&&"inputs"in i&&i.inputs){const d=Zt(a.inputs,i.inputs,n);if(d)throw new sr({abiItem:a,type:d[0]},{abiItem:i,type:d[1]})}i=a}}return i||o[0]}function ke(e,t){const n=typeof e,r=t.type;switch(r){case"address":return A(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((s,o)=>n==="object"&&ke(Object.values(e)[o],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(s=>ke(s,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Zt(e,t,n){for(const r in e){const s=e[r],o=t[r];if(s.type==="tuple"&&o.type==="tuple"&&"components"in s&&"components"in o)return Zt(s.components,o.components,n[r]);const i=[s.type,o.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?A(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?A(n[r],{strict:!1}):!1)return i}}function Ee(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}const us={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},Kt={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},ds={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};class mt extends u{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class Yt extends u{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class ls extends u{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const fs={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 ls({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Yt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new mt({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 mt({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 et(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(fs);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function hs(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});const n=w(e,t);return L(n,t)}function ps(e,t={}){let n=e;if(typeof t.size<"u"&&($(n,{size:t.size}),n=B(n)),n.length>1||n[0]>1)throw new hr(n);return!!n[0]}function S(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});const n=w(e,t);return Q(n,t)}function Xt(e,t={}){let n=e;return typeof t.size<"u"&&($(n,{size:t.size}),n=B(n,{dir:"right"})),new TextDecoder().decode(n)}function Jt(e,t){const n=typeof t=="string"?k(t):t,r=et(n);if(y(n)===0&&e.length>0)throw new De;if(y(t)&&y(t)<32)throw new $t({data:typeof t=="string"?t:w(t),params:e,size:y(t)});let s=0;const o=[];for(let i=0;i<e.length;++i){const a=e[i];r.setPosition(s);const[c,d]=J(r,a,{staticPosition:0});s+=d,o.push(c)}return o}function J(e,t,{staticPosition:n}){const r=Qe(t.type);if(r){const[s,o]=r;return ms(e,{...t,type:o},{length:s,staticPosition:n})}if(t.type==="tuple")return Es(e,t,{staticPosition:n});if(t.type==="address")return bs(e);if(t.type==="bool")return ys(e);if(t.type.startsWith("bytes"))return gs(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return xs(e,t);if(t.type==="string")return ws(e,{staticPosition:n});throw new ur(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const yt=32,ze=32;function bs(e){const t=e.readBytes(32);return[xe(w(Rt(t,-20))),32]}function ms(e,t,{length:n,staticPosition:r}){if(!n){const i=S(e.readBytes(ze)),a=r+i,c=a+yt;e.setPosition(a);const d=S(e.readBytes(yt)),h=le(t);let l=0;const b=[];for(let p=0;p<d;++p){e.setPosition(c+(h?p*32:l));const[E,x]=J(e,t,{staticPosition:c});l+=x,b.push(E)}return e.setPosition(r+32),[b,32]}if(le(t)){const i=S(e.readBytes(ze)),a=r+i,c=[];for(let d=0;d<n;++d){e.setPosition(a+d*32);const[h]=J(e,t,{staticPosition:a});c.push(h)}return e.setPosition(r+32),[c,32]}let s=0;const o=[];for(let i=0;i<n;++i){const[a,c]=J(e,t,{staticPosition:r+s});s+=c,o.push(a)}return[o,s]}function ys(e){return[ps(e.readBytes(32),{size:32}),32]}function gs(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const i=S(e.readBytes(32));e.setPosition(n+i);const a=S(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const c=e.readBytes(a);return e.setPosition(n+32),[w(c),32]}return[w(e.readBytes(Number.parseInt(s,10),32)),32]}function xs(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[r>48?hs(s,{signed:n}):S(s,{signed:n}),32]}function Es(e,t,{staticPosition:n}){const r=t.components.length===0||t.components.some(({name:i})=>!i),s=r?[]:{};let o=0;if(le(t)){const i=S(e.readBytes(ze)),a=n+i;for(let c=0;c<t.components.length;++c){const d=t.components[c];e.setPosition(a+o);const[h,l]=J(e,d,{staticPosition:a});o+=l,s[r?c:d?.name]=h}return e.setPosition(n+32),[s,32]}for(let i=0;i<t.components.length;++i){const a=t.components[i],[c,d]=J(e,a,{staticPosition:n});s[r?i:a?.name]=c,o+=d}return[s,o]}function ws(e,{staticPosition:t}){const n=S(e.readBytes(32)),r=t+n;e.setPosition(r);const s=S(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const o=e.readBytes(s,32),i=Xt(B(o));return e.setPosition(t+32),[i,32]}function le(e){const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(le);const n=Qe(e.type);return!!(n&&le({...e,type:n[1]}))}function Qt(e){const{abi:t,data:n,cause:r}=e,s=ee(n,0,4);if(s==="0x")throw new De({cause:r});const i=[...t||[],Kt,ds].find(a=>a.type==="error"&&s===qe(R(a)));if(!i)throw new Tt(s,{docsPath:"/docs/contract/decodeErrorResult",cause:r});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?Jt(i.inputs,ee(n,4)):void 0,errorName:i.name}}const qt=(e,t,n)=>JSON.stringify(e,(r,s)=>typeof s=="bigint"?s.toString():s,n);function en({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((s,o)=>`${r&&s.name?`${s.name}: `:""}${typeof t[o]=="object"?qt(t[o]):t[o]}`).join(", ")})`}const As={gwei:9,wei:18},vs={ether:-9,wei:9};function tn(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[s,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${s||"0"}${o?`.${o}`:""}`}function tt(e,t="wei"){return tn(e,As[t])}function P(e,t="wei"){return tn(e,vs[t])}class Bs extends u{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class Ps extends u{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function gt(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
|
|
22
|
+
`,"")}function $s(e){return e.reduce((t,{address:n,...r})=>{let s=`${t} ${n}:
|
|
23
|
+
`;return r.nonce&&(s+=` nonce: ${r.nonce}
|
|
24
|
+
`),r.balance&&(s+=` balance: ${r.balance}
|
|
25
|
+
`),r.code&&(s+=` code: ${r.code}
|
|
26
|
+
`),r.state&&(s+=` state:
|
|
27
|
+
`,s+=gt(r.state)),r.stateDiff&&(s+=` stateDiff:
|
|
28
|
+
`,s+=gt(r.stateDiff)),s},` State Override:
|
|
29
|
+
`).slice(0,-1)}function he(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(`
|
|
30
|
+
`)}class Ts extends u{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Fs extends u{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",he(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 Is extends u{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 Cs extends u{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:h,to:l,value:b}){const p=he({chain:s&&`${s?.name} (id: ${s?.id})`,from:n?.address,to:l,value:typeof b<"u"&&`${tt(b)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${P(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${P(c)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${P(d)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",p].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Ss extends u{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 ks extends u{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 zs extends u{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 Us extends u{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}const Ms=e=>e;function Ls(e){if(e?.reason)return e.reason;if(typeof DOMException=="function")return new DOMException("This operation was aborted","AbortError");const t=new Error("This operation was aborted");return t.name="AbortError",t}function Ns(e){return typeof e=="object"&&e!==null&&"name"in e&&e.name==="AbortError"}const Gs=e=>{try{const t=new URL(e);return!t.username&&!t.password?e:(t.username="",t.password="",t.toString())}catch{return e}};class nn extends u{constructor(t,{account:n,docsPath:r,chain:s,data:o,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:h,to:l,value:b,stateOverride:p}){const E=n?Ee(n):void 0;let x=he({from:E?.address,to:l,value:typeof b<"u"&&`${tt(b)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:i,gasPrice:typeof a<"u"&&`${P(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${P(c)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${P(d)} gwei`,nonce:h});p&&(x+=`
|
|
31
|
+
${$s(p)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",x].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Os extends u{constructor(t,{abi:n,args:r,contractAddress:s,docsPath:o,functionName:i,sender:a}){const c=Wt({abi:n,args:r,name:i}),d=c?en({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,h=c?R(c,{includeName:!0}):void 0,l=he({address:s&&Ms(s),function:h,args:d&&d!=="()"&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:o,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],l&&"Contract Call:",l].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 Hs extends u{constructor({abi:t,data:n,functionName:r,message:s,cause:o}){let i,a,c,d;if(n&&n!=="0x")try{a=Qt({abi:t,data:n,cause:o});const{abiItem:l,errorName:b,args:p}=a;if(b==="Error")d=p[0];else if(b==="Panic"){const[E]=p;d=us[E]}else{const E=l?R(l,{includeName:!0}):void 0,x=l&&p?en({abiItem:l,args:p,includeFunctionName:!1,includeName:!1}):void 0;c=[E?`Error: ${E}`:"",x&&x!=="()"?` ${[...Array(b?.length??0).keys()].map(()=>" ").join("")}${x}`:""]}}catch(l){i=l}else s&&(d=s);let h;i instanceof Tt&&(h=i.signature,c=[`Unable to decode signature "${h}" 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=${h}.`]),super(d&&d!=="execution reverted"||h?[`The contract function "${r}" reverted with the following ${h?"signature":"reason"}:`,d||h].join(`
|
|
32
|
+
`):`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=d,this.signature=h}}class js extends u{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 Ds extends u{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 Rs extends u{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 N(e,t="hex"){const n=rn(e),r=et(new Uint8Array(n.length));return n.encode(r),t==="hex"?w(r.bytes):r.bytes}function rn(e){return Array.isArray(e)?_s(e.map(t=>rn(t))):Vs(e)}function _s(e){const t=e.reduce((s,o)=>s+o.length,0),n=sn(t);return{length:t<=55?1+t:1+n+t,encode(s){t<=55?s.pushByte(192+t):(s.pushByte(247+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 Vs(e){const t=typeof e=="string"?k(e):e,n=sn(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(183+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 sn(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 u("Length is too large.")}class j extends u{constructor({cause:t,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(j,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class W extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${P(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(W,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Ue extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${P(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Ue,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Me extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Me,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Le extends u{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
|
|
33
|
+
`),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Le,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Ne extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Ne,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ge extends u{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
|
|
34
|
+
`),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ge,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class Oe extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(Oe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class He extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(He,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class je extends u{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(je,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class fe extends u{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${P(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${P(r)} gwei`:""}).`].join(`
|
|
35
|
+
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(fe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class nt extends u{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function on(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof u?e.walk(s=>s?.code===j.code):e;return r instanceof u?new j({cause:e,message:r.details}):j.nodeMessage.test(n)?new j({cause:e,message:e.details}):W.nodeMessage.test(n)?new W({cause:e,maxFeePerGas:t?.maxFeePerGas}):Ue.nodeMessage.test(n)?new Ue({cause:e,maxFeePerGas:t?.maxFeePerGas}):Me.nodeMessage.test(n)?new Me({cause:e,nonce:t?.nonce}):Le.nodeMessage.test(n)?new Le({cause:e,nonce:t?.nonce}):Ne.nodeMessage.test(n)?new Ne({cause:e,nonce:t?.nonce}):Ge.nodeMessage.test(n)?new Ge({cause:e}):Oe.nodeMessage.test(n)?new Oe({cause:e,gas:t?.gas}):He.nodeMessage.test(n)?new He({cause:e,gas:t?.gas}):je.nodeMessage.test(n)?new je({cause:e}):fe.nodeMessage.test(n)?new fe({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new nt({cause:e})}function an(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 rt(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 Ws={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function cn(e,t){const n={};return typeof e.authorizationList<"u"&&(n.authorizationList=Zs(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=>w(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=f(e.gas)),typeof e.gasPrice<"u"&&(n.gasPrice=f(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(n.maxFeePerBlobGas=f(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(n.maxFeePerGas=f(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(n.maxPriorityFeePerGas=f(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(n.nonce=f(e.nonce)),typeof e.to<"u"&&(n.to=e.to),typeof e.type<"u"&&(n.type=Ws[e.type]),typeof e.value<"u"&&(n.value=f(e.value)),n}function Zs(e){return e.map(t=>({address:t.address,r:t.r?f(BigInt(t.r)):t.r,s:t.s?f(BigInt(t.s)):t.s,chainId:f(t.chainId),nonce:f(t.nonce),...typeof t.yParity<"u"?{yParity:f(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:f(t.v)}:{}}))}const we=2n**256n-1n;function un(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:s}=e,o=t?Ee(t):void 0;if(o&&!A(o.address))throw new v({address:o.address});if(s&&!A(s))throw new v({address:s});if(n&&n>we)throw new W({maxFeePerGas:n});if(r&&n&&r>n)throw new fe({maxFeePerGas:n,maxPriorityFeePerGas:r})}const dn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Ae(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?Q(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?Q(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?dn[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=Ys(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 Ks=rt("transaction",Ae);function Ys(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 ln(e,t){const n=(e.transactions??[]).map(r=>typeof r=="string"?r:Ae(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 Xs=rt("block",ln);function st(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=>k(o)):e.blobs,s=[];for(const o of r)s.push(Uint8Array.from(t.blobToKzgCommitment(o)));return n==="bytes"?s:s.map(o=>w(o))}function ot(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=>k(i)):e.blobs,s=typeof e.commitments[0]=="string"?e.commitments.map(i=>k(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=>w(i))}function Js(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,d=r?0:4;e.setUint32(t+c,i,r),e.setUint32(t+d,a,r)}function Qs(e,t,n){return e&t^~e&n}function qs(e,t,n){return e&t^e&n^t&n}class eo extends We{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=Te(this.buffer)}update(t){de(this),t=ge(t),_(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=Te(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){de(this),kt(t,this),this.finished=!0;const{buffer:n,view:r,blockLen:s,isLE:o}=this;let{pos:i}=this;n[i++]=128,q(this.buffer.subarray(i)),this.padOffset>s-i&&(this.process(r,0),i=0);for(let l=i;l<s;l++)n[l]=0;Js(r,s-8,BigInt(this.length*8),o),this.process(r,0);const a=Te(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,h=this.get();if(d>h.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<d;l++)a.setUint32(4*l,h[l],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 U=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),to=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]),M=new Uint32Array(64);class no extends eo{constructor(t=32){super(64,t,8,!1),this.A=U[0]|0,this.B=U[1]|0,this.C=U[2]|0,this.D=U[3]|0,this.E=U[4]|0,this.F=U[5]|0,this.G=U[6]|0,this.H=U[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 l=0;l<16;l++,n+=4)M[l]=t.getUint32(n,!1);for(let l=16;l<64;l++){const b=M[l-15],p=M[l-2],E=T(b,7)^T(b,18)^b>>>3,x=T(p,17)^T(p,19)^p>>>10;M[l]=x+M[l-7]+E+M[l-16]|0}let{A:r,B:s,C:o,D:i,E:a,F:c,G:d,H:h}=this;for(let l=0;l<64;l++){const b=T(a,6)^T(a,11)^T(a,25),p=h+b+Qs(a,c,d)+to[l]+M[l]|0,x=(T(r,2)^T(r,13)^T(r,22))+qs(r,s,o)|0;h=d,d=c,c=a,a=i+p|0,i=o,o=s,s=r,r=p+x|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,d=d+this.G|0,h=h+this.H|0,this.set(r,s,o,i,a,c,d,h)}roundClean(){q(M)}destroy(){this.set(0,0,0,0,0,0,0,0),q(this.buffer)}}const fn=zt(()=>new no),ro=fn;function so(e,t){return ro(Z(e,{strict:!1})?ye(e):e)}function oo(e){const{commitment:t,version:n=1}=e,r=e.to??(typeof t=="string"?"hex":"bytes"),s=so(t);return s.set([n],0),r==="bytes"?s:w(s)}function hn(e){const{commitments:t,version:n}=e,r=e.to??(typeof t[0]=="string"?"hex":"bytes"),s=[];for(const o of t)s.push(oo({commitment:o,to:r,version:n}));return s}const xt=6,pn=32,it=4096,bn=pn*it,Et=bn*xt-1-1*it*xt,mn=1;class io extends u{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class yn extends u{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class ao extends u{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class co extends u{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${mn}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function uo(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?k(e.data):e.data,r=y(n);if(!r)throw new yn;if(r>Et)throw new io({maxSize:Et,size:r});const s=[];let o=!0,i=0;for(;o;){const a=et(new Uint8Array(bn));let c=0;for(;c<it;){const d=n.slice(i,i+(pn-1));if(a.pushByte(0),a.pushBytes(d),d.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=>w(a.bytes))}function gn(e){const{data:t,kzg:n,to:r}=e,s=e.blobs??uo({data:t,to:r}),o=e.commitments??st({blobs:s,kzg:n,to:r}),i=e.proofs??ot({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}function xn(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 Fs({transaction:e})}function En(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}:{}}}class lo extends u{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 fo extends u{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 ho extends u{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(`
|
|
36
|
+
`),{name:"ChainNotFoundError"})}}class po extends u{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class ve extends u{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function wn(e,{docsPath:t,...n}){const r=(()=>{const s=on(e,n);return s instanceof nt?e:s})();return new nn(r,{docsPath:t,...n})}class An extends u{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(`
|
|
37
|
+
`),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class bo extends u{constructor({docsPath:t,metaMessages:n,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}const vn={"0x0":"reverted","0x1":"success"};function Bn(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=>En(r)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Q(e.transactionIndex):null,status:e.status?vn[e.status]:null,type:e.type?dn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const mo=rt("transactionReceipt",Bn);function yo(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:r}=n,s=n.address;if(!A(s))throw new v({address:s});if(r<0)throw new ve({chainId:r})}at(e)}function go(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new yn;for(const n of t){const r=y(n),s=Q(ee(n,0,1));if(r!==32)throw new ao({hash:n,size:r});if(s!==mn)throw new co({hash:n,version:s})}}at(e)}function at(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:s}=e;if(t<=0)throw new ve({chainId:t});if(s&&!A(s))throw new v({address:s});if(r&&r>we)throw new W({maxFeePerGas:r});if(n&&r&&n>r)throw new fe({maxFeePerGas:r,maxPriorityFeePerGas:n})}function xo(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:s,to:o}=e;if(t<=0)throw new ve({chainId:t});if(o&&!A(o))throw new v({address:o});if(n||s)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>we)throw new W({maxFeePerGas:r})}function Eo(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:s,to:o}=e;if(o&&!A(o))throw new v({address:o});if(typeof t<"u"&&t<=0)throw new ve({chainId:t});if(n||s)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>we)throw new W({maxFeePerGas:r})}function Be(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:s}=e[n];for(let o=0;o<s.length;o++)if(s[o].length-2!==64)throw new Is({storageKey:s[o]});if(!A(r,{strict:!1}))throw new v({address:r});t.push([r,s])}return t}function wo(e,t){const n=xn(e);return n==="eip1559"?Bo(e,t):n==="eip2930"?Po(e,t):n==="eip4844"?vo(e,t):n==="eip7702"?Ao(e,t):$o(e,t)}function Ao(e,t){const{authorizationList:n,chainId:r,gas:s,nonce:o,to:i,value:a,maxFeePerGas:c,maxPriorityFeePerGas:d,accessList:h,data:l}=e;yo(e);const b=Be(h),p=To(n);return K(["0x04",N([f(r),o?f(o):"0x",d?f(d):"0x",c?f(c):"0x",s?f(s):"0x",i??"0x",a?f(a):"0x",l??"0x",b,p,...pe(e,t)])])}function vo(e,t){const{chainId:n,gas:r,nonce:s,to:o,value:i,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:d,accessList:h,data:l}=e;go(e);let b=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(typeof b>"u"||typeof p>"u")){const z=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(H=>w(H)),G=e.kzg,O=st({blobs:z,kzg:G});if(typeof b>"u"&&(b=hn({commitments:O})),typeof p>"u"){const H=ot({blobs:z,commitments:O,kzg:G});p=gn({blobs:z,commitments:O,proofs:H})}}const E=Be(h),x=[f(n),s?f(s):"0x",d?f(d):"0x",c?f(c):"0x",r?f(r):"0x",o??"0x",i?f(i):"0x",l??"0x",E,a?f(a):"0x",b??[],...pe(e,t)],Pe=[],ne=[],re=[];if(p)for(let z=0;z<p.length;z++){const{blob:G,commitment:O,proof:H}=p[z];Pe.push(G),ne.push(O),re.push(H)}return K(["0x03",N(p?[x,Pe,ne,re]:x)])}function Bo(e,t){const{chainId:n,gas:r,nonce:s,to:o,value:i,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:d,data:h}=e;at(e);const l=Be(d),b=[f(n),s?f(s):"0x",c?f(c):"0x",a?f(a):"0x",r?f(r):"0x",o??"0x",i?f(i):"0x",h??"0x",l,...pe(e,t)];return K(["0x02",N(b)])}function Po(e,t){const{chainId:n,gas:r,data:s,nonce:o,to:i,value:a,accessList:c,gasPrice:d}=e;xo(e);const h=Be(c),l=[f(n),o?f(o):"0x",d?f(d):"0x",r?f(r):"0x",i??"0x",a?f(a):"0x",s??"0x",h,...pe(e,t)];return K(["0x01",N(l)])}function $o(e,t){const{chainId:n=0,gas:r,data:s,nonce:o,to:i,value:a,gasPrice:c}=e;Eo(e);let d=[o?f(o):"0x",c?f(c):"0x",r?f(r):"0x",i??"0x",a?f(a):"0x",s??"0x"];if(t){const h=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(t.v===35n?0n:1n);if(n>0)return BigInt(n*2)+BigInt(35n+t.v-27n);const p=27n+(t.v===27n?0n:1n);if(t.v!==p)throw new Ts({v:t.v});return p})(),l=B(t.r),b=B(t.s);d=[...d,f(h),l==="0x00"?"0x":l,b==="0x00"?"0x":b]}else n>0&&(d=[...d,f(n),"0x","0x"]);return N(d)}function pe(e,t){const n=t??e,{v:r,yParity:s}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof r>"u"&&typeof s>"u")return[];const o=B(n.r),i=B(n.s);return[typeof s=="number"?s?f(1):"0x":r===0n?"0x":r===1n?f(1):r===27n?"0x":f(1),o==="0x00"?"0x":o,i==="0x00"?"0x":i]}function To(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:r,nonce:s,...o}=n,i=n.address;t.push([r?D(r):"0x",i,s?D(s):"0x",...pe({},o)])}return t}function g(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return s=>{const o=typeof s=="function"?s(r):s,i={...r,...o};return Object.assign(i,{extend:n(i)})}}return Object.assign(t,{extend:n(t)})}const Fo={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Io={block:Xs({format(e){return{transactions:e.transactions?.map(n=>{if(typeof n=="string")return n;const r=Ae(n);return r.typeHex==="0x7e"&&(r.isSystemTx=n.isSystemTx,r.mint=n.mint?L(n.mint):void 0,r.sourceHash=n.sourceHash,r.type="deposit"),r}),stateRoot:e.stateRoot}}}),transaction:Ks({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?L(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:mo({format(e){return{l1GasPrice:e.l1GasPrice?L(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?L(e.l1GasUsed):null,l1Fee:e.l1Fee?L(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function Co(e,t){return zo(e)?ko(e):wo(e,t)}const So={transaction:Co};function ko(e){Uo(e);const{sourceHash:t,data:n,from:r,gas:s,isSystemTx:o,mint:i,to:a,value:c}=e,d=[t,r,a??"0x",i?D(i):"0x",c?D(c):"0x",s?D(s):"0x",o?"0x1":"0x",n??"0x"];return K(["0x7e",N(d)])}function zo(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Uo(e){const{from:t,to:n}=e;if(t&&!A(t))throw new v({address:t});if(n&&!A(n))throw new v({address:n})}const F={blockTime:2e3,contracts:Fo,formatters:Io,serializers:So},Mo=42161,Pn=g({id:33139,name:"ApeChain",nativeCurrency:{name:"ApeCoin",symbol:"APE",decimals:18},rpcUrls:{default:{http:["https://rpc.apechain.com/http"],webSocket:["wss://rpc.apechain.com/ws"]}},blockExplorers:{default:{name:"Apescan",url:"https://apescan.io",apiUrl:"https://api.apescan.io/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:20889}},sourceId:Mo}),$n=g({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),oe=1,ct=g({...F,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...F.contracts,disputeGameFactory:{[oe]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[oe]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[oe]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[oe]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:oe});({...ct});const ie=11155111,ut=g({...F,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...F.contracts,disputeGameFactory:{[ie]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[ie]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[ie]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[ie]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:ie});({...ut});const Tn=g({id:80094,name:"Berachain",blockTime:2e3,nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:9310021}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),Fn=g({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),In=g({id:17e3,name:"Holesky",nativeCurrency:{name:"Holesky Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://ethereum-holesky-rpc.publicnode.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://holesky.etherscan.io",apiUrl:"https://api-holesky.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:77},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),Cn=g({id:560048,name:"Hoodi",nativeCurrency:{name:"Hoodi Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.hoodi.ethpandaops.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://hoodi.etherscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:2589}},testnet:!0}),Sn=g({id:999,name:"HyperEVM",nativeCurrency:{name:"HYPE",symbol:"HYPE",decimals:18},blockExplorers:{default:{name:"HyperEVMScan",url:"https://hyperevmscan.io"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:13051}},rpcUrls:{default:{http:["https://rpc.hyperliquid.xyz/evm"]}},testnet:!1});async function Lo(e,t){const{account:n=e.account}=t;if(!n)throw new An;const r=Ee(n);try{const{accessList:s,blockNumber:o,blockTag:i,data:a,gas:c,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:l,nonce:b,to:p,value:E,...x}=t,ne=(typeof o=="bigint"?f(o):void 0)||i;un(t);const re=e.chain?.formatters?.transactionRequest?.format,G=(re||cn)({...an(x,{format:re}),account:r,accessList:s,data:a,gas:c,gasPrice:d,maxFeePerGas:h,maxPriorityFeePerGas:l,nonce:b,to:p,value:E},"estimateGas"),{baseFeePerGas:O,gasLimit:H,priorityFeePerGas:Hn}=await e.request({method:"linea_estimateGas",params:ne?[G,ne]:[G]});return{baseFeePerGas:BigInt(O),gasLimit:BigInt(H),priorityFeePerGas:BigInt(Hn)}}catch(s){throw wn(s,{...t,account:r,chain:e.chain})}}const No={fees:{estimateFeesPerGas:wt,async maxPriorityFeePerGas({block:e,client:t,request:n}){const r=await wt({block:e,client:t,multiply:s=>s,request:n,type:"eip1559"});return r?.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}}};async function wt({client:e,multiply:t,request:n,type:r}){try{const s=await Lo(e,{...n,account:n?.account}),{priorityFeePerGas:o}=s,a=t(BigInt(s.baseFeePerGas))+o;return r==="legacy"?{gasPrice:a}:{maxFeePerGas:a,maxPriorityFeePerGas:o}}catch{return null}}const kn=g({...No,id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),zn=g({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Un=g({id:143,name:"Monad",blockTime:400,nativeCurrency:{name:"Monad",symbol:"MON",decimals:18},rpcUrls:{default:{http:["https://rpc.monad.xyz","https://rpc1.monad.xyz"],webSocket:["wss://rpc.monad.xyz","wss://rpc1.monad.xyz"]}},blockExplorers:{default:{name:"Monadscan",url:"https://monadscan.com",apiUrl:"https://api.etherscan.io/v2/api?chainid=143"},monadvision:{name:"MonadVision",url:"https://monadvision.com"}},testnet:!1,contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:9248132}}}),ae=11155111,Mn=g({...F,id:11155420,name:"OP Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.optimism.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://optimism-sepolia.blockscout.com",apiUrl:"https://optimism-sepolia.blockscout.com/api"}},contracts:{...F.contracts,disputeGameFactory:{[ae]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[ae]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[ae]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[ae]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:ae}),Ln=g({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),ce=1,Nn=g({...F,id:1868,name:"Soneium Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.soneium.org"]}},blockExplorers:{default:{name:"Blockscout",url:"https://soneium.blockscout.com",apiUrl:"https://soneium.blockscout.com/api"}},contracts:{...F.contracts,disputeGameFactory:{[ce]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[ce]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[ce]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[ce]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:ce}),Gn=g({id:239,name:"TAC",nativeCurrency:{name:"TAC",symbol:"TAC",decimals:18},rpcUrls:{default:{http:["https://rpc.ankr.com/tac"]}},blockExplorers:{default:{name:"Blockscout",url:"https://tac.blockscout.com",apiUrl:"https://tac.blockscout.com/api"},native:{name:"TAC Explorer",url:"https://explorer.tac.build",apiUrl:"https://explorer.tac.build/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0}}}),Ce=1,On=g({...F,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{...F.contracts,multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[Ce]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[Ce]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[Ce]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1});var m=(e=>(e[e.Mainnet=zn.id]="Mainnet",e[e.Holesky=In.id]="Holesky",e[e.Base=ct.id]="Base",e[e.Bsc=Fn.id]="Bsc",e[e.Arbitrum=$n.id]="Arbitrum",e[e.ApeChain=Pn.id]="ApeChain",e[e.Soneium=Nn.id]="Soneium",e[e.Sepolia=Ln.id]="Sepolia",e[e.OptimismSepolia=Mn.id]="OptimismSepolia",e[e.BaseSepolia=ut.id]="BaseSepolia",e[e.Zircuit=On.id]="Zircuit",e[e.Berachain=Tn.id]="Berachain",e[e.Hoodi=Cn.id]="Hoodi",e[e.TAC=Gn.id]="TAC",e[e.Monad=Un.id]="Monad",e[e.HyperEVM=Sn.id]="HyperEVM",e[e.Linea=kn.id]="Linea",e))(m||{});const Go={[m.Mainnet]:zn,[m.Holesky]:In,[m.Base]:ct,[m.Bsc]:Fn,[m.Arbitrum]:$n,[m.ApeChain]:Pn,[m.Soneium]:Nn,[m.Sepolia]:Ln,[m.OptimismSepolia]:Mn,[m.BaseSepolia]:ut,[m.Zircuit]:On,[m.Berachain]:Tn,[m.Hoodi]:Cn,[m.TAC]:Gn,[m.Monad]:Un,[m.HyperEVM]:Sn,[m.Linea]:kn};exports.AbiConstructorNotFoundError=Vn;exports.AbiConstructorParamsNotFoundError=Wn;exports.AbiDecodingDataSizeTooSmallError=$t;exports.AbiDecodingZeroDataError=De;exports.AbiErrorInputsNotFoundError=Xn;exports.AbiErrorNotFoundError=Jn;exports.AbiEventNotFoundError=er;exports.AbiEventSignatureEmptyTopicsError=Qn;exports.AbiEventSignatureNotFoundError=qn;exports.AbiFunctionNotFoundError=tr;exports.AbiFunctionOutputsNotFoundError=nr;exports.AbiFunctionSignatureNotFoundError=rr;exports.AccountNotFoundError=An;exports.AccountStateConflictError=Bs;exports.AccountTypeNotSupportedError=bo;exports.BaseError=u;exports.BytesSizeMismatchError=or;exports.CallExecutionError=nn;exports.Chain=m;exports.ChainDoesNotSupportContract=lo;exports.ChainMismatchError=fo;exports.ChainNotFoundError=ho;exports.ClientChainNotConfiguredError=po;exports.ContractFunctionExecutionError=Os;exports.ContractFunctionRevertedError=Hs;exports.ContractFunctionZeroDataError=js;exports.CounterfactualDeploymentFailedError=Ds;exports.DecodeLogDataMismatch=ir;exports.DecodeLogTopicsMismatch=ar;exports.ExecutionRevertedError=j;exports.Hash=We;exports.InvalidAddressError=v;exports.InvalidArrayError=Ft;exports.InvalidBytesLengthError=lr;exports.LruMap=Ye;exports.PositionOutOfBoundsError=Yt;exports.RawContractError=Rs;exports.StateAssignmentConflictError=Ps;exports.TransactionExecutionError=Cs;exports.TransactionNotFoundError=Ss;exports.TransactionReceiptNotFoundError=ks;exports.TransactionReceiptRevertedError=zs;exports.UnknownNodeError=nt;exports.VIEM_CHAINS=Go;exports.WaitForTransactionReceiptTimeoutError=Us;exports.abytes=_;exports.aexists=de;exports.ahash=Ir;exports.anumber=ue;exports.assertRequest=un;exports.blobsToCommitments=st;exports.blobsToProofs=ot;exports.bytesRegex=jn;exports.bytesRegex$1=qr;exports.bytesToHex=w;exports.bytesToString=Xt;exports.checksumAddress=xe;exports.clean=q;exports.commitmentsToVersionedHashes=hn;exports.concat=V;exports.concatBytes=Mr;exports.concatHex=K;exports.decodeAbiParameters=Jt;exports.decodeErrorResult=Qt;exports.encodeAbiParameters=es;exports.execTyped=At;exports.extract=an;exports.formatAbiItem=R;exports.formatAbiItem$1=vt;exports.formatAbiParameters=X;exports.formatBlock=ln;exports.formatEther=tt;exports.formatGwei=P;exports.formatLog=En;exports.formatTransaction=Ae;exports.formatTransactionReceipt=Bn;exports.formatTransactionRequest=cn;exports.getAbiItem=Wt;exports.getAbortError=Ls;exports.getAddress=Xr;exports.getCallError=wn;exports.getNodeError=on;exports.getTransactionType=xn;exports.getUrl=Gs;exports.hexToBigInt=L;exports.hexToBool=mr;exports.hexToBytes=k;exports.hexToNumber=Q;exports.integerRegex=Dn;exports.integerRegex$1=Vt;exports.isAbortError=Ns;exports.isAddress=A;exports.isHex=Z;exports.isTupleRegex=Rn;exports.keccak256=Ke;exports.keccak_256=Gt;exports.numberToHex=f;exports.padHex=C;exports.parseAccount=Ee;exports.prettyPrint=he;exports.randomBytes=Lr;exports.receiptStatuses=vn;exports.sha256=fn;exports.size=y;exports.slice=ee;exports.sliceHex=_t;exports.solidityError=Kt;exports.stringToBytes=Ve;exports.stringToHex=_e;exports.stringify=qt;exports.toBlobSidecars=gn;exports.toBytes=ye;exports.toBytes$1=ge;exports.toEventSelector=Ht;exports.toFunctionSelector=qe;exports.toHex=D;exports.toRlp=N;exports.trim=B;
|
|
38
|
+
//# sourceMappingURL=constants-PXB3A4Yl.cjs.map
|