@dodoex/wallet-web3 0.0.3-2 → 0.0.3-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.
Files changed (45) hide show
  1. package/dist/cjs/controllers/ConnectController.d.ts +6 -5
  2. package/dist/cjs/core/index.d.ts +1 -1
  3. package/dist/cjs/{index-a32c3cfa.cjs → index-0eeb697b.cjs} +2 -2
  4. package/dist/cjs/{index-e0e60b3b.cjs → index-3a14a931.cjs} +2 -2
  5. package/dist/cjs/index-a26b6945.cjs +1 -0
  6. package/dist/cjs/index-a9081fe4.cjs +1 -0
  7. package/dist/cjs/index.cjs +1 -1
  8. package/dist/cjs/index.d.ts +1 -1
  9. package/dist/cjs/portis-8c790653.cjs +1 -0
  10. package/dist/cjs/provider-95f3425c.cjs +1 -0
  11. package/dist/cjs/state.d.ts +12 -3
  12. package/dist/cjs/uAuth-692ecdf6.cjs +1 -0
  13. package/dist/cjs/walletConnect-14d9d490.cjs +1 -0
  14. package/dist/cjs/walletLink-b99948b8.cjs +1 -0
  15. package/dist/controllers/ConnectController.d.ts +6 -5
  16. package/dist/core/index.d.ts +1 -1
  17. package/dist/{index-6cdefd52.js → index-3a9d1d45.js} +2 -2
  18. package/dist/{index-83293e8e.js → index-9af08480.js} +1 -1
  19. package/dist/index-a2c8f38f.js +1 -0
  20. package/dist/index-afc4ce88.js +1 -0
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/portis-f89a1cba.js +1 -0
  24. package/dist/provider-1ecbc0fa.js +1 -0
  25. package/dist/state.d.ts +12 -3
  26. package/dist/uAuth-1f7b3a0a.js +1 -0
  27. package/dist/walletConnect-ac756ff6.js +1 -0
  28. package/dist/walletLink-c286f908.js +1 -0
  29. package/package.json +2 -2
  30. package/dist/cjs/controllers/StateController.d.ts +0 -27
  31. package/dist/cjs/index-23606273.cjs +0 -1
  32. package/dist/cjs/index-e948d9e4.cjs +0 -19
  33. package/dist/cjs/portis-cf05b1f4.cjs +0 -1
  34. package/dist/cjs/provider-de4ee5b7.cjs +0 -1
  35. package/dist/cjs/uAuth-075fec28.cjs +0 -1
  36. package/dist/cjs/walletConnect-58449a61.cjs +0 -1
  37. package/dist/cjs/walletLink-e3b39e1b.cjs +0 -1
  38. package/dist/controllers/StateController.d.ts +0 -27
  39. package/dist/index-822c6d78.js +0 -1
  40. package/dist/index-ecbe3d8d.js +0 -19
  41. package/dist/portis-b3fee0d6.js +0 -1
  42. package/dist/provider-30d55a46.js +0 -1
  43. package/dist/uAuth-343d653d.js +0 -1
  44. package/dist/walletConnect-ea07b187.js +0 -1
  45. package/dist/walletLink-39bc8bdc.js +0 -1
@@ -1,2 +1,2 @@
1
- import e from"buffer";import t from"util";import{g as r}from"./index-ecbe3d8d.js";import{g as n}from"./_commonjsHelpers-70de2c37.js";var o,i,a={exports:{}};
1
+ import e from"buffer";import t from"util";import{g as r}from"./index-afc4ce88.js";import{g as n}from"./_commonjsHelpers-70de2c37.js";var o,i,a={exports:{}};
2
2
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */function u(){return i?o:(i=1,o=t.deprecate)}!function(t,r){var n=e,o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=n:(i(n,r),r.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(a,a.exports);var s=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return r%=t,r++}};var c,p,l={},h={},f=n(r),y={};function _(){if(c)return y;c=1,Object.defineProperty(y,"__esModule",{value:!0});var e=f,t=function(){function t(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return t.prototype.acquire=function(){var e=this,t=this.isLocked(),r=new Promise((function(t){return e._queue.push(t)}));return t||this._dispatch(),r},t.prototype.runExclusive=function(t){return e.__awaiter(this,void 0,void 0,(function(){var r,n,o;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this.acquire()];case 1:r=e.sent(),n=r[0],o=r[1],e.label=2;case 2:return e.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,e.sent()];case 4:return o(),[7];case 5:return[2]}}))}))},t.prototype.isLocked=function(){return this._value<=0},t.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},t.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var r=!1;this._currentReleaser=function(){r||(r=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},t}();return y.default=t,y}var m,d,g,v,b,B,w={};function k(){return d||(d=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=function(){if(p)return h;p=1,Object.defineProperty(h,"__esModule",{value:!0});var e=f,t=_(),r=function(){function r(){this._semaphore=new t.default(1)}return r.prototype.acquire=function(){return e.__awaiter(this,void 0,void 0,(function(){return e.__generator(this,(function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}}))}))},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();return h.default=r,h}();Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=_();Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=function(){if(m)return w;m=1,Object.defineProperty(w,"__esModule",{value:!0}),w.withTimeout=void 0;var e=f;return w.withTimeout=function(t,r,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(i,a){return e.__awaiter(o,void 0,void 0,(function(){var o,u;return e.__generator(this,(function(e){switch(e.label){case 0:return o=!1,setTimeout((function(){o=!0,a(n)}),r),[4,t.acquire()];case 1:return u=e.sent(),o?(Array.isArray(u)?u[1]:u)():i(u),[2]}}))}))}))},runExclusive:function(t){return e.__awaiter(this,void 0,void 0,(function(){var r,n;return e.__generator(this,(function(e){switch(e.label){case 0:r=function(){},e.label=1;case 1:return e.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=e.sent(),Array.isArray(n)?(r=n[1],[4,t(n[0])]):[3,4];case 3:return[2,e.sent()];case 4:return r=n,[4,t()];case 5:return[2,e.sent()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}},w}();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})}(l)),l}function T(){if(v)return g;v=1,g=function(){for(var t={},r=0;r<arguments.length;r++){var n=arguments[r];for(var o in n)e.call(n,o)&&(t[o]=n[o])}return t};var e=Object.prototype.hasOwnProperty;return g}function A(){if(B)return b;B=1;const e=T(),t=s();function r(e){this.currentProvider=e}function n(e){return function(){var t=[].slice.call(arguments),r=t.pop();this.sendAsync({method:e,params:t},r)}}function o(e,t){return function(){var r=[].slice.call(arguments),n=r.pop();r.length<e&&r.push("latest"),this.sendAsync({method:t,params:r},n)}}return b=r,r.prototype.getBalance=o(2,"eth_getBalance"),r.prototype.getCode=o(2,"eth_getCode"),r.prototype.getTransactionCount=o(2,"eth_getTransactionCount"),r.prototype.getStorageAt=o(3,"eth_getStorageAt"),r.prototype.call=o(2,"eth_call"),r.prototype.protocolVersion=n("eth_protocolVersion"),r.prototype.syncing=n("eth_syncing"),r.prototype.coinbase=n("eth_coinbase"),r.prototype.mining=n("eth_mining"),r.prototype.hashrate=n("eth_hashrate"),r.prototype.gasPrice=n("eth_gasPrice"),r.prototype.accounts=n("eth_accounts"),r.prototype.blockNumber=n("eth_blockNumber"),r.prototype.getBlockTransactionCountByHash=n("eth_getBlockTransactionCountByHash"),r.prototype.getBlockTransactionCountByNumber=n("eth_getBlockTransactionCountByNumber"),r.prototype.getUncleCountByBlockHash=n("eth_getUncleCountByBlockHash"),r.prototype.getUncleCountByBlockNumber=n("eth_getUncleCountByBlockNumber"),r.prototype.sign=n("eth_sign"),r.prototype.sendTransaction=n("eth_sendTransaction"),r.prototype.sendRawTransaction=n("eth_sendRawTransaction"),r.prototype.estimateGas=n("eth_estimateGas"),r.prototype.getBlockByHash=n("eth_getBlockByHash"),r.prototype.getBlockByNumber=n("eth_getBlockByNumber"),r.prototype.getTransactionByHash=n("eth_getTransactionByHash"),r.prototype.getTransactionByBlockHashAndIndex=n("eth_getTransactionByBlockHashAndIndex"),r.prototype.getTransactionByBlockNumberAndIndex=n("eth_getTransactionByBlockNumberAndIndex"),r.prototype.getTransactionReceipt=n("eth_getTransactionReceipt"),r.prototype.getUncleByBlockHashAndIndex=n("eth_getUncleByBlockHashAndIndex"),r.prototype.getUncleByBlockNumberAndIndex=n("eth_getUncleByBlockNumberAndIndex"),r.prototype.getCompilers=n("eth_getCompilers"),r.prototype.compileLLL=n("eth_compileLLL"),r.prototype.compileSolidity=n("eth_compileSolidity"),r.prototype.compileSerpent=n("eth_compileSerpent"),r.prototype.newFilter=n("eth_newFilter"),r.prototype.newBlockFilter=n("eth_newBlockFilter"),r.prototype.newPendingTransactionFilter=n("eth_newPendingTransactionFilter"),r.prototype.uninstallFilter=n("eth_uninstallFilter"),r.prototype.getFilterChanges=n("eth_getFilterChanges"),r.prototype.getFilterLogs=n("eth_getFilterLogs"),r.prototype.getLogs=n("eth_getLogs"),r.prototype.getWork=n("eth_getWork"),r.prototype.submitWork=n("eth_submitWork"),r.prototype.submitHashrate=n("eth_submitHashrate"),r.prototype.sendAsync=function(r,n){var o;this.currentProvider.sendAsync((o=r,e({id:t(),jsonrpc:"2.0",params:[]},o)),(function(e,t){if(!e&&t.error&&(e=new Error("EthQuery - RPC Error - "+t.error.message)),e)return n(e);n(null,t.result)}))},b}export{A as a,k as b,f as c,T as d,s as j,u as r,a as s};