PageSourceSearch

https://taskon.xyz/assets/Transaction-DeK3bPsP.js

js taskon.xyz collected 2026-09-24 10:09:32 UTC 1,101 bytes, 1 lines download raw bytes

1import{E as e,Fo as t,Sr as n,n as r,w as i}from"./track-CV3zh0zK.js";import{t as a}from"./ChainType-CfPzFvPs.js";import{_ as o}from"./enums-CHFb7_-4.js";import{m as s}from"./utf8-ChtswdN6.js";var c=class{wallet;connectedAddress=``;constructor(e){this.wallet=e}async connectOrThrow(){try{return await this.wallet.connectAccount()}catch(e){let r=e,a=typeof r==`object`&&r.code||``,s=typeof r==`object`&&r.message||``,c=i(r);throw new n(a,s,c?o.Canceled:o.ConnectFailed,c?t.global.t(`connect_rejected`):s)}}async checkAccountAndNetwork(i,c,l,u,d){let f=await this.connectOrThrow();if(l?.(),this.connectedAddress=f,c&&!e(f,c))throw r(`Account mismatch`,{targetAddress:c,connectedAddress:f,wallet:this.wallet.name}),new n(``,``,o.AccountMismatch,t.global.t(`account_mismatch`));if(this.wallet.chainType!==a.evm){u?.(),d?.();return}let p=await this.wallet.getChainIdHex();u?.(parseInt(p)),p!==s(Number(i.id))&&await this.wallet.trySetAndSwitchNetwork(i),d?.()}async getWalletGasBallance(){return this.connectedAddress?await this.wallet.accountNativeTokenBalance(this.connectedAddress):`0`}};export{c as t};

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.