PageSourceSearch

https://auraspay.com/_next/static/chunks/2537.d63dc28f302c42ab.js

js auraspay.com collected 2026-10-02 07:39:16 UTC 9,673 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2537],{9276:t=>{"use strict";var e={single_source_shortest_paths:function(t,n,r){var o,a,s,i,c,f,u,p={},l={};l[n]=0;var d=e.PriorityQueue.make();for(d.push(n,0);!d.empty();)for(s in a=(o=d.pop()).value,i=o.cost,c=t[a]||{})c.hasOwnProperty(s)&&(f=i+c[s],u=l[s],(void 0===l[s]||u>f)&&(l[s]=f,d.push(s,f),p[s]=a));if(void 0!==r&&void 0===l[r])throw Error(["Could not find a path from ",n," to ",r,"."].join(""));return p},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var o=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,o={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){this.queue.push({value:t,cost:e}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e},35833:(t,e,n)=>{"use strict";n.d(e,{Hu:()=>d,Nj:()=>m,i0:()=>f,i_:()=>u,mV:()=>p,ms:()=>v,ve:()=>E,zr:()=>l});var r=n(98179),o=n(82338),a=n(9644),s=n(51116);let i=(0,r.U)(["function approve(address spender,uint256 amount) returns (bool)"]),c=(0,r.U)(["function pay(bytes32 paymentReference,address merchant,uint256 amount,uint256 deadline)"]),f=!1,u=!0;function p(t,e=f){return e&&("base"===t||"polygon"===t)}let l={base:{chainId:84532,token:"0x036CbD53842c5426634e7929541eC2318f3dCF7e",splitter:s.env.NEXT_PUBLIC_BASE_TEST_SPLITTER||"",platform:s.env.NEXT_PUBLIC_BASE_TEST_FEE_WALLET||"",codeHash:s.env.NEXT_PUBLIC_BASE_TEST_SPLITTER_CODE_HASH||""},polygon:{chainId:80002,token:"0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582",splitter:s.env.NEXT_PUBLIC_POLYGON_TEST_SPLITTER||"",platform:s.env.NEXT_PUBLIC_POLYGON_TEST_FEE_WALLET||"",codeHash:s.env.NEXT_PUBLIC_POLYGON_TEST_SPLITTER_CODE_HASH||""}},d={base:{chainId:8453,token:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",splitter:"0x238163Cff727a02cE09009455233D176E19F566E",platform:"0xaFf9186cBED61298c21f1163e0E5B4730Ff7324A",codeHash:"0x45964cb23e3c2bbceb7a3fb05ecf70c9a8d1fc45f7754463460c2107836ae2ed"},polygon:{chainId:137,token:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",splitter:"0x238163Cff727a02cE09009455233D176E19F566E",platform:"0xaFf9186cBED61298c21f1163e0E5B4730Ff7324A",codeHash:"0x2de5df1da8e546cd6e90224ea6c5279d2b85a75bf122c76fda264674bf42649b"}},h=(t,e)=>t.toLowerCase()===e.toLowerCase(),_=t=>"string"==typeof t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&!/^0x0{40}$/.test(t);function v(t,e,n=l[e.network],r=Date.now()){if(!t||"object"!=typeof t)throw Error("Invalid test transaction plan");if(t.testOnly!==(e.testOnly??!0)||t.network!==e.network||t.chainId!==n.chainId||![n.splitter,n.platform,n.token,t.account,t.token,t.splitter,t.merchant,t.platform].every(_)||!h(t.account,e.account)||!h(t.token,n.token)||!h(t.splitter,n.splitter)||!h(t.platform,n.platform)||!/^0x[0-9a-fA-F]{64}$/.test(t.reference)||!Number.isSafeInteger(t.deadline)||1e3*t.deadline<=r||1e3*t.deadline>r+9e5||!/^\d+$/.test(t.amount)||!/^\d+$/.test(t.platformAmount)||!/^\d+$/.test(t.merchantAmount)||!Array.isArray(t.steps))throw Error("Test transaction does not match trusted configuration");let s=BigInt(t.amount);if(s!==(0,o.X)(e.amount,6)||s<BigInt(100)||s>BigInt(Number.MAX_SAFE_INTEGER)||BigInt(t.platformAmount)!==s/BigInt(100)||BigInt(t.merchantAmount)!==s-s/BigInt(100)||[t.account,t.token,t.splitter,t.platform].some(e=>h(e,t.merchant)))throw Error("Invalid split amounts or recipient");if(!["pay","approve,pay","reset,approve,pay"].includes(t.steps.map(t=>t.step).join(",")))throw Error("Unexpected transaction sequence");for(let e of t.steps){if(!_(e.to)||e.chainId!==n.chainId||"0"!==e.value)throw Error("Wrong transaction chain or value");if("pay"===e.step){let[r,o,i,f]=(0,a.J)({abi:c,data:e.data}).args;if(!h(e.to,n.splitter)||!h(r,t.reference)||!h(o,t.merchant)||i!==s||f!==BigInt(t.deadline))throw Error("Payment calldata mismatch")}else{let t=(0,a.J)({abi:i,data:e.data});if(!h(e.to,n.token)||!h(t.args[0],n.splitter)||t.args[1]!==("reset"===e.step?BigInt(0):s))throw Error("Approval is not exact")}}return t}async function E(t,e={}){let n=e.attempts??81,r=e.intervalMs??15e3,o=e.wait??(t=>new Promise(e=>setTimeout(e,t))),a={pending:!0};for(let s=0;s<n;s++){try{a=await t()}catch{a={completed:!1,pending:!0,error:"Payment verification temporarily unavailable."}}if(a.completed||!a.pending)break;e.onPending?.(),s<n-1&&await o(r)}return a}
1async function m(t,e,n=()=>Date.now()){let r;for(let o of t.steps){if(n()>=1e3*t.deadline)throw Error("Invoice expired; do not send another transaction");if(await e.chainId()!==t.chainId||!h(await e.account(),t.account))throw Error("Wallet account or chain changed");e.onStep(o.step);let a=await e.send(o),s=await e.wait(a);if("success"!==s.status||!h(s.transactionHash,a))throw Error("Transaction failed or was replaced. Review wallet activity before retrying.");r=a}if(!r)throw Error("Empty transaction plan");return r}},39425:()=>{},41676:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>f});var r=n(57336),o=n(60171),a=n(89247),s=n(42428),i=n(26083);let c=new a.E({defaultOptions:{queries:{retry:1}}});function f({children:t}){return(0,r.jsx)(i.x,{config:o.XQ.wagmiConfig,children:(0,r.jsx)(s.Ht,{client:c,children:t})})}},60171:(t,e,n)=>{"use strict";n.d(e,{M3:()=>I,XQ:()=>w,_E:()=>p,fA:()=>E,he:()=>d,o8:()=>b,wl:()=>v,xd:()=>h});var r=n(55562),o=n(94076),a=n(94253),s=n(69763),i=n(35833),c=n(70573),f=n(51116);let u=c.U1,p="sepolia"===f.env.NEXT_PUBLIC_ETHEREUM_NETWORK?"sepolia":"mainnet",l="sepolia"===p?s.Gby:s.rCZ,d=l.id,h="testnet"===f.env.NEXT_PUBLIC_BNB_NETWORK?"testnet":"mainnet",_="testnet"===h?s.ckX:s.NBY,v=_.id,E="devnet"===f.env.NEXT_PUBLIC_SOLANA_NETWORK?"devnet":"mainnet-beta",m="devnet"===E?s.Rn0:s.tWt,y=i.i_?[s.E3H,s.n1]:i.i0?[s.ZWT,s.nMf]:[],b=[l,_,m,...y],w=new o.D({networks:[l,_,...y],projectId:u,ssr:!0}),T=new a.S,I=(0,r.sX)({adapters:[w,T],networks:b,projectId:u,metadata:{name:"AurasPay",description:"Secure Crypto Payment Gateway",url:"https://auraspay.com",icons:["https://auraspay.com/brand/auraspay-app-logo.png"]},featuredWalletIds:[c.Cf],features:{analytics:!1,email:!1,socials:[],emailShowWallets:!1},themeMode:"dark",themeVariables:{"--w3m-z-index":9999}})},60400:t=>{"use strict";var e=Object.prototype.hasOwnProperty,n="~";function r(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(t,e,r,a,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var i=new o(r,a||t,s),c=n?n+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],i]:t._events[c].push(i):(t._events[c]=i,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function i(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),i.prototype.eventNames=function(){var t,r,o=[];if(0===this._eventsCount)return o;for(r in t=this._events)e.call(t,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},i.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,a=r.length,s=Array(a);o<a;o++)s[o]=r[o].fn;return s},i.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},i.prototype.emit=function(t,e,r,o,a,s){var i=n?n+t:t;if(!this._events[i])return!1;var c,f,u=this._events[i],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;case 3:return u.fn.call(u.context,e,r),!0;case 4:return u.fn.call(u.context,e,r,o),!0;case 5:return u.fn.call(u.context,e,r,o,a),!0;case 6:return u.fn.call(u.context,e,r,o,a,s),!0}for(f=1,c=Array(p-1);f<p;f++)c[f-1]=arguments[f];u.fn.apply(u.context,c)}else{var l,d=u.length;for(f=0;f<d;f++)switch(u[f].once&&this.removeListener(t,u[f].fn,void 0,!0),p){case 1:u[f].fn.call(u[f].context);break;case 2:u[f].fn.call(u[f].context,e);break;case 3:u[f].fn.call(u[f].context,e,r);break;case 4:u[f].fn.call(u[f].context,e,r,o);break;default:if(!c)for(l=1,c=Array(p-1);l<p;l++)c[l-1]=arguments[l];u[f].fn.apply(u[f].context,c)}}return!0},i.prototype.on=function(t,e,n){return a(this,t,e,n,!1)},i.prototype.once=function(t,e,n){return a(this,t,e,n,!0)},i.prototype.removeListener=function(t,e,r,o){var a=n?n+t:t;if(!this._events[a])return this;if(!e)return s(this,a),this;var i=this._events[a];if(i.fn)i.fn!==e||o&&!i.once||r&&i.context!==r||s(this,a);else{for(var c=0,f=[],u=i.length;c<u;c++)(i[c].fn!==e||o&&!i[c].once||r&&i[c].context!==r)&&f.push(i[c]);f.length?this._events[a]=1===f.length?f[0]:f:s(this,a)}return this},i.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=n,i.EventEmitter=i,t.exp
1orts=i},70573:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>a,Ik:()=>i,J2:()=>s,U1:()=>o});var r=n(51116);let o="0066d4ea511a7c8eda276b5dfc283d2b".trim()||"0066d4ea511a7c8eda276b5dfc283d2b",a=r.env.NEXT_PUBLIC_AURAS_WALLET_REOWN_ID?.trim()||"32f356ddf5d2e2f52513cfb84fc78a954e7f130eb53cc1405b9da84bce4c4b51";r.env.NEXT_PUBLIC_AURAS_WEB_WALLET_URL?.trim();let s=r.env.NEXT_PUBLIC_AURAS_CONNECT_ORIGIN?.trim()||"https://connect.auraspay.com",i=!!o},70755:(t,e,n)=>{"use strict";n.d(e,{A:()=>o,b:()=>r});var r=n(60400);let o=r}}]);

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.