@dodoex/wallet-web3 0.0.3-2 → 0.0.3-3
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/core/index.d.ts +1 -0
- package/dist/cjs/{index-23606273.cjs → index-0494ffbc.cjs} +1 -1
- package/dist/cjs/{index-a32c3cfa.cjs → index-1613ac94.cjs} +1 -1
- package/dist/cjs/{index-e0e60b3b.cjs → index-613571b4.cjs} +2 -2
- package/dist/cjs/{index-e948d9e4.cjs → index-b63f2913.cjs} +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/{portis-cf05b1f4.cjs → portis-09fea9b2.cjs} +1 -1
- package/dist/cjs/{provider-de4ee5b7.cjs → provider-653a6c4b.cjs} +1 -1
- package/dist/cjs/{uAuth-075fec28.cjs → uAuth-e46c0332.cjs} +1 -1
- package/dist/cjs/{walletConnect-58449a61.cjs → walletConnect-a74c7523.cjs} +1 -1
- package/dist/cjs/{walletLink-e3b39e1b.cjs → walletLink-5a993e87.cjs} +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/{index-6cdefd52.js → index-201c01d8.js} +1 -1
- package/dist/{index-822c6d78.js → index-b6a46a6d.js} +1 -1
- package/dist/{index-ecbe3d8d.js → index-b869aac9.js} +3 -3
- package/dist/{index-83293e8e.js → index-cecc22f4.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{portis-b3fee0d6.js → portis-3b5726bc.js} +1 -1
- package/dist/{provider-30d55a46.js → provider-847fb9d1.js} +1 -1
- package/dist/{uAuth-343d653d.js → uAuth-458fbce7.js} +1 -1
- package/dist/{walletConnect-ea07b187.js → walletConnect-643e147f.js} +1 -1
- package/dist/{walletLink-39bc8bdc.js → walletLink-fd84e70b.js} +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var A=require("./index-
|
|
1
|
+
"use strict";var A=require("./index-b63f2913.cjs"),e=require("./index-6d7369f7.cjs"),i=require("@ethersproject/properties"),t=require("./_commonjsHelpers-66ecbaf8.cjs"),n=require("buffer"),r=require("./bn-1bd77809.cjs"),o=require("events"),a=require("http"),s=require("https"),c=require("zlib"),B=require("util"),g=require("url"),E=require("./index-5976e357.cjs"),I=require("crypto"),l=require("./index-f7522058.cjs"),u=require("./index-33e57d81.cjs"),p=require("./interface-6a2093d7.cjs"),d=require("stream"),Q=require("path"),w=require("fs"),f=require("assert"),C=require("./sha256-21fccd26.cjs"),h=require("@ethersproject/bytes"),R=require("@ethersproject/transactions");function U(A){return A&&"object"==typeof A&&"default"in A?A:{default:A}}require("@ethersproject/providers"),require("@ethersproject/constants"),require("@ethersproject/contracts"),require("@ethersproject/address"),require("valtio"),require("tty"),require("os"),require("punycode"),require("./sha3-499f6bea.cjs");var m=U(n),T=U(o),b=U(a),S=U(s),F=U(c),M=U(B),V=U(g),D=U(I),y=U(d),G=U(Q),x=U(w),v=U(f),N={},k={},Z={},J={},O={},P={},Y={},H={},L={};function W(A){if(!Number.isSafeInteger(A)||A<0)throw new Error(`Wrong positive integer: ${A}`)}function j(A){if("boolean"!=typeof A)throw new Error(`Expected boolean, not ${A}`)}function z(A,...e){if(!(A instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(e.length>0&&!e.includes(A.length))throw new TypeError(`Expected Uint8Array of length ${e}, not of length=${A.length}`)}function K(A){if("function"!=typeof A||"function"!=typeof A.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");W(A.outputLen),W(A.blockLen)}function q(A,e=!0){if(A.destroyed)throw new Error("Hash instance has been destroyed");if(e&&A.finished)throw new Error("Hash#digest() has already been called")}function X(A,e){z(A);const i=e.outputLen;if(A.length<i)throw new Error(`digestInto() expects output buffer of length at least ${i}`)}Object.defineProperty(L,"__esModule",{value:!0}),L.output=L.exists=L.hash=L.bytes=L.bool=L.number=void 0,L.number=W,L.bool=j,L.bytes=z,L.hash=K,L.exists=q,L.output=X;const _={number:W,bool:j,bytes:z,hash:K,exists:q,output:X};L.default=_;var $={},AA={};Object.defineProperty(AA,"__esModule",{value:!0}),AA.crypto=void 0,AA.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,function(A){
|
|
2
2
|
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
3
3
|
Object.defineProperty(A,"__esModule",{value:!0}),A.randomBytes=A.wrapConstructorWithOpts=A.wrapConstructor=A.checkOpts=A.Hash=A.concatBytes=A.toBytes=A.utf8ToBytes=A.asyncLoop=A.nextTick=A.hexToBytes=A.bytesToHex=A.isLE=A.rotr=A.createView=A.u32=A.u8=void 0;const e=AA;A.u8=A=>new Uint8Array(A.buffer,A.byteOffset,A.byteLength);A.u32=A=>new Uint32Array(A.buffer,A.byteOffset,Math.floor(A.byteLength/4));A.createView=A=>new DataView(A.buffer,A.byteOffset,A.byteLength);if(A.rotr=(A,e)=>A<<32-e|A>>>e,A.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!A.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((A,e)=>e.toString(16).padStart(2,"0")));A.bytesToHex=function(A){if(!(A instanceof Uint8Array))throw new Error("Uint8Array expected");let e="";for(let t=0;t<A.length;t++)e+=i[A[t]];return e},A.hexToBytes=function(A){if("string"!=typeof A)throw new TypeError("hexToBytes: expected string, got "+typeof A);if(A.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const e=new Uint8Array(A.length/2);for(let i=0;i<e.length;i++){const t=2*i,n=A.slice(t,t+2),r=Number.parseInt(n,16);if(Number.isNaN(r)||r<0)throw new Error("Invalid byte sequence");e[i]=r}return e};function t(A){if("string"!=typeof A)throw new TypeError("utf8ToBytes expected string, got "+typeof A);return(new TextEncoder).encode(A)}function n(A){if("string"==typeof A&&(A=t(A)),!(A instanceof Uint8Array))throw new TypeError(`Expected input type is Uint8Array (got ${typeof A})`);return A}A.nextTick=async()=>{},A.asyncLoop=async function(e,i,t){let n=Date.now();for(let r=0;r<e;r++){t(r);const e=Date.now()-n;e>=0&&e<i||(await(0,A.nextTick)(),n+=e)}},A.utf8ToBytes=t,A.toBytes=n,A.concatBytes=function(...A){if(!A.every((A=>A instanceof Uint8Array)))throw new Error("Uint8Array list expected");if(1===A.length)return A[0];const e=A.reduce(((A,e)=>A+e.length),0),i=new Uint8Array(e);for(let e=0,t=0;e<A.length;e++){const n=A[e];i.set(n,t),t+=n.length}return i};A.Hash=class{clone(){return this._cloneInto()}};A.checkOpts=function(A,e){if(void 0!==e&&("object"!=typeof e||(i=e,"[object Object]"!==Object.prototype.toString.call(i)||i.constructor!==Object)))throw new TypeError("Options should be object or undefined");var i;return Object.assign(A,e)},A.wrapConstructor=function(A){const e=e=>A().update(n(e)).digest(),i=A();return e.outputLen=i.outputLen,e.blockLen=i.blockLen,e.create=()=>A(),e},A.wrapConstructorWithOpts=function(A){const e=(e,i)=>A(i).update(n(e)).digest(),i=A({});return e.outputLen=i.outputLen,e.blockLen=i.blockLen,e.create=e=>A(e),e},A.randomBytes=function(A=32){if(e.crypto&&"function"==typeof e.crypto.getRandomValues)return e.crypto.getRandomValues(new Uint8Array(A));throw new Error("crypto.getRandomValues must be defined")}}($),Object.defineProperty(H,"__esModule",{value:!0}),H.SHA2=void 0;const eA=L,iA=$;H.SHA2=class extends iA.Hash{constructor(A,e,i,t){super(),this.blockLen=A,this.outputLen=e,this.padOffset=i,this.isLE=t,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(A),this.view=(0,iA.createView)(this.buffer)}update(A){eA.default.exists(this);const{view:e,buffer:i,blockLen:t}=this,n=(A=(0,iA.toBytes)(A)).length;for(let r=0;r<n;){const o=Math.min(t-this.pos,n-r);if(o!==t)i.set(A.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===t&&(this.process(e,0),this.pos=0);else{const e=(0,iA.createView)(A);for(;t<=n-r;r+=t)this.process(e,r)}}return this.length+=A.length,this.roundClean(),this}digestInto(A){eA.default.exists(this),eA.default.output(A,this),this.finished=!0;const{buffer:e,view:i,blockLen:t,isLE:n}=this;let{pos:r}=this;e[r++]=128,this.buffer.subarray(r).fill(0),this.padOffset>t-r&&(this.process(i,0),r=0);for(let A=r;A<t;A++)e[A]=0;!function(A,e,i,t){if("function"==typeof A.setBigUint64)return A.setBigUint64(e,i,t);const n=BigInt(32),r=BigInt(4294967295),o=Number(i>>n&r),a=Number(i&r),s=t?4:0,c=t?0:4;A.setUint32(e+s,o,t),A.setUint32(e+c,a,t)}(i,t-8,BigInt(8*this.length),n),this.process(i,0);const o=(0,iA.createView)(A),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const s=a/4,c=this.get();if(s>c.length)throw new Error("_sha2: outputLen bigger than state");for(let A=0;A<s;A++)o.setUint32(4*A,c[A],n)}digest(){const{buffer:A,outputLen:e}=this;this.digestInto(A);const i=A.slice(0,e);return this.destroy(),i}_cloneInto(A){A||(A=new this.constructor),A.set(...this.get());const{blockLen:e,buffer:i,length:t,finished:n,destroyed:r,pos:o}=this;return A.length=t,A.pos=o,A.finished=n,A.destroyed=r,t%e&&A.buffer.set(i),A}},Object.defineProperty(Y,"__esModule",{value:!0}),Y.sha224=Y.sha256=void 0;const tA=H,nA=$,rA=(A,e,i)=>A&e^A&i^e&i,oA=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),aA=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),sA=new Uint32Array(64);class cA extends tA.SHA2{constructor(){super(64,32,8,!1),this.A=0|aA[0],this.B=0|aA[1],this.C=0|aA[2],this.D=0|aA[3],this.E=0|aA[4],this.F=0|aA[5],this.G=0|aA[6],this.H=0|aA[7]}get(){const{A:A,B:e,C:i,D:t,E:n,F:r,G:o,H:a}=this;return[A,e,i,t,n,r,o,a]}set(A,e,i,t,n,r,o,a){this.A=0|A,this.B=0|e,this.C=0|i,this.D=0|t,this.E=0|n,this.F=0|r,this.G=0|o,this.H=0|a}process(A,e){for(let i=0;i<16;i++,e+=4)sA[i]=A.getUint32(e,!1);for(let A=16;A<64;A++){const e=sA[A-15],i=sA[A-2],t=(0,nA.rotr)(e,7)^(0,nA.rotr)(e,18)^e>>>3,n=(0,nA.rotr)(i,17)^(0,nA.rotr)(i,19)^i>>>10;sA[A]=n+sA[A-7]+t+sA[A-16]|0}let{A:i,B:t,C:n,D:r,E:o,F:a,G:s,H:c}=this;for(let A=0;A<64;A++){const e=c+((0,nA.rotr)(o,6)^(0,nA.rotr)(o,11)^(0,nA.rotr)(o,25))+((B=o)&a^~B&s)+oA[A]+sA[A]|0,g=((0,nA.rotr)(i,2)^(0,nA.rotr)(i,13)^(0,nA.rotr)(i,22))+rA(i,t,n)|0;c=s,s=a,a=o,o=r+e|0,r=n,n=t,t=i,i=e+g|0}var B;i=i+this.A|0,t=t+this.B|0,n=n+this.C|0,r=r+this.D|0,o=o+this.E|0,a=a+this.F|0,s=s+this.G|0,c=c+this.H|0,this.set(i,t,n,r,o,a,s,c)}roundClean(){sA.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class BA extends cA{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}Y.sha256=(0,nA.wrapConstructor)((()=>new cA)),Y.sha224=(0,nA.wrapConstructor)((()=>new BA));var gA={},EA={};!function(A){Object.defineProperty(A,"__esModule",{value:!0}),A.validateObject=A.createHmacDrbg=A.bitMask=A.bitSet=A.bitGet=A.bitLen=A.utf8ToBytes=A.equalBytes=A.concatBytes=A.ensureBytes=A.numberToVarBytesBE=A.numberToBytesLE=A.numberToBytesBE=A.bytesToNumberLE=A.bytesToNumberBE=A.hexToBytes=A.hexToNumber=A.numberToHexUnpadded=A.bytesToHex=void 0;
|
|
4
4
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";var e=require("buffer"),t=require("util"),r=require("./index-
|
|
1
|
+
"use strict";var e=require("buffer"),t=require("util"),r=require("./index-b63f2913.cjs"),n=require("./_commonjsHelpers-66ecbaf8.cjs");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i,u,a=o(e),s=o(t),c={exports:{}};
|
|
2
2
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3
|
-
!function(e,t){var r=a.default,n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(c,c.exports);var p=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 l,h,f={},y={},_=n.getAugmentedNamespace(r._tslib),d={};function m(){if(l)return d;l=1,Object.defineProperty(d,"__esModule",{value:!0});var e=_,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 d.default=t,d}var g,v,
|
|
3
|
+
!function(e,t){var r=a.default,n=r.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return n(e,t,r)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=i),i.prototype=Object.create(n.prototype),o(n,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=n(e);return void 0!==t?"string"==typeof r?o.fill(t,r):o.fill(t):o.fill(0),o},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}}(c,c.exports);var p=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 l,h,f={},y={},_=n.getAugmentedNamespace(r._tslib),d={};function m(){if(l)return d;l=1,Object.defineProperty(d,"__esModule",{value:!0});var e=_,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 d.default=t,d}var g,b,v,B,w,k,T={};function x(){if(B)return v;B=1,v=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 v}exports.jsonRpcRandomId=p,exports.require$$0=_,exports.requireEthQuery=function(){if(k)return w;k=1;const e=x(),t=p();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 w=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)}))},w},exports.requireImmutable=x,exports.requireLib=function(){return b||(b=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=function(){if(h)return y;h=1,Object.defineProperty(y,"__esModule",{value:!0});var e=_,t=m(),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 y.default=r,y}();Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=m();Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=function(){if(g)return T;g=1,Object.defineProperty(T,"__esModule",{value:!0}),T.withTimeout=void 0;var e=_;return T.withTimeout=function(t,r,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(i,u){return e.__awaiter(o,void 0,void 0,(function(){var o,a;return e.__generator(this,(function(e){switch(e.label){case 0:return o=!1,setTimeout((function(){o=!0,u(n)}),r),[4,t.acquire()];case 1:return a=e.sent(),o?(Array.isArray(a)?a[1]:a)():i(a),[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()}}},T}();Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})}(f)),f},exports.requireNode=function(){return u?i:(u=1,i=s.default.deprecate)},exports.safeBuffer=c;
|