@dodoex/wallet-web3 0.0.58-zerion.0 → 0.0.58-zerion.1
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/{alchemy-provider-5870b6fa-05887fa9.js → alchemy-provider-5870b6fa-a0ec1d79.js} +1 -1
- package/dist/{alchemy-websocket-provider-213da986-c90cc726.js → alchemy-websocket-provider-213da986-4c54cf79.js} +1 -1
- package/dist/{blocto-d364f148.js → blocto-fd21e7d9.js} +1 -1
- package/dist/{ccip-2c11b9c6.js → ccip-0a8f59d4.js} +1 -1
- package/dist/cjs/{alchemy-provider-5870b6fa-35c57e02.cjs → alchemy-provider-5870b6fa-a310d93d.cjs} +1 -1
- package/dist/cjs/{alchemy-websocket-provider-213da986-0736b674.cjs → alchemy-websocket-provider-213da986-4be6a8a3.cjs} +1 -1
- package/dist/cjs/{blocto-93cea016.cjs → blocto-498db14f.cjs} +1 -1
- package/dist/cjs/{ccip-bcb86825.cjs → ccip-ed2f34bf.cjs} +1 -1
- package/dist/cjs/{draggabilly-eb931971.cjs → draggabilly-34252360.cjs} +1 -1
- package/dist/cjs/id-a1ebdbcc.cjs +1 -0
- package/dist/cjs/{index-6339407f.cjs → index-052524f3.cjs} +4 -4
- package/dist/cjs/{index-0b3b2c64.cjs → index-1c43bec5.cjs} +1 -1
- package/dist/cjs/{index-fedad0a2.cjs → index-1ee15ec5.cjs} +1 -1
- package/dist/cjs/{index-bb70b55d.cjs → index-5ea43a78.cjs} +1 -1
- package/dist/cjs/{index-d3f060ea.cjs → index-74e9e6ab.cjs} +1 -1
- package/dist/cjs/{index-f6be6c9a.cjs → index-b0d18e97.cjs} +1 -1
- package/dist/cjs/{index-5907da45.cjs → index-b5d77a80.cjs} +2 -2
- package/dist/cjs/{index-4d227efd.cjs → index-c6ec2445.cjs} +1 -1
- package/dist/cjs/{index-d108abcd.cjs → index-e3dd33a2.cjs} +1 -1
- package/dist/cjs/{index-ec1e1cb7.cjs → index-ef028689.cjs} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/{index.es-91cf31e8.cjs → index.es-f6ecdbbf.cjs} +1 -1
- package/dist/cjs/{interface-28f78f4a.cjs → interface-7b2cfe31.cjs} +1 -1
- package/dist/cjs/{lib-typedarrays-aa0aff83.cjs → lib-typedarrays-142e1eb9.cjs} +1 -1
- package/dist/cjs/{portis-3ae54f5a.cjs → portis-e418ab02.cjs} +1 -1
- package/dist/cjs/{provider-5ec6721e.cjs → provider-6558f9a8.cjs} +1 -1
- package/dist/cjs/{rainbow-f8da3b90.cjs → rainbow-674dc407.cjs} +1 -1
- package/dist/cjs/{sha224-f8b8401b.cjs → sha224-f82003a5.cjs} +1 -1
- package/dist/cjs/{sha256-3406c912.cjs → sha256-bceaa99c.cjs} +1 -1
- package/dist/cjs/{typed-data-1ee23a5f.cjs → typed-data-5abba3a7.cjs} +1 -1
- package/dist/cjs/{uAuth-223fc040.cjs → uAuth-a68ef4c0.cjs} +1 -1
- package/dist/cjs/{walletConnect-b94bb585.cjs → walletConnect-15ee3bcf.cjs} +1 -1
- package/dist/cjs/{walletLink-d1daa67e.cjs → walletLink-018bfbac.cjs} +1 -1
- package/dist/{draggabilly-8a762a67.js → draggabilly-6eae8aa3.js} +1 -1
- package/dist/id-028b8569.js +1 -0
- package/dist/{index-913a0667.js → index-0d45c4c5.js} +1 -1
- package/dist/{index-24a7f116.js → index-14bf24c3.js} +1 -1
- package/dist/{index-b7e6e246.js → index-34504344.js} +1 -1
- package/dist/{index-79ec496b.js → index-36a3f919.js} +1 -1
- package/dist/{index-0c604c5e.js → index-6cbc1235.js} +4 -4
- package/dist/{index-58b11790.js → index-af36afc5.js} +1 -1
- package/dist/{index-856b231d.js → index-b073fc05.js} +2 -2
- package/dist/{index-3554ffb8.js → index-b7e903bb.js} +1 -1
- package/dist/{index-ecb63d07.js → index-bf39956d.js} +1 -1
- package/dist/{index-6f26f4c1.js → index-c1301e87.js} +1 -1
- package/dist/{index.es-a1abc4a3.js → index.es-b593606e.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{interface-c126447f.js → interface-8bc78eb7.js} +1 -1
- package/dist/{lib-typedarrays-7060b2d9.js → lib-typedarrays-bb573500.js} +1 -1
- package/dist/{portis-515843b0.js → portis-854af820.js} +1 -1
- package/dist/{provider-3cd27f3d.js → provider-6b710a32.js} +1 -1
- package/dist/{rainbow-1b7b0ce3.js → rainbow-018f1b06.js} +1 -1
- package/dist/sha224-00dd8db8.js +1 -0
- package/dist/{sha256-044d8842.js → sha256-6124802a.js} +1 -1
- package/dist/{typed-data-3249f8a8.js → typed-data-c9d799da.js} +1 -1
- package/dist/{uAuth-c1ddf09a.js → uAuth-40aa1300.js} +1 -1
- package/dist/{walletConnect-c0135b5e.js → walletConnect-8a46b424.js} +1 -1
- package/dist/{walletLink-6b88bf47.js → walletLink-90b58705.js} +1 -1
- package/package.json +1 -1
- package/dist/cjs/id-6b997367.cjs +0 -1
- package/dist/id-4eac292e.js +0 -1
- package/dist/sha224-e2a1e58b.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as t}from"./index-
|
|
1
|
+
import{c as t}from"./index-6cbc1235.js";function i(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(e){if("default"!==e&&!(e in t)){var n=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,n.get?n:{enumerable:!0,get:function(){return i[e]}})}}))})),Object.freeze(t)}var e,n={exports:{}},o={exports:{}};function s(){return e||(e=1,t=o,function(i,e){t.exports?t.exports=e():i.getSize=e()}(window,(function(){function t(t){let i=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(i)&&i}let i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];return function(e){if("string"==typeof e&&(e=document.querySelector(e)),!e||"object"!=typeof e||!e.nodeType)return;let n=getComputedStyle(e);if("none"==n.display)return function(){let t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};return i.forEach((i=>{t[i]=0})),t}();let o={};o.width=e.offsetWidth,o.height=e.offsetHeight;let s=o.isBorderBox="border-box"==n.boxSizing;i.forEach((t=>{let i=n[t],e=parseFloat(i);o[t]=isNaN(e)?0:e}));let r=o.paddingLeft+o.paddingRight,h=o.paddingTop+o.paddingBottom,a=o.marginLeft+o.marginRight,d=o.marginTop+o.marginBottom,l=o.borderLeftWidth+o.borderRightWidth,c=o.borderTopWidth+o.borderBottomWidth,u=t(n.width);!1!==u&&(o.width=u+(s?0:r+l));let p=t(n.height);return!1!==p&&(o.height=p+(s?0:h+c)),o.innerWidth=o.width-(r+l),o.innerHeight=o.height-(h+c),o.outerWidth=o.width+a,o.outerHeight=o.height+d,o}}))),o.exports;var t}var r,h,a,d={exports:{}},l={exports:{}};function c(){return r||(r=1,i=l,e="undefined"!=typeof window?window:t,n=function(){function t(){}let i=t.prototype;return i.on=function(t,i){if(!t||!i)return this;let e=this._events=this._events||{},n=e[t]=e[t]||[];return n.includes(i)||n.push(i),this},i.once=function(t,i){if(!t||!i)return this;this.on(t,i);let e=this._onceEvents=this._onceEvents||{};return(e[t]=e[t]||{})[i]=!0,this},i.off=function(t,i){let e=this._events&&this._events[t];if(!e||!e.length)return this;let n=e.indexOf(i);return-1!=n&&e.splice(n,1),this},i.emitEvent=function(t,i){let e=this._events&&this._events[t];if(!e||!e.length)return this;e=e.slice(0),i=i||[];let n=this._onceEvents&&this._onceEvents[t];for(let o of e)n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,i);return this},i.allOff=function(){return delete this._events,delete this._onceEvents,this},t},i.exports?i.exports=n():e.EvEmitter=n()),l.exports;var i,e,n}
|
|
2
2
|
/*!
|
|
3
3
|
* Unidragger v3.0.1
|
|
4
4
|
* Draggable base class
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as r,t}from"./index-6cbc1235.js";function i(i){return r(t(i))}export{i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t,D as e,Z as n,$ as r,a0 as o,C as i}from"./index-
|
|
1
|
+
import{_ as t,D as e,Z as n,$ as r,a0 as o,C as i}from"./index-6cbc1235.js";import{getAddress as s}from"@ethersproject/address";import{Signer as a}from"@ethersproject/abstract-signer";import{UniPassPopupSDK as d}from"@unipasswallet/popup-sdk";import{defineReadOnly as c}from"@ethersproject/properties";import"@ethersproject/providers";import"zustand";import"@ethersproject/bytes";import"buffer";import"@ethersproject/abstract-provider";import"@ethersproject/contracts";import"events";import"@ethersproject/constants";import"@ethersproject/transactions";class l extends a{constructor(t,e,n,r){super(),this._address=n,this._index=null!=r?r:0,this.provider=t,this.upWallet=e}_legacySignMessage(t){throw new Error("Method not implemented.")}sendUncheckedTransaction(t){throw new Error("Method not implemented.")}unlock(t){throw new Error("Method not implemented.")}getAddress(){return t(this,void 0,void 0,(function*(){return Promise.resolve(s(this._address))}))}signMessage(e){return t(this,void 0,void 0,(function*(){if(!this.upWallet)throw new Error(`address unknown '${e}'`);return yield this.upWallet.signMessage(e,{isEIP191Prefix:!0,onAuthChain:!0})}))}_signTypedData(e,n,r){return t(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}signTransaction(e){return t(this,void 0,void 0,(function*(){if(!this.upWallet)throw new Error(`address unknown '${e.from}'`);return this.upWallet.sendTransaction({from:e.from,to:e.to,value:e.value,data:e.data})}))}sendTransaction(e){return t(this,void 0,void 0,(function*(){if(!this.upWallet)throw new Error(`address unknown '${e.from}'`);return{hash:yield this.upWallet.sendTransaction({from:e.from,to:e.to,value:e.value,data:e.data}),from:e.from}}))}connect(t){return new l(null!=t?t:this.provider,this.upWallet,this._address,this._index)}connectUnchecked(){return new l(this.provider,this.upWallet,this._address,this._index)}}function u(i){var a,u,p;return t(this,void 0,void 0,(function*(){const h=i.JsonRpcProvider||e,v=null!==(a=i.chainId)&&void 0!==a?a:1;let m=null!==(u=i.rpcUrl)&&void 0!==u?u:null===(p=i.rpc)||void 0===p?void 0:p[v];const f=new class extends h{constructor(t,e){super(t,e),this.updateUpWalletConfig=t=>{var e;const o=null===(e=i.rpc)||void 0===e?void 0:e[t];if(!n.includes(t))throw new Error(`chainId ${t} not supported`);if(this.upWallet.updateConfig({chainType:r(t),nodeRPC:o,appSettings:{chain:r(t)}}),"object"==typeof this.network)this.network.chainId=t;else{const e={chainId:t,name:"unknown"};c(this,"_network",e),this.emit("network",e,null)}return this.rpcUrl=o,this.emit("chainChanged",`0x${t.toString(16)}`),{result:!0}},this.rpcUrl=t,this.upWallet=new d({env:o(v),chainType:r(v),appSettings:{appIcon:i.appLogoUrl,appName:i.appName,chain:r(v)},rpcUrl:m,storageType:"sessionStorage"})}getSigner(){var t;const e=this.upWallet.getAccount();return new l(f,this.upWallet,null!==(t=null==e?void 0:e.address)&&void 0!==t?t:"",0)}connect(){return t(this,void 0,void 0,(function*(){const t=this.upWallet.getAccount();return t||(yield this.upWallet.login({email:false}))}))}disconnect(){return t(this,void 0,void 0,(function*(){yield this.upWallet.logout()}))}listAccounts(){return t(this,void 0,void 0,(function*(){const t=this.upWallet.getAccount();return(null==t?void 0:t.address)?[null==t?void 0:t.address]:[]}))}getAddress(){const t=this.upWallet.getAccount();return Promise.resolve((null==t?void 0:t.address)?s(null==t?void 0:t.address):null)}}(m,v);return f}))}function p(e,n){return t(this,void 0,void 0,(function*(){const t=yield u(e);return t.on("connect",n.connect),t.on("disconnect",(t=>{n.disconnect(t),n.accountsChanged([])})),t.on("accountsChanged",n.accountsChanged),t.on("chainChanged",n.chainChanged),t.on("message",(({type:t,data:e})=>n.message(t,e))),yield t.connect(),t}))}function h(){var t;null===(t=i.getState().provider)||void 0===t||t.disconnect()}function v(t){var e,n;return null===(n=null===(e=i.getState().provider)||void 0===e?void 0:e.upWallet)||void 0===n?void 0:n.signTypedData(t)}function m(t){var e;const r=t.addChainParameters.chainId,o="string"==typeof r&&(null==r?void 0:r.startsWith("0x"))?parseInt(r,16):Number(r);if(!n.includes(o))throw new Error(`chainId ${o} not supported`);return null===(e=i.getState().provider)||void 0===e?void 0:e.updateUpWalletConfig(o)}export{u as createProvider,p as default,h as disconnectWallet,v as signTypedData,m as switchChain};
|