@dodoex/wallet-web3 0.5.3 → 0.6.0

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.
Files changed (86) hide show
  1. package/dist/__tslib-cf28c574.js +1 -0
  2. package/dist/{alchemy-provider-5870b6fa-1cd0b182.js → alchemy-provider-5870b6fa-e4fa48d3.js} +1 -1
  3. package/dist/{alchemy-websocket-provider-213da986-a1e43b83.js → alchemy-websocket-provider-213da986-dc2bcf5c.js} +1 -1
  4. package/dist/{blocto-203f9ec1.js → blocto-2fb1d4e9.js} +1 -1
  5. package/dist/browser-3f7e560e.js +1 -0
  6. package/dist/{ccip-f118a914.js → ccip-3c08ea13.js} +1 -1
  7. package/dist/cjs/__tslib-c375fca0.cjs +1 -0
  8. package/dist/cjs/{alchemy-provider-5870b6fa-8031f5e9.cjs → alchemy-provider-5870b6fa-00140867.cjs} +1 -1
  9. package/dist/cjs/{alchemy-websocket-provider-213da986-ffd85fbf.cjs → alchemy-websocket-provider-213da986-b2e3ea59.cjs} +1 -1
  10. package/dist/cjs/{blocto-fd5fce1b.cjs → blocto-b086f036.cjs} +1 -1
  11. package/dist/cjs/browser-d0e333da.cjs +1 -0
  12. package/dist/cjs/{ccip-5821aa76.cjs → ccip-248539f9.cjs} +1 -1
  13. package/dist/cjs/{draggabilly-534a06c4.cjs → draggabilly-f7eacd66.cjs} +1 -1
  14. package/dist/cjs/id-a6c483f9.cjs +1 -0
  15. package/dist/cjs/{index-11beefa2.cjs → index-1a09310e.cjs} +1 -1
  16. package/dist/cjs/{index-1cafa7ef.cjs → index-24e8d66c.cjs} +2 -2
  17. package/dist/cjs/index-2659a245.cjs +2 -0
  18. package/dist/cjs/{index-2914fc1b.cjs → index-54591c6b.cjs} +1 -1
  19. package/dist/cjs/{index-3e679370.cjs → index-83b277b8.cjs} +7 -7
  20. package/dist/cjs/index-908a0281.cjs +27 -0
  21. package/dist/cjs/index-97619c59.cjs +15 -0
  22. package/dist/cjs/{index-da0f0dc4.cjs → index-9dd3dd7e.cjs} +1 -1
  23. package/dist/cjs/{index-fe6d443a.cjs → index-ace56b81.cjs} +1 -1
  24. package/dist/cjs/index-b64e1d7e.cjs +1 -0
  25. package/dist/cjs/{index-8810c52e.cjs → index-d297664c.cjs} +1 -1
  26. package/dist/cjs/index-d965eac9.cjs +1 -0
  27. package/dist/cjs/index-e65f9734.cjs +15 -0
  28. package/dist/cjs/{index-83d6612a.cjs → index-fd28b030.cjs} +1 -1
  29. package/dist/cjs/index.cjs +1 -1
  30. package/dist/cjs/index.es-e98c5ee4.cjs +9 -0
  31. package/dist/cjs/{interface-d2286c23.cjs → interface-eb633eac.cjs} +1 -1
  32. package/dist/cjs/{lib-typedarrays-f0840aa6.cjs → lib-typedarrays-f699b687.cjs} +1 -1
  33. package/dist/cjs/mm-install-modal_2.entry-4950a7e9.cjs +1 -0
  34. package/dist/cjs/{portis-166a6955.cjs → portis-0c036243.cjs} +1 -1
  35. package/dist/cjs/providers/wallets/standalone.d.ts +1 -0
  36. package/dist/cjs/providers/wallets/types.d.ts +1 -0
  37. package/dist/cjs/rainbow-57ada25b.cjs +1 -0
  38. package/dist/cjs/{sha224-bc65dfff.cjs → sha224-267753d8.cjs} +1 -1
  39. package/dist/cjs/{sha256-0636f669.cjs → sha256-d6829c39.cjs} +1 -1
  40. package/dist/cjs/{typed-data-8eaefdb5.cjs → typed-data-12a9baf4.cjs} +1 -1
  41. package/dist/cjs/{uAuth-081ad6fc.cjs → uAuth-0858f962.cjs} +1 -1
  42. package/dist/cjs/{walletConnect-073ff8dd.cjs → walletConnect-c55b3f29.cjs} +1 -1
  43. package/dist/cjs/{walletLink-101917c2.cjs → walletLink-961041df.cjs} +1 -1
  44. package/dist/{draggabilly-5d335a04.js → draggabilly-921a68cb.js} +1 -1
  45. package/dist/id-d72ad2e3.js +1 -0
  46. package/dist/index-022bd88c.js +27 -0
  47. package/dist/{index-540337a5.js → index-18f1c3bb.js} +1 -1
  48. package/dist/index-21067fcb.js +15 -0
  49. package/dist/index-2dc796bb.js +2 -0
  50. package/dist/{index-b8d0e86d.js → index-3b7c9150.js} +1 -1
  51. package/dist/{index-d59ad34c.js → index-621d68a7.js} +1 -1
  52. package/dist/index-6b5aff68.js +1 -0
  53. package/dist/index-7b0eeb5c.js +1 -0
  54. package/dist/{index-5732342d.js → index-82e4bb0d.js} +3 -3
  55. package/dist/{index-b5f5db3c.js → index-a98e886d.js} +7 -7
  56. package/dist/{index-bfa2119a.js → index-d3e54bda.js} +1 -1
  57. package/dist/{index-0bf8d237.js → index-d815c390.js} +1 -1
  58. package/dist/{index-8ed7d553.js → index-e0e62601.js} +1 -1
  59. package/dist/{index-1ecaf2fe.js → index-ff4c01ce.js} +1 -1
  60. package/dist/index.es-e17cf755.js +9 -0
  61. package/dist/index.js +1 -1
  62. package/dist/{interface-3f9d4a5c.js → interface-b09eb8d7.js} +1 -1
  63. package/dist/{lib-typedarrays-53c6b915.js → lib-typedarrays-8b3801fe.js} +1 -1
  64. package/dist/mm-install-modal_2.entry-e9e33358.js +1 -0
  65. package/dist/{portis-9bab3be5.js → portis-57c88ff3.js} +1 -1
  66. package/dist/providers/wallets/standalone.d.ts +1 -0
  67. package/dist/providers/wallets/types.d.ts +1 -0
  68. package/dist/rainbow-c820ccae.js +1 -0
  69. package/dist/{sha224-204aec1e.js → sha224-5ae0e997.js} +1 -1
  70. package/dist/{sha256-940f00e6.js → sha256-260a708c.js} +1 -1
  71. package/dist/{typed-data-af5b29c1.js → typed-data-7ba4540a.js} +1 -1
  72. package/dist/{uAuth-4d80b0ec.js → uAuth-253510eb.js} +1 -1
  73. package/dist/{walletConnect-ae596280.js → walletConnect-fc6f0e52.js} +1 -1
  74. package/dist/{walletLink-0dd5c1e9.js → walletLink-d75a8dc8.js} +1 -1
  75. package/package.json +2 -2
  76. package/dist/cjs/id-20f6ce8c.cjs +0 -1
  77. package/dist/cjs/index-3c2f7ecb.cjs +0 -15
  78. package/dist/cjs/index-7d28ccd9.cjs +0 -9
  79. package/dist/cjs/index.es-1000eb22.cjs +0 -9
  80. package/dist/cjs/rainbow-9e206ee7.cjs +0 -1
  81. package/dist/cjs/v4-3e682452.cjs +0 -1
  82. package/dist/id-b1749683.js +0 -1
  83. package/dist/index-327eea25.js +0 -9
  84. package/dist/index.es-5e0a68ed.js +0 -9
  85. package/dist/rainbow-5e0452af.js +0 -1
  86. package/dist/v4-95658a31.js +0 -1
@@ -1 +0,0 @@
1
- import{EthereumProvider as e}from"./index.es-5e0a68ed.js";import{M as o,N as t,z as r}from"./index-b5f5db3c.js";import"@ethersproject/address";import"events";import"./_commonjs-dynamic-modules-7cfc9805.js";import"@ethersproject/providers";import"zustand";import"@ethersproject/bytes";import"@ethersproject/properties";import"@ethersproject/abstract-signer";import"buffer";import"@ethersproject/abstract-provider";import"@ethersproject/contracts";import"@ethersproject/constants";import"@ethersproject/transactions";async function n({chainId:n,rpcUrl:a,rpc:c,walletConnectParams:s,darkMode:i},p){let d,m,h="wss://relay.walletconnect.com",l=!0;s&&(h=s.bridge||h,l=void 0!==s.qrcode?s.qrcode:l,s.infuraId,m=s.qrModalOptions||void 0),c?d=c:n&&a&&(d={[n]:a});const j=o(),u=await e.init({projectId:s?.projectId,chains:n?[n]:[],showQrModal:!j,rpcMap:d,qrModalOptions:{themeMode:i?"dark":"light",...m}});return u.on("display_uri",(e=>{m?.openCallback&&m.openCallback(e)})),u.on("connect",p.connect),u.on("disconnect",(e=>{p.disconnect(e),p.accountsChanged([])})),u.on("accountsChanged",p.accountsChanged),u.on("chainChanged",p.chainChanged),u.on("message",(({type:e,data:o})=>p.message(e,o))),new Promise((async e=>{j?(u.once("display_uri",(o=>{let n=o;t()&&(n=`rainbow://wc?uri=${encodeURIComponent(o)}&connector=rainbowkit`),window.location.href=n,e(r(u))})),u.enable()):(await u.enable(),e(r(u)))}))}export{n as default};
@@ -1 +0,0 @@
1
- var t,r=new Uint8Array(16);function o(){if(!t&&!(t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(r)}var n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function e(t){return"string"==typeof t&&n.test(t)}for(var a=[],u=0;u<256;++u)a.push((u+256).toString(16).substr(1));function i(t,r,n){var u=(t=t||{}).random||(t.rng||o)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,r){n=n||0;for(var i=0;i<16;++i)r[n+i]=u[i];return r}return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=(a[t[r+0]]+a[t[r+1]]+a[t[r+2]]+a[t[r+3]]+"-"+a[t[r+4]]+a[t[r+5]]+"-"+a[t[r+6]]+a[t[r+7]]+"-"+a[t[r+8]]+a[t[r+9]]+"-"+a[t[r+10]]+a[t[r+11]]+a[t[r+12]]+a[t[r+13]]+a[t[r+14]]+a[t[r+15]]).toLowerCase();if(!e(o))throw TypeError("Stringified UUID is invalid");return o}(u)}export{e as a,i as v};