"use strict";(self.webpackChunkfrog=self.webpackChunkfrog||[]).push([[634],{8177:(e,t,s)=>{s.d(t,{$:()=>l});var a=s(30031),i=s(57339),n=s(36212);function r(e,t){return{address:(0,a.b)(e),storageKeys:t.map(((e,t)=>((0,i.MR)((0,n.Lo)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}function l(e){if(Array.isArray(e))return e.map(((t,s)=>Array.isArray(t)?((0,i.MR)(2===t.length,"invalid slot set",`value[${s}]`,t),r(t[0],t[1])):((0,i.MR)(null!=t&&"object"==typeof t,"invalid address-slot set","value",e),r(t.address,t.storageKeys))));(0,i.MR)(null!=e&&"object"==typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const s=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return r(t,Object.keys(s).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},10634:(e,t,s)=>{s.d(t,{Z:()=>z});var a=s(30031),i=s(98982),n=s(65784),r=s(97879),l=s(95640),o=s(29665),c=s(57339),u=s(27033),h=s(36212),g=s(16891),m=s(65735),f=s(8177);function d(e,t){return function(e){let t;return t="string"==typeof e?o.h.computePublicKey(e,!1):e.publicKey,(0,a.b)((0,l.S)("0x"+t.substring(4)).substring(26))}(o.h.recoverPublicKey(e,t))}const y=BigInt(0),b=BigInt(2),P=BigInt(27),p=BigInt(28),x=BigInt(35),v=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),F=131072;function G(e,t){let s=e.toString(16);for(;s.length<2;)s="0"+s;return s+=(0,n.s)(t).substring(4),"0x"+s}function A(e){return"0x"===e?null:(0,a.b)(e)}function L(e,t){try{return(0,f.$)(e)}catch(s){(0,c.MR)(!1,s.message,t,e)}}function R(e,t){return"0x"===e?0:(0,u.WZ)(e,t)}function I(e,t){if("0x"===e)return y;const s=(0,u.Ab)(e,t);return(0,c.MR)(s<=v,"value exceeds uint size",t,s),s}function M(e,t){const s=(0,u.Ab)(e,"value"),a=(0,u.c4)(s);return(0,c.MR)(a.length<=32,"value too large",`tx.${t}`,s),a}function k(e){return(0,f.$)(e).map((e=>[e.address,e.storageKeys]))}function $(e,t){(0,c.MR)(Array.isArray(e),`invalid ${t}`,"value",e);for(let t=0;tObject.assign({},e)))}set blobs(e){if(null==e)return void(this.#d=null);const t=[],s=[];for(let a=0;ae.data)),s.map((e=>e.commitment)),s.map((e=>e.proof))])]):(0,h.xW)(["0x03",(0,m.R)(a)])}(this,s,t?this.blobs:null)}(0,c.vA)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#y(!0,!0)}get unsignedSerialized(){return this.#y(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,s=null!=this.accessList,a=null!=this.#g||this.#m;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,c.vA)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,c.vA)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,c.vA)(0!==this.type||!s,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return null!=this.type?i.push(this.type):t?i.push(2):e?(i.push(1),s||i.push(0)):s?(i.push(1),i.push(2)):(a&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return z.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new z;if("string"==typeof e){const t=(0,h.q5)(e);if(t[0]>=127)return z.from(function(e){const t=(0,g.J)(e);(0,c.MR)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const s={type:0,nonce:R(t[0],"nonce"),gasPrice:I(t[1],"gasPrice"),gasLimit:I(t[2],"gasLimit"),to:A(t[3]),value:I(t[4],"value"),data:(0,h.c$)(t[5]),chainId:y};if(6===t.length)return s;const a=I(t[6],"v"),i=I(t[7],"r"),n=I(t[8],"s");if(i===y&&n===y)s.chainId=a;else{let e=(a-x)/b;e