@dodoex/wallet-web3 0.0.11-3 → 0.0.11-4
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/{blocto-ca1a88ec.js → blocto-e8ec4e79.js} +1 -1
- package/dist/cjs/{blocto-40a3ba66.cjs → blocto-2a036715.cjs} +1 -1
- package/dist/cjs/{index-73f26b19.cjs → index-2e6acd8a.cjs} +1 -1
- package/dist/cjs/{index-8e78ca81.cjs → index-32ab4d20.cjs} +1 -1
- package/dist/cjs/{index-76a991a4.cjs → index-85c278fd.cjs} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/{portis-e40053fe.cjs → portis-0b55b179.cjs} +1 -1
- package/dist/cjs/{provider-a27fecc1.cjs → provider-033681f8.cjs} +1 -1
- package/dist/cjs/{rainbow-3ebf40ef.cjs → rainbow-d26ae4d0.cjs} +1 -1
- package/dist/cjs/{uAuth-bbf3a227.cjs → uAuth-b982cc7a.cjs} +1 -1
- package/dist/cjs/{walletConnect-07394d2e.cjs → walletConnect-f06d34c9.cjs} +1 -1
- package/dist/cjs/{walletLink-e2f65c2c.cjs → walletLink-a818830c.cjs} +1 -1
- package/dist/{index-eb6e0a26.js → index-870d2c76.js} +1 -1
- package/dist/{index-bf574909.js → index-8ae51bf2.js} +1 -1
- package/dist/{index-ece24664.js → index-f63b71d9.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{portis-5b081bf4.js → portis-eec40b2e.js} +1 -1
- package/dist/{provider-f8370b71.js → provider-e1ea6d52.js} +1 -1
- package/dist/{rainbow-b1412e79.js → rainbow-870617cc.js} +1 -1
- package/dist/{uAuth-5a452084.js → uAuth-b821c067.js} +1 -1
- package/dist/{walletConnect-64a78f4d.js → walletConnect-05bbbd5a.js} +1 -1
- package/dist/{walletLink-7cc855ee.js → walletLink-c4bad656.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,a as o}from"./index-
|
|
1
|
+
import{_ as e,a as o}from"./index-8ae51bf2.js";import{EthereumProvider as t}from"@walletconnect/ethereum-provider";import"@ethersproject/providers";import"zustand";import"@ethersproject/strings";import"@ethersproject/bytes";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/address";function n({chainId:n,rpcUrl:r,rpc:a,walletConnectParams:c,darkMode:s},d){return e(this,void 0,void 0,(function*(){let e,i,p="wss://relay.walletconnect.com",l=!0;c&&(p=c.bridge||p,l=void 0!==c.qrcode?c.qrcode:l,c.infuraId,i=c.qrModalOptions||void 0),a?e=a:n&&r&&(e={[n]:r});const h=yield t.init({projectId:"59e050d1f27ed617e65bb9637c9498d6",chains:n?[n]:[],showQrModal:!0,rpcMap:e,qrModalOptions:Object.assign({themeMode:s?"dark":"light"},i)});return h.on("display_uri",(e=>{(null==i?void 0:i.openCallback)&&i.openCallback(e)})),yield h.enable(),h.on("connect",d.connect),h.on("disconnect",(e=>{d.disconnect(e),d.accountsChanged([])})),h.on("accountsChanged",d.accountsChanged),h.on("chainChanged",d.chainChanged),h.on("message",(({type:e,data:o})=>d.message(e,o))),o(h)}))}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,i as o,a as r}from"./index-
|
|
1
|
+
import{_ as e,i as o,a as r}from"./index-8ae51bf2.js";import t from"@coinbase/wallet-sdk";import"@ethersproject/providers";import"zustand";import"@ethersproject/strings";import"@ethersproject/bytes";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/address";function n({chainId:n,rpcUrl:a,appName:i,appLogoUrl:s,darkMode:c},p){return e(this,void 0,void 0,(function*(){if(window.ethereum&&(window.ethereum.isWalletLink||window.ethereum.isToshi))return o(window.ethereum,p);if(!i)throw new Error("walletLink need appName");const e=new t({appName:i,appLogoUrl:s,darkMode:c}).makeWeb3Provider(a,n);return yield e.enable(),e.on("connect",p.connect),e.on("disconnect",p.disconnect),e.on("accountsChanged",p.accountsChanged),e.on("chainChanged",p.chainChanged),e.on("message",p.message),r(e)}))}export{n as default};
|