@dodoex/wallet-web3 0.0.43-15 → 0.0.43-2

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 (131) hide show
  1. package/dist/DefaultJsonRpcProvider-cbd850bc.js +1 -0
  2. package/dist/__node-resolve_empty-c07e04b2.js +1 -0
  3. package/dist/__tslib-54b019af.js +1 -0
  4. package/dist/alchemy-provider-5870b6fa-077754c5.js +1 -0
  5. package/dist/alchemy-websocket-provider-213da986-3bfbc710.js +1 -0
  6. package/dist/blocto-46848faf.js +1 -0
  7. package/dist/bn-27b74013.js +1 -0
  8. package/dist/browser-ponyfill-9983e3af.js +1 -0
  9. package/dist/ccip-54b3b540.js +1 -0
  10. package/dist/cjs/DefaultJsonRpcProvider-4b2cbac3.cjs +1 -0
  11. package/dist/cjs/__node-resolve_empty-d89e5abe.cjs +1 -0
  12. package/dist/cjs/__tslib-2cb2dc52.cjs +1 -0
  13. package/dist/cjs/alchemy-provider-5870b6fa-1e0f04fc.cjs +1 -0
  14. package/dist/cjs/alchemy-websocket-provider-213da986-14086d26.cjs +1 -0
  15. package/dist/cjs/blocto-b08bae37.cjs +1 -0
  16. package/dist/cjs/bn-2fd35ed6.cjs +1 -0
  17. package/dist/cjs/browser-ponyfill-479139d5.cjs +1 -0
  18. package/dist/cjs/ccip-ffbee020.cjs +1 -0
  19. package/dist/cjs/{draggabilly-f8ef6fab.cjs → draggabilly-9347a024.cjs} +1 -1
  20. package/dist/cjs/ethers-6c134a78.cjs +1 -0
  21. package/dist/cjs/id-306822a4.cjs +1 -0
  22. package/dist/cjs/index-0c3f7f0d.cjs +1 -0
  23. package/dist/cjs/{index-6899be8a.cjs → index-0e02422e.cjs} +1 -1
  24. package/dist/{index-3757bff0.js → cjs/index-123203f3.cjs} +2 -2
  25. package/dist/cjs/index-21f1272b.cjs +1 -0
  26. package/dist/cjs/index-3ee0c164.cjs +15 -0
  27. package/dist/cjs/index-449eebb0.cjs +1 -0
  28. package/dist/cjs/index-4b751ebb.cjs +9 -0
  29. package/dist/cjs/index-584ce2f2.cjs +1 -0
  30. package/dist/cjs/index-630bda42.cjs +1 -0
  31. package/dist/cjs/index-891edc27.cjs +6 -0
  32. package/dist/cjs/{index-d3aa65e5.cjs → index-a4d7eb55.cjs} +2 -2
  33. package/dist/cjs/index-c8612d96.cjs +20 -0
  34. package/dist/cjs/index-d890bb01.cjs +1 -0
  35. package/dist/cjs/index-e373c760.cjs +1 -0
  36. package/dist/cjs/index.cjs +1 -1
  37. package/dist/cjs/index.es-1a08ac77.cjs +9 -0
  38. package/dist/cjs/{interface-dbad2e60.cjs → interface-ca8f7e00.cjs} +1 -1
  39. package/dist/cjs/{lib-typedarrays-9fa57d11.cjs → lib-typedarrays-b3b1a9b2.cjs} +1 -1
  40. package/dist/cjs/{portis-5a3013c8.cjs → portis-2628aa40.cjs} +1 -1
  41. package/dist/cjs/provider-ed5b8d31.cjs +1 -0
  42. package/dist/cjs/providers/connector/alchemy/index.d.ts +0 -778
  43. package/dist/cjs/providers/connector/alchemy/provider.d.ts +45 -819
  44. package/dist/cjs/providers/connector/types.d.ts +3 -1
  45. package/dist/cjs/providers/wallets/standalone.d.ts +0 -1
  46. package/dist/cjs/rainbow-66ff0e60.cjs +1 -0
  47. package/dist/cjs/{sha224-8338dd12.cjs → sha224-e08c8475.cjs} +1 -1
  48. package/dist/cjs/sha256-ff3785f0.cjs +1 -0
  49. package/dist/cjs/uAuth-1c63d29f.cjs +1 -0
  50. package/dist/cjs/walletConnect-c94a63a7.cjs +1 -0
  51. package/dist/cjs/walletLink-24367174.cjs +3 -0
  52. package/dist/{draggabilly-15cf8dcf.js → draggabilly-e394dd03.js} +1 -1
  53. package/dist/ethers-33678100.js +1 -0
  54. package/dist/id-66098a37.js +1 -0
  55. package/dist/index-1fae0e53.js +1 -0
  56. package/dist/index-27bb4d53.js +1 -0
  57. package/dist/index-493358d6.js +1 -0
  58. package/dist/index-4f7c4b45.js +1 -0
  59. package/dist/{index-fdaf3888.js → index-578e2937.js} +2 -2
  60. package/dist/index-5b79ce49.js +1 -0
  61. package/dist/index-6aa8c5c1.js +1 -0
  62. package/dist/index-75067bb0.js +15 -0
  63. package/dist/index-76c2f135.js +9 -0
  64. package/dist/index-81e6d2c8.js +20 -0
  65. package/dist/index-9dc69b05.js +1 -0
  66. package/dist/{cjs/index-75832db2.cjs → index-cd748d86.js} +2 -2
  67. package/dist/index-fb276f03.js +1 -0
  68. package/dist/{index-ec43653c.js → index-fe4c3da3.js} +2 -2
  69. package/dist/index.es-79e3646d.js +9 -0
  70. package/dist/index.js +1 -1
  71. package/dist/{interface-ca042c89.js → interface-2be6959d.js} +1 -1
  72. package/dist/{lib-typedarrays-51f79f72.js → lib-typedarrays-0fb1b85c.js} +1 -1
  73. package/dist/{portis-6a17d6a8.js → portis-61fd1e59.js} +1 -1
  74. package/dist/provider-5ae74ef7.js +1 -0
  75. package/dist/providers/connector/alchemy/index.d.ts +0 -778
  76. package/dist/providers/connector/alchemy/provider.d.ts +45 -819
  77. package/dist/providers/connector/types.d.ts +3 -1
  78. package/dist/providers/wallets/standalone.d.ts +0 -1
  79. package/dist/rainbow-5edcbe7e.js +1 -0
  80. package/dist/sha224-ad024e21.js +1 -0
  81. package/dist/sha256-2a311540.js +1 -0
  82. package/dist/uAuth-70cae622.js +1 -0
  83. package/dist/walletConnect-526a0eb4.js +1 -0
  84. package/dist/{walletLink-30437dd1.js → walletLink-518a0d96.js} +2 -2
  85. package/package.json +6 -6
  86. package/dist/__tslib-5e721183.js +0 -1
  87. package/dist/alchemy-provider-5870b6fa-f604179e.js +0 -1
  88. package/dist/alchemy-websocket-provider-213da986-b21c4d98.js +0 -1
  89. package/dist/blocto-388a6d46.js +0 -1
  90. package/dist/ccip-8920e4a4.js +0 -1
  91. package/dist/cjs/__tslib-51bbe80a.cjs +0 -1
  92. package/dist/cjs/alchemy-provider-5870b6fa-1a301abf.cjs +0 -1
  93. package/dist/cjs/alchemy-websocket-provider-213da986-12cd2120.cjs +0 -1
  94. package/dist/cjs/blocto-c9f26371.cjs +0 -1
  95. package/dist/cjs/ccip-de10fc5c.cjs +0 -1
  96. package/dist/cjs/ethers-a2c9f7d9.cjs +0 -1
  97. package/dist/cjs/id-be8a7e8e.cjs +0 -1
  98. package/dist/cjs/index-03af6620.cjs +0 -1
  99. package/dist/cjs/index-176959ee.cjs +0 -1
  100. package/dist/cjs/index-2ffcf258.cjs +0 -15
  101. package/dist/cjs/index-59c76636.cjs +0 -28
  102. package/dist/cjs/index-6b705225.cjs +0 -1
  103. package/dist/cjs/index-9799d813.cjs +0 -1
  104. package/dist/cjs/index-a258c64d.cjs +0 -1
  105. package/dist/cjs/index-d4a4743c.cjs +0 -6
  106. package/dist/cjs/index.es-2b1bbe72.cjs +0 -9
  107. package/dist/cjs/provider-ef833945.cjs +0 -1
  108. package/dist/cjs/rainbow-c33bcd85.cjs +0 -1
  109. package/dist/cjs/sha256-48791f3c.cjs +0 -1
  110. package/dist/cjs/typed-data-7f14f9f2.cjs +0 -1
  111. package/dist/cjs/uAuth-e06c5782.cjs +0 -1
  112. package/dist/cjs/walletConnect-6aa55ebf.cjs +0 -1
  113. package/dist/cjs/walletLink-67bf2b39.cjs +0 -3
  114. package/dist/ethers-21cce102.js +0 -1
  115. package/dist/id-352419de.js +0 -1
  116. package/dist/index-159efa56.js +0 -1
  117. package/dist/index-234ade9b.js +0 -1
  118. package/dist/index-3c3e912f.js +0 -1
  119. package/dist/index-4839cfd1.js +0 -15
  120. package/dist/index-4b03dfd2.js +0 -1
  121. package/dist/index-8e9948ed.js +0 -1
  122. package/dist/index-91701d96.js +0 -1
  123. package/dist/index-9c4b8ca6.js +0 -28
  124. package/dist/index.es-d5c4fc17.js +0 -9
  125. package/dist/provider-acda2a5b.js +0 -1
  126. package/dist/rainbow-90910874.js +0 -1
  127. package/dist/sha224-76208ca9.js +0 -1
  128. package/dist/sha256-69ea1c2c.js +0 -1
  129. package/dist/typed-data-ed78d933.js +0 -1
  130. package/dist/uAuth-913433da.js +0 -1
  131. package/dist/walletConnect-c0c326f5.js +0 -1
@@ -66,6 +66,8 @@ export type ConnectorParams = {
66
66
  wallet?: WalletEntryOption;
67
67
  };
68
68
  alchemyParams?: {
69
- authParams: AuthParams;
69
+ apiKey: string;
70
+ iframeId: string;
71
+ authParams?: AuthParams;
70
72
  };
71
73
  };
@@ -28,4 +28,3 @@ export declare const UniPass: Wallet;
28
28
  export declare const Gate: Wallet;
29
29
  export declare const Rabby: Wallet;
30
30
  export declare const SocialLogin: Wallet;
31
- export declare const Alchemy: Wallet;
@@ -0,0 +1 @@
1
+ import{_ as e,h as o,j as t,d as n}from"./index-76c2f135.js";import{EthereumProvider as r}from"./index.es-79e3646d.js";import"@ethersproject/address";import"@ethersproject/providers";import"zustand";import"events";import"@ethersproject/constants";import"@ethersproject/contracts";import"@ethersproject/properties";import"@ethersproject/transactions";import"@ethersproject/bytes";import"./_commonjs-dynamic-modules-7cfc9805.js";import"./__node-resolve_empty-c07e04b2.js";import"./__tslib-54b019af.js";import"./browser-ponyfill-9983e3af.js";function i({chainId:i,rpcUrl:s,rpc:c,walletConnectParams:a,darkMode:d},p){return e(this,void 0,void 0,(function*(){let l,m,h="wss://relay.walletconnect.com",j=!0;a&&(h=a.bridge||h,j=void 0!==a.qrcode?a.qrcode:j,a.infuraId,m=a.qrModalOptions||void 0),c?l=c:i&&s&&(l={[i]:s});const u=o(),b=yield r.init({projectId:"59e050d1f27ed617e65bb9637c9498d6",chains:i?[i]:[],showQrModal:!u,rpcMap:l,qrModalOptions:Object.assign({themeMode:d?"dark":"light"},m)});return b.on("display_uri",(e=>{(null==m?void 0:m.openCallback)&&m.openCallback(e)})),b.on("connect",p.connect),b.on("disconnect",(e=>{p.disconnect(e),p.accountsChanged([])})),b.on("accountsChanged",p.accountsChanged),b.on("chainChanged",p.chainChanged),b.on("message",(({type:e,data:o})=>p.message(e,o))),new Promise((o=>e(this,void 0,void 0,(function*(){u?(b.once("display_uri",(e=>{let r=e;t()&&(r=`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`),window.location.href=r,o(n(b))})),b.enable()):(yield b.enable(),o(n(b)))}))))}))}export{i as default};
@@ -0,0 +1 @@
1
+ import{c as r}from"./index-76c2f135.js";import{r as e,a}from"./sha256-2a311540.js";var t,i={exports:{}};function o(){return t?i.exports:(t=1,i.exports=(H=e(),a(),o=(r=H).lib.WordArray,s=r.algo,n=s.SHA256,c=s.SHA224=n.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var r=n._doFinalize.call(this);return r.sigBytes-=4,r}}),r.SHA224=n._createHelper(c),r.HmacSHA224=n._createHmacHelper(c),H.SHA224));var r,o,s,n,c,H}export{o as r};
@@ -0,0 +1 @@
1
+ import{c as t}from"./index-76c2f135.js";import{c as n}from"./_commonjs-dynamic-modules-7cfc9805.js";import{r}from"./__node-resolve_empty-c07e04b2.js";var e,i={exports:{}};function o(){return e||(e=1,i.exports=(o=o||function(e,i){var o;if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==t&&t.crypto&&(o=t.crypto),!o&&"function"==typeof n)try{o=r}catch(t){}var s=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(n){var r;return t.prototype=n,r=new t,t.prototype=null,r}}(),c={},f=c.lib={},u=f.Base={extend:function(t){var n=a(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=f.WordArray=u.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=i?n:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var n=this.words,r=t.words,e=this.sigBytes,i=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o<i;o++){var s=r[o>>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(var a=0;a<i;a+=4)n[e+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var n=[],r=0;r<t;r+=4)n.push(s());return new h.init(n,t)}}),p=c.enc={},d=p.Hex={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e+=2)r[e>>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new h.init(r,n/2)}},l=p.Latin1={stringify:function(t){for(var n=t.words,r=t.sigBytes,e=[],i=0;i<r;i++){var o=n[i>>>2]>>>24-i%4*8&255;e.push(String.fromCharCode(o))}return e.join("")},parse:function(t){for(var n=t.length,r=[],e=0;e<n;e++)r[e>>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new h.init(r,n)}},y=p.Utf8={stringify:function(t){try{return decodeURIComponent(escape(l.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return l.parse(unescape(encodeURIComponent(t)))}},g=f.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=y.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,s=this.blockSize,a=o/(4*s),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*s,f=e.min(4*c,o);if(c){for(var u=0;u<c;u+=s)this._doProcessBlock(i,u);n=i.splice(0,c),r.sigBytes-=f}return new h.init(n,f)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});f.Hasher=g.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){g.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,r){return new t.init(r).finalize(n)}},_createHmacHelper:function(t){return function(n,r){return new w.HMAC.init(t,r).finalize(n)}}});var w=c.algo={};return c}(Math),o)),i.exports;var o}var s,a={exports:{}};function c(){return s?a.exports:(s=1,a.exports=(t=o(),function(n){var r=t,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,a=[],c=[];!function(){function t(t){for(var r=n.sqrt(t),e=2;e<=r;e++)if(!(t%e))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var e=2,i=0;i<64;)t(e)&&(i<8&&(a[i]=r(n.pow(e,.5))),c[i]=r(n.pow(e,1/3)),i++),e++}();var f=[],u=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(t,n){for(var r=this._hash.words,e=r[0],i=r[1],o=r[2],s=r[3],a=r[4],u=r[5],h=r[6],p=r[7],d=0;d<64;d++){if(d<16)f[d]=0|t[n+d];else{var l=f[d-15],y=(l<<25|l>>>7)^(l<<14|l>>>18)^l>>>3,g=f[d-2],w=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;f[d]=y+f[d-7]+w+f[d-16]}var v=e&i^e&o^i&o,m=(e<<30|e>>>2)^(e<<19|e>>>13)^(e<<10|e>>>22),_=p+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&h)+c[d]+f[d];p=h,h=u,u=a,a=s+_|0,s=o,o=i,i=e,e=_+(m+v)|0}r[0]=r[0]+e|0,r[1]=r[1]+i|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+a|0,r[5]=r[5]+u|0,r[6]=r[6]+h|0,r[7]=r[7]+p|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=n.floor(e/4294967296),r[15+(i+64>>>9<<4)]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(u),r.HmacSHA256=o._createHmacHelper(u)}(Math),t.SHA256));var t}export{c as a,o as r};