PageSourceSearch

https://agtopen.com/_next/static/chunks/684-ffc8308f45998a13.js

js agtopen.com collected 2026-10-02 01:24:27 UTC 9,558 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[684],{84405:function(t,n,e){e.d(n,{T:function(){return m}});var r=e(17253),o=e(49233),i=e(54786),a=e(57256),c=e(63284),u=e(13222),s=e(78795),f=e(65192),l=e(74256),d=e(4998),h=e(62232),w=e(40889),x=e(79450),p=e(31776),C=e(80879);let v=new h.k(128);async function m(t,n){let{account:e=t.account,assertChainId:h=!0,chain:m=t.chain,accessList:g,authorizationList:y,blobs:b,data:P,dataSuffix:T="string"==typeof t.dataSuffix?t.dataSuffix:t.dataSuffix?.value,gas:R,gasPrice:z,maxFeePerBlobGas:E,maxFeePerGas:G,maxPriorityFeePerGas:L,nonce:S,type:M,value:F,...N}=n;if(void 0===e)throw new o.o({docsPath:"/docs/actions/wallet/sendTransaction"});let A=e?(0,r.T)(e):null;try{(0,w.F)(n);let e=await (async()=>n.to?n.to:null!==n.to&&y&&y.length>0?await (0,a.z)({authorization:y[0]}).catch(()=>{throw new i.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(A?.type==="json-rpc"||null===A){let n;null!==m&&(n=await (0,d.s)(t,x.L,"getChainId")({}),h&&(0,c.q)({currentChainId:n,chain:m}));let r=t.chain?.formatters?.transactionRequest?.format,o=(r||l.tG)({...(0,f.K)(N,{format:r}),accessList:g,account:A,authorizationList:y,blobs:b,chainId:n,data:T?(0,u.zo)([P??"0x",T]):P,gas:R,gasPrice:z,maxFeePerBlobGas:E,maxFeePerGas:G,maxPriorityFeePerGas:L,nonce:S,to:e,type:M,value:F},"sendTransaction"),i=v.get(t.uid);try{return await t.request({method:i?"wallet_sendTransaction":"eth_sendTransaction",params:[o]},{retryCount:0})}catch(n){if(!1===i)throw n;if("InvalidInputRpcError"===n.name||"InvalidParamsRpcError"===n.name||"MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)return await t.request({method:"wallet_sendTransaction",params:[o]},{retryCount:0}).then(n=>(v.set(t.uid,!0),n)).catch(e=>{if("MethodNotFoundRpcError"===e.name||"MethodNotSupportedRpcError"===e.name)throw v.set(t.uid,!1),n;throw e});throw n}}if(A?.type==="local"){let n=await (0,d.s)(t,p.ZE,"prepareTransactionRequest")({account:A,accessList:g,authorizationList:y,blobs:b,chain:m,data:T?(0,u.zo)([P??"0x",T]):P,gas:R,gasPrice:z,maxFeePerBlobGas:E,maxFeePerGas:G,maxPriorityFeePerGas:L,nonce:S,nonceManager:A.nonceManager,parameters:[...p.QZ,"sidecars"],type:M,value:F,...N,to:e}),r=m?.serializers?.transaction,o=await A.signTransaction(n,{serializer:r});return await (0,d.s)(t,C.p,"sendRawTransaction")({serializedTransaction:o})}if(A?.type==="smart")throw new o.Y({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o.Y({docsPath:"/docs/actions/wallet/sendTransaction",type:A?.type})}catch(t){if(t instanceof o.Y)throw t;throw(0,s.$)(t,{...n,account:A,chain:n.chain||void 0})}}},92055:function(t,n,e){e.d(n,{n:function(){return s}});var r=e(17253),o=e(49233),i=e(41501),a=e(29683),c=e(4998),u=e(84405);async function s(t,n){return s.internal(t,u.T,"sendTransaction",n)}!function(t){async function n(t,n,e,u){let{abi:s,account:f=t.account,address:l,args:d,functionName:h,...w}=u;if(void 0===f)throw new o.o({docsPath:"/docs/contract/writeContract"});let x=f?(0,r.T)(f):null,p=(0,i.R)({abi:s,args:d,functionName:h});try{return await (0,c.s)(t,n,e)({data:p,to:l,account:x,...w})}catch(t){throw(0,a.S)(t,{abi:s,address:l,args:d,docsPath:"/docs/contract/writeContract",functionName:h,sender:x?.address})}}t.internal=n}(s||(s={}))},49233:function(t,n,e){e.d(n,{Y:function(){return i},o:function(){return o}});var r=e(54786);class o extends r.G{constructor({docsPath:t}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class i extends r.G{constructor({docsPath:t,metaMessages:n,type:e}){super(`Account type "${e}" is not supported.`,{docsPath:t,metaMessages:n,name:"AccountTypeNotSupportedError"})}}},63284:function(t,n,e){e.d(n,{q:function(){return o}});var r=e(96621);function o({chain:t,currentChainId:n}){if(!t)throw new r.Bk;if(n!==t.id)throw new r.Yl({chain:t,currentChainId:n})}},65295:function(t,n,e){function r(t){let n={formatters:void 0,fees:void 0,serializers:void 0,...t};return Object.assign(n,{extend:function t(n){return e=>{let r="function"==typeof e?e(n):e,o={...n,...r};return Object.assign(o,{extend:t(o)})}}(n)})}function o(){return{}}e.d(n,{W:function(){return o},a:function(){return r}})},48280:function(t,n,e){e.d(n,{K6:function(){return x},Re:function(){return C}
1,b$:function(){return w},mJ:function(){return p},vX:function(){return v}});var r=e(25156),o=e(39953),i=e(3491),a=e(54786),c=e(43983),u=e(96621),s=e(91858),f=e(46748),l=e(12160),d=e(55597),h=e(20082);function w(t){let{authorizationList:n}=t;if(n)for(let t of n){let{chainId:n}=t,e=t.address;if(!(0,f.U)(e))throw new i.b({address:e});if(n<0)throw new u.hJ({chainId:n})}p(t)}function x(t){let{blobVersionedHashes:n}=t;if(n){if(0===n.length)throw new c.RX;for(let t of n){let n=(0,l.d)(t),e=(0,h.ly)((0,d.tP)(t,0,1));if(32!==n)throw new c.xd({hash:t,size:n});if(e!==r.l)throw new c.cJ({hash:t,version:e})}}p(t)}function p(t){let{chainId:n,maxPriorityFeePerGas:e,maxFeePerGas:r,to:a}=t;if(n<=0)throw new u.hJ({chainId:n});if(a&&!(0,f.U)(a))throw new i.b({address:a});if(r&&r>o.zL)throw new s.Hh({maxFeePerGas:r});if(e&&r&&e>r)throw new s.cs({maxFeePerGas:r,maxPriorityFeePerGas:e})}function C(t){let{chainId:n,maxPriorityFeePerGas:e,gasPrice:r,maxFeePerGas:c,to:l}=t;if(n<=0)throw new u.hJ({chainId:n});if(l&&!(0,f.U)(l))throw new i.b({address:l});if(e||c)throw new a.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>o.zL)throw new s.Hh({maxFeePerGas:r})}function v(t){let{chainId:n,maxPriorityFeePerGas:e,gasPrice:r,maxFeePerGas:c,to:l}=t;if(l&&!(0,f.U)(l))throw new i.b({address:l});if(void 0!==n&&n<=0)throw new u.hJ({chainId:n});if(e||c)throw new a.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>o.zL)throw new s.Hh({maxFeePerGas:r})}},30914:function(t,n,e){e.d(n,{g:function(){return a}});var r=e(3491),o=e(70054),i=e(46748);function a(t){if(!t||0===t.length)return[];let n=[];for(let e=0;e<t.length;e++){let{address:a,storageKeys:c}=t[e];for(let t=0;t<c.length;t++)if(c[t].length-2!=64)throw new o.JC({storageKey:c[t]});if(!(0,i.U)(a,{strict:!1}))throw new r.b({address:a});n.push([a,c])}return n}},81830:function(t,n,e){e.d(n,{D:function(){return x},d:function(){return p}});var r=e(70054),o=e(15727),i=e(71366),a=e(23343),c=e(41031),u=e(37108),s=e(13222),f=e(14018),l=e(89920),d=e(48280),h=e(96913),w=e(30914);function x(t,n){let e=(0,h.l)(t);return"eip1559"===e?function(t,n){let{chainId:e,gas:r,nonce:i,to:a,value:c,maxFeePerGas:u,maxPriorityFeePerGas:f,accessList:h,data:x}=t;(0,d.mJ)(t);let C=(0,w.g)(h),v=[(0,o.eC)(e),i?(0,o.eC)(i):"0x",f?(0,o.eC)(f):"0x",u?(0,o.eC)(u):"0x",r?(0,o.eC)(r):"0x",a??"0x",c?(0,o.eC)(c):"0x",x??"0x",C,...p(t,n)];return(0,s.SM)(["0x02",(0,l.LV)(v)])}(t,n):"eip2930"===e?function(t,n){let{chainId:e,gas:r,data:i,nonce:a,to:c,value:u,accessList:f,gasPrice:h}=t;(0,d.Re)(t);let x=(0,w.g)(f),C=[(0,o.eC)(e),a?(0,o.eC)(a):"0x",h?(0,o.eC)(h):"0x",r?(0,o.eC)(r):"0x",c??"0x",u?(0,o.eC)(u):"0x",i??"0x",x,...p(t,n)];return(0,s.SM)(["0x01",(0,l.LV)(C)])}(t,n):"eip4844"===e?function(t,n){let{chainId:e,gas:r,nonce:f,to:h,value:x,maxFeePerBlobGas:C,maxFeePerGas:v,maxPriorityFeePerGas:m,accessList:g,data:y}=t;(0,d.K6)(t);let b=t.blobVersionedHashes,P=t.sidecars;if(t.blobs&&(void 0===b||void 0===P)){let n="string"==typeof t.blobs[0]?t.blobs:t.blobs.map(t=>(0,o.ci)(t)),e=t.kzg,r=(0,i.P)({blobs:n,kzg:e});if(void 0===b&&(b=(0,c.C)({commitments:r})),void 0===P){let t=(0,a.y)({blobs:n,commitments:r,kzg:e});P=(0,u.j)({blobs:n,commitments:r,proofs:t})}}let T=(0,w.g)(g),R=[(0,o.eC)(e),f?(0,o.eC)(f):"0x",m?(0,o.eC)(m):"0x",v?(0,o.eC)(v):"0x",r?(0,o.eC)(r):"0x",h??"0x",x?(0,o.eC)(x):"0x",y??"0x",T,C?(0,o.eC)(C):"0x",b??[],...p(t,n)],z=[],E=[],G=[];if(P)for(let t=0;t<P.length;t++){let{blob:n,commitment:e,proof:r}=P[t];z.push(n),E.push(e),G.push(r)}return(0,s.SM)(["0x03",P?(0,l.LV)([R,z,E,G]):(0,l.LV)(R)])}(t,n):"eip7702"===e?function(t,n){let{authorizationList:e,chainId:r,gas:i,nonce:a,to:c,value:u,maxFeePerGas:f,maxPriorityFeePerGas:h,accessList:x,data:C}=t;(0,d.b$)(t);let v=(0,w.g)(x),m=function(t){if(!t||0===t.length)return[];let n=[];for(let e of t){let{chainId:t,nonce:r,...i}=e,a=e.address;n.push([t?(0,o.NC)(t):"0x",a,r?(0,o.NC)(r):"0x",...p({},i)])}return n}(e);return(0,s.SM)(["0x04",(0,l.LV)([(0,o.eC)(r),a?(0,o.eC)(a):"0x",h?(0,o.eC)(h):"0x",f?(0,o.eC)(f):"0x",i?(0,o.eC)(i):"0x",c??"0x",u?(0,o.eC)(u):"0x",C??"0x",v,m,...p(t,n)])])}
1(t,n):function(t,n){let{chainId:e=0,gas:i,data:a,nonce:c,to:u,value:s,gasPrice:h}=t;(0,d.vX)(t);let w=[c?(0,o.eC)(c):"0x",h?(0,o.eC)(h):"0x",i?(0,o.eC)(i):"0x",u??"0x",s?(0,o.eC)(s):"0x",a??"0x"];if(n){let t=(()=>{if(n.v>=35n)return(n.v-35n)/2n>0?n.v:27n+(35n===n.v?0n:1n);if(e>0)return BigInt(2*e)+BigInt(35n+n.v-27n);let t=27n+(27n===n.v?0n:1n);if(n.v!==t)throw new r.vl({v:n.v});return t})(),i=(0,f.f)(n.r),a=(0,f.f)(n.s);w=[...w,(0,o.eC)(t),"0x00"===i?"0x":i,"0x00"===a?"0x":a]}else e>0&&(w=[...w,(0,o.eC)(e),"0x","0x"]);return(0,l.LV)(w)}(t,n)}function p(t,n){let e=n??t,{v:r,yParity:i}=e;if(void 0===e.r||void 0===e.s||void 0===r&&void 0===i)return[];let a=(0,f.f)(e.r),c=(0,f.f)(e.s);return["number"==typeof i?i?(0,o.eC)(1):"0x":0n===r?"0x":1n===r?(0,o.eC)(1):27n===r?"0x":(0,o.eC)(1),"0x00"===a?"0x":a,"0x00"===c?"0x":c]}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.