@dodoex/wallet-web3 0.0.41-3 → 0.0.41-5
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/{DefaultJsonRpcProvider-17e99886.js → DefaultJsonRpcProvider-6a21f359.js} +1 -1
- package/dist/__node-resolve_empty-cca64a4a.js +1 -0
- package/dist/__tslib-b24ce2ae.js +1 -0
- package/dist/{blocto-712d95a6.js → blocto-1e01ed61.js} +1 -1
- package/dist/{bn-3792ac95.js → bn-43db0a80.js} +1 -1
- package/dist/{browser-ponyfill-77f08a9e.js → browser-ponyfill-dbcd3487.js} +1 -1
- package/dist/cjs/{DefaultJsonRpcProvider-c267df55.cjs → DefaultJsonRpcProvider-2896bdc6.cjs} +1 -1
- package/dist/cjs/{__node-resolve_empty-db50406b.cjs → __node-resolve_empty-1e1ab047.cjs} +1 -1
- package/dist/cjs/__tslib-e13a96b6.cjs +1 -0
- package/dist/cjs/{blocto-3937070a.cjs → blocto-66f8432e.cjs} +1 -1
- package/dist/cjs/{bn-04b4ee15.cjs → bn-6c93fb4c.cjs} +1 -1
- package/dist/cjs/{browser-ponyfill-8e6aabc2.cjs → browser-ponyfill-5cbcbec7.cjs} +1 -1
- package/dist/cjs/{draggabilly-0d6794fe.cjs → draggabilly-f0c0e597.cjs} +1 -1
- package/dist/cjs/{ethers-9287fb72.cjs → ethers-5799ca27.cjs} +1 -1
- package/dist/cjs/{id-59853a86.cjs → id-48662e0b.cjs} +1 -1
- package/dist/cjs/{index-76b2c123.cjs → index-0984de48.cjs} +1 -1
- package/dist/cjs/{index-08af4380.cjs → index-0dd9ae9a.cjs} +1 -1
- package/dist/cjs/{index-553c1683.cjs → index-48d95e72.cjs} +1 -1
- package/dist/cjs/index-529b9846.cjs +1 -0
- package/dist/cjs/{index-2898ae99.cjs → index-6c6c6323.cjs} +1 -1
- package/dist/cjs/{index-dcf96a11.cjs → index-7a5facb5.cjs} +1 -1
- package/dist/cjs/{index-30d850b8.cjs → index-84bddb78.cjs} +2 -2
- package/dist/cjs/{index-d81398e2.cjs → index-9898e190.cjs} +1 -1
- package/dist/cjs/{index-c7185fc8.cjs → index-9bc0d4c3.cjs} +1 -1
- package/dist/cjs/{index-da671520.cjs → index-d36fba96.cjs} +1 -1
- package/dist/cjs/index-fd18f5c9.cjs +9 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/{index.es-5a713752.cjs → index.es-d276a0c3.cjs} +1 -1
- package/dist/cjs/{interface-fa92003f.cjs → interface-27dc9126.cjs} +1 -1
- package/dist/cjs/{lib-typedarrays-4fd8b985.cjs → lib-typedarrays-bf82ea24.cjs} +1 -1
- package/dist/cjs/{portis-841388a0.cjs → portis-282159f7.cjs} +1 -1
- package/dist/cjs/{provider-2e44309c.cjs → provider-e4b2bc55.cjs} +1 -1
- package/dist/cjs/{rainbow-3b0d7ecc.cjs → rainbow-77aec431.cjs} +1 -1
- package/dist/cjs/{sha224-314332e1.cjs → sha224-770ad141.cjs} +1 -1
- package/dist/cjs/{sha256-d5514354.cjs → sha256-8765e543.cjs} +1 -1
- package/dist/cjs/state.d.ts +2 -1
- package/dist/cjs/{uAuth-a19470e0.cjs → uAuth-66e7f842.cjs} +1 -1
- package/dist/cjs/{walletConnect-16378624.cjs → walletConnect-67671d50.cjs} +1 -1
- package/dist/cjs/{walletLink-6d2849c0.cjs → walletLink-75d77597.cjs} +1 -1
- package/dist/{draggabilly-34e3fa3e.js → draggabilly-542c5cae.js} +1 -1
- package/dist/{ethers-f77d19ac.js → ethers-fe9fa84f.js} +1 -1
- package/dist/{id-960f1586.js → id-693d7c84.js} +1 -1
- package/dist/index-1137a917.js +1 -0
- package/dist/{index-1b749ab5.js → index-1bf00f8f.js} +2 -2
- package/dist/{index-09d64120.js → index-1f918a4b.js} +1 -1
- package/dist/{index-b3411194.js → index-3bb899bf.js} +1 -1
- package/dist/{index-ba3635a7.js → index-3c3d04d7.js} +1 -1
- package/dist/index-51ac6957.js +9 -0
- package/dist/{index-07a50129.js → index-79f8a14f.js} +1 -1
- package/dist/{index-a941c3a3.js → index-d5b21786.js} +1 -1
- package/dist/{index-172f183a.js → index-e1a91fd3.js} +1 -1
- package/dist/{index-5a257328.js → index-f728f8ed.js} +1 -1
- package/dist/{index-fef6764c.js → index-ff04a168.js} +1 -1
- package/dist/{index.es-e355c6ad.js → index.es-c9a2db2c.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{interface-c9c105cf.js → interface-936da3ce.js} +1 -1
- package/dist/{lib-typedarrays-3d5eba65.js → lib-typedarrays-38faff47.js} +1 -1
- package/dist/{portis-429fcf50.js → portis-76a8e487.js} +1 -1
- package/dist/{provider-1e32bf53.js → provider-db6426ff.js} +1 -1
- package/dist/{rainbow-c7756229.js → rainbow-9a1e9915.js} +1 -1
- package/dist/{sha224-cbf7c7eb.js → sha224-2ced289a.js} +1 -1
- package/dist/{sha256-a9d0b7f1.js → sha256-c1265a22.js} +1 -1
- package/dist/state.d.ts +2 -1
- package/dist/{uAuth-3abbfadc.js → uAuth-b6bee9b3.js} +1 -1
- package/dist/{walletConnect-d5c7d995.js → walletConnect-0903c9e0.js} +1 -1
- package/dist/{walletLink-2a736330.js → walletLink-a9316447.js} +1 -1
- package/package.json +1 -1
- package/dist/__node-resolve_empty-8026955a.js +0 -1
- package/dist/__tslib-e41975e4.js +0 -1
- package/dist/cjs/__tslib-eb48337e.cjs +0 -1
- package/dist/cjs/index-4b302168.cjs +0 -1
- package/dist/cjs/index-525d9b1d.cjs +0 -9
- package/dist/index-709cfbe8.js +0 -1
- package/dist/index-70c60a75.js +0 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./bn-04b4ee15.cjs"),e=require("@ethersproject/bytes"),t=require("./index-525d9b1d.cjs");let o=!1,n=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let i=s.default,u=null;const a=function(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(t){r.push(e)}})),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(r){return r.message}return null}();var E,N;!function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"}(E||(E={})),exports.ErrorCode=void 0,(N=exports.ErrorCode||(exports.ErrorCode={})).UNKNOWN_ERROR="UNKNOWN_ERROR",N.NOT_IMPLEMENTED="NOT_IMPLEMENTED",N.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",N.NETWORK_ERROR="NETWORK_ERROR",N.SERVER_ERROR="SERVER_ERROR",N.TIMEOUT="TIMEOUT",N.BUFFER_OVERRUN="BUFFER_OVERRUN",N.NUMERIC_FAULT="NUMERIC_FAULT",N.MISSING_NEW="MISSING_NEW",N.INVALID_ARGUMENT="INVALID_ARGUMENT",N.MISSING_ARGUMENT="MISSING_ARGUMENT",N.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",N.CALL_EXCEPTION="CALL_EXCEPTION",N.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",N.NONCE_EXPIRED="NONCE_EXPIRED",N.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",N.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",N.TRANSACTION_REPLACED="TRANSACTION_REPLACED",N.ACTION_REJECTED="ACTION_REJECTED";const c="0123456789abcdef";class h{constructor(r){Object.defineProperty(this,"version",{enumerable:!0,value:r,writable:!1})}_log(r,e){const t=r.toLowerCase();null==s[t]&&this.throwArgumentError("invalid log level name","logLevel",r),i>s[t]||console.log.apply(console,e)}debug(...r){this._log(h.levels.DEBUG,r)}info(...r){this._log(h.levels.INFO,r)}warn(...r){this._log(h.levels.WARNING,r)}makeError(r,e,t){if(n)return this.makeError("censored error",e,{});e||(e=h.errors.UNKNOWN_ERROR),t||(t={});const o=[];Object.keys(t).forEach((r=>{const e=t[r];try{if(e instanceof Uint8Array){let t="";for(let r=0;r<e.length;r++)t+=c[e[r]>>4],t+=c[15&e[r]];o.push(r+"=Uint8Array(0x"+t+")")}else o.push(r+"="+JSON.stringify(e))}catch(e){o.push(r+"="+JSON.stringify(t[r].toString()))}})),o.push(`code=${e}`),o.push(`version=${this.version}`);const s=r;let i="";switch(e){case exports.ErrorCode.NUMERIC_FAULT:{i="NUMERIC_FAULT";const e=r;switch(e){case"overflow":case"underflow":case"division-by-zero":i+="-"+e;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case exports.ErrorCode.CALL_EXCEPTION:case exports.ErrorCode.INSUFFICIENT_FUNDS:case exports.ErrorCode.MISSING_NEW:case exports.ErrorCode.NONCE_EXPIRED:case exports.ErrorCode.REPLACEMENT_UNDERPRICED:case exports.ErrorCode.TRANSACTION_REPLACED:case exports.ErrorCode.UNPREDICTABLE_GAS_LIMIT:i=e}i&&(r+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),o.length&&(r+=" ("+o.join(", ")+")");const u=new Error(r);return u.reason=s,u.code=e,Object.keys(t).forEach((function(r){u[r]=t[r]})),u}throwError(r,e,t){throw this.makeError(r,e,t)}throwArgumentError(r,e,t){return this.throwError(r,h.errors.INVALID_ARGUMENT,{argument:e,value:t})}assert(r,e,t,o){r||this.throwError(e,t,o)}assertArgument(r,e,t,o){r||this.throwArgumentError(e,t,o)}checkNormalize(r){a&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:a})}checkSafeUint53(r,e){"number"==typeof r&&(null==e&&(e="value not safe"),(r<0||r>=9007199254740991)&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:r}),r%1&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:r}))}checkArgumentCount(r,e,t){t=t?": "+t:"",r<e&&this.throwError("missing argument"+t,h.errors.MISSING_ARGUMENT,{count:r,expectedCount:e}),r>e&&this.throwError("too many arguments"+t,h.errors.UNEXPECTED_ARGUMENT,{count:r,expectedCount:e})}checkNew(r,e){r!==Object&&null!=r||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}checkAbstract(r,e){r===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:r.name,operation:"new"}):r!==Object&&null!=r||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return u||(u=new h("logger/5.7.0")),u}static setCensorship(r,e){if(!r&&e&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!r)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!r,o=!!e}static setLogLevel(r){const e=s[r.toLowerCase()];null!=e?i=e:h.globalLogger().warn("invalid log level - "+r)}static from(r){return new h(r)}}h.errors=exports.ErrorCode,h.levels=E;var l=Object.freeze({__proto__:null,get LogLevel(){return E},get ErrorCode(){return exports.ErrorCode},Logger:h});const g="bignumber/5.7.0";var f=r.BN.BN;const p=new h(g),R={},m=9007199254740991;let U=!1;class _{constructor(r,e){r!==R&&p.throwError("cannot call constructor directly; use BigNumber.from",h.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(r){return d(T(this).fromTwos(r))}toTwos(r){return d(T(this).toTwos(r))}abs(){return"-"===this._hex[0]?_.from(this._hex.substring(1)):this}add(r){return d(T(this).add(T(r)))}sub(r){return d(T(this).sub(T(r)))}div(r){return _.from(r).isZero()&&b("division-by-zero","div"),d(T(this).div(T(r)))}mul(r){return d(T(this).mul(T(r)))}mod(r){const e=T(r);return e.isNeg()&&b("division-by-zero","mod"),d(T(this).umod(e))}pow(r){const e=T(r);return e.isNeg()&&b("negative-power","pow"),d(T(this).pow(e))}and(r){const e=T(r);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","and"),d(T(this).and(e))}or(r){const e=T(r);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","or"),d(T(this).or(e))}xor(r){const e=T(r);return(this.isNegative()||e.isNeg())&&b("unbound-bitwise-result","xor"),d(T(this).xor(e))}mask(r){return(this.isNegative()||r<0)&&b("negative-width","mask"),d(T(this).maskn(r))}shl(r){return(this.isNegative()||r<0)&&b("negative-width","shl"),d(T(this).shln(r))}shr(r){return(this.isNegative()||r<0)&&b("negative-width","shr"),d(T(this).shrn(r))}eq(r){return T(this).eq(T(r))}lt(r){return T(this).lt(T(r))}lte(r){return T(this).lte(T(r))}gt(r){return T(this).gt(T(r))}gte(r){return T(this).gte(T(r))}isNegative(){return"-"===this._hex[0]}isZero(){return T(this).isZero()}toNumber(){try{return T(this).toNumber()}catch(r){b("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(r){}return p.throwError("this platform does not support BigInt",h.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?U||(U=!0,p.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?p.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.errors.UNEXPECTED_ARGUMENT,{}):p.throwError("BigNumber.toString does not accept parameters",h.errors.UNEXPECTED_ARGUMENT,{})),T(this).toString(10)}toHexString(){return this._hex}toJSON(r){return{type:"BigNumber",hex:this.toHexString()}}static from(r){if(r instanceof _)return r;if("string"==typeof r)return r.match(/^-?0x[0-9a-f]+$/i)?new _(R,I(r)):r.match(/^-?[0-9]+$/)?new _(R,I(new f(r))):p.throwArgumentError("invalid BigNumber string","value",r);if("number"==typeof r)return r%1&&b("underflow","BigNumber.from",r),(r>=m||r<=-m)&&b("overflow","BigNumber.from",r),_.from(String(r));const t=r;if("bigint"==typeof t)return _.from(t.toString());if(e.isBytes(t))return _.from(e.hexlify(t));if(t)if(t.toHexString){const r=t.toHexString();if("string"==typeof r)return _.from(r)}else{let r=t._hex;if(null==r&&"BigNumber"===t.type&&(r=t.hex),"string"==typeof r&&(e.isHexString(r)||"-"===r[0]&&e.isHexString(r.substring(1))))return _.from(r)}return p.throwArgumentError("invalid BigNumber value","value",r)}static isBigNumber(r){return!(!r||!r._isBigNumber)}}function I(r){if("string"!=typeof r)return I(r.toString(16));if("-"===r[0])return"-"===(r=r.substring(1))[0]&&p.throwArgumentError("invalid hex","value",r),"0x00"===(r=I(r))?r:"-"+r;if("0x"!==r.substring(0,2)&&(r="0x"+r),"0x"===r)return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&"0x00"===r.substring(0,4);)r="0x"+r.substring(4);return r}function d(r){return _.from(I(r))}function T(r){const e=_.from(r).toHexString();return"-"===e[0]?new f("-"+e.substring(3),16):new f(e.substring(2),16)}function b(r,e,t){const o={fault:r,operation:e};return null!=t&&(o.value=t),p.throwError(r,h.errors.NUMERIC_FAULT,o)}const C=new h("strings/5.7.0");var O,S;function x(r,e,t,o,n){if(r===exports.Utf8ErrorReason.BAD_PREFIX||r===exports.Utf8ErrorReason.UNEXPECTED_CONTINUE){let r=0;for(let o=e+1;o<t.length&&t[o]>>6==2;o++)r++;return r}return r===exports.Utf8ErrorReason.OVERRUN?t.length-e-1:0}exports.UnicodeNormalizationForm=void 0,(O=exports.UnicodeNormalizationForm||(exports.UnicodeNormalizationForm={})).current="",O.NFC="NFC",O.NFD="NFD",O.NFKC="NFKC",O.NFKD="NFKD",exports.Utf8ErrorReason=void 0,(S=exports.Utf8ErrorReason||(exports.Utf8ErrorReason={})).UNEXPECTED_CONTINUE="unexpected continuation byte",S.BAD_PREFIX="bad codepoint prefix",S.OVERRUN="string overrun",S.MISSING_CONTINUE="missing continuation byte",S.OUT_OF_RANGE="out of UTF-8 range",S.UTF16_SURROGATE="UTF-16 surrogate",S.OVERLONG="overlong representation";const w=Object.freeze({error:function(r,e,t,o,n){return C.throwArgumentError(`invalid codepoint at offset ${e}; ${r}`,"bytes",t)},ignore:x,replace:function(r,e,t,o,n){return r===exports.Utf8ErrorReason.OVERLONG?(o.push(n),0):(o.push(65533),x(r,e,t))}});function A(r,t){null==t&&(t=w.error),r=e.arrayify(r);const o=[];let n=0;for(;n<r.length;){const e=r[n++];if(e>>7==0){o.push(e);continue}let s=null,i=null;if(192==(224&e))s=1,i=127;else if(224==(240&e))s=2,i=2047;else{if(240!=(248&e)){n+=t(128==(192&e)?exports.Utf8ErrorReason.UNEXPECTED_CONTINUE:exports.Utf8ErrorReason.BAD_PREFIX,n-1,r,o);continue}s=3,i=65535}if(n-1+s>=r.length){n+=t(exports.Utf8ErrorReason.OVERRUN,n-1,r,o);continue}let u=e&(1<<8-s-1)-1;for(let e=0;e<s;e++){let e=r[n];if(128!=(192&e)){n+=t(exports.Utf8ErrorReason.MISSING_CONTINUE,n,r,o),u=null;break}u=u<<6|63&e,n++}null!==u&&(u>1114111?n+=t(exports.Utf8ErrorReason.OUT_OF_RANGE,n-1-s,r,o,u):u>=55296&&u<=57343?n+=t(exports.Utf8ErrorReason.UTF16_SURROGATE,n-1-s,r,o,u):u<=i?n+=t(exports.Utf8ErrorReason.OVERLONG,n-1-s,r,o,u):o.push(u))}return o}function v(r,t=exports.UnicodeNormalizationForm.current){t!=exports.UnicodeNormalizationForm.current&&(C.checkNormalize(),r=r.normalize(t));let o=[];for(let e=0;e<r.length;e++){const t=r.charCodeAt(e);if(t<128)o.push(t);else if(t<2048)o.push(t>>6|192),o.push(63&t|128);else if(55296==(64512&t)){e++;const n=r.charCodeAt(e);if(e>=r.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const s=65536+((1023&t)<<10)+(1023&n);o.push(s>>18|240),o.push(s>>12&63|128),o.push(s>>6&63|128),o.push(63&s|128)}else o.push(t>>12|224),o.push(t>>6&63|128),o.push(63&t|128)}return e.arrayify(o)}function P(r){const e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function F(r){return r.map((r=>r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode(55296+(r>>10&1023),56320+(1023&r))))).join("")}exports.BigNumber=_,exports.Logger=h,exports.Utf8ErrorFuncs=w,exports._toEscapedUtf8String=function(r,e){return'"'+A(r,e).map((r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?P(r):P(55296+((r-=65536)>>10&1023))+P(56320+(1023&r))})).join("")+'"'},exports._toUtf8String=F,exports.id=function(r){return t.keccak256(v(r))},exports.isBigNumberish=function(r){return null!=r&&(_.isBigNumber(r)||"number"==typeof r&&r%1==0||"string"==typeof r&&!!r.match(/^-?[0-9]+$/)||e.isHexString(r)||"bigint"==typeof r||e.isBytes(r))},exports.lib_esm=l,exports.toUtf8Bytes=v,exports.toUtf8CodePoints=function(r,e=exports.UnicodeNormalizationForm.current){return A(v(r,e))},exports.toUtf8String=function(r,e){return F(A(r,e))},exports.version=g;
|
|
1
|
+
"use strict";var r=require("./bn-6c93fb4c.cjs"),e=require("@ethersproject/bytes"),t=require("./index-fd18f5c9.cjs");let o=!1,n=!1;const s={debug:1,default:2,info:2,warning:3,error:4,off:5};let i=s.default,u=null;const a=function(){try{const r=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(t){r.push(e)}})),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(r){return r.message}return null}();var E,N;!function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"}(E||(E={})),exports.ErrorCode=void 0,(N=exports.ErrorCode||(exports.ErrorCode={})).UNKNOWN_ERROR="UNKNOWN_ERROR",N.NOT_IMPLEMENTED="NOT_IMPLEMENTED",N.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",N.NETWORK_ERROR="NETWORK_ERROR",N.SERVER_ERROR="SERVER_ERROR",N.TIMEOUT="TIMEOUT",N.BUFFER_OVERRUN="BUFFER_OVERRUN",N.NUMERIC_FAULT="NUMERIC_FAULT",N.MISSING_NEW="MISSING_NEW",N.INVALID_ARGUMENT="INVALID_ARGUMENT",N.MISSING_ARGUMENT="MISSING_ARGUMENT",N.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",N.CALL_EXCEPTION="CALL_EXCEPTION",N.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",N.NONCE_EXPIRED="NONCE_EXPIRED",N.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",N.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",N.TRANSACTION_REPLACED="TRANSACTION_REPLACED",N.ACTION_REJECTED="ACTION_REJECTED";const c="0123456789abcdef";class h{constructor(r){Object.defineProperty(this,"version",{enumerable:!0,value:r,writable:!1})}_log(r,e){const t=r.toLowerCase();null==s[t]&&this.throwArgumentError("invalid log level name","logLevel",r),i>s[t]||console.log.apply(console,e)}debug(...r){this._log(h.levels.DEBUG,r)}info(...r){this._log(h.levels.INFO,r)}warn(...r){this._log(h.levels.WARNING,r)}makeError(r,e,t){if(n)return this.makeError("censored error",e,{});e||(e=h.errors.UNKNOWN_ERROR),t||(t={});const o=[];Object.keys(t).forEach((r=>{const e=t[r];try{if(e instanceof Uint8Array){let t="";for(let r=0;r<e.length;r++)t+=c[e[r]>>4],t+=c[15&e[r]];o.push(r+"=Uint8Array(0x"+t+")")}else o.push(r+"="+JSON.stringify(e))}catch(e){o.push(r+"="+JSON.stringify(t[r].toString()))}})),o.push(`code=${e}`),o.push(`version=${this.version}`);const s=r;let i="";switch(e){case exports.ErrorCode.NUMERIC_FAULT:{i="NUMERIC_FAULT";const e=r;switch(e){case"overflow":case"underflow":case"division-by-zero":i+="-"+e;break;case"negative-power":case"negative-width":i+="-unsupported";break;case"unbound-bitwise-result":i+="-unbound-result"}break}case exports.ErrorCode.CALL_EXCEPTION:case exports.ErrorCode.INSUFFICIENT_FUNDS:case exports.ErrorCode.MISSING_NEW:case exports.ErrorCode.NONCE_EXPIRED:case exports.ErrorCode.REPLACEMENT_UNDERPRICED:case exports.ErrorCode.TRANSACTION_REPLACED:case exports.ErrorCode.UNPREDICTABLE_GAS_LIMIT:i=e}i&&(r+=" [ See: https://links.ethers.org/v5-errors-"+i+" ]"),o.length&&(r+=" ("+o.join(", ")+")");const u=new Error(r);return u.reason=s,u.code=e,Object.keys(t).forEach((function(r){u[r]=t[r]})),u}throwError(r,e,t){throw this.makeError(r,e,t)}throwArgumentError(r,e,t){return this.throwError(r,h.errors.INVALID_ARGUMENT,{argument:e,value:t})}assert(r,e,t,o){r||this.throwError(e,t,o)}assertArgument(r,e,t,o){r||this.throwArgumentError(e,t,o)}checkNormalize(r){a&&this.throwError("platform missing String.prototype.normalize",h.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:a})}checkSafeUint53(r,e){"number"==typeof r&&(null==e&&(e="value not safe"),(r<0||r>=9007199254740991)&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:r}),r%1&&this.throwError(e,h.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:r}))}checkArgumentCount(r,e,t){t=t?": "+t:"",r<e&&this.throwError("missing argument"+t,h.errors.MISSING_ARGUMENT,{count:r,expectedCount:e}),r>e&&this.throwError("too many arguments"+t,h.errors.UNEXPECTED_ARGUMENT,{count:r,expectedCount:e})}checkNew(r,e){r!==Object&&null!=r||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}checkAbstract(r,e){r===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",h.errors.UNSUPPORTED_OPERATION,{name:r.name,operation:"new"}):r!==Object&&null!=r||this.throwError("missing new",h.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return u||(u=new h("logger/5.7.0")),u}static setCensorship(r,e){if(!r&&e&&this.globalLogger().throwError("cannot permanently disable censorship",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!r)return;this.globalLogger().throwError("error censorship permanent",h.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}n=!!r,o=!!e}static setLogLevel(r){const e=s[r.toLowerCase()];null!=e?i=e:h.globalLogger().warn("invalid log level - "+r)}static from(r){return new h(r)}}h.errors=exports.ErrorCode,h.levels=E;var l=Object.freeze({__proto__:null,get LogLevel(){return E},get ErrorCode(){return exports.ErrorCode},Logger:h});const g="bignumber/5.7.0";var f=r.BN.BN;const p=new h(g),R={},m=9007199254740991;let U=!1;class _{constructor(r,e){r!==R&&p.throwError("cannot call constructor directly; use BigNumber.from",h.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(r){return d(T(this).fromTwos(r))}toTwos(r){return d(T(this).toTwos(r))}abs(){return"-"===this._hex[0]?_.from(this._hex.substring(1)):this}add(r){return d(T(this).add(T(r)))}sub(r){return d(T(this).sub(T(r)))}div(r){return _.from(r).isZero()&&C("division-by-zero","div"),d(T(this).div(T(r)))}mul(r){return d(T(this).mul(T(r)))}mod(r){const e=T(r);return e.isNeg()&&C("division-by-zero","mod"),d(T(this).umod(e))}pow(r){const e=T(r);return e.isNeg()&&C("negative-power","pow"),d(T(this).pow(e))}and(r){const e=T(r);return(this.isNegative()||e.isNeg())&&C("unbound-bitwise-result","and"),d(T(this).and(e))}or(r){const e=T(r);return(this.isNegative()||e.isNeg())&&C("unbound-bitwise-result","or"),d(T(this).or(e))}xor(r){const e=T(r);return(this.isNegative()||e.isNeg())&&C("unbound-bitwise-result","xor"),d(T(this).xor(e))}mask(r){return(this.isNegative()||r<0)&&C("negative-width","mask"),d(T(this).maskn(r))}shl(r){return(this.isNegative()||r<0)&&C("negative-width","shl"),d(T(this).shln(r))}shr(r){return(this.isNegative()||r<0)&&C("negative-width","shr"),d(T(this).shrn(r))}eq(r){return T(this).eq(T(r))}lt(r){return T(this).lt(T(r))}lte(r){return T(this).lte(T(r))}gt(r){return T(this).gt(T(r))}gte(r){return T(this).gte(T(r))}isNegative(){return"-"===this._hex[0]}isZero(){return T(this).isZero()}toNumber(){try{return T(this).toNumber()}catch(r){C("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(r){}return p.throwError("this platform does not support BigInt",h.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?U||(U=!0,p.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?p.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",h.errors.UNEXPECTED_ARGUMENT,{}):p.throwError("BigNumber.toString does not accept parameters",h.errors.UNEXPECTED_ARGUMENT,{})),T(this).toString(10)}toHexString(){return this._hex}toJSON(r){return{type:"BigNumber",hex:this.toHexString()}}static from(r){if(r instanceof _)return r;if("string"==typeof r)return r.match(/^-?0x[0-9a-f]+$/i)?new _(R,I(r)):r.match(/^-?[0-9]+$/)?new _(R,I(new f(r))):p.throwArgumentError("invalid BigNumber string","value",r);if("number"==typeof r)return r%1&&C("underflow","BigNumber.from",r),(r>=m||r<=-m)&&C("overflow","BigNumber.from",r),_.from(String(r));const t=r;if("bigint"==typeof t)return _.from(t.toString());if(e.isBytes(t))return _.from(e.hexlify(t));if(t)if(t.toHexString){const r=t.toHexString();if("string"==typeof r)return _.from(r)}else{let r=t._hex;if(null==r&&"BigNumber"===t.type&&(r=t.hex),"string"==typeof r&&(e.isHexString(r)||"-"===r[0]&&e.isHexString(r.substring(1))))return _.from(r)}return p.throwArgumentError("invalid BigNumber value","value",r)}static isBigNumber(r){return!(!r||!r._isBigNumber)}}function I(r){if("string"!=typeof r)return I(r.toString(16));if("-"===r[0])return"-"===(r=r.substring(1))[0]&&p.throwArgumentError("invalid hex","value",r),"0x00"===(r=I(r))?r:"-"+r;if("0x"!==r.substring(0,2)&&(r="0x"+r),"0x"===r)return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&"0x00"===r.substring(0,4);)r="0x"+r.substring(4);return r}function d(r){return _.from(I(r))}function T(r){const e=_.from(r).toHexString();return"-"===e[0]?new f("-"+e.substring(3),16):new f(e.substring(2),16)}function C(r,e,t){const o={fault:r,operation:e};return null!=t&&(o.value=t),p.throwError(r,h.errors.NUMERIC_FAULT,o)}const O=new h("strings/5.7.0");var b,S;function x(r,e,t,o,n){if(r===exports.Utf8ErrorReason.BAD_PREFIX||r===exports.Utf8ErrorReason.UNEXPECTED_CONTINUE){let r=0;for(let o=e+1;o<t.length&&t[o]>>6==2;o++)r++;return r}return r===exports.Utf8ErrorReason.OVERRUN?t.length-e-1:0}exports.UnicodeNormalizationForm=void 0,(b=exports.UnicodeNormalizationForm||(exports.UnicodeNormalizationForm={})).current="",b.NFC="NFC",b.NFD="NFD",b.NFKC="NFKC",b.NFKD="NFKD",exports.Utf8ErrorReason=void 0,(S=exports.Utf8ErrorReason||(exports.Utf8ErrorReason={})).UNEXPECTED_CONTINUE="unexpected continuation byte",S.BAD_PREFIX="bad codepoint prefix",S.OVERRUN="string overrun",S.MISSING_CONTINUE="missing continuation byte",S.OUT_OF_RANGE="out of UTF-8 range",S.UTF16_SURROGATE="UTF-16 surrogate",S.OVERLONG="overlong representation";const w=Object.freeze({error:function(r,e,t,o,n){return O.throwArgumentError(`invalid codepoint at offset ${e}; ${r}`,"bytes",t)},ignore:x,replace:function(r,e,t,o,n){return r===exports.Utf8ErrorReason.OVERLONG?(o.push(n),0):(o.push(65533),x(r,e,t))}});function A(r,t){null==t&&(t=w.error),r=e.arrayify(r);const o=[];let n=0;for(;n<r.length;){const e=r[n++];if(e>>7==0){o.push(e);continue}let s=null,i=null;if(192==(224&e))s=1,i=127;else if(224==(240&e))s=2,i=2047;else{if(240!=(248&e)){n+=t(128==(192&e)?exports.Utf8ErrorReason.UNEXPECTED_CONTINUE:exports.Utf8ErrorReason.BAD_PREFIX,n-1,r,o);continue}s=3,i=65535}if(n-1+s>=r.length){n+=t(exports.Utf8ErrorReason.OVERRUN,n-1,r,o);continue}let u=e&(1<<8-s-1)-1;for(let e=0;e<s;e++){let e=r[n];if(128!=(192&e)){n+=t(exports.Utf8ErrorReason.MISSING_CONTINUE,n,r,o),u=null;break}u=u<<6|63&e,n++}null!==u&&(u>1114111?n+=t(exports.Utf8ErrorReason.OUT_OF_RANGE,n-1-s,r,o,u):u>=55296&&u<=57343?n+=t(exports.Utf8ErrorReason.UTF16_SURROGATE,n-1-s,r,o,u):u<=i?n+=t(exports.Utf8ErrorReason.OVERLONG,n-1-s,r,o,u):o.push(u))}return o}function v(r,t=exports.UnicodeNormalizationForm.current){t!=exports.UnicodeNormalizationForm.current&&(O.checkNormalize(),r=r.normalize(t));let o=[];for(let e=0;e<r.length;e++){const t=r.charCodeAt(e);if(t<128)o.push(t);else if(t<2048)o.push(t>>6|192),o.push(63&t|128);else if(55296==(64512&t)){e++;const n=r.charCodeAt(e);if(e>=r.length||56320!=(64512&n))throw new Error("invalid utf-8 string");const s=65536+((1023&t)<<10)+(1023&n);o.push(s>>18|240),o.push(s>>12&63|128),o.push(s>>6&63|128),o.push(63&s|128)}else o.push(t>>12|224),o.push(t>>6&63|128),o.push(63&t|128)}return e.arrayify(o)}function P(r){const e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function F(r){return r.map((r=>r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode(55296+(r>>10&1023),56320+(1023&r))))).join("")}exports.BigNumber=_,exports.Logger=h,exports.Utf8ErrorFuncs=w,exports._toEscapedUtf8String=function(r,e){return'"'+A(r,e).map((r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?P(r):P(55296+((r-=65536)>>10&1023))+P(56320+(1023&r))})).join("")+'"'},exports._toUtf8String=F,exports.id=function(r){return t.keccak256(v(r))},exports.isBigNumberish=function(r){return null!=r&&(_.isBigNumber(r)||"number"==typeof r&&r%1==0||"string"==typeof r&&!!r.match(/^-?[0-9]+$/)||e.isHexString(r)||"bigint"==typeof r||e.isBytes(r))},exports.lib_esm=l,exports.toUtf8Bytes=v,exports.toUtf8CodePoints=function(r,e=exports.UnicodeNormalizationForm.current){return A(v(r,e))},exports.toUtf8String=function(r,e){return F(A(r,e))},exports.version=g;
|