@dodoex/wallet-web3 0.0.3-3 → 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.
- package/dist/cjs/controllers/ConnectController.d.ts +6 -5
- package/dist/cjs/core/index.d.ts +0 -1
- package/dist/cjs/{index-1613ac94.cjs → index-0eeb697b.cjs} +2 -2
- package/dist/cjs/{index-613571b4.cjs → index-3a14a931.cjs} +1 -1
- package/dist/cjs/index-a26b6945.cjs +1 -0
- package/dist/cjs/index-a9081fe4.cjs +1 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/portis-8c790653.cjs +1 -0
- package/dist/cjs/provider-95f3425c.cjs +1 -0
- package/dist/cjs/state.d.ts +12 -3
- package/dist/cjs/uAuth-692ecdf6.cjs +1 -0
- package/dist/cjs/walletConnect-14d9d490.cjs +1 -0
- package/dist/cjs/walletLink-b99948b8.cjs +1 -0
- package/dist/controllers/ConnectController.d.ts +6 -5
- package/dist/core/index.d.ts +0 -1
- package/dist/{index-201c01d8.js → index-3a9d1d45.js} +2 -2
- package/dist/{index-cecc22f4.js → index-9af08480.js} +1 -1
- package/dist/index-a2c8f38f.js +1 -0
- package/dist/index-afc4ce88.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/portis-f89a1cba.js +1 -0
- package/dist/provider-1ecbc0fa.js +1 -0
- package/dist/state.d.ts +12 -3
- package/dist/uAuth-1f7b3a0a.js +1 -0
- package/dist/walletConnect-ac756ff6.js +1 -0
- package/dist/walletLink-c286f908.js +1 -0
- package/package.json +2 -2
- package/dist/cjs/controllers/StateController.d.ts +0 -27
- package/dist/cjs/index-0494ffbc.cjs +0 -1
- package/dist/cjs/index-b63f2913.cjs +0 -19
- package/dist/cjs/portis-09fea9b2.cjs +0 -1
- package/dist/cjs/provider-653a6c4b.cjs +0 -1
- package/dist/cjs/uAuth-e46c0332.cjs +0 -1
- package/dist/cjs/walletConnect-a74c7523.cjs +0 -1
- package/dist/cjs/walletLink-5a993e87.cjs +0 -1
- package/dist/controllers/StateController.d.ts +0 -27
- package/dist/index-b6a46a6d.js +0 -1
- package/dist/index-b869aac9.js +0 -19
- package/dist/portis-3b5726bc.js +0 -1
- package/dist/provider-847fb9d1.js +0 -1
- package/dist/uAuth-458fbce7.js +0 -1
- package/dist/walletConnect-643e147f.js +0 -1
- package/dist/walletLink-fd84e70b.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"buffer";import t from"util";import{g as r}from"./index-
|
|
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};
|