@dodoex/wallet-web3 0.0.11-5 → 0.0.11-6
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-47f5f4ee.js → blocto-34408742.js} +1 -1
- package/dist/cjs/{blocto-a22bd938.cjs → blocto-d87020c9.cjs} +1 -1
- package/dist/cjs/{index-a60b63e3.cjs → index-33e5abc1.cjs} +1 -1
- package/dist/cjs/{index-eef1cb03.cjs → index-3860582b.cjs} +1 -1
- package/dist/cjs/{index-505465ee.cjs → index-83c21e07.cjs} +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/{portis-0440bb6d.cjs → portis-644eb765.cjs} +1 -1
- package/dist/cjs/{provider-5eae500a.cjs → provider-d41d4193.cjs} +1 -1
- package/dist/cjs/{rainbow-02884cee.cjs → rainbow-4d7f29fb.cjs} +1 -1
- package/dist/cjs/{uAuth-bae8b182.cjs → uAuth-a63951bf.cjs} +1 -1
- package/dist/cjs/{walletConnect-8590ccfd.cjs → walletConnect-3a7a65f7.cjs} +1 -1
- package/dist/cjs/{walletLink-23d2e66b.cjs → walletLink-34c09a04.cjs} +1 -1
- package/dist/{index-30987b16.js → index-1bc155b7.js} +1 -1
- package/dist/{index-12e97d36.js → index-8c31dc77.js} +1 -1
- package/dist/{index-319515d7.js → index-edda60a3.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{portis-b181459a.js → portis-238a15f9.js} +1 -1
- package/dist/{provider-53634cde.js → provider-21116ff8.js} +1 -1
- package/dist/{rainbow-9108cc9a.js → rainbow-8739d5b5.js} +1 -1
- package/dist/{uAuth-fcb1da92.js → uAuth-04c67382.js} +1 -1
- package/dist/{walletConnect-7982e893.js → walletConnect-a5c8f24e.js} +1 -1
- package/dist/{walletLink-0b9ab1be.js → walletLink-d7fc1d25.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-8c31dc77.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:c,walletConnectParams:a,darkMode:s},d){return e(this,void 0,void 0,(function*(){let e,i,p="wss://relay.walletconnect.com",l=!0;a&&(p=a.bridge||p,l=void 0!==a.qrcode?a.qrcode:l,a.infuraId,i=a.qrModalOptions||void 0),c?e=c: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-8c31dc77.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},d){return e(this,void 0,void 0,(function*(){if(window.ethereum&&(window.ethereum.isWalletLink||window.ethereum.isToshi))return o(window.ethereum,d);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",d.connect),e.on("disconnect",d.disconnect),e.on("accountsChanged",d.accountsChanged),e.on("chainChanged",d.chainChanged),e.on("message",d.message),r(e)}))}export{n as default};
|