@pufferfinance/puffer-sdk 1.28.5 → 1.29.0
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 +3 -3
- 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-LIGR3N1A.cjs → ccip-Dv8Z-tXr.cjs} +2 -2
- package/dist/{ccip-LIGR3N1A.cjs.map → ccip-Dv8Z-tXr.cjs.map} +1 -1
- package/dist/{ccip-78YM988s.js → ccip-dYaIZXTj.js} +4 -4
- package/dist/{ccip-78YM988s.js.map → ccip-dYaIZXTj.js.map} +1 -1
- package/dist/chains/constants.cjs +1 -1
- package/dist/chains/constants.js +1 -1
- package/dist/constants-4-ehn8UI.cjs +9 -0
- package/dist/constants-4-ehn8UI.cjs.map +1 -0
- package/dist/{constants-CuIEh_ZS.js → constants-BO_Dvglw.js} +163 -143
- package/dist/constants-BO_Dvglw.js.map +1 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.cjs.map +1 -1
- package/dist/contracts/abis/mainnet/CarrotVesting.d.ts +30 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.js +21 -0
- package/dist/contracts/abis/mainnet/CarrotVesting.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 +18 -0
- 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.cjs.map +1 -1
- package/dist/contracts/handlers/carrot-vesting-handler.d.ts +39 -0
- package/dist/contracts/handlers/carrot-vesting-handler.js +32 -5
- package/dist/contracts/handlers/carrot-vesting-handler.js.map +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/concrete-vault-handler.d.ts +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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.d.ts +18 -0
- package/dist/contracts/handlers/institutional-access-manager-handler.js +3 -3
- package/dist/contracts/handlers/institutional-vault-handler.cjs +1 -1
- package/dist/contracts/handlers/institutional-vault-handler.d.ts +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- package/dist/contracts/handlers/mtw-carrot-handler.js +2 -2
- package/dist/contracts/handlers/nucleus-accountant-handler.cjs +1 -1
- package/dist/contracts/handlers/nucleus-accountant-handler.d.ts +18 -0
- 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 +18 -0
- 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 +18 -0
- 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.d.ts +18 -0
- package/dist/contracts/handlers/nucleus-teller-handler.js +2 -2
- package/dist/contracts/handlers/puf-locker-handler.cjs +1 -1
- package/dist/contracts/handlers/puf-locker-handler.d.ts +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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 +18 -0
- 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-D4_SEfqa.cjs → getContract-C6a8L2Jd.cjs} +2 -2
- package/dist/{getContract-D4_SEfqa.cjs.map → getContract-C6a8L2Jd.cjs.map} +1 -1
- package/dist/{getContract-DQN7VDBo.js → getContract-DRjKmuyC.js} +2 -2
- package/dist/{getContract-DQN7VDBo.js.map → getContract-DRjKmuyC.js.map} +1 -1
- package/dist/http-CRYDzx7w.cjs +5 -0
- package/dist/http-CRYDzx7w.cjs.map +1 -0
- package/dist/{http-CajzXkt4.js → http-ZcKHvn9V.js} +1313 -1116
- package/dist/http-ZcKHvn9V.js.map +1 -0
- package/dist/{localBatchGatewayRequest-C7zYTS2c.cjs → localBatchGatewayRequest-BTy8p6qj.cjs} +2 -2
- package/dist/{localBatchGatewayRequest-C7zYTS2c.cjs.map → localBatchGatewayRequest-BTy8p6qj.cjs.map} +1 -1
- package/dist/{localBatchGatewayRequest-DtOvBmA9.js → localBatchGatewayRequest-Cb0QKL0s.js} +3 -3
- package/dist/{localBatchGatewayRequest-DtOvBmA9.js.map → localBatchGatewayRequest-Cb0QKL0s.js.map} +1 -1
- package/dist/main.cjs +1 -1
- package/dist/main.js +1 -1
- package/dist/{secp256k1-CMP_u7qb.cjs → secp256k1-CzsL7iVx.cjs} +2 -2
- package/dist/{secp256k1-CMP_u7qb.cjs.map → secp256k1-CzsL7iVx.cjs.map} +1 -1
- package/dist/{secp256k1-DCMgMsfV.js → secp256k1-Dx1prb1E.js} +2 -2
- package/dist/{secp256k1-DCMgMsfV.js.map → secp256k1-Dx1prb1E.js.map} +1 -1
- package/dist/utils/version.cjs +1 -1
- package/dist/utils/version.js +1 -1
- package/dist/{writeContract-DYAfDrRz.js → writeContract-BFxyLFA9.js} +881 -902
- package/dist/writeContract-BFxyLFA9.js.map +1 -0
- package/dist/{writeContract-BnmmOPwy.cjs → writeContract-HBsqM_Od.cjs} +22 -22
- package/dist/writeContract-HBsqM_Od.cjs.map +1 -0
- package/package.json +12 -12
- package/dist/constants-6kuRTsbU.cjs +0 -9
- package/dist/constants-6kuRTsbU.cjs.map +0 -1
- package/dist/constants-CuIEh_ZS.js.map +0 -1
- package/dist/http-CajzXkt4.js.map +0 -1
- package/dist/http-qhIDc8Dn.cjs +0 -5
- package/dist/http-qhIDc8Dn.cjs.map +0 -1
- package/dist/writeContract-BnmmOPwy.cjs.map +0 -1
- package/dist/writeContract-DYAfDrRz.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pufferfinance/puffer-sdk",
|
|
3
3
|
"description": "SDK for interacting with the puffer smart contracts",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.29.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/PufferFinance/puffer-sdk.git"
|
|
@@ -48,26 +48,26 @@
|
|
|
48
48
|
"docs:deploy": "pnpm --filter docs run deploy"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"viem": "^2.
|
|
51
|
+
"viem": "^2.38.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@eslint/js": "^9.
|
|
54
|
+
"@eslint/js": "^9.38.0",
|
|
55
55
|
"@types/jest": "^30.0.0",
|
|
56
|
-
"@types/node": "^24.
|
|
57
|
-
"eslint": "^9.
|
|
56
|
+
"@types/node": "^24.9.2",
|
|
57
|
+
"eslint": "^9.38.0",
|
|
58
58
|
"eslint-config-prettier": "^10.0.2",
|
|
59
59
|
"eslint-plugin-prettier": "^5.2.3",
|
|
60
60
|
"eth-testing": "^1.14.0",
|
|
61
61
|
"glob": "^11.0.1",
|
|
62
|
-
"jest": "^30.
|
|
63
|
-
"jest-environment-jsdom": "^30.
|
|
62
|
+
"jest": "^30.2.0",
|
|
63
|
+
"jest-environment-jsdom": "^30.2.0",
|
|
64
64
|
"prettier": "^3.5.3",
|
|
65
|
-
"release-it": "^19.0.
|
|
66
|
-
"ts-jest": "^29.
|
|
65
|
+
"release-it": "^19.0.5",
|
|
66
|
+
"ts-jest": "^29.4.5",
|
|
67
67
|
"ts-node": "^10.9.2",
|
|
68
|
-
"typescript": "5.9.
|
|
69
|
-
"typescript-eslint": "^8.
|
|
70
|
-
"vite": "^7.1.
|
|
68
|
+
"typescript": "5.9.3",
|
|
69
|
+
"typescript-eslint": "^8.46.2",
|
|
70
|
+
"vite": "^7.1.12",
|
|
71
71
|
"vite-plugin-dts": "^4.5.3"
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";function M(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function w(e){return M(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const Ne="2.37.6";let ce={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:s})=>t?`${e??"https://viem.sh"}${t}${s?`#${s}`:""}`:void 0,version:`viem@${Ne}`};class u extends Error{constructor(t,s={}){const n=s.cause instanceof u?s.cause.details:s.cause?.message?s.cause.message:s.details,r=s.cause instanceof u&&s.cause.docsPath||s.docsPath,i=ce.getDocsUrl?.({...s,docsPath:r}),o=[t||"An error occurred.","",...s.metaMessages?[...s.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...n?[`Details: ${n}`]:[],...ce.version?[`Version: ${ce.version}`]:[]].join(`
|
|
2
|
-
`);super(o,s.cause?{cause:s.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=n,this.docsPath=r,this.metaMessages=s.metaMessages,this.name=s.name??this.name,this.shortMessage=t,this.version=Ne}walk(t){return Me(this,t)}}function Me(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?Me(e.cause,t):t?null:e}class _e extends u{constructor({offset:t,position:s,size:n}){super(`Slice ${s==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class Ve extends u{constructor({size:t,targetSize:s,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${s}).`,{name:"SizeExceedsPaddingSizeError"})}}class Kt extends u{constructor({size:t,targetSize:s,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${s} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function _(e,{dir:t,size:s=32}={}){return typeof e=="string"?De(e,{dir:t,size:s}):Wt(e,{dir:t,size:s})}function De(e,{dir:t,size:s=32}={}){if(s===null)return e;const n=e.replace("0x","");if(n.length>s*2)throw new Ve({size:Math.ceil(n.length/2),targetSize:s,type:"hex"});return`0x${n[t==="right"?"padEnd":"padStart"](s*2,"0")}`}function Wt(e,{dir:t,size:s=32}={}){if(s===null)return e;if(e.length>s)throw new Ve({size:e.length,targetSize:s,type:"bytes"});const n=new Uint8Array(s);for(let r=0;r<s;r++){const i=t==="right";n[i?r:s-r-1]=e[i?r:e.length-r-1]}return n}class Re extends u{constructor({max:t,min:s,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${r*8}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${s} to ${t})`:`(above ${s})`}`,{name:"IntegerOutOfRangeError"})}}class Xt 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 Zt 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:s}){super(`Size cannot exceed ${s} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function A(e,{dir:t="left"}={}){let s=typeof e=="string"?e.replace("0x",""):e,n=0;for(let r=0;r<s.length-1&&s[t==="left"?r:s.length-r-1].toString()==="0";r++)n++;return s=t==="left"?s.slice(n):s.slice(0,s.length-n),typeof e=="string"?(s.length===1&&t==="right"&&(s=`${s}0`),`0x${s.length%2===1?`0${s}`:s}`):s}function U(e,{size:t}){if(w(e)>t)throw new qt({givenSize:w(e),maxSize:t})}function z(e,t={}){const{signed:s}=t;t.size&&U(e,{size:t.size});const n=BigInt(e);if(!s)return n;const r=(e.length-2)/2,i=(1n<<BigInt(r)*8n-1n)-1n;return n<=i?n:n-BigInt(`0x${"f".padStart(r*2,"f")}`)-1n}function Yt(e,t={}){let s=e;if(t.size&&(U(s,{size:t.size}),s=A(s)),A(s)==="0x00")return!1;if(A(s)==="0x01")return!0;throw new Zt(s)}function q(e,t={}){return Number(z(e,t))}const Jt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function S(e,t={}){return typeof e=="number"||typeof e=="bigint"?f(e,t):typeof e=="string"?Ke(e,t):typeof e=="boolean"?je(e,t):I(e,t)}function je(e,t={}){const s=`0x${Number(e)}`;return typeof t.size=="number"?(U(s,{size:t.size}),_(s,{size:t.size})):s}function I(e,t={}){let s="";for(let r=0;r<e.length;r++)s+=Jt[e[r]];const n=`0x${s}`;return typeof t.size=="number"?(U(n,{size:t.size}),_(n,{dir:"right",size:t.size})):n}function f(e,t={}){const{signed:s,size:n}=t,r=BigInt(e);let i;n?s?i=(1n<<BigInt(n)*8n-1n)-1n:i=2n**(BigInt(n)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));const o=typeof i=="bigint"&&s?-i-1n:0;if(i&&r>i||r<o){const c=typeof e=="bigint"?"n":"";throw new Re({max:i?`${i}${c}`:void 0,min:`${o}${c}`,signed:s,size:n,value:`${e}${c}`})}const a=`0x${(s&&r<0?(1n<<BigInt(n*8))+BigInt(r):r).toString(16)}`;return n?_(a,{size:n}):a}const Qt=new TextEncoder;function Ke(e,t={}){const s=Qt.encode(e);return I(s,t)}const es=new TextEncoder;function he(e,t={}){return typeof e=="number"||typeof e=="bigint"?ss(e,t):typeof e=="boolean"?ts(e,t):M(e)?C(e,t):pe(e,t)}function ts(e,t={}){const s=new Uint8Array(1);return s[0]=Number(e),typeof t.size=="number"?(U(s,{size:t.size}),_(s,{size:t.size})):s}const y={zero:48,nine:57,A:65,F:70,a:97,f:102};function Ue(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 C(e,t={}){let s=e;t.size&&(U(s,{size:t.size}),s=_(s,{dir:"right",size:t.size}));let n=s.slice(2);n.length%2&&(n=`0${n}`);const r=n.length/2,i=new Uint8Array(r);for(let o=0,a=0;o<r;o++){const c=Ue(n.charCodeAt(a++)),l=Ue(n.charCodeAt(a++));if(c===void 0||l===void 0)throw new u(`Invalid byte sequence ("${n[a-2]}${n[a-1]}" in "${n}").`);i[o]=c*16+l}return i}function ss(e,t){const s=f(e,t);return C(s)}function pe(e,t={}){const s=es.encode(e);return typeof t.size=="number"?(U(s,{size:t.size}),_(s,{dir:"right",size:t.size})):s}const se=BigInt(2**32-1),ke=BigInt(32);function ns(e,t=!1){return t?{h:Number(e&se),l:Number(e>>ke&se)}:{h:Number(e>>ke&se)|0,l:Number(e&se)|0}}function rs(e,t=!1){const s=e.length;let n=new Uint32Array(s),r=new Uint32Array(s);for(let i=0;i<s;i++){const{h:o,l:a}=ns(e[i],t);[n[i],r[i]]=[o,a]}return[n,r]}const is=(e,t,s)=>e<<s|t>>>32-s,os=(e,t,s)=>t<<s|e>>>32-s,as=(e,t,s)=>t<<s-32|e>>>64-s,cs=(e,t,s)=>e<<s-32|t>>>64-s,O=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function us(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function Y(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function H(e,...t){if(!us(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 ls(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.createHasher");Y(e.outputLen),Y(e.blockLen)}function J(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 We(e,t){H(e);const s=t.outputLen;if(e.length<s)throw new Error("digestInto() expects output buffer of length at least "+s)}function ds(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function N(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function ue(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function g(e,t){return e<<32-t|e>>>t}const fs=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;function hs(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}function ps(e){for(let t=0;t<e.length;t++)e[t]=hs(e[t]);return e}const ze=fs?e=>e:ps;function bs(e){if(typeof e!="string")throw new Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function ne(e){return typeof e=="string"&&(e=bs(e)),H(e),e}function ms(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];H(r),t+=r.length}const s=new Uint8Array(t);for(let n=0,r=0;n<e.length;n++){const i=e[n];s.set(i,r),r+=i.length}return s}class be{}function Xe(e){const t=n=>e().update(ne(n)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}function xs(e=32){if(O&&typeof O.getRandomValues=="function")return O.getRandomValues(new Uint8Array(e));if(O&&typeof O.randomBytes=="function")return Uint8Array.from(O.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const gs=BigInt(0),j=BigInt(1),ys=BigInt(2),ws=BigInt(7),Es=BigInt(256),Bs=BigInt(113),Ze=[],qe=[],Ye=[];for(let e=0,t=j,s=1,n=0;e<24;e++){[s,n]=[n,(2*s+3*n)%5],Ze.push(2*(5*n+s)),qe.push((e+1)*(e+2)/2%64);let r=gs;for(let i=0;i<7;i++)t=(t<<j^(t>>ws)*Bs)%Es,t&ys&&(r^=j<<(j<<BigInt(i))-j);Ye.push(r)}const Je=rs(Ye,!0),Ts=Je[0],Is=Je[1],Se=(e,t,s)=>s>32?as(e,t,s):is(e,t,s),He=(e,t,s)=>s>32?cs(e,t,s):os(e,t,s);function Ps(e,t=24){const s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let o=0;o<10;o++)s[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,l=s[c],h=s[c+1],d=Se(l,h,1)^s[a],b=He(l,h,1)^s[a+1];for(let p=0;p<50;p+=10)e[o+p]^=d,e[o+p+1]^=b}let r=e[2],i=e[3];for(let o=0;o<24;o++){const a=qe[o],c=Se(r,i,a),l=He(r,i,a),h=Ze[o];r=e[h],i=e[h+1],e[h]=c,e[h+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)s[a]=e[o+a];for(let a=0;a<10;a++)e[o+a]^=~s[(a+2)%10]&s[(a+4)%10]}e[0]^=Ts[n],e[1]^=Is[n]}N(s)}class me extends be{constructor(t,s,n,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=s,this.outputLen=n,this.enableXOF=r,this.rounds=i,Y(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=ds(this.state)}clone(){return this._cloneInto()}keccak(){ze(this.state32),Ps(this.state32,this.rounds),ze(this.state32),this.posOut=0,this.pos=0}update(t){J(this),t=ne(t),H(t);const{blockLen:s,state:n}=this,r=t.length;for(let i=0;i<r;){const o=Math.min(s-this.pos,r-i);for(let a=0;a<o;a++)n[this.pos++]^=t[i++];this.pos===s&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:s,pos:n,blockLen:r}=this;t[n]^=s,(s&128)!==0&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){J(this,!1),H(t),this.finish();const s=this.state,{blockLen:n}=this;for(let r=0,i=t.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);t.set(s.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 Y(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(We(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,N(this.state)}_cloneInto(t){const{blockLen:s,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return t||(t=new me(s,n,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=n,t.outputLen=r,t.enableXOF=o,t.destroyed=this.destroyed,t}}const vs=(e,t,s)=>Xe(()=>new me(t,e,s)),Qe=vs(1,136,256/8);function et(e,t){const s=t||"hex",n=Qe(M(e,{strict:!1})?he(e):e);return s==="bytes"?n:S(n)}class E 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 xe extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const s=super.get(t);return super.has(t)&&s!==void 0&&(this.delete(t),super.set(t,s)),s}set(t,s){if(super.set(t,s),this.maxSize&&this.size>this.maxSize){const n=this.keys().next().value;n&&this.delete(n)}return this}}const le=new xe(8192);function ge(e,t){if(le.has(`${e}.${t}`))return le.get(`${e}.${t}`);const s=e.substring(2).toLowerCase(),n=et(pe(s),"bytes"),r=s.split("");for(let o=0;o<40;o+=2)n[o>>1]>>4>=8&&r[o]&&(r[o]=r[o].toUpperCase()),(n[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 As(e,t){if(!B(e,{strict:!1}))throw new E({address:e});return ge(e,t)}const $s=/^0x[a-fA-F0-9]{40}$/,de=new xe(8192);function B(e,t){const{strict:s=!0}=t??{},n=`${e}.${s}`;if(de.has(n))return de.get(n);const r=$s.test(e)?e.toLowerCase()===e?!0:s?ge(e)===e:!0:!1;return de.set(n,r),r}function Cs(e){return typeof e[0]=="string"?L(e):Fs(e)}function Fs(e){let t=0;for(const r of e)t+=r.length;const s=new Uint8Array(t);let n=0;for(const r of e)s.set(r,n),n+=r.length;return s}function L(e){return`0x${e.reduce((t,s)=>t+s.replace("0x",""),"")}`}function tt(e,t,s,{strict:n}={}){return M(e,{strict:!1})?it(e,t,s,{strict:n}):rt(e,t,s,{strict:n})}function st(e,t){if(typeof t=="number"&&t>0&&t>w(e)-1)throw new _e({offset:t,position:"start",size:w(e)})}function nt(e,t,s){if(typeof t=="number"&&typeof s=="number"&&w(e)!==s-t)throw new _e({offset:s,position:"end",size:w(e)})}function rt(e,t,s,{strict:n}={}){st(e,t);const r=e.slice(t,s);return n&&nt(r,t,s),r}function it(e,t,s,{strict:n}={}){st(e,t);const r=`0x${e.replace("0x","").slice((t??0)*2,(s??e.length)*2)}`;return n&&nt(r,t,s),r}class Le extends u{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class ot extends u{constructor({length:t,position:s}){super(`Position \`${s}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}}class Us extends u{constructor({count:t,limit:s}){super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}}const ks={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 Us({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new ot({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Le({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 Le({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 s=t??this.position;return this.assertPosition(s+e-1),this.bytes.subarray(s,s+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 s=this.inspectBytes(e);return this.position+=t??e,s},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 ye(e,{recursiveReadLimit:t=8192}={}){const s=Object.create(ks);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}const zs={gwei:9,wei:18},Ss={ether:-9,wei:9};function at(e,t){let s=e.toString();const n=s.startsWith("-");n&&(s=s.slice(1)),s=s.padStart(t,"0");let[r,i]=[s.slice(0,s.length-t),s.slice(s.length-t)];return i=i.replace(/(0+)$/,""),`${n?"-":""}${r||"0"}${i?`.${i}`:""}`}function ct(e,t="wei"){return at(e,zs[t])}function $(e,t="wei"){return at(e,Ss[t])}function we(e){const t=Object.entries(e).map(([n,r])=>r===void 0||r===!1?null:[n,r]).filter(Boolean),s=t.reduce((n,[r])=>Math.max(n,r.length),0);return t.map(([n,r])=>` ${`${n}:`.padEnd(s+1)} ${r}`).join(`
|
|
3
|
-
`)}class Hs 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 Ls extends u{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Gs extends u{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",we(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 Os 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 Ns extends u{constructor(t,{account:s,docsPath:n,chain:r,data:i,gas:o,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:l,nonce:h,to:d,value:b}){const p=we({chain:r&&`${r?.name} (id: ${r?.id})`,from:s?.address,to:d,value:typeof b<"u"&&`${ct(b)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:typeof a<"u"&&`${$(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${$(c)} gwei`,maxPriorityFeePerGas:typeof l<"u"&&`${$(l)} gwei`,nonce:h});super(t.shortMessage,{cause:t,docsPath:n,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 Ms extends u{constructor({blockHash:t,blockNumber:s,blockTag:n,hash:r,index:i}){let o="Transaction";n&&i!==void 0&&(o=`Transaction at block time "${n}" at index "${i}"`),t&&i!==void 0&&(o=`Transaction at block hash "${t}" at index "${i}"`),s&&i!==void 0&&(o=`Transaction at block number "${s}" at index "${i}"`),r&&(o=`Transaction with hash "${r}"`),super(`${o} could not be found.`,{name:"TransactionNotFoundError"})}}class _s 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 Vs extends u{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}function F(e,t="hex"){const s=ut(e),n=ye(new Uint8Array(s.length));return s.encode(n),t==="hex"?I(n.bytes):n.bytes}function ut(e){return Array.isArray(e)?Ds(e.map(t=>ut(t))):Rs(e)}function Ds(e){const t=e.reduce((r,i)=>r+i.length,0),s=lt(t);return{length:t<=55?1+t:1+s+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+s),s===1?r.pushUint8(t):s===2?r.pushUint16(t):s===3?r.pushUint24(t):r.pushUint32(t));for(const{encode:i}of e)i(r)}}}function Rs(e){const t=typeof e=="string"?C(e):e,s=lt(t.length);return{length:t.length===1&&t[0]<128?1:t.length<=55?1+t.length:1+s+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+s),s===1?r.pushUint8(t.length):s===2?r.pushUint16(t.length):s===3?r.pushUint24(t.length):r.pushUint32(t.length),r.pushBytes(t))}}}function lt(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 Ee extends u{constructor({cause:t,message:s}={}){const n=s?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}}Object.defineProperty(Ee,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(Ee,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Q extends u{constructor({cause:t,maxFeePerGas:s}={}){super(`The fee cap (\`maxFeePerGas\`${s?` = ${$(s)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Q,"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 dt extends u{constructor({cause:t,maxFeePerGas:s}={}){super(`The fee cap (\`maxFeePerGas\`${s?` = ${$(s)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(dt,"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 ft extends u{constructor({cause:t,nonce:s}={}){super(`Nonce provided for the transaction ${s?`(${s}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(ft,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ht extends u{constructor({cause:t,nonce:s}={}){super([`Nonce provided for the transaction ${s?`(${s}) `:""}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(ht,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class pt extends u{constructor({cause:t,nonce:s}={}){super(`Nonce provided for the transaction ${s?`(${s}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(pt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class bt 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(bt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class mt extends u{constructor({cause:t,gas:s}={}){super(`The amount of gas ${s?`(${s}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(mt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class xt extends u{constructor({cause:t,gas:s}={}){super(`The amount of gas ${s?`(${s}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(xt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class gt extends u{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(gt,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Be extends u{constructor({cause:t,maxPriorityFeePerGas:s,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${s?` = ${$(s)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${$(n)} gwei`:""}).`].join(`
|
|
7
|
-
`),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Be,"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 js extends u{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Te(e,t){return({exclude:s,format:n})=>({exclude:s,format:r=>{const i=t(r);if(s)for(const o of s)delete i[o];return{...i,...n(r)}},type:e})}const re=2n**256n-1n,yt={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ie(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,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?yt[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=Ws(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 Ks=Te("transaction",ie);function Ws(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 wt(e){const t=(e.transactions??[]).map(s=>typeof s=="string"?s:ie(s));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 Xs=Te("block",wt);function Ie(e){const{kzg:t}=e,s=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(i=>C(i)):e.blobs,r=[];for(const i of n)r.push(Uint8Array.from(t.blobToKzgCommitment(i)));return s==="bytes"?r:r.map(i=>I(i))}function Pe(e){const{kzg:t}=e,s=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),n=typeof e.blobs[0]=="string"?e.blobs.map(o=>C(o)):e.blobs,r=typeof e.commitments[0]=="string"?e.commitments.map(o=>C(o)):e.commitments,i=[];for(let o=0;o<n.length;o++){const a=n[o],c=r[o];i.push(Uint8Array.from(t.computeBlobKzgProof(a,c)))}return s==="bytes"?i:i.map(o=>I(o))}function Zs(e,t,s,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,s,n);const r=BigInt(32),i=BigInt(4294967295),o=Number(s>>r&i),a=Number(s&i),c=n?4:0,l=n?0:4;e.setUint32(t+c,o,n),e.setUint32(t+l,a,n)}function qs(e,t,s){return e&t^~e&s}function Ys(e,t,s){return e&t^e&s^t&s}class Js extends be{constructor(t,s,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=s,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(t),this.view=ue(this.buffer)}update(t){J(this),t=ne(t),H(t);const{view:s,buffer:n,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=ue(t);for(;r<=i-o;o+=r)this.process(c,o);continue}n.set(t.subarray(o,o+a),this.pos),this.pos+=a,o+=a,this.pos===r&&(this.process(s,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){J(this),We(t,this),this.finished=!0;const{buffer:s,view:n,blockLen:r,isLE:i}=this;let{pos:o}=this;s[o++]=128,N(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(n,0),o=0);for(let d=o;d<r;d++)s[d]=0;Zs(n,r-8,BigInt(this.length*8),i),this.process(n,0);const a=ue(t),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,h=this.get();if(l>h.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<l;d++)a.setUint32(4*d,h[d],i)}digest(){const{buffer:t,outputLen:s}=this;this.digestInto(t);const n=t.slice(0,s);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:s,buffer:n,length:r,finished:i,destroyed:o,pos:a}=this;return t.destroyed=o,t.finished=i,t.length=r,t.pos=a,r%s&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const P=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Qs=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]),v=new Uint32Array(64);class en extends Js{constructor(t=32){super(64,t,8,!1),this.A=P[0]|0,this.B=P[1]|0,this.C=P[2]|0,this.D=P[3]|0,this.E=P[4]|0,this.F=P[5]|0,this.G=P[6]|0,this.H=P[7]|0}get(){const{A:t,B:s,C:n,D:r,E:i,F:o,G:a,H:c}=this;return[t,s,n,r,i,o,a,c]}set(t,s,n,r,i,o,a,c){this.A=t|0,this.B=s|0,this.C=n|0,this.D=r|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(t,s){for(let d=0;d<16;d++,s+=4)v[d]=t.getUint32(s,!1);for(let d=16;d<64;d++){const b=v[d-15],p=v[d-2],V=g(b,7)^g(b,18)^b>>>3,G=g(p,17)^g(p,19)^p>>>10;v[d]=G+v[d-7]+V+v[d-16]|0}let{A:n,B:r,C:i,D:o,E:a,F:c,G:l,H:h}=this;for(let d=0;d<64;d++){const b=g(a,6)^g(a,11)^g(a,25),p=h+b+qs(a,c,l)+Qs[d]+v[d]|0,G=(g(n,2)^g(n,13)^g(n,22))+Ys(n,r,i)|0;h=l,l=c,c=a,a=o+p|0,o=i,i=r,r=n,n=p+G|0}n=n+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,l=l+this.G|0,h=h+this.H|0,this.set(n,r,i,o,a,c,l,h)}roundClean(){N(v)}destroy(){this.set(0,0,0,0,0,0,0,0),N(this.buffer)}}const Et=Xe(()=>new en),tn=Et;function sn(e,t){return tn(M(e,{strict:!1})?he(e):e)}function nn(e){const{commitment:t,version:s=1}=e,n=e.to??(typeof t=="string"?"hex":"bytes"),r=sn(t);return r.set([s],0),n==="bytes"?r:I(r)}function Bt(e){const{commitments:t,version:s}=e,n=e.to??(typeof t[0]=="string"?"hex":"bytes"),r=[];for(const i of t)r.push(nn({commitment:i,to:n,version:s}));return r}const Ge=6,Tt=32,ve=4096,It=Tt*ve,Oe=It*Ge-1-1*ve*Ge,Pt=1;class rn extends u{constructor({maxSize:t,size:s}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${s} bytes`],name:"BlobSizeTooLargeError"})}}class vt extends u{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class on extends u{constructor({hash:t,size:s}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${s}`],name:"InvalidVersionedHashSizeError"})}}class an extends u{constructor({hash:t,version:s}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:[`Expected: ${Pt}`,`Received: ${s}`],name:"InvalidVersionedHashVersionError"})}}function cn(e){const t=e.to??(typeof e.data=="string"?"hex":"bytes"),s=typeof e.data=="string"?C(e.data):e.data,n=w(s);if(!n)throw new vt;if(n>Oe)throw new rn({maxSize:Oe,size:n});const r=[];let i=!0,o=0;for(;i;){const a=ye(new Uint8Array(It));let c=0;for(;c<ve;){const l=s.slice(o,o+(Tt-1));if(a.pushByte(0),a.pushBytes(l),l.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=>I(a.bytes))}function At(e){const{data:t,kzg:s,to:n}=e,r=e.blobs??cn({data:t,to:n}),i=e.commitments??Ie({blobs:r,kzg:s,to:n}),o=e.proofs??Pe({blobs:r,commitments:i,kzg:s,to:n}),a=[];for(let c=0;c<r.length;c++)a.push({blob:r[c],commitment:i[c],proof:o[c]});return a}function $t(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 Gs({transaction:e})}function Ct(e,{args:t,eventName:s}={}){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,...s?{args:t,eventName:s}:{}}}class un extends u{constructor({blockNumber:t,chain:s,contract:n}){super(`Chain "${s.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class ln extends u{constructor({chain:t,currentChainId:s}){super(`The current chain of the wallet (id: ${s}) does not match the target chain for the transaction (id: ${t.id} – ${t.name}).`,{metaMessages:[`Current Chain ID: ${s}`,`Expected Chain ID: ${t.id} – ${t.name}`],name:"ChainMismatchError"})}}class dn 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 fn extends u{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class oe extends u{constructor({chainId:t}){super(typeof t=="number"?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const Ft={"0x0":"reverted","0x1":"success"};function Ut(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(s=>Ct(s)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?q(e.transactionIndex):null,status:e.status?Ft[e.status]:null,type:e.type?yt[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}const hn=Te("transactionReceipt",Ut);function pn(e){const{authorizationList:t}=e;if(t)for(const s of t){const{chainId:n}=s,r=s.address;if(!B(r))throw new E({address:r});if(n<0)throw new oe({chainId:n})}Ae(e)}function bn(e){const{blobVersionedHashes:t}=e;if(t){if(t.length===0)throw new vt;for(const s of t){const n=w(s),r=q(tt(s,0,1));if(n!==32)throw new on({hash:s,size:n});if(r!==Pt)throw new an({hash:s,version:r})}}Ae(e)}function Ae(e){const{chainId:t,maxPriorityFeePerGas:s,maxFeePerGas:n,to:r}=e;if(t<=0)throw new oe({chainId:t});if(r&&!B(r))throw new E({address:r});if(n&&n>re)throw new Q({maxFeePerGas:n});if(s&&n&&s>n)throw new Be({maxFeePerGas:n,maxPriorityFeePerGas:s})}function mn(e){const{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new oe({chainId:t});if(i&&!B(i))throw new E({address:i});if(s||r)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>re)throw new Q({maxFeePerGas:n})}function xn(e){const{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:r,to:i}=e;if(i&&!B(i))throw new E({address:i});if(typeof t<"u"&&t<=0)throw new oe({chainId:t});if(s||r)throw new u("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>re)throw new Q({maxFeePerGas:n})}function ae(e){if(!e||e.length===0)return[];const t=[];for(let s=0;s<e.length;s++){const{address:n,storageKeys:r}=e[s];for(let i=0;i<r.length;i++)if(r[i].length-2!==64)throw new Os({storageKey:r[i]});if(!B(n,{strict:!1}))throw new E({address:n});t.push([n,r])}return t}function gn(e,t){const s=$t(e);return s==="eip1559"?En(e,t):s==="eip2930"?Bn(e,t):s==="eip4844"?wn(e,t):s==="eip7702"?yn(e,t):Tn(e,t)}function yn(e,t){const{authorizationList:s,chainId:n,gas:r,nonce:i,to:o,value:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:h,data:d}=e;pn(e);const b=ae(h),p=In(s);return L(["0x04",F([f(n),i?f(i):"0x",l?f(l):"0x",c?f(c):"0x",r?f(r):"0x",o??"0x",a?f(a):"0x",d??"0x",b,p,...ee(e,t)])])}function wn(e,t){const{chainId:s,gas:n,nonce:r,to:i,value:o,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:l,accessList:h,data:d}=e;bn(e);let b=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(typeof b>"u"||typeof p>"u")){const k=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(R=>I(R)),te=e.kzg,D=Ie({blobs:k,kzg:te});if(typeof b>"u"&&(b=Bt({commitments:D})),typeof p>"u"){const R=Pe({blobs:k,commitments:D,kzg:te});p=At({blobs:k,commitments:D,proofs:R})}}const V=ae(h),G=[f(s),r?f(r):"0x",l?f(l):"0x",c?f(c):"0x",n?f(n):"0x",i??"0x",o?f(o):"0x",d??"0x",V,a?f(a):"0x",b??[],...ee(e,t)],$e=[],Ce=[],Fe=[];if(p)for(let k=0;k<p.length;k++){const{blob:te,commitment:D,proof:R}=p[k];$e.push(te),Ce.push(D),Fe.push(R)}return L(["0x03",F(p?[G,$e,Ce,Fe]:G)])}function En(e,t){const{chainId:s,gas:n,nonce:r,to:i,value:o,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:l,data:h}=e;Ae(e);const d=ae(l),b=[f(s),r?f(r):"0x",c?f(c):"0x",a?f(a):"0x",n?f(n):"0x",i??"0x",o?f(o):"0x",h??"0x",d,...ee(e,t)];return L(["0x02",F(b)])}function Bn(e,t){const{chainId:s,gas:n,data:r,nonce:i,to:o,value:a,accessList:c,gasPrice:l}=e;mn(e);const h=ae(c),d=[f(s),i?f(i):"0x",l?f(l):"0x",n?f(n):"0x",o??"0x",a?f(a):"0x",r??"0x",h,...ee(e,t)];return L(["0x01",F(d)])}function Tn(e,t){const{chainId:s=0,gas:n,data:r,nonce:i,to:o,value:a,gasPrice:c}=e;xn(e);let l=[i?f(i):"0x",c?f(c):"0x",n?f(n):"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(s>0)return BigInt(s*2)+BigInt(35n+t.v-27n);const p=27n+(t.v===27n?0n:1n);if(t.v!==p)throw new Ls({v:t.v});return p})(),d=A(t.r),b=A(t.s);l=[...l,f(h),d==="0x00"?"0x":d,b==="0x00"?"0x":b]}else s>0&&(l=[...l,f(s),"0x","0x"]);return F(l)}function ee(e,t){const s=t??e,{v:n,yParity:r}=s;if(typeof s.r>"u")return[];if(typeof s.s>"u")return[];if(typeof n>"u"&&typeof r>"u")return[];const i=A(s.r),o=A(s.s);return[typeof r=="number"?r?f(1):"0x":n===0n?"0x":n===1n?f(1):n===27n?"0x":f(1),i==="0x00"?"0x":i,o==="0x00"?"0x":o]}function In(e){if(!e||e.length===0)return[];const t=[];for(const s of e){const{chainId:n,nonce:r,...i}=s,o=s.address;t.push([n?S(n):"0x",o,r?S(r):"0x",...ee({},i)])}return t}function x(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}const Pn={gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},vn={block:Xs({format(e){return{transactions:e.transactions?.map(s=>{if(typeof s=="string")return s;const n=ie(s);return n.typeHex==="0x7e"&&(n.isSystemTx=s.isSystemTx,n.mint=s.mint?z(s.mint):void 0,n.sourceHash=s.sourceHash,n.type="deposit"),n}),stateRoot:e.stateRoot}}}),transaction:Ks({format(e){const t={};return e.type==="0x7e"&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?z(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:hn({format(e){return{l1GasPrice:e.l1GasPrice?z(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?z(e.l1GasUsed):null,l1Fee:e.l1Fee?z(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null}}})};function An(e,t){return Fn(e)?Cn(e):gn(e,t)}const $n={transaction:An};function Cn(e){Un(e);const{sourceHash:t,data:s,from:n,gas:r,isSystemTx:i,mint:o,to:a,value:c}=e,l=[t,n,a??"0x",o?S(o):"0x",c?S(c):"0x",r?S(r):"0x",i?"0x1":"0x",s??"0x"];return L(["0x7e",F(l)])}function Fn(e){return e.type==="deposit"||typeof e.sourceHash<"u"}function Un(e){const{from:t,to:s}=e;if(t&&!B(t))throw new E({address:t});if(s&&!B(s))throw new E({address:s})}const T={blockTime:2e3,contracts:Pn,formatters:vn,serializers:$n},kn=42161,kt=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:kn}),zt=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}}}),K=1,St=x({...T,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:{...T.contracts,disputeGameFactory:{[K]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[K]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[K]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[K]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:K}),W=11155111,Ht=x({...T,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:{...T.contracts,disputeGameFactory:{[W]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[W]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[W]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[W]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:W}),Lt=x({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}),Gt=x({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}}}),Ot=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},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:4295055}},testnet:!0}),Nt=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}),Mt=x({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}}}),X=11155111,_t=x({...T,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:{...T.contracts,disputeGameFactory:{[X]:{address:"0x05F9613aDB30026FFd634f38e5C4dFd30a197Fa1"}},l2OutputOracle:{[X]:{address:"0x90E9c4f8a994a250F6aEfd61CAFb4F2e895D458F"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1620204},portal:{[X]:{address:"0x16Fc5058F25648194471939df75CF27A2fdC48BC"}},l1StandardBridge:{[X]:{address:"0xFBb0621E0B23b5478B630BD55a5f21f67730B0F1"}}},testnet:!0,sourceId:X}),Vt=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},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0}),Z=1,Dt=x({...T,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:{...T.contracts,disputeGameFactory:{[Z]:{address:"0x512a3d2c7a43bd9261d2b8e8c9c70d4bd4d503c0"}},l2OutputOracle:{[Z]:{address:"0x0000000000000000000000000000000000000000"}},portal:{[Z]:{address:"0x88e529a6ccd302c948689cd5156c83d4614fae92",blockCreated:7061266}},l1StandardBridge:{[Z]:{address:"0xeb9bf100225c214efc3e7c651ebbadcf85177607",blockCreated:7061266}},multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:1}},sourceId:Z}),Rt=x({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}}}),fe=1,jt=x({...T,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:{[fe]:{address:"0x92Ef6Af472b39F1b363da45E35530c24619245A4"}},portal:{[fe]:{address:"0x17bfAfA932d2e23Bd9B909Fd5B4D2e2a27043fb1"}},l1StandardBridge:{[fe]:{address:"0x386B76D9cA5F5Fb150B6BFB35CF5379B22B26dd8"}}},testnet:!1});var m=(e=>(e[e.Mainnet=Mt.id]="Mainnet",e[e.Holesky=Ot.id]="Holesky",e[e.Base=St.id]="Base",e[e.Bsc=Gt.id]="Bsc",e[e.Arbitrum=zt.id]="Arbitrum",e[e.ApeChain=kt.id]="ApeChain",e[e.Soneium=Dt.id]="Soneium",e[e.Sepolia=Vt.id]="Sepolia",e[e.OptimismSepolia=_t.id]="OptimismSepolia",e[e.BaseSepolia=Ht.id]="BaseSepolia",e[e.Zircuit=jt.id]="Zircuit",e[e.Berachain=Lt.id]="Berachain",e[e.Hoodi=Nt.id]="Hoodi",e[e.TAC=Rt.id]="TAC",e))(m||{});const zn={[m.Mainnet]:Mt,[m.Holesky]:Ot,[m.Base]:St,[m.Bsc]:Gt,[m.Arbitrum]:zt,[m.ApeChain]:kt,[m.Soneium]:Dt,[m.Sepolia]:Vt,[m.OptimismSepolia]:_t,[m.BaseSepolia]:Ht,[m.Zircuit]:jt,[m.Berachain]:Lt,[m.Hoodi]:Nt,[m.TAC]:Rt};exports.BaseError=u;exports.Chain=m;exports.ChainDoesNotSupportContract=un;exports.ChainMismatchError=ln;exports.ChainNotFoundError=dn;exports.ClientChainNotConfiguredError=fn;exports.ExecutionRevertedError=Ee;exports.FeeCapTooHighError=Q;exports.FeeCapTooLowError=dt;exports.FeeConflictError=Hs;exports.Hash=be;exports.InsufficientFundsError=bt;exports.IntegerOutOfRangeError=Re;exports.IntrinsicGasTooHighError=mt;exports.IntrinsicGasTooLowError=xt;exports.InvalidAddressError=E;exports.InvalidBytesBooleanError=Xt;exports.InvalidBytesLengthError=Kt;exports.LruMap=xe;exports.NonceMaxValueError=pt;exports.NonceTooHighError=ft;exports.NonceTooLowError=ht;exports.PositionOutOfBoundsError=ot;exports.TipAboveFeeCapError=Be;exports.TransactionExecutionError=Ns;exports.TransactionNotFoundError=Ms;exports.TransactionReceiptNotFoundError=_s;exports.TransactionTypeNotSupportedError=gt;exports.UnknownNodeError=js;exports.VIEM_CHAINS=zn;exports.WaitForTransactionReceiptTimeoutError=Vs;exports.abytes=H;exports.aexists=J;exports.ahash=ls;exports.anumber=Y;exports.assertSize=U;exports.blobsToCommitments=Ie;exports.blobsToProofs=Pe;exports.boolToHex=je;exports.bytesToHex=I;exports.checksumAddress=ge;exports.clean=N;exports.commitmentsToVersionedHashes=Bt;exports.concat=Cs;exports.concatBytes=ms;exports.concatHex=L;exports.createCursor=ye;exports.formatBlock=wt;exports.formatEther=ct;exports.formatGwei=$;exports.formatLog=Ct;exports.formatTransaction=ie;exports.formatTransactionReceipt=Ut;exports.getAddress=As;exports.getTransactionType=$t;exports.hexToBigInt=z;exports.hexToBool=Yt;exports.hexToBytes=C;exports.hexToNumber=q;exports.isAddress=B;exports.isHex=M;exports.keccak256=et;exports.keccak_256=Qe;exports.maxUint256=re;exports.numberToHex=f;exports.padHex=De;exports.prettyPrint=we;exports.randomBytes=xs;exports.receiptStatuses=Ft;exports.sha256=Et;exports.size=w;exports.slice=tt;exports.sliceBytes=rt;exports.sliceHex=it;exports.stringToBytes=pe;exports.stringToHex=Ke;exports.toBlobSidecars=At;exports.toBytes=he;exports.toBytes$1=ne;exports.toHex=S;exports.toRlp=F;exports.trim=A;
|
|
9
|
-
//# sourceMappingURL=constants-6kuRTsbU.cjs.map
|