@pufferfinance/puffer-sdk 1.23.1 → 1.24.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.
Files changed (136) hide show
  1. package/dist/api/puffer-client-helpers.cjs +1 -1
  2. package/dist/api/puffer-client-helpers.cjs.map +1 -1
  3. package/dist/api/puffer-client-helpers.js +3 -3
  4. package/dist/api/puffer-client-helpers.js.map +1 -1
  5. package/dist/api/puffer-client.cjs +1 -1
  6. package/dist/api/puffer-client.js +2 -2
  7. package/dist/ccip-FdkpGaX4.cjs +2 -0
  8. package/dist/ccip-FdkpGaX4.cjs.map +1 -0
  9. package/dist/{ccip-CiQCCFUl.js → ccip-w5ez1DCx.js} +43 -39
  10. package/dist/ccip-w5ez1DCx.js.map +1 -0
  11. package/dist/chains/constants.cjs +1 -1
  12. package/dist/chains/constants.d.ts +2 -1
  13. package/dist/chains/constants.js +1 -1
  14. package/dist/{constants-BaHwPdbi.js → constants-BweLzNUt.js} +690 -616
  15. package/dist/constants-BweLzNUt.js.map +1 -0
  16. package/dist/constants-JN89aXws.cjs +9 -0
  17. package/dist/constants-JN89aXws.cjs.map +1 -0
  18. package/dist/contracts/addresses.cjs +1 -1
  19. package/dist/contracts/addresses.js +1 -1
  20. package/dist/contracts/handlers/carrot-staking-handler.cjs +1 -1
  21. package/dist/contracts/handlers/carrot-staking-handler.d.ts +368 -352
  22. package/dist/contracts/handlers/carrot-staking-handler.js +2 -2
  23. package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
  24. package/dist/contracts/handlers/concrete-vault-handler.d.ts +368 -352
  25. package/dist/contracts/handlers/concrete-vault-handler.js +2 -2
  26. package/dist/contracts/handlers/distributor-handler.cjs +1 -1
  27. package/dist/contracts/handlers/distributor-handler.d.ts +368 -352
  28. package/dist/contracts/handlers/distributor-handler.js +2 -2
  29. package/dist/contracts/handlers/erc20-permit-handler.cjs +1 -1
  30. package/dist/contracts/handlers/erc20-permit-handler.cjs.map +1 -1
  31. package/dist/contracts/handlers/erc20-permit-handler.d.ts +368 -352
  32. package/dist/contracts/handlers/erc20-permit-handler.js +3 -3
  33. package/dist/contracts/handlers/erc20-permit-handler.js.map +1 -1
  34. package/dist/contracts/handlers/guardian-module-handler.cjs +1 -1
  35. package/dist/contracts/handlers/guardian-module-handler.d.ts +368 -352
  36. package/dist/contracts/handlers/guardian-module-handler.js +2 -2
  37. package/dist/contracts/handlers/institutional-access-manager-handler.cjs +1 -1
  38. package/dist/contracts/handlers/institutional-access-manager-handler.d.ts +368 -352
  39. package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
  40. package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
  41. package/dist/contracts/handlers/institutional-vault-handler.d.ts +368 -352
  42. package/dist/contracts/handlers/institutional-vault-handler.js +2 -2
  43. package/dist/contracts/handlers/l1-reward-manager-handler.cjs +1 -1
  44. package/dist/contracts/handlers/l1-reward-manager-handler.d.ts +368 -352
  45. package/dist/contracts/handlers/l1-reward-manager-handler.js +2 -2
  46. package/dist/contracts/handlers/l2-reward-manager-handler.cjs +1 -1
  47. package/dist/contracts/handlers/l2-reward-manager-handler.d.ts +368 -352
  48. package/dist/contracts/handlers/l2-reward-manager-handler.js +2 -2
  49. package/dist/contracts/handlers/mtw-carrot-handler.cjs +1 -1
  50. package/dist/contracts/handlers/mtw-carrot-handler.d.ts +368 -352
  51. package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
  52. package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
  53. package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +368 -352
  54. package/dist/contracts/handlers/nucleus-accountant-handler.js +1 -1
  55. package/dist/contracts/handlers/nucleus-atomic-queue-handler.cjs +1 -1
  56. package/dist/contracts/handlers/nucleus-atomic-queue-handler.d.ts +368 -352
  57. package/dist/contracts/handlers/nucleus-atomic-queue-handler.js +2 -2
  58. package/dist/contracts/handlers/nucleus-boring-vault-handler.cjs +1 -1
  59. package/dist/contracts/handlers/nucleus-boring-vault-handler.d.ts +368 -352
  60. package/dist/contracts/handlers/nucleus-boring-vault-handler.js +2 -2
  61. package/dist/contracts/handlers/nucleus-teller-handler.cjs +1 -1
  62. package/dist/contracts/handlers/nucleus-teller-handler.d.ts +368 -352
  63. package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
  64. package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
  65. package/dist/contracts/handlers/puf-locker-handler.d.ts +368 -352
  66. package/dist/contracts/handlers/puf-locker-handler.js +2 -2
  67. package/dist/contracts/handlers/puffer-depositor-handler.cjs +1 -1
  68. package/dist/contracts/handlers/puffer-depositor-handler.d.ts +368 -352
  69. package/dist/contracts/handlers/puffer-depositor-handler.js +2 -2
  70. package/dist/contracts/handlers/puffer-l2-depositor-handler.cjs +1 -1
  71. package/dist/contracts/handlers/puffer-l2-depositor-handler.d.ts +368 -352
  72. package/dist/contracts/handlers/puffer-l2-depositor-handler.js +2 -2
  73. package/dist/contracts/handlers/puffer-oracle-v2-handler.cjs +1 -1
  74. package/dist/contracts/handlers/puffer-oracle-v2-handler.d.ts +368 -352
  75. package/dist/contracts/handlers/puffer-oracle-v2-handler.js +2 -2
  76. package/dist/contracts/handlers/puffer-protocol-handler.cjs +1 -1
  77. package/dist/contracts/handlers/puffer-protocol-handler.d.ts +368 -352
  78. package/dist/contracts/handlers/puffer-protocol-handler.js +2 -2
  79. package/dist/contracts/handlers/puffer-vault-handler.cjs +1 -1
  80. package/dist/contracts/handlers/puffer-vault-handler.d.ts +368 -352
  81. package/dist/contracts/handlers/puffer-vault-handler.js +2 -2
  82. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.cjs +1 -1
  83. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.d.ts +368 -352
  84. package/dist/contracts/handlers/puffer-withdrawal-manager-handler.js +2 -2
  85. package/dist/contracts/handlers/validator-ticket-handler.cjs +1 -1
  86. package/dist/contracts/handlers/validator-ticket-handler.d.ts +368 -352
  87. package/dist/contracts/handlers/validator-ticket-handler.js +2 -2
  88. package/dist/contracts/tokens.cjs +1 -1
  89. package/dist/contracts/tokens.cjs.map +1 -1
  90. package/dist/contracts/tokens.js +7 -6
  91. package/dist/contracts/tokens.js.map +1 -1
  92. package/dist/contracts/vaults-addresses.cjs +1 -1
  93. package/dist/contracts/vaults-addresses.js +1 -1
  94. package/dist/createWalletClient-CYva1_XM.js +3262 -0
  95. package/dist/createWalletClient-CYva1_XM.js.map +1 -0
  96. package/dist/createWalletClient-LeyDLKOH.cjs +5 -0
  97. package/dist/createWalletClient-LeyDLKOH.cjs.map +1 -0
  98. package/dist/{getContract-DGV8J5xI.js → getContract-BES7gSby.js} +2 -2
  99. package/dist/getContract-BES7gSby.js.map +1 -0
  100. package/dist/{getContract-RNLlK54b.cjs → getContract-F-fd_vf7.cjs} +2 -2
  101. package/dist/{getContract-DGV8J5xI.js.map → getContract-F-fd_vf7.cjs.map} +1 -1
  102. package/dist/localBatchGatewayRequest-CCdxn5t3.js +90 -0
  103. package/dist/localBatchGatewayRequest-CCdxn5t3.js.map +1 -0
  104. package/dist/localBatchGatewayRequest-DCWU6kQW.cjs +2 -0
  105. package/dist/localBatchGatewayRequest-DCWU6kQW.cjs.map +1 -0
  106. package/dist/main.cjs +1 -1
  107. package/dist/main.js +1 -1
  108. package/dist/secp256k1-DGP4Y7VW.js +1291 -0
  109. package/dist/secp256k1-DGP4Y7VW.js.map +1 -0
  110. package/dist/secp256k1-QOxLqUEc.cjs +2 -0
  111. package/dist/secp256k1-QOxLqUEc.cjs.map +1 -0
  112. package/dist/utils/version.cjs +1 -1
  113. package/dist/utils/version.js +1 -1
  114. package/dist/writeContract-Cqc9vxbU.cjs +36 -0
  115. package/dist/writeContract-Cqc9vxbU.cjs.map +1 -0
  116. package/dist/{writeContract-BU3yK-Xj.js → writeContract-QAArm5iD.js} +1894 -1361
  117. package/dist/writeContract-QAArm5iD.js.map +1 -0
  118. package/package.json +2 -2
  119. package/dist/ccip-CiQCCFUl.js.map +0 -1
  120. package/dist/ccip-DIWF4nDh.cjs +0 -2
  121. package/dist/ccip-DIWF4nDh.cjs.map +0 -1
  122. package/dist/constants-BaHwPdbi.js.map +0 -1
  123. package/dist/constants-c-vATmlG.cjs +0 -9
  124. package/dist/constants-c-vATmlG.cjs.map +0 -1
  125. package/dist/createWalletClient-D74YRepQ.js +0 -3290
  126. package/dist/createWalletClient-D74YRepQ.js.map +0 -1
  127. package/dist/createWalletClient-DKSH6l9_.cjs +0 -6
  128. package/dist/createWalletClient-DKSH6l9_.cjs.map +0 -1
  129. package/dist/getContract-RNLlK54b.cjs.map +0 -1
  130. package/dist/secp256k1-B-LxKJrQ.js +0 -1340
  131. package/dist/secp256k1-B-LxKJrQ.js.map +0 -1
  132. package/dist/secp256k1-CC-cv1vD.cjs +0 -2
  133. package/dist/secp256k1-CC-cv1vD.cjs.map +0 -1
  134. package/dist/writeContract-BU3yK-Xj.js.map +0 -1
  135. package/dist/writeContract-CKqv1dsa.cjs +0 -32
  136. package/dist/writeContract-CKqv1dsa.cjs.map +0 -1
@@ -0,0 +1,9 @@
1
+ "use strict";function V(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function E(e){return V(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const _e="2.33.1";let K={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${_e}`};class u extends Error{constructor(t,n={}){var a;const s=(()=>{var c;return n.cause instanceof u?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),r=n.cause instanceof u&&n.cause.docsPath||n.docsPath,i=(a=K.getDocsUrl)==null?void 0:a.call(K,{...n,docsPath:r}),o=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...s?[`Details: ${s}`]:[],...K.version?[`Version: ${K.version}`]:[]].join(`
2
+ `);super(o,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=s,this.docsPath=r,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=_e}walk(t){return Ve(this,t)}}function Ve(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Ve(e.cause,t):t?null:e}class De extends u{constructor({offset:t,position:n,size:s}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${s}).`,{name:"SliceOffsetOutOfBoundsError"})}}class Re extends u{constructor({size:t,targetSize:n,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}}class Zt extends u{constructor({size:t,targetSize:n,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} is expected to be ${n} ${s} long, but is ${t} ${s} long.`,{name:"InvalidBytesLengthError"})}}function D(e,{dir:t,size:n=32}={}){return typeof e=="string"?je(e,{dir:t,size:n}):qt(e,{dir:t,size:n})}function je(e,{dir:t,size:n=32}={}){if(n===null)return e;const s=e.replace("0x","");if(s.length>n*2)throw new Re({size:Math.ceil(s.length/2),targetSize:n,type:"hex"});return`0x${s[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function qt(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new Re({size:e.length,targetSize:n,type:"bytes"});const s=new Uint8Array(n);for(let r=0;r<n;r++){const i=t==="right";s[i?r:n-r-1]=e[i?r:e.length-r-1]}return s}class Ke extends u{constructor({max:t,min:n,signed:s,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${s?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}}class Yt 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 Jt 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 Qt extends u{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function C(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,s=0;for(let r=0;r<n.length-1&&n[t==="left"?r:n.length-r-1].toString()==="0";r++)s++;return n=t==="left"?n.slice(s):n.slice(0,n.length-s),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function H(e,{size:t}){if(E(e)>t)throw new Qt({givenSize:E(e),maxSize:t})}function L(e,t={}){const{signed:n}=t;t.size&&H(e,{size:t.size});const s=BigInt(e);if(!n)return s;const r=(e.length-2)/2,i=(1n<<BigInt(r)*8n-1n)-1n;return s<=i?s:s-BigInt(`0x${"f".padStart(r*2,"f")}`)-1n}function en(e,t={}){let n=e;if(t.size&&(H(n,{size:t.size}),n=C(n)),C(n)==="0x00")return!1;if(C(n)==="0x01")return!0;throw new Jt(n)}function J(e,t={}){return Number(L(e,t))}const tn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function G(e,t={}){return typeof e=="number"||typeof e=="bigint"?f(e,t):typeof e=="string"?Xe(e,t):typeof e=="boolean"?We(e,t):P(e,t)}function We(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(H(n,{size:t.size}),D(n,{size:t.size})):n}function P(e,t={}){let n="";for(let r=0;r<e.length;r++)n+=tn[e[r]];const s=`0x${n}`;return typeof t.size=="number"?(H(s,{size:t.size}),D(s,{dir:"right",size:t.size})):s}function f(e,t={}){const{signed:n,size:s}=t,r=BigInt(e);let i;s?n?i=(1n<<BigInt(s)*8n-1n)-1n:i=2n**(BigInt(s)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof i=="bigint"&&n?-i-1n:0;if(i&&r>i||r<o){const c=typeof e=="bigint"?"n":"";throw new Ke({max:i?`${i}${c}`:void 0,min:`${o}${c}`,signed:n,size:s,value:`${e}${c}`})}const a=`0x${(n&&r<0?(1n<<BigInt(s*8))+BigInt(r):r).toString(16)}`;return s?D(a,{size:s}):a}const nn=new TextEncoder;function Xe(e,t={}){const n=nn.encode(e);return P(n,t)}const sn=new TextEncoder;function pe(e,t={}){return typeof e=="number"||typeof e=="bigint"?on(e,t):typeof e=="boolean"?rn(e,t):V(e)?U(e,t):be(e,t)}function rn(e,t={}){const n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?(H(n,{size:t.size}),D(n,{size:t.size})):n}const y={zero:48,nine:57,A:65,F:70,a:97,f:102};function ze(e){if(e>=y.zero&&e<=y.nine)return e-y.zero;if(e>=y.A&&e<=y.F)return e-(y.A-10);if(e>=y.a&&e<=y.f)return e-(y.a-10)}function U(e,t={}){let n=e;t.size&&(H(n,{size:t.size}),n=D(n,{dir:"right",size:t.size}));let s=n.slice(2);s.length%2&&(s=`0${s}`);const r=s.length/2,i=new Uint8Array(r);for(let o=0,a=0;o<r;o++){const c=ze(s.charCodeAt(a++)),d=ze(s.charCodeAt(a++));if(c===void 0||d===void 0)throw new u(`Invalid byte sequence ("${s[a-2]}${s[a-1]}" in "${s}").`);i[o]=c*16+d}return i}function on(e,t){const n=f(e,t);return U(n)}function be(e,t={}){const n=sn.encode(e);return typeof t.size=="number"?(H(n,{size:t.size}),D(n,{dir:"right",size:t.size})):n}const re=BigInt(2**32-1),ke=BigInt(32);function an(e,t=!1){return t?{h:Number(e&re),l:Number(e>>ke&re)}:{h:Number(e>>ke&re)|0,l:Number(e&re)|0}}function cn(e,t=!1){const n=e.length;let s=new Uint32Array(n),r=new Uint32Array(n);for(let i=0;i<n;i++){const{h:o,l:a}=an(e[i],t);[s[i],r[i]]=[o,a]}return[s,r]}const un=(e,t,n)=>e<<n|t>>>32-n,dn=(e,t,n)=>t<<n|e>>>32-n,ln=(e,t,n)=>t<<n-32|e>>>64-n,fn=(e,t,n)=>e<<n-32|t>>>64-n,M=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Ze(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Q(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function z(e,...t){if(!Ze(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 hn(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Q(e.outputLen),Q(e.blockLen)}function ee(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 qe(e,t){z(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function pn(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function _(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function de(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return e<<32-t|e>>>t}const bn=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function mn(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function xn(e){for(let t=0;t<e.length;t++)e[t]=mn(e[t]);return e}const He=bn?e=>e:xn,Ye=typeof Uint8Array.from([]).toHex=="function"&&typeof Uint8Array.fromHex=="function",gn=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function yn(e){if(z(e),Ye)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=gn[e[n]];return t}const w={_0:48,_9:57,A:65,F:70,a:97,f:102};function Se(e){if(e>=w._0&&e<=w._9)return e-w._0;if(e>=w.A&&e<=w.F)return e-(w.A-10);if(e>=w.a&&e<=w.f)return e-(w.a-10)}function wn(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);if(Ye)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const s=new Uint8Array(n);for(let r=0,i=0;r<n;r++,i+=2){const o=Se(e.charCodeAt(i)),a=Se(e.charCodeAt(i+1));if(o===void 0||a===void 0){const c=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+c+'" at index '+i)}s[r]=o*16+a}return s}function En(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ie(e){return typeof e=="string"&&(e=En(e)),z(e),e}function Bn(...e){let t=0;for(let s=0;s<e.length;s++){const r=e[s];z(r),t+=r.length}const n=new Uint8Array(t);for(let s=0,r=0;s<e.length;s++){const i=e[s];n.set(i,r),r+=i.length}return n}class me{}function Je(e){const t=s=>e().update(ie(s)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Tn(e=32){if(M&&typeof M.getRandomValues=="function")return M.getRandomValues(new Uint8Array(e));if(M&&typeof M.randomBytes=="function")return Uint8Array.from(M.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const In=BigInt(0),W=BigInt(1),Pn=BigInt(2),vn=BigInt(7),An=BigInt(256),$n=BigInt(113),Qe=[],et=[],tt=[];for(let e=0,t=W,n=1,s=0;e<24;e++){[n,s]=[s,(2*n+3*s)%5],Qe.push(2*(5*s+n)),et.push((e+1)*(e+2)/2%64);let r=In;for(let i=0;i<7;i++)t=(t<<W^(t>>vn)*$n)%An,t&Pn&&(r^=W<<(W<<BigInt(i))-W);tt.push(r)}const nt=cn(tt,!0),Cn=nt[0],Fn=nt[1],Le=(e,t,n)=>n>32?ln(e,t,n):un(e,t,n),Ge=(e,t,n)=>n>32?fn(e,t,n):dn(e,t,n);function Un(e,t=24){const n=new Uint32Array(10);for(let s=24-t;s<24;s++){for(let o=0;o<10;o++)n[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,d=n[c],h=n[c+1],l=Le(d,h,1)^n[a],b=Ge(d,h,1)^n[a+1];for(let p=0;p<50;p+=10)e[o+p]^=l,e[o+p+1]^=b}let r=e[2],i=e[3];for(let o=0;o<24;o++){const a=et[o],c=Le(r,i,a),d=Ge(r,i,a),h=Qe[o];r=e[h],i=e[h+1],e[h]=c,e[h+1]=d}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)n[a]=e[o+a];for(let a=0;a<10;a++)e[o+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=Cn[s],e[1]^=Fn[s]}_(n)}class xe extends me{constructor(t,n,s,r=!1,i=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=s,this.enableXOF=r,this.rounds=i,Q(s),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=pn(this.state)}clone(){return this._cloneInto()}keccak(){He(this.state32),Un(this.state32,this.rounds),He(this.state32),this.posOut=0,this.pos=0}update(t){ee(this),t=ie(t),z(t);const{blockLen:n,state:s}=this,r=t.length;for(let i=0;i<r;){const o=Math.min(n-this.pos,r-i);for(let a=0;a<o;a++)s[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:n,pos:s,blockLen:r}=this;t[s]^=n,(n&128)!==0&&s===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){ee(this,!1),z(t),this.finish();const n=this.state,{blockLen:s}=this;for(let r=0,i=t.length;r<i;){this.posOut>=s&&this.keccak();const o=Math.min(s-this.posOut,i-r);t.set(n.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Q(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(qe(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,_(this.state)}_cloneInto(t){const{blockLen:n,suffix:s,outputLen:r,rounds:i,enableXOF:o}=this;return t||(t=new xe(n,s,r,o,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=s,t.outputLen=r,t.enableXOF=o,t.destroyed=this.destroyed,t}}const zn=(e,t,n)=>Je(()=>new xe(t,e,n)),st=zn(1,136,256/8);function rt(e,t){const n=t||"hex",s=st(V(e,{strict:!1})?pe(e):e);return n==="bytes"?s:G(s)}class B 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 ge 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)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const s=this.keys().next().value;s&&this.delete(s)}return this}}const le=new ge(8192);function ye(e,t){if(le.has(`${e}.${t}`))return le.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),s=rt(be(n),"bytes"),r=n.split("");for(let o=0;o<40;o+=2)s[o>>1]>>4>=8&&r[o]&&(r[o]=r[o].toUpperCase()),(s[o>>1]&15)>=8&&r[o+1]&&(r[o+1]=r[o+1].toUpperCase());const i=`0x${r.join("")}`;return le.set(`${e}.${t}`,i),i}function kn(e,t){if(!T(e,{strict:!1}))throw new B({address:e});return ye(e,t)}const Hn=/^0x[a-fA-F0-9]{40}$/,fe=new ge(8192);function T(e,t){const{strict:n=!0}=t??{},s=`${e}.${n}`;if(fe.has(s))return fe.get(s);const r=Hn.test(e)?e.toLowerCase()===e?!0:n?ye(e)===e:!0:!1;return fe.set(s,r),r}function Sn(e){return typeof e[0]=="string"?O(e):Ln(e)}function Ln(e){let t=0;for(const r of e)t+=r.length;const n=new Uint8Array(t);let s=0;for(const r of e)n.set(r,s),s+=r.length;return n}function O(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function it(e,t,n,{strict:s}={}){return V(e,{strict:!1})?ut(e,t,n,{strict:s}):ct(e,t,n,{strict:s})}function ot(e,t){if(typeof t=="number"&&t>0&&t>E(e)-1)throw new De({offset:t,position:"start",size:E(e)})}function at(e,t,n){if(typeof t=="number"&&typeof n=="number"&&E(e)!==n-t)throw new De({offset:n,position:"end",size:E(e)})}function ct(e,t,n,{strict:s}={}){ot(e,t);const r=e.slice(t,n);return s&&at(r,t,n),r}function ut(e,t,n,{strict:s}={}){ot(e,t);const r=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return s&&at(r,t,n),r}class Oe extends u{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class dt extends u{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class Gn extends u{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const On={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 Gn({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new dt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Oe({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 Oe({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 we(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(On);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}const Nn={gwei:9,wei:18},Mn={ether:-9,wei:9};function lt(e,t){let n=e.toString();const s=n.startsWith("-");s&&(n=n.slice(1)),n=n.padStart(t,"0");let[r,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,""),`${s?"-":""}${r||"0"}${i?`.${i}`:""}`}function ft(e,t="wei"){return lt(e,Nn[t])}function F(e,t="wei"){return lt(e,Mn[t])}function Ee(e){const t=Object.entries(e).map(([s,r])=>r===void 0||r===!1?null:[s,r]).filter(Boolean),n=t.reduce((s,[r])=>Math.max(s,r.length),0);return t.map(([s,r])=>` ${`${s}:`.padEnd(n+1)} ${r}`).join(`
3
+ `)}class _n extends u{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
4
+ `),{name:"FeeConflictError"})}}class Vn extends u{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Dn extends u{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Ee(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 Rn 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 jn extends u{constructor(t,{account:n,docsPath:s,chain:r,data:i,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:h,to:l,value:b}){var v;const p=Ee({chain:r&&`${r==null?void 0:r.name} (id: ${r==null?void 0:r.id})`,from:n==null?void 0:n.address,to:l,value:typeof b<"u"&&`${ft(b)} ${((v=r==null?void 0:r.nativeCurrency)==null?void 0:v.symbol)||"ETH"}`,data:i,gas:o,gasPrice:typeof a<"u"&&`${F(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${F(c)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${F(d)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:s,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 Kn extends u{constructor({blockHash:t,blockNumber:n,blockTag:s,hash:r,index:i}){let o="Transaction";s&&i!==void 0&&(o=`Transaction at block time "${s}" at index "${i}"`),t&&i!==void 0&&(o=`Transaction at block hash "${t}" at index "${i}"`),n&&i!==void 0&&(o=`Transaction at block number "${n}" at index "${i}"`),r&&(o=`Transaction with hash "${r}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class Wn 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 Xn extends u{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function k(e,t="hex"){const n=ht(e),s=we(new Uint8Array(n.length));return n.encode(s),t==="hex"?P(s.bytes):s.bytes}function ht(e){return Array.isArray(e)?Zn(e.map(t=>ht(t))):qn(e)}function Zn(e){const t=e.reduce((r,i)=>r+i.length,0),n=pt(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),n===1?r.pushUint8(t):n===2?r.pushUint16(t):n===3?r.pushUint24(t):r.pushUint32(t));for(const{encode:i}of e)i(r)}}}function qn(e){const t=typeof e=="string"?U(e):e,n=pt(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length,encode(r){t.length===1&&t[0]<128?r.pushBytes(t):t.length<=55?(r.pushByte(128+t.length),r.pushBytes(t)):(r.pushByte(183+n),n===1?r.pushUint8(t.length):n===2?r.pushUint16(t.length):n===3?r.pushUint24(t.length):r.pushUint32(t.length),r.pushBytes(t))}}}function pt(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 Be extends u{constructor({cause:t,message:n}={}){var r;const s=(r=n==null?void 0:n.replace("execution reverted: ",""))==null?void 0:r.replace("execution reverted","");super(`Execution reverted ${s?`with reason: ${s}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Be,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Be,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class te extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${F(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(te,"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 bt extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${F(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(bt,"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 mt 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(mt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class xt 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(`
5
+ `),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class gt 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(gt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class yt extends u{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
6
+ `),{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(yt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class wt 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(wt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Et 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(Et,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Bt extends u{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Bt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Te extends u{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:s}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${F(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s?` = ${F(s)} gwei`:""}).`].join(`
7
+ `),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Te,"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 Yn extends u{constructor({cause:t}){super(`An error occurred while executing: ${t==null?void 0:t.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Ie(e,t){return({exclude:n,format:s})=>({exclude:n,format:r=>{const i=t(r);if(n)for(const o of n)delete i[o];return{...i,...s(r)}},type:e})}const oe=2n**256n-1n,Tt={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ae(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?J(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?J(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Tt[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&&(t.authorizationList=Qn(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}const Jn=Ie("transaction",ae);function Qn(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 It(e){const t=(e.transactions??[]).map(n=>typeof n=="string"?n:ae(n));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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const es=Ie("block",It);function Pe(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),s=typeof e.blobs[0]=="string"?e.blobs.map(i=>U(i)):e.blobs,r=[];for(const i of s)r.push(Uint8Array.from(t.blobToKzgCommitment(i)));return n==="bytes"?r:r.map(i=>P(i))}function ve(e){const{kzg:t}=e,n=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),s=typeof e.blobs[0]=="string"?e.blobs.map(o=>U(o)):e.blobs,r=typeof e.commitments[0]=="string"?e.commitments.map(o=>U(o)):e.commitments,i=[];for(let o=0;o<s.length;o++){const a=s[o],c=r[o];i.push(Uint8Array.from(t.computeBlobKzgProof(a,c)))}return n==="bytes"?i:i.map(o=>P(o))}function ts(e,t,n,s){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,n,s);const r=BigInt(32),i=BigInt(4294967295),o=Number(n>>r&i),a=Number(n&i),c=s?4:0,d=s?0:4;e.setUint32(t+c,o,s),e.setUint32(t+d,a,s)}function ns(e,t,n){return e&t^~e&n}function ss(e,t,n){return e&t^e&n^t&n}class rs extends me{constructor(t,n,s,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=n,this.padOffset=s,this.isLE=r,this.buffer=new Uint8Array(t),this.view=de(this.buffer)}update(t){ee(this),t=ie(t),z(t);const{view:n,buffer:s,blockLen:r}=this,i=t.length;for(let o=0;o<i;){const a=Math.min(r-this.pos,i-o);if(a===r){const c=de(t);for(;r<=i-o;o+=r)this.process(c,o);continue}s.set(t.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){ee(this),qe(t,this),this.finished=!0;const{buffer:n,view:s,blockLen:r,isLE:i}=this;let{pos:o}=this;n[o++]=128,_(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(s,0),o=0);for(let l=o;l<r;l++)n[l]=0;ts(s,r-8,BigInt(this.length*8),i),this.process(s,0);const a=de(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],i)}digest(){const{buffer:t,outputLen:n}=this;this.digestInto(t);const s=t.slice(0,n);return this.destroy(),s}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:n,buffer:s,length:r,finished:i,destroyed:o,pos:a}=this;return t.destroyed=o,t.finished=i,t.length=r,t.pos=a,r%n&&t.buffer.set(s),t}clone(){return this._cloneInto()}}const A=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),is=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),$=new Uint32Array(64);class os extends rs{constructor(t=32){super(64,t,8,!1),this.A=A[0]|0,this.B=A[1]|0,this.C=A[2]|0,this.D=A[3]|0,this.E=A[4]|0,this.F=A[5]|0,this.G=A[6]|0,this.H=A[7]|0}get(){const{A:t,B:n,C:s,D:r,E:i,F:o,G:a,H:c}=this;return[t,n,s,r,i,o,a,c]}set(t,n,s,r,i,o,a,c){this.A=t|0,this.B=n|0,this.C=s|0,this.D=r|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(t,n){for(let l=0;l<16;l++,n+=4)$[l]=t.getUint32(n,!1);for(let l=16;l<64;l++){const b=$[l-15],p=$[l-2],v=g(b,7)^g(b,18)^b>>>3,N=g(p,17)^g(p,19)^p>>>10;$[l]=N+$[l-7]+v+$[l-16]|0}let{A:s,B:r,C:i,D:o,E:a,F:c,G:d,H:h}=this;for(let l=0;l<64;l++){const b=g(a,6)^g(a,11)^g(a,25),p=h+b+ns(a,c,d)+is[l]+$[l]|0,N=(g(s,2)^g(s,13)^g(s,22))+ss(s,r,i)|0;h=d,d=c,c=a,a=o+p|0,o=i,i=r,r=s,s=p+N|0}s=s+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+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(s,r,i,o,a,c,d,h)}roundClean(){_($)}destroy(){this.set(0,0,0,0,0,0,0,0),_(this.buffer)}}const Pt=Je(()=>new os),as=Pt;function cs(e,t){return as(V(e,{strict:!1})?pe(e):e)}function us(e){const{commitment:t,version:n=1}=e,s=e.to??(typeof t=="string"?"hex":"bytes"),r=cs(t);return r.set([n],0),s==="bytes"?r:P(r)}function vt(e){const{commitments:t,version:n}=e,s=e.to??(typeof t[0]=="string"?"hex":"bytes"),r=[];for(const i of t)r.push(us({commitment:i,to:s,version:n}));return r}const Ne=6,At=32,Ae=4096,$t=At*Ae,Me=$t*Ne-1-1*Ae*Ne,Ct=1;class ds extends u{constructor({maxSize:t,size:n}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`],name:"BlobSizeTooLargeError"})}}class Ft extends u{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class ls extends u{constructor({hash:t,size:n}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${n}`],name:"InvalidVersionedHashSizeError"})}}class fs extends u{constructor({hash:t,version:n}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Ct}`,`Received: ${n}`],name:"InvalidVersionedHashVersionError"})}}function hs(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),n=typeof e.data=="string"?U(e.data):e.data,s=E(n);if(!s)throw new Ft;if(s>Me)throw new ds({maxSize:Me,size:s});const r=[];let i=!0,o=0;for(;i;){const a=we(new Uint8Array($t));let c=0;for(;c<Ae;){const d=n.slice(o,o+(At-1));if(a.pushByte(0),a.pushBytes(d),d.length<31){a.pushByte(128),i=!1;break}c++,o+=31}r.push(a)}return t==="bytes"?r.map(a=>a.bytes):r.map(a=>P(a.bytes))}function Ut(e){const{data:t,kzg:n,to:s}=e,r=e.blobs??hs({data:t,to:s}),i=e.commitments??Pe({blobs:r,kzg:n,to:s}),o=e.proofs??ve({blobs:r,commitments:i,kzg:n,to:s}),a=[];for(let c=0;c<r.length;c++)a.push({blob:r[c],commitment:i[c],proof:o[c]});return a}function zt(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 Dn({transaction:e})}function kt(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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 ps extends u{constructor({blockNumber:t,chain:n,contract:s}){super(`Chain "${n.name}" does not support contract "${s.name}".`,{metaMessages:["This could be due to any of the following:",...t&&s.blockCreated&&s.blockCreated>t?[`- The contract "${s.name}" was not deployed until block ${s.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${s.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class bs 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 ms 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(`
8
+ `),{name:"ChainNotFoundError"})}}class xs extends u{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class ce extends u{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const Ht={"0x0":"reverted","0x1":"success"};function St(e){const t={...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(n=>kt(n)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?J(e.transactionIndex):null,status:e.status?Ht[e.status]:null,type:e.type?Tt[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const gs=Ie("transactionReceipt",St);function x(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}function ys(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:s}=n,r=n.address;if(!T(r))throw new B({address:r});if(s<0)throw new ce({chainId:s})}$e(e)}function ws(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new Ft;for(const n of t){const s=E(n),r=J(it(n,0,1));if(s!==32)throw new ls({hash:n,size:s});if(r!==Ct)throw new fs({hash:n,version:r})}}$e(e)}function $e(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:s,to:r}=e;if(t<=0)throw new ce({chainId:t});if(r&&!T(r))throw new B({address:r});if(s&&s>oe)throw new te({maxFeePerGas:s});if(n&&s&&n>s)throw new Te({maxFeePerGas:s,maxPriorityFeePerGas:n})}function Es(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:r,to:i}=e;if(t<=0)throw new ce({chainId:t});if(i&&!T(i))throw new B({address:i});if(n||r)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(s&&s>oe)throw new te({maxFeePerGas:s})}function Bs(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:s,maxFeePerGas:r,to:i}=e;if(i&&!T(i))throw new B({address:i});if(typeof t<"u"&&t<=0)throw new ce({chainId:t});if(n||r)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(s&&s>oe)throw new te({maxFeePerGas:s})}function ue(e){if(!e||e.length===0)return[];const t=[];for(let n=0;n<e.length;n++){const{address:s,storageKeys:r}=e[n];for(let i=0;i<r.length;i++)if(r[i].length-2!==64)throw new Rn({storageKey:r[i]});if(!T(s,{strict:!1}))throw new B({address:s});t.push([s,r])}return t}function Ts(e,t){const n=zt(e);return n==="eip1559"?vs(e,t):n==="eip2930"?As(e,t):n==="eip4844"?Ps(e,t):n==="eip7702"?Is(e,t):$s(e,t)}function Is(e,t){const{authorizationList:n,chainId:s,gas:r,nonce:i,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:d,accessList:h,data:l}=e;ys(e);const b=ue(h),p=Cs(n);return O(["0x04",k([f(s),i?f(i):"0x",d?f(d):"0x",c?f(c):"0x",r?f(r):"0x",o??"0x",a?f(a):"0x",l??"0x",b,p,...ne(e,t)])])}function Ps(e,t){const{chainId:n,gas:s,nonce:r,to:i,value:o,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:d,accessList:h,data:l}=e;ws(e);let b=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(typeof b>"u"||typeof p>"u")){const S=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(j=>P(j)),se=e.kzg,R=Pe({blobs:S,kzg:se});if(typeof b>"u"&&(b=vt({commitments:R})),typeof p>"u"){const j=ve({blobs:S,commitments:R,kzg:se});p=Ut({blobs:S,commitments:R,proofs:j})}}const v=ue(h),N=[f(n),r?f(r):"0x",d?f(d):"0x",c?f(c):"0x",s?f(s):"0x",i??"0x",o?f(o):"0x",l??"0x",v,a?f(a):"0x",b??[],...ne(e,t)],Ce=[],Fe=[],Ue=[];if(p)for(let S=0;S<p.length;S++){const{blob:se,commitment:R,proof:j}=p[S];Ce.push(se),Fe.push(R),Ue.push(j)}return O(["0x03",k(p?[N,Ce,Fe,Ue]:N)])}function vs(e,t){const{chainId:n,gas:s,nonce:r,to:i,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:d,data:h}=e;$e(e);const l=ue(d),b=[f(n),r?f(r):"0x",c?f(c):"0x",a?f(a):"0x",s?f(s):"0x",i??"0x",o?f(o):"0x",h??"0x",l,...ne(e,t)];return O(["0x02",k(b)])}function As(e,t){const{chainId:n,gas:s,data:r,nonce:i,to:o,value:a,accessList:c,gasPrice:d}=e;Es(e);const h=ue(c),l=[f(n),i?f(i):"0x",d?f(d):"0x",s?f(s):"0x",o??"0x",a?f(a):"0x",r??"0x",h,...ne(e,t)];return O(["0x01",k(l)])}function $s(e,t){const{chainId:n=0,gas:s,data:r,nonce:i,to:o,value:a,gasPrice:c}=e;Bs(e);let d=[i?f(i):"0x",c?f(c):"0x",s?f(s):"0x",o??"0x",a?f(a):"0x",r??"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 Vn({v:t.v});return p})(),l=C(t.r),b=C(t.s);d=[...d,f(h),l==="0x00"?"0x":l,b==="0x00"?"0x":b]}else n>0&&(d=[...d,f(n),"0x","0x"]);return k(d)}function ne(e,t){const n=t??e,{v:s,yParity:r}=n;if(typeof n.r>"u")return[];if(typeof n.s>"u")return[];if(typeof s>"u"&&typeof r>"u")return[];const i=C(n.r),o=C(n.s);return[typeof r=="number"?r?f(1):"0x":s===0n?"0x":s===1n?f(1):s===27n?"0x":f(1),i==="0x00"?"0x":i,o==="0x00"?"0x":o]}function Cs(e){if(!e||e.length===0)return[];const t=[];for(const n of e){const{chainId:s,nonce:r,...i}=n,o=n.address;t.push([s?G(s):"0x",o,r?G(r):"0x",...ne({},i)])}return t}const Fs={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},Us={block:es({format(e){var n;return{transactions:(n=e.transactions)==null?void 0:n.map(s=>{if(typeof s=="string")return s;const r=ae(s);return r.typeHex==="0x7e"&&(r.isSystemTx=s.isSystemTx,r.mint=s.mint?L(s.mint):void 0,r.sourceHash=s.sourceHash,r.type="deposit"),r}),stateRoot:e.stateRoot}}}),transaction:Jn({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:gs({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 zs(e,t){return Ss(e)?Hs(e):Ts(e,t)}const ks={transaction:zs};function Hs(e){Ls(e);const{sourceHash:t,data:n,from:s,gas:r,isSystemTx:i,mint:o,to:a,value:c}=e,d=[t,s,a??"0x",o?G(o):"0x",c?G(c):"0x",r?G(r):"0x",i?"0x1":"0x",n??"0x"];return O(["0x7e",k(d)])}function Ss(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Ls(e){const{from:t,to:n}=e;if(t&&!T(t))throw new B({address:t});if(n&&!T(n))throw new B({address:n})}const I={blockTime:2e3,contracts:Fs,formatters:Us,serializers:ks},Gs=42161,Lt=x({id:33139,name:"Ape Chain",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:Gs}),Gt=x({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}}}),X=1,Ot=x({...I,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:{...I.contracts,disputeGameFactory:{[X]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[X]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[X]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[X]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:X}),Z=11155111,Nt=x({...I,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:{...I.contracts,disputeGameFactory:{[Z]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[Z]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[Z]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[Z]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:Z}),Mt=x({id:80094,name:"Berachain",nativeCurrency:{decimals:18,name:"BERA Token",symbol:"BERA"},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:0},ensRegistry:{address:"0x5b22280886a2f5e09a49bea7e320eab0e5320e28",blockCreated:877007},ensUniversalResolver:{address:"0xddfb18888a9466688235887dec2a10c4f5effee9",blockCreated:877008}},rpcUrls:{default:{http:["https://rpc.berachain.com"]}},blockExplorers:{default:{name:"Berascan",url:"https://berascan.com"}},ensTlds:[".bera"],testnet:!1}),_t=x({id:56,name:"BNB Smart Chain",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}}}),Vt=x({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},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",blockCreated:801613},ensUniversalResolver:{address:"0xa6AC935D4971E3CD133b950aE053bECD16fE7f3b",blockCreated:973484}},testnet:!0}),Dt=x({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}),Rt=x({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),q=11155111,jt=x({...I,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:{...I.contracts,disputeGameFactory:{[q]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[q]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[q]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[q]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:q}),Kt=x({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.drpc.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0}),Y=1,Wt=x({...I,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:{...I.contracts,disputeGameFactory:{[Y]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[Y]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[Y]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[Y]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:Y}),he=1,Xt=x({...I,id:48900,name:"Zircuit Mainnet",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://mainnet.zircuit.com","https://zircuit1-mainnet.liquify.com","https://zircuit1-mainnet.p2pify.com","https://zircuit-mainnet.drpc.org"]}},blockExplorers:{default:{name:"Zircuit Explorer",url:"https://explorer.zircuit.com"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11"},l2OutputOracle:{[he]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[he]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[he]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1});var m=(e=>(e[e.Mainnet=Rt.id]="Mainnet",e[e.Holesky=Vt.id]="Holesky",e[e.Base=Ot.id]="Base",e[e.Bsc=_t.id]="Bsc",e[e.Arbitrum=Gt.id]="Arbitrum",e[e.ApeChain=Lt.id]="ApeChain",e[e.Soneium=Wt.id]="Soneium",e[e.Sepolia=Kt.id]="Sepolia",e[e.OptimismSepolia=jt.id]="OptimismSepolia",e[e.BaseSepolia=Nt.id]="BaseSepolia",e[e.Zircuit=Xt.id]="Zircuit",e[e.Berachain=Mt.id]="Berachain",e[e.Hoodi=Dt.id]="Hoodi",e))(m||{});const Os={[m.Mainnet]:Rt,[m.Holesky]:Vt,[m.Base]:Ot,[m.Bsc]:_t,[m.Arbitrum]:Gt,[m.ApeChain]:Lt,[m.Soneium]:Wt,[m.Sepolia]:Kt,[m.OptimismSepolia]:jt,[m.BaseSepolia]:Nt,[m.Zircuit]:Xt,[m.Berachain]:Mt,[m.Hoodi]:Dt};exports.BaseError=u;exports.Chain=m;exports.ChainDoesNotSupportContract=ps;exports.ChainMismatchError=bs;exports.ChainNotFoundError=ms;exports.ClientChainNotConfiguredError=xs;exports.ExecutionRevertedError=Be;exports.FeeCapTooHighError=te;exports.FeeCapTooLowError=bt;exports.FeeConflictError=_n;exports.Hash=me;exports.InsufficientFundsError=yt;exports.IntegerOutOfRangeError=Ke;exports.IntrinsicGasTooHighError=wt;exports.IntrinsicGasTooLowError=Et;exports.InvalidAddressError=B;exports.InvalidBytesBooleanError=Yt;exports.InvalidBytesLengthError=Zt;exports.LruMap=ge;exports.NonceMaxValueError=gt;exports.NonceTooHighError=mt;exports.NonceTooLowError=xt;exports.PositionOutOfBoundsError=dt;exports.TipAboveFeeCapError=Te;exports.TransactionExecutionError=jn;exports.TransactionNotFoundError=Kn;exports.TransactionReceiptNotFoundError=Wn;exports.TransactionTypeNotSupportedError=Bt;exports.UnknownNodeError=Yn;exports.VIEM_CHAINS=Os;exports.WaitForTransactionReceiptTimeoutError=Xn;exports.abytes=z;exports.aexists=ee;exports.ahash=hn;exports.anumber=Q;exports.assertSize=H;exports.blobsToCommitments=Pe;exports.blobsToProofs=ve;exports.boolToHex=We;exports.bytesToHex=P;exports.bytesToHex$1=yn;exports.checksumAddress=ye;exports.clean=_;exports.commitmentsToVersionedHashes=vt;exports.concat=Sn;exports.concatBytes=Bn;exports.concatHex=O;exports.createCursor=we;exports.formatBlock=It;exports.formatEther=ft;exports.formatGwei=F;exports.formatLog=kt;exports.formatTransaction=ae;exports.formatTransactionReceipt=St;exports.getAddress=kn;exports.getTransactionType=zt;exports.hexToBigInt=L;exports.hexToBool=en;exports.hexToBytes=wn;exports.hexToBytes$1=U;exports.hexToNumber=J;exports.isAddress=T;exports.isBytes=Ze;exports.isHex=V;exports.keccak256=rt;exports.keccak_256=st;exports.maxUint256=oe;exports.numberToHex=f;exports.padHex=je;exports.prettyPrint=Ee;exports.randomBytes=Tn;exports.receiptStatuses=Ht;exports.sha256=Pt;exports.size=E;exports.slice=it;exports.sliceBytes=ct;exports.sliceHex=ut;exports.stringToBytes=be;exports.stringToHex=Xe;exports.toBlobSidecars=Ut;exports.toBytes=pe;exports.toBytes$1=ie;exports.toHex=G;exports.toRlp=k;exports.trim=C;
9
+ //# sourceMappingURL=constants-JN89aXws.cjs.map