@ssv-labs/ssv-sdk 0.0.3 → 0.0.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/api/subgraph/index.d.ts +2 -2
- package/dist/config/chains.d.ts +83 -1
- package/dist/libs/api/index.d.ts +1 -1
- package/dist/main.js +513 -544
- package/dist/main.mjs +514 -545
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -137,17 +137,17 @@ process.env = {};
|
|
|
137
137
|
process.argv = [];
|
|
138
138
|
process.version = "";
|
|
139
139
|
process.versions = {};
|
|
140
|
-
function noop() {
|
|
141
|
-
}
|
|
142
|
-
process.on = noop;
|
|
143
|
-
process.addListener = noop;
|
|
144
|
-
process.once = noop;
|
|
145
|
-
process.off = noop;
|
|
146
|
-
process.removeListener = noop;
|
|
147
|
-
process.removeAllListeners = noop;
|
|
148
|
-
process.emit = noop;
|
|
149
|
-
process.prependListener = noop;
|
|
150
|
-
process.prependOnceListener = noop;
|
|
140
|
+
function noop$2() {
|
|
141
|
+
}
|
|
142
|
+
process.on = noop$2;
|
|
143
|
+
process.addListener = noop$2;
|
|
144
|
+
process.once = noop$2;
|
|
145
|
+
process.off = noop$2;
|
|
146
|
+
process.removeListener = noop$2;
|
|
147
|
+
process.removeAllListeners = noop$2;
|
|
148
|
+
process.emit = noop$2;
|
|
149
|
+
process.prependListener = noop$2;
|
|
150
|
+
process.prependOnceListener = noop$2;
|
|
151
151
|
process.listeners = function(name2) {
|
|
152
152
|
return [];
|
|
153
153
|
};
|
|
@@ -945,7 +945,7 @@ var dist = {};
|
|
|
945
945
|
}
|
|
946
946
|
return -1;
|
|
947
947
|
}
|
|
948
|
-
Buffer3.prototype.includes = function
|
|
948
|
+
Buffer3.prototype.includes = function includes2(val, byteOffset, encoding) {
|
|
949
949
|
return this.indexOf(val, byteOffset, encoding) !== -1;
|
|
950
950
|
};
|
|
951
951
|
Buffer3.prototype.indexOf = function indexOf3(val, byteOffset, encoding) {
|
|
@@ -2557,7 +2557,7 @@ function EventEmitter() {
|
|
|
2557
2557
|
EventEmitter.init.call(this);
|
|
2558
2558
|
}
|
|
2559
2559
|
events.exports = EventEmitter;
|
|
2560
|
-
events.exports.once = once;
|
|
2560
|
+
events.exports.once = once$2;
|
|
2561
2561
|
EventEmitter.EventEmitter = EventEmitter;
|
|
2562
2562
|
EventEmitter.prototype._events = void 0;
|
|
2563
2563
|
EventEmitter.prototype._eventsCount = 0;
|
|
@@ -2851,7 +2851,7 @@ function unwrapListeners(arr) {
|
|
|
2851
2851
|
}
|
|
2852
2852
|
return ret;
|
|
2853
2853
|
}
|
|
2854
|
-
function once(emitter, name2) {
|
|
2854
|
+
function once$2(emitter, name2) {
|
|
2855
2855
|
return new Promise(function(resolve2, reject) {
|
|
2856
2856
|
function errorListener(err) {
|
|
2857
2857
|
emitter.removeListener(name2, resolver);
|
|
@@ -2893,14 +2893,7 @@ function eventTargetAgnosticAddListener(emitter, name2, listener, flags) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
}
|
|
2895
2895
|
var eventsExports = events.exports;
|
|
2896
|
-
var streamBrowser$1;
|
|
2897
|
-
var hasRequiredStreamBrowser;
|
|
2898
|
-
function requireStreamBrowser() {
|
|
2899
|
-
if (hasRequiredStreamBrowser) return streamBrowser$1;
|
|
2900
|
-
hasRequiredStreamBrowser = 1;
|
|
2901
|
-
streamBrowser$1 = eventsExports.EventEmitter;
|
|
2902
|
-
return streamBrowser$1;
|
|
2903
|
-
}
|
|
2896
|
+
var streamBrowser$1 = eventsExports.EventEmitter;
|
|
2904
2897
|
var util$3 = {};
|
|
2905
2898
|
var types$1 = {};
|
|
2906
2899
|
var shams$1 = function hasSymbols2() {
|
|
@@ -3055,10 +3048,10 @@ var implementation$1 = function bind2(that) {
|
|
|
3055
3048
|
};
|
|
3056
3049
|
var implementation = implementation$1;
|
|
3057
3050
|
var functionBind = Function.prototype.bind || implementation;
|
|
3058
|
-
var call = Function.prototype.call;
|
|
3051
|
+
var call$1 = Function.prototype.call;
|
|
3059
3052
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
3060
3053
|
var bind$1 = functionBind;
|
|
3061
|
-
var hasown = bind$1.call(call, $hasOwn);
|
|
3054
|
+
var hasown = bind$1.call(call$1, $hasOwn);
|
|
3062
3055
|
var undefined$1;
|
|
3063
3056
|
var $Error = esErrors;
|
|
3064
3057
|
var $EvalError = _eval;
|
|
@@ -4899,229 +4892,209 @@ function requireBuffer_list() {
|
|
|
4899
4892
|
}();
|
|
4900
4893
|
return buffer_list;
|
|
4901
4894
|
}
|
|
4902
|
-
|
|
4903
|
-
var
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
if (
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
if (!this._writableState) {
|
|
4916
|
-
process$1.nextTick(emitErrorNT2, this, err);
|
|
4917
|
-
} else if (!this._writableState.errorEmitted) {
|
|
4918
|
-
this._writableState.errorEmitted = true;
|
|
4919
|
-
process$1.nextTick(emitErrorNT2, this, err);
|
|
4920
|
-
}
|
|
4895
|
+
function destroy$1(err, cb) {
|
|
4896
|
+
var _this = this;
|
|
4897
|
+
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
4898
|
+
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
4899
|
+
if (readableDestroyed || writableDestroyed) {
|
|
4900
|
+
if (cb) {
|
|
4901
|
+
cb(err);
|
|
4902
|
+
} else if (err) {
|
|
4903
|
+
if (!this._writableState) {
|
|
4904
|
+
process$1.nextTick(emitErrorNT$1, this, err);
|
|
4905
|
+
} else if (!this._writableState.errorEmitted) {
|
|
4906
|
+
this._writableState.errorEmitted = true;
|
|
4907
|
+
process$1.nextTick(emitErrorNT$1, this, err);
|
|
4921
4908
|
}
|
|
4922
|
-
return this;
|
|
4923
4909
|
}
|
|
4924
|
-
if (this._readableState) {
|
|
4925
|
-
this._readableState.destroyed = true;
|
|
4926
|
-
}
|
|
4927
|
-
if (this._writableState) {
|
|
4928
|
-
this._writableState.destroyed = true;
|
|
4929
|
-
}
|
|
4930
|
-
this._destroy(err || null, function(err2) {
|
|
4931
|
-
if (!cb && err2) {
|
|
4932
|
-
if (!_this._writableState) {
|
|
4933
|
-
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4934
|
-
} else if (!_this._writableState.errorEmitted) {
|
|
4935
|
-
_this._writableState.errorEmitted = true;
|
|
4936
|
-
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4937
|
-
} else {
|
|
4938
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4939
|
-
}
|
|
4940
|
-
} else if (cb) {
|
|
4941
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4942
|
-
cb(err2);
|
|
4943
|
-
} else {
|
|
4944
|
-
process$1.nextTick(emitCloseNT, _this);
|
|
4945
|
-
}
|
|
4946
|
-
});
|
|
4947
4910
|
return this;
|
|
4948
4911
|
}
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
emitCloseNT(self2);
|
|
4952
|
-
}
|
|
4953
|
-
function emitCloseNT(self2) {
|
|
4954
|
-
if (self2._writableState && !self2._writableState.emitClose) return;
|
|
4955
|
-
if (self2._readableState && !self2._readableState.emitClose) return;
|
|
4956
|
-
self2.emit("close");
|
|
4957
|
-
}
|
|
4958
|
-
function undestroy2() {
|
|
4959
|
-
if (this._readableState) {
|
|
4960
|
-
this._readableState.destroyed = false;
|
|
4961
|
-
this._readableState.reading = false;
|
|
4962
|
-
this._readableState.ended = false;
|
|
4963
|
-
this._readableState.endEmitted = false;
|
|
4964
|
-
}
|
|
4965
|
-
if (this._writableState) {
|
|
4966
|
-
this._writableState.destroyed = false;
|
|
4967
|
-
this._writableState.ended = false;
|
|
4968
|
-
this._writableState.ending = false;
|
|
4969
|
-
this._writableState.finalCalled = false;
|
|
4970
|
-
this._writableState.prefinished = false;
|
|
4971
|
-
this._writableState.finished = false;
|
|
4972
|
-
this._writableState.errorEmitted = false;
|
|
4973
|
-
}
|
|
4974
|
-
}
|
|
4975
|
-
function emitErrorNT2(self2, err) {
|
|
4976
|
-
self2.emit("error", err);
|
|
4977
|
-
}
|
|
4978
|
-
function errorOrDestroy(stream, err) {
|
|
4979
|
-
var rState = stream._readableState;
|
|
4980
|
-
var wState = stream._writableState;
|
|
4981
|
-
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);
|
|
4982
|
-
else stream.emit("error", err);
|
|
4983
|
-
}
|
|
4984
|
-
destroy_1$1 = {
|
|
4985
|
-
destroy: destroy2,
|
|
4986
|
-
undestroy: undestroy2,
|
|
4987
|
-
errorOrDestroy
|
|
4988
|
-
};
|
|
4989
|
-
return destroy_1$1;
|
|
4990
|
-
}
|
|
4991
|
-
var errorsBrowser = {};
|
|
4992
|
-
var hasRequiredErrorsBrowser;
|
|
4993
|
-
function requireErrorsBrowser() {
|
|
4994
|
-
if (hasRequiredErrorsBrowser) return errorsBrowser;
|
|
4995
|
-
hasRequiredErrorsBrowser = 1;
|
|
4996
|
-
function _inheritsLoose(subClass, superClass) {
|
|
4997
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
4998
|
-
subClass.prototype.constructor = subClass;
|
|
4999
|
-
subClass.__proto__ = superClass;
|
|
5000
|
-
}
|
|
5001
|
-
var codes = {};
|
|
5002
|
-
function createErrorType(code, message, Base2) {
|
|
5003
|
-
if (!Base2) {
|
|
5004
|
-
Base2 = Error;
|
|
5005
|
-
}
|
|
5006
|
-
function getMessage(arg1, arg2, arg3) {
|
|
5007
|
-
if (typeof message === "string") {
|
|
5008
|
-
return message;
|
|
5009
|
-
} else {
|
|
5010
|
-
return message(arg1, arg2, arg3);
|
|
5011
|
-
}
|
|
5012
|
-
}
|
|
5013
|
-
var NodeError = /* @__PURE__ */ function(_Base) {
|
|
5014
|
-
_inheritsLoose(NodeError2, _Base);
|
|
5015
|
-
function NodeError2(arg1, arg2, arg3) {
|
|
5016
|
-
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
|
|
5017
|
-
}
|
|
5018
|
-
return NodeError2;
|
|
5019
|
-
}(Base2);
|
|
5020
|
-
NodeError.prototype.name = Base2.name;
|
|
5021
|
-
NodeError.prototype.code = code;
|
|
5022
|
-
codes[code] = NodeError;
|
|
4912
|
+
if (this._readableState) {
|
|
4913
|
+
this._readableState.destroyed = true;
|
|
5023
4914
|
}
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
4915
|
+
if (this._writableState) {
|
|
4916
|
+
this._writableState.destroyed = true;
|
|
4917
|
+
}
|
|
4918
|
+
this._destroy(err || null, function(err2) {
|
|
4919
|
+
if (!cb && err2) {
|
|
4920
|
+
if (!_this._writableState) {
|
|
4921
|
+
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
4922
|
+
} else if (!_this._writableState.errorEmitted) {
|
|
4923
|
+
_this._writableState.errorEmitted = true;
|
|
4924
|
+
process$1.nextTick(emitErrorAndCloseNT, _this, err2);
|
|
5034
4925
|
} else {
|
|
5035
|
-
|
|
4926
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
5036
4927
|
}
|
|
4928
|
+
} else if (cb) {
|
|
4929
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
4930
|
+
cb(err2);
|
|
5037
4931
|
} else {
|
|
5038
|
-
|
|
4932
|
+
process$1.nextTick(emitCloseNT, _this);
|
|
5039
4933
|
}
|
|
4934
|
+
});
|
|
4935
|
+
return this;
|
|
4936
|
+
}
|
|
4937
|
+
function emitErrorAndCloseNT(self2, err) {
|
|
4938
|
+
emitErrorNT$1(self2, err);
|
|
4939
|
+
emitCloseNT(self2);
|
|
4940
|
+
}
|
|
4941
|
+
function emitCloseNT(self2) {
|
|
4942
|
+
if (self2._writableState && !self2._writableState.emitClose) return;
|
|
4943
|
+
if (self2._readableState && !self2._readableState.emitClose) return;
|
|
4944
|
+
self2.emit("close");
|
|
4945
|
+
}
|
|
4946
|
+
function undestroy$1() {
|
|
4947
|
+
if (this._readableState) {
|
|
4948
|
+
this._readableState.destroyed = false;
|
|
4949
|
+
this._readableState.reading = false;
|
|
4950
|
+
this._readableState.ended = false;
|
|
4951
|
+
this._readableState.endEmitted = false;
|
|
5040
4952
|
}
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
4953
|
+
if (this._writableState) {
|
|
4954
|
+
this._writableState.destroyed = false;
|
|
4955
|
+
this._writableState.ended = false;
|
|
4956
|
+
this._writableState.ending = false;
|
|
4957
|
+
this._writableState.finalCalled = false;
|
|
4958
|
+
this._writableState.prefinished = false;
|
|
4959
|
+
this._writableState.finished = false;
|
|
4960
|
+
this._writableState.errorEmitted = false;
|
|
5049
4961
|
}
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
4962
|
+
}
|
|
4963
|
+
function emitErrorNT$1(self2, err) {
|
|
4964
|
+
self2.emit("error", err);
|
|
4965
|
+
}
|
|
4966
|
+
function errorOrDestroy(stream, err) {
|
|
4967
|
+
var rState = stream._readableState;
|
|
4968
|
+
var wState = stream._writableState;
|
|
4969
|
+
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);
|
|
4970
|
+
else stream.emit("error", err);
|
|
4971
|
+
}
|
|
4972
|
+
var destroy_1$1 = {
|
|
4973
|
+
destroy: destroy$1,
|
|
4974
|
+
undestroy: undestroy$1,
|
|
4975
|
+
errorOrDestroy
|
|
4976
|
+
};
|
|
4977
|
+
var errorsBrowser = {};
|
|
4978
|
+
function _inheritsLoose(subClass, superClass) {
|
|
4979
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
4980
|
+
subClass.prototype.constructor = subClass;
|
|
4981
|
+
subClass.__proto__ = superClass;
|
|
4982
|
+
}
|
|
4983
|
+
var codes = {};
|
|
4984
|
+
function createErrorType(code, message, Base2) {
|
|
4985
|
+
if (!Base2) {
|
|
4986
|
+
Base2 = Error;
|
|
4987
|
+
}
|
|
4988
|
+
function getMessage(arg1, arg2, arg3) {
|
|
4989
|
+
if (typeof message === "string") {
|
|
4990
|
+
return message;
|
|
5056
4991
|
} else {
|
|
5057
|
-
return
|
|
4992
|
+
return message(arg1, arg2, arg3);
|
|
5058
4993
|
}
|
|
5059
4994
|
}
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
var determiner;
|
|
5065
|
-
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
5066
|
-
determiner = "must not be";
|
|
5067
|
-
expected = expected.replace(/^not /, "");
|
|
5068
|
-
} else {
|
|
5069
|
-
determiner = "must be";
|
|
4995
|
+
var NodeError = /* @__PURE__ */ function(_Base) {
|
|
4996
|
+
_inheritsLoose(NodeError2, _Base);
|
|
4997
|
+
function NodeError2(arg1, arg2, arg3) {
|
|
4998
|
+
return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
|
|
5070
4999
|
}
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5000
|
+
return NodeError2;
|
|
5001
|
+
}(Base2);
|
|
5002
|
+
NodeError.prototype.name = Base2.name;
|
|
5003
|
+
NodeError.prototype.code = code;
|
|
5004
|
+
codes[code] = NodeError;
|
|
5005
|
+
}
|
|
5006
|
+
function oneOf(expected, thing) {
|
|
5007
|
+
if (Array.isArray(expected)) {
|
|
5008
|
+
var len = expected.length;
|
|
5009
|
+
expected = expected.map(function(i) {
|
|
5010
|
+
return String(i);
|
|
5011
|
+
});
|
|
5012
|
+
if (len > 2) {
|
|
5013
|
+
return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(", "), ", or ") + expected[len - 1];
|
|
5014
|
+
} else if (len === 2) {
|
|
5015
|
+
return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
|
|
5074
5016
|
} else {
|
|
5075
|
-
|
|
5076
|
-
msg = 'The "'.concat(name2, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5017
|
+
return "of ".concat(thing, " ").concat(expected[0]);
|
|
5077
5018
|
}
|
|
5078
|
-
|
|
5079
|
-
return
|
|
5080
|
-
}
|
|
5081
|
-
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
5082
|
-
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
|
|
5083
|
-
return "The " + name2 + " method is not implemented";
|
|
5084
|
-
});
|
|
5085
|
-
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
5086
|
-
createErrorType("ERR_STREAM_DESTROYED", function(name2) {
|
|
5087
|
-
return "Cannot call " + name2 + " after a stream was destroyed";
|
|
5088
|
-
});
|
|
5089
|
-
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
5090
|
-
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
5091
|
-
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
5092
|
-
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
5093
|
-
createErrorType("ERR_UNKNOWN_ENCODING", function(arg) {
|
|
5094
|
-
return "Unknown encoding: " + arg;
|
|
5095
|
-
}, TypeError);
|
|
5096
|
-
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
5097
|
-
errorsBrowser.codes = codes;
|
|
5098
|
-
return errorsBrowser;
|
|
5099
|
-
}
|
|
5100
|
-
var state;
|
|
5101
|
-
var hasRequiredState;
|
|
5102
|
-
function requireState() {
|
|
5103
|
-
if (hasRequiredState) return state;
|
|
5104
|
-
hasRequiredState = 1;
|
|
5105
|
-
var ERR_INVALID_OPT_VALUE = requireErrorsBrowser().codes.ERR_INVALID_OPT_VALUE;
|
|
5106
|
-
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
5107
|
-
return options2.highWaterMark != null ? options2.highWaterMark : isDuplex ? options2[duplexKey] : null;
|
|
5108
|
-
}
|
|
5109
|
-
function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
|
|
5110
|
-
var hwm = highWaterMarkFrom(options2, isDuplex, duplexKey);
|
|
5111
|
-
if (hwm != null) {
|
|
5112
|
-
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
5113
|
-
var name2 = isDuplex ? duplexKey : "highWaterMark";
|
|
5114
|
-
throw new ERR_INVALID_OPT_VALUE(name2, hwm);
|
|
5115
|
-
}
|
|
5116
|
-
return Math.floor(hwm);
|
|
5117
|
-
}
|
|
5118
|
-
return state2.objectMode ? 16 : 16 * 1024;
|
|
5119
|
-
}
|
|
5120
|
-
state = {
|
|
5121
|
-
getHighWaterMark
|
|
5122
|
-
};
|
|
5123
|
-
return state;
|
|
5019
|
+
} else {
|
|
5020
|
+
return "of ".concat(thing, " ").concat(String(expected));
|
|
5021
|
+
}
|
|
5124
5022
|
}
|
|
5023
|
+
function startsWith(str, search, pos) {
|
|
5024
|
+
return str.substr(0, search.length) === search;
|
|
5025
|
+
}
|
|
5026
|
+
function endsWith(str, search, this_len) {
|
|
5027
|
+
if (this_len === void 0 || this_len > str.length) {
|
|
5028
|
+
this_len = str.length;
|
|
5029
|
+
}
|
|
5030
|
+
return str.substring(this_len - search.length, this_len) === search;
|
|
5031
|
+
}
|
|
5032
|
+
function includes(str, search, start) {
|
|
5033
|
+
if (typeof start !== "number") {
|
|
5034
|
+
start = 0;
|
|
5035
|
+
}
|
|
5036
|
+
if (start + search.length > str.length) {
|
|
5037
|
+
return false;
|
|
5038
|
+
} else {
|
|
5039
|
+
return str.indexOf(search, start) !== -1;
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
createErrorType("ERR_INVALID_OPT_VALUE", function(name2, value) {
|
|
5043
|
+
return 'The value "' + value + '" is invalid for option "' + name2 + '"';
|
|
5044
|
+
}, TypeError);
|
|
5045
|
+
createErrorType("ERR_INVALID_ARG_TYPE", function(name2, expected, actual) {
|
|
5046
|
+
var determiner;
|
|
5047
|
+
if (typeof expected === "string" && startsWith(expected, "not ")) {
|
|
5048
|
+
determiner = "must not be";
|
|
5049
|
+
expected = expected.replace(/^not /, "");
|
|
5050
|
+
} else {
|
|
5051
|
+
determiner = "must be";
|
|
5052
|
+
}
|
|
5053
|
+
var msg;
|
|
5054
|
+
if (endsWith(name2, " argument")) {
|
|
5055
|
+
msg = "The ".concat(name2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5056
|
+
} else {
|
|
5057
|
+
var type2 = includes(name2, ".") ? "property" : "argument";
|
|
5058
|
+
msg = 'The "'.concat(name2, '" ').concat(type2, " ").concat(determiner, " ").concat(oneOf(expected, "type"));
|
|
5059
|
+
}
|
|
5060
|
+
msg += ". Received type ".concat(typeof actual);
|
|
5061
|
+
return msg;
|
|
5062
|
+
}, TypeError);
|
|
5063
|
+
createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF");
|
|
5064
|
+
createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name2) {
|
|
5065
|
+
return "The " + name2 + " method is not implemented";
|
|
5066
|
+
});
|
|
5067
|
+
createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close");
|
|
5068
|
+
createErrorType("ERR_STREAM_DESTROYED", function(name2) {
|
|
5069
|
+
return "Cannot call " + name2 + " after a stream was destroyed";
|
|
5070
|
+
});
|
|
5071
|
+
createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
|
|
5072
|
+
createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable");
|
|
5073
|
+
createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
|
5074
|
+
createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError);
|
|
5075
|
+
createErrorType("ERR_UNKNOWN_ENCODING", function(arg) {
|
|
5076
|
+
return "Unknown encoding: " + arg;
|
|
5077
|
+
}, TypeError);
|
|
5078
|
+
createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event");
|
|
5079
|
+
errorsBrowser.codes = codes;
|
|
5080
|
+
var ERR_INVALID_OPT_VALUE = errorsBrowser.codes.ERR_INVALID_OPT_VALUE;
|
|
5081
|
+
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
5082
|
+
return options2.highWaterMark != null ? options2.highWaterMark : isDuplex ? options2[duplexKey] : null;
|
|
5083
|
+
}
|
|
5084
|
+
function getHighWaterMark(state2, options2, duplexKey, isDuplex) {
|
|
5085
|
+
var hwm = highWaterMarkFrom(options2, isDuplex, duplexKey);
|
|
5086
|
+
if (hwm != null) {
|
|
5087
|
+
if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
|
|
5088
|
+
var name2 = isDuplex ? duplexKey : "highWaterMark";
|
|
5089
|
+
throw new ERR_INVALID_OPT_VALUE(name2, hwm);
|
|
5090
|
+
}
|
|
5091
|
+
return Math.floor(hwm);
|
|
5092
|
+
}
|
|
5093
|
+
return state2.objectMode ? 16 : 16 * 1024;
|
|
5094
|
+
}
|
|
5095
|
+
var state = {
|
|
5096
|
+
getHighWaterMark
|
|
5097
|
+
};
|
|
5125
5098
|
var browser$b = deprecate;
|
|
5126
5099
|
function deprecate(fn, msg) {
|
|
5127
5100
|
if (config$1("noDeprecation")) {
|
|
@@ -5172,7 +5145,7 @@ function require_stream_writable$1() {
|
|
|
5172
5145
|
var internalUtil = {
|
|
5173
5146
|
deprecate: browser$b
|
|
5174
5147
|
};
|
|
5175
|
-
var Stream2 =
|
|
5148
|
+
var Stream2 = streamBrowser$1;
|
|
5176
5149
|
var Buffer2 = dist.Buffer;
|
|
5177
5150
|
var OurUint8Array = (typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
5178
5151
|
};
|
|
@@ -5182,10 +5155,10 @@ function require_stream_writable$1() {
|
|
|
5182
5155
|
function _isUint8Array(obj) {
|
|
5183
5156
|
return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
|
|
5184
5157
|
}
|
|
5185
|
-
var destroyImpl =
|
|
5186
|
-
var _require =
|
|
5187
|
-
var _require$
|
|
5188
|
-
var
|
|
5158
|
+
var destroyImpl = destroy_1$1;
|
|
5159
|
+
var _require = state, getHighWaterMark2 = _require.getHighWaterMark;
|
|
5160
|
+
var _require$codes2 = errorsBrowser.codes, ERR_INVALID_ARG_TYPE = _require$codes2.ERR_INVALID_ARG_TYPE, ERR_METHOD_NOT_IMPLEMENTED2 = _require$codes2.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK2 = _require$codes2.ERR_MULTIPLE_CALLBACK, ERR_STREAM_CANNOT_PIPE = _require$codes2.ERR_STREAM_CANNOT_PIPE, ERR_STREAM_DESTROYED2 = _require$codes2.ERR_STREAM_DESTROYED, ERR_STREAM_NULL_VALUES = _require$codes2.ERR_STREAM_NULL_VALUES, ERR_STREAM_WRITE_AFTER_END = _require$codes2.ERR_STREAM_WRITE_AFTER_END, ERR_UNKNOWN_ENCODING = _require$codes2.ERR_UNKNOWN_ENCODING;
|
|
5161
|
+
var errorOrDestroy2 = destroyImpl.errorOrDestroy;
|
|
5189
5162
|
inherits_browserExports(Writable, Stream2);
|
|
5190
5163
|
function nop() {
|
|
5191
5164
|
}
|
|
@@ -5195,7 +5168,7 @@ function require_stream_writable$1() {
|
|
|
5195
5168
|
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex2;
|
|
5196
5169
|
this.objectMode = !!options2.objectMode;
|
|
5197
5170
|
if (isDuplex) this.objectMode = this.objectMode || !!options2.writableObjectMode;
|
|
5198
|
-
this.highWaterMark =
|
|
5171
|
+
this.highWaterMark = getHighWaterMark2(this, options2, "writableHighWaterMark", isDuplex);
|
|
5199
5172
|
this.finalCalled = false;
|
|
5200
5173
|
this.needDrain = false;
|
|
5201
5174
|
this.ending = false;
|
|
@@ -5274,11 +5247,11 @@ function require_stream_writable$1() {
|
|
|
5274
5247
|
Stream2.call(this);
|
|
5275
5248
|
}
|
|
5276
5249
|
Writable.prototype.pipe = function() {
|
|
5277
|
-
|
|
5250
|
+
errorOrDestroy2(this, new ERR_STREAM_CANNOT_PIPE());
|
|
5278
5251
|
};
|
|
5279
5252
|
function writeAfterEnd(stream, cb) {
|
|
5280
5253
|
var er = new ERR_STREAM_WRITE_AFTER_END();
|
|
5281
|
-
|
|
5254
|
+
errorOrDestroy2(stream, er);
|
|
5282
5255
|
process$1.nextTick(cb, er);
|
|
5283
5256
|
}
|
|
5284
5257
|
function validChunk(stream, state2, chunk, cb) {
|
|
@@ -5289,7 +5262,7 @@ function require_stream_writable$1() {
|
|
|
5289
5262
|
er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk);
|
|
5290
5263
|
}
|
|
5291
5264
|
if (er) {
|
|
5292
|
-
|
|
5265
|
+
errorOrDestroy2(stream, er);
|
|
5293
5266
|
process$1.nextTick(cb, er);
|
|
5294
5267
|
return false;
|
|
5295
5268
|
}
|
|
@@ -5394,7 +5367,7 @@ function require_stream_writable$1() {
|
|
|
5394
5367
|
state2.writecb = cb;
|
|
5395
5368
|
state2.writing = true;
|
|
5396
5369
|
state2.sync = true;
|
|
5397
|
-
if (state2.destroyed) state2.onwrite(new
|
|
5370
|
+
if (state2.destroyed) state2.onwrite(new ERR_STREAM_DESTROYED2("write"));
|
|
5398
5371
|
else if (writev) stream._writev(chunk, state2.onwrite);
|
|
5399
5372
|
else stream._write(chunk, encoding, state2.onwrite);
|
|
5400
5373
|
state2.sync = false;
|
|
@@ -5405,11 +5378,11 @@ function require_stream_writable$1() {
|
|
|
5405
5378
|
process$1.nextTick(cb, er);
|
|
5406
5379
|
process$1.nextTick(finishMaybe, stream, state2);
|
|
5407
5380
|
stream._writableState.errorEmitted = true;
|
|
5408
|
-
|
|
5381
|
+
errorOrDestroy2(stream, er);
|
|
5409
5382
|
} else {
|
|
5410
5383
|
cb(er);
|
|
5411
5384
|
stream._writableState.errorEmitted = true;
|
|
5412
|
-
|
|
5385
|
+
errorOrDestroy2(stream, er);
|
|
5413
5386
|
finishMaybe(stream, state2);
|
|
5414
5387
|
}
|
|
5415
5388
|
}
|
|
@@ -5423,7 +5396,7 @@ function require_stream_writable$1() {
|
|
|
5423
5396
|
var state2 = stream._writableState;
|
|
5424
5397
|
var sync2 = state2.sync;
|
|
5425
5398
|
var cb = state2.writecb;
|
|
5426
|
-
if (typeof cb !== "function") throw new
|
|
5399
|
+
if (typeof cb !== "function") throw new ERR_MULTIPLE_CALLBACK2();
|
|
5427
5400
|
onwriteStateUpdate(state2);
|
|
5428
5401
|
if (er) onwriteError(stream, state2, sync2, er, cb);
|
|
5429
5402
|
else {
|
|
@@ -5496,7 +5469,7 @@ function require_stream_writable$1() {
|
|
|
5496
5469
|
state2.bufferProcessing = false;
|
|
5497
5470
|
}
|
|
5498
5471
|
Writable.prototype._write = function(chunk, encoding, cb) {
|
|
5499
|
-
cb(new
|
|
5472
|
+
cb(new ERR_METHOD_NOT_IMPLEMENTED2("_write()"));
|
|
5500
5473
|
};
|
|
5501
5474
|
Writable.prototype._writev = null;
|
|
5502
5475
|
Writable.prototype.end = function(chunk, encoding, cb) {
|
|
@@ -5533,7 +5506,7 @@ function require_stream_writable$1() {
|
|
|
5533
5506
|
stream._final(function(err) {
|
|
5534
5507
|
state2.pendingcb--;
|
|
5535
5508
|
if (err) {
|
|
5536
|
-
|
|
5509
|
+
errorOrDestroy2(stream, err);
|
|
5537
5510
|
}
|
|
5538
5511
|
state2.prefinished = true;
|
|
5539
5512
|
stream.emit("prefinish");
|
|
@@ -5937,95 +5910,88 @@ function simpleWrite(buf) {
|
|
|
5937
5910
|
function simpleEnd(buf) {
|
|
5938
5911
|
return buf && buf.length ? this.write(buf) : "";
|
|
5939
5912
|
}
|
|
5940
|
-
var
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
if (!
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
if (
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
stream.
|
|
6010
|
-
stream.
|
|
6011
|
-
|
|
6012
|
-
stream.
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
stream.removeListener("finish", onfinish);
|
|
6021
|
-
stream.removeListener("end", onend);
|
|
6022
|
-
stream.removeListener("error", onerror);
|
|
6023
|
-
stream.removeListener("close", onclose);
|
|
6024
|
-
};
|
|
6025
|
-
}
|
|
6026
|
-
endOfStream = eos;
|
|
6027
|
-
return endOfStream;
|
|
5913
|
+
var ERR_STREAM_PREMATURE_CLOSE = errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
5914
|
+
function once$1(callback) {
|
|
5915
|
+
var called = false;
|
|
5916
|
+
return function() {
|
|
5917
|
+
if (called) return;
|
|
5918
|
+
called = true;
|
|
5919
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5920
|
+
args[_key] = arguments[_key];
|
|
5921
|
+
}
|
|
5922
|
+
callback.apply(this, args);
|
|
5923
|
+
};
|
|
5924
|
+
}
|
|
5925
|
+
function noop$1() {
|
|
5926
|
+
}
|
|
5927
|
+
function isRequest$1(stream) {
|
|
5928
|
+
return stream.setHeader && typeof stream.abort === "function";
|
|
5929
|
+
}
|
|
5930
|
+
function eos$1(stream, opts, callback) {
|
|
5931
|
+
if (typeof opts === "function") return eos$1(stream, null, opts);
|
|
5932
|
+
if (!opts) opts = {};
|
|
5933
|
+
callback = once$1(callback || noop$1);
|
|
5934
|
+
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
5935
|
+
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
5936
|
+
var onlegacyfinish = function onlegacyfinish2() {
|
|
5937
|
+
if (!stream.writable) onfinish();
|
|
5938
|
+
};
|
|
5939
|
+
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
5940
|
+
var onfinish = function onfinish2() {
|
|
5941
|
+
writable = false;
|
|
5942
|
+
writableEnded = true;
|
|
5943
|
+
if (!readable) callback.call(stream);
|
|
5944
|
+
};
|
|
5945
|
+
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
5946
|
+
var onend = function onend2() {
|
|
5947
|
+
readable = false;
|
|
5948
|
+
readableEnded = true;
|
|
5949
|
+
if (!writable) callback.call(stream);
|
|
5950
|
+
};
|
|
5951
|
+
var onerror = function onerror2(err) {
|
|
5952
|
+
callback.call(stream, err);
|
|
5953
|
+
};
|
|
5954
|
+
var onclose = function onclose2() {
|
|
5955
|
+
var err;
|
|
5956
|
+
if (readable && !readableEnded) {
|
|
5957
|
+
if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
5958
|
+
return callback.call(stream, err);
|
|
5959
|
+
}
|
|
5960
|
+
if (writable && !writableEnded) {
|
|
5961
|
+
if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
5962
|
+
return callback.call(stream, err);
|
|
5963
|
+
}
|
|
5964
|
+
};
|
|
5965
|
+
var onrequest = function onrequest2() {
|
|
5966
|
+
stream.req.on("finish", onfinish);
|
|
5967
|
+
};
|
|
5968
|
+
if (isRequest$1(stream)) {
|
|
5969
|
+
stream.on("complete", onfinish);
|
|
5970
|
+
stream.on("abort", onclose);
|
|
5971
|
+
if (stream.req) onrequest();
|
|
5972
|
+
else stream.on("request", onrequest);
|
|
5973
|
+
} else if (writable && !stream._writableState) {
|
|
5974
|
+
stream.on("end", onlegacyfinish);
|
|
5975
|
+
stream.on("close", onlegacyfinish);
|
|
5976
|
+
}
|
|
5977
|
+
stream.on("end", onend);
|
|
5978
|
+
stream.on("finish", onfinish);
|
|
5979
|
+
if (opts.error !== false) stream.on("error", onerror);
|
|
5980
|
+
stream.on("close", onclose);
|
|
5981
|
+
return function() {
|
|
5982
|
+
stream.removeListener("complete", onfinish);
|
|
5983
|
+
stream.removeListener("abort", onclose);
|
|
5984
|
+
stream.removeListener("request", onrequest);
|
|
5985
|
+
if (stream.req) stream.req.removeListener("finish", onfinish);
|
|
5986
|
+
stream.removeListener("end", onlegacyfinish);
|
|
5987
|
+
stream.removeListener("close", onlegacyfinish);
|
|
5988
|
+
stream.removeListener("finish", onfinish);
|
|
5989
|
+
stream.removeListener("end", onend);
|
|
5990
|
+
stream.removeListener("error", onerror);
|
|
5991
|
+
stream.removeListener("close", onclose);
|
|
5992
|
+
};
|
|
6028
5993
|
}
|
|
5994
|
+
var endOfStream = eos$1;
|
|
6029
5995
|
var async_iterator;
|
|
6030
5996
|
var hasRequiredAsync_iterator;
|
|
6031
5997
|
function requireAsync_iterator() {
|
|
@@ -6055,7 +6021,7 @@ function requireAsync_iterator() {
|
|
|
6055
6021
|
}
|
|
6056
6022
|
return (hint === "string" ? String : Number)(input);
|
|
6057
6023
|
}
|
|
6058
|
-
var finished =
|
|
6024
|
+
var finished = endOfStream;
|
|
6059
6025
|
var kLastResolve = Symbol("lastResolve");
|
|
6060
6026
|
var kLastReject = Symbol("lastReject");
|
|
6061
6027
|
var kError = Symbol("error");
|
|
@@ -6231,7 +6197,7 @@ function require_stream_readable$1() {
|
|
|
6231
6197
|
var EElistenerCount = function EElistenerCount2(emitter, type2) {
|
|
6232
6198
|
return emitter.listeners(type2).length;
|
|
6233
6199
|
};
|
|
6234
|
-
var Stream2 =
|
|
6200
|
+
var Stream2 = streamBrowser$1;
|
|
6235
6201
|
var Buffer2 = dist.Buffer;
|
|
6236
6202
|
var OurUint8Array = (typeof commonjsGlobal !== "undefined" ? commonjsGlobal : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
6237
6203
|
};
|
|
@@ -6250,14 +6216,14 @@ function require_stream_readable$1() {
|
|
|
6250
6216
|
};
|
|
6251
6217
|
}
|
|
6252
6218
|
var BufferList2 = requireBuffer_list();
|
|
6253
|
-
var destroyImpl =
|
|
6254
|
-
var _require =
|
|
6255
|
-
var _require$
|
|
6219
|
+
var destroyImpl = destroy_1$1;
|
|
6220
|
+
var _require = state, getHighWaterMark2 = _require.getHighWaterMark;
|
|
6221
|
+
var _require$codes2 = errorsBrowser.codes, ERR_INVALID_ARG_TYPE = _require$codes2.ERR_INVALID_ARG_TYPE, ERR_STREAM_PUSH_AFTER_EOF = _require$codes2.ERR_STREAM_PUSH_AFTER_EOF, ERR_METHOD_NOT_IMPLEMENTED2 = _require$codes2.ERR_METHOD_NOT_IMPLEMENTED, ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes2.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
6256
6222
|
var StringDecoder2;
|
|
6257
6223
|
var createReadableStreamAsyncIterator;
|
|
6258
6224
|
var from;
|
|
6259
6225
|
inherits_browserExports(Readable, Stream2);
|
|
6260
|
-
var
|
|
6226
|
+
var errorOrDestroy2 = destroyImpl.errorOrDestroy;
|
|
6261
6227
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
6262
6228
|
function prependListener2(emitter, event, fn) {
|
|
6263
6229
|
if (typeof emitter.prependListener === "function") return emitter.prependListener(event, fn);
|
|
@@ -6271,7 +6237,7 @@ function require_stream_readable$1() {
|
|
|
6271
6237
|
if (typeof isDuplex !== "boolean") isDuplex = stream instanceof Duplex2;
|
|
6272
6238
|
this.objectMode = !!options2.objectMode;
|
|
6273
6239
|
if (isDuplex) this.objectMode = this.objectMode || !!options2.readableObjectMode;
|
|
6274
|
-
this.highWaterMark =
|
|
6240
|
+
this.highWaterMark = getHighWaterMark2(this, options2, "readableHighWaterMark", isDuplex);
|
|
6275
6241
|
this.buffer = new BufferList2();
|
|
6276
6242
|
this.length = 0;
|
|
6277
6243
|
this.pipes = null;
|
|
@@ -6365,16 +6331,16 @@ function require_stream_readable$1() {
|
|
|
6365
6331
|
var er;
|
|
6366
6332
|
if (!skipChunkCheck) er = chunkInvalid(state2, chunk);
|
|
6367
6333
|
if (er) {
|
|
6368
|
-
|
|
6334
|
+
errorOrDestroy2(stream, er);
|
|
6369
6335
|
} else if (state2.objectMode || chunk && chunk.length > 0) {
|
|
6370
6336
|
if (typeof chunk !== "string" && !state2.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) {
|
|
6371
6337
|
chunk = _uint8ArrayToBuffer(chunk);
|
|
6372
6338
|
}
|
|
6373
6339
|
if (addToFront) {
|
|
6374
|
-
if (state2.endEmitted)
|
|
6340
|
+
if (state2.endEmitted) errorOrDestroy2(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());
|
|
6375
6341
|
else addChunk(stream, state2, chunk, true);
|
|
6376
6342
|
} else if (state2.ended) {
|
|
6377
|
-
|
|
6343
|
+
errorOrDestroy2(stream, new ERR_STREAM_PUSH_AFTER_EOF());
|
|
6378
6344
|
} else if (state2.destroyed) {
|
|
6379
6345
|
return false;
|
|
6380
6346
|
} else {
|
|
@@ -6572,7 +6538,7 @@ function require_stream_readable$1() {
|
|
|
6572
6538
|
state2.readingMore = false;
|
|
6573
6539
|
}
|
|
6574
6540
|
Readable.prototype._read = function(n) {
|
|
6575
|
-
|
|
6541
|
+
errorOrDestroy2(this, new ERR_METHOD_NOT_IMPLEMENTED2("_read()"));
|
|
6576
6542
|
};
|
|
6577
6543
|
Readable.prototype.pipe = function(dest, pipeOpts) {
|
|
6578
6544
|
var src = this;
|
|
@@ -6641,7 +6607,7 @@ function require_stream_readable$1() {
|
|
|
6641
6607
|
debug("onerror", er);
|
|
6642
6608
|
unpipe();
|
|
6643
6609
|
dest.removeListener("error", onerror);
|
|
6644
|
-
if (EElistenerCount(dest, "error") === 0)
|
|
6610
|
+
if (EElistenerCount(dest, "error") === 0) errorOrDestroy2(dest, er);
|
|
6645
6611
|
}
|
|
6646
6612
|
prependListener2(dest, "error", onerror);
|
|
6647
6613
|
function onclose() {
|
|
@@ -6947,213 +6913,192 @@ function require_stream_readable$1() {
|
|
|
6947
6913
|
}
|
|
6948
6914
|
return _stream_readable$1;
|
|
6949
6915
|
}
|
|
6950
|
-
var _stream_transform$1;
|
|
6951
|
-
var
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
var
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
var ts = this._transformState;
|
|
6961
|
-
ts.transforming = false;
|
|
6962
|
-
var cb = ts.writecb;
|
|
6963
|
-
if (cb === null) {
|
|
6964
|
-
return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
6965
|
-
}
|
|
6966
|
-
ts.writechunk = null;
|
|
6967
|
-
ts.writecb = null;
|
|
6968
|
-
if (data != null)
|
|
6969
|
-
this.push(data);
|
|
6970
|
-
cb(er);
|
|
6971
|
-
var rs = this._readableState;
|
|
6972
|
-
rs.reading = false;
|
|
6973
|
-
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
|
6974
|
-
this._read(rs.highWaterMark);
|
|
6975
|
-
}
|
|
6976
|
-
}
|
|
6977
|
-
function Transform2(options2) {
|
|
6978
|
-
if (!(this instanceof Transform2)) return new Transform2(options2);
|
|
6979
|
-
Duplex2.call(this, options2);
|
|
6980
|
-
this._transformState = {
|
|
6981
|
-
afterTransform: afterTransform2.bind(this),
|
|
6982
|
-
needTransform: false,
|
|
6983
|
-
transforming: false,
|
|
6984
|
-
writecb: null,
|
|
6985
|
-
writechunk: null,
|
|
6986
|
-
writeencoding: null
|
|
6987
|
-
};
|
|
6988
|
-
this._readableState.needReadable = true;
|
|
6989
|
-
this._readableState.sync = false;
|
|
6990
|
-
if (options2) {
|
|
6991
|
-
if (typeof options2.transform === "function") this._transform = options2.transform;
|
|
6992
|
-
if (typeof options2.flush === "function") this._flush = options2.flush;
|
|
6993
|
-
}
|
|
6994
|
-
this.on("prefinish", prefinish2);
|
|
6916
|
+
var _stream_transform$1 = Transform$9;
|
|
6917
|
+
var _require$codes$1 = errorsBrowser.codes, ERR_METHOD_NOT_IMPLEMENTED = _require$codes$1.ERR_METHOD_NOT_IMPLEMENTED, ERR_MULTIPLE_CALLBACK = _require$codes$1.ERR_MULTIPLE_CALLBACK, ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes$1.ERR_TRANSFORM_ALREADY_TRANSFORMING, ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes$1.ERR_TRANSFORM_WITH_LENGTH_0;
|
|
6918
|
+
var Duplex$1 = require_stream_duplex$1();
|
|
6919
|
+
inherits_browserExports(Transform$9, Duplex$1);
|
|
6920
|
+
function afterTransform$1(er, data) {
|
|
6921
|
+
var ts = this._transformState;
|
|
6922
|
+
ts.transforming = false;
|
|
6923
|
+
var cb = ts.writecb;
|
|
6924
|
+
if (cb === null) {
|
|
6925
|
+
return this.emit("error", new ERR_MULTIPLE_CALLBACK());
|
|
6995
6926
|
}
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
6927
|
+
ts.writechunk = null;
|
|
6928
|
+
ts.writecb = null;
|
|
6929
|
+
if (data != null)
|
|
6930
|
+
this.push(data);
|
|
6931
|
+
cb(er);
|
|
6932
|
+
var rs = this._readableState;
|
|
6933
|
+
rs.reading = false;
|
|
6934
|
+
if (rs.needReadable || rs.length < rs.highWaterMark) {
|
|
6935
|
+
this._read(rs.highWaterMark);
|
|
7005
6936
|
}
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
ts.writeencoding = encoding;
|
|
7018
|
-
if (!ts.transforming) {
|
|
7019
|
-
var rs = this._readableState;
|
|
7020
|
-
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
7021
|
-
}
|
|
7022
|
-
};
|
|
7023
|
-
Transform2.prototype._read = function(n) {
|
|
7024
|
-
var ts = this._transformState;
|
|
7025
|
-
if (ts.writechunk !== null && !ts.transforming) {
|
|
7026
|
-
ts.transforming = true;
|
|
7027
|
-
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
7028
|
-
} else {
|
|
7029
|
-
ts.needTransform = true;
|
|
7030
|
-
}
|
|
6937
|
+
}
|
|
6938
|
+
function Transform$9(options2) {
|
|
6939
|
+
if (!(this instanceof Transform$9)) return new Transform$9(options2);
|
|
6940
|
+
Duplex$1.call(this, options2);
|
|
6941
|
+
this._transformState = {
|
|
6942
|
+
afterTransform: afterTransform$1.bind(this),
|
|
6943
|
+
needTransform: false,
|
|
6944
|
+
transforming: false,
|
|
6945
|
+
writecb: null,
|
|
6946
|
+
writechunk: null,
|
|
6947
|
+
writeencoding: null
|
|
7031
6948
|
};
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
6949
|
+
this._readableState.needReadable = true;
|
|
6950
|
+
this._readableState.sync = false;
|
|
6951
|
+
if (options2) {
|
|
6952
|
+
if (typeof options2.transform === "function") this._transform = options2.transform;
|
|
6953
|
+
if (typeof options2.flush === "function") this._flush = options2.flush;
|
|
6954
|
+
}
|
|
6955
|
+
this.on("prefinish", prefinish$1);
|
|
6956
|
+
}
|
|
6957
|
+
function prefinish$1() {
|
|
6958
|
+
var _this = this;
|
|
6959
|
+
if (typeof this._flush === "function" && !this._readableState.destroyed) {
|
|
6960
|
+
this._flush(function(er, data) {
|
|
6961
|
+
done$1(_this, er, data);
|
|
7035
6962
|
});
|
|
7036
|
-
}
|
|
7037
|
-
|
|
7038
|
-
if (er) return stream.emit("error", er);
|
|
7039
|
-
if (data != null)
|
|
7040
|
-
stream.push(data);
|
|
7041
|
-
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
|
7042
|
-
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
7043
|
-
return stream.push(null);
|
|
7044
|
-
}
|
|
7045
|
-
return _stream_transform$1;
|
|
7046
|
-
}
|
|
7047
|
-
var _stream_passthrough$1;
|
|
7048
|
-
var hasRequired_stream_passthrough;
|
|
7049
|
-
function require_stream_passthrough() {
|
|
7050
|
-
if (hasRequired_stream_passthrough) return _stream_passthrough$1;
|
|
7051
|
-
hasRequired_stream_passthrough = 1;
|
|
7052
|
-
_stream_passthrough$1 = PassThrough2;
|
|
7053
|
-
var Transform2 = require_stream_transform();
|
|
7054
|
-
inherits_browserExports(PassThrough2, Transform2);
|
|
7055
|
-
function PassThrough2(options2) {
|
|
7056
|
-
if (!(this instanceof PassThrough2)) return new PassThrough2(options2);
|
|
7057
|
-
Transform2.call(this, options2);
|
|
7058
|
-
}
|
|
7059
|
-
PassThrough2.prototype._transform = function(chunk, encoding, cb) {
|
|
7060
|
-
cb(null, chunk);
|
|
7061
|
-
};
|
|
7062
|
-
return _stream_passthrough$1;
|
|
7063
|
-
}
|
|
7064
|
-
var pipeline_1;
|
|
7065
|
-
var hasRequiredPipeline;
|
|
7066
|
-
function requirePipeline() {
|
|
7067
|
-
if (hasRequiredPipeline) return pipeline_1;
|
|
7068
|
-
hasRequiredPipeline = 1;
|
|
7069
|
-
var eos;
|
|
7070
|
-
function once3(callback) {
|
|
7071
|
-
var called = false;
|
|
7072
|
-
return function() {
|
|
7073
|
-
if (called) return;
|
|
7074
|
-
called = true;
|
|
7075
|
-
callback.apply(void 0, arguments);
|
|
7076
|
-
};
|
|
6963
|
+
} else {
|
|
6964
|
+
done$1(this, null, null);
|
|
7077
6965
|
}
|
|
7078
|
-
|
|
7079
|
-
|
|
7080
|
-
|
|
6966
|
+
}
|
|
6967
|
+
Transform$9.prototype.push = function(chunk, encoding) {
|
|
6968
|
+
this._transformState.needTransform = false;
|
|
6969
|
+
return Duplex$1.prototype.push.call(this, chunk, encoding);
|
|
6970
|
+
};
|
|
6971
|
+
Transform$9.prototype._transform = function(chunk, encoding, cb) {
|
|
6972
|
+
cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()"));
|
|
6973
|
+
};
|
|
6974
|
+
Transform$9.prototype._write = function(chunk, encoding, cb) {
|
|
6975
|
+
var ts = this._transformState;
|
|
6976
|
+
ts.writecb = cb;
|
|
6977
|
+
ts.writechunk = chunk;
|
|
6978
|
+
ts.writeencoding = encoding;
|
|
6979
|
+
if (!ts.transforming) {
|
|
6980
|
+
var rs = this._readableState;
|
|
6981
|
+
if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
|
|
7081
6982
|
}
|
|
7082
|
-
|
|
7083
|
-
|
|
6983
|
+
};
|
|
6984
|
+
Transform$9.prototype._read = function(n) {
|
|
6985
|
+
var ts = this._transformState;
|
|
6986
|
+
if (ts.writechunk !== null && !ts.transforming) {
|
|
6987
|
+
ts.transforming = true;
|
|
6988
|
+
this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
|
|
6989
|
+
} else {
|
|
6990
|
+
ts.needTransform = true;
|
|
7084
6991
|
}
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
6992
|
+
};
|
|
6993
|
+
Transform$9.prototype._destroy = function(err, cb) {
|
|
6994
|
+
Duplex$1.prototype._destroy.call(this, err, function(err2) {
|
|
6995
|
+
cb(err2);
|
|
6996
|
+
});
|
|
6997
|
+
};
|
|
6998
|
+
function done$1(stream, er, data) {
|
|
6999
|
+
if (er) return stream.emit("error", er);
|
|
7000
|
+
if (data != null)
|
|
7001
|
+
stream.push(data);
|
|
7002
|
+
if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
|
|
7003
|
+
if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
|
|
7004
|
+
return stream.push(null);
|
|
7005
|
+
}
|
|
7006
|
+
var _stream_passthrough$1 = PassThrough$1;
|
|
7007
|
+
var Transform$8 = _stream_transform$1;
|
|
7008
|
+
inherits_browserExports(PassThrough$1, Transform$8);
|
|
7009
|
+
function PassThrough$1(options2) {
|
|
7010
|
+
if (!(this instanceof PassThrough$1)) return new PassThrough$1(options2);
|
|
7011
|
+
Transform$8.call(this, options2);
|
|
7012
|
+
}
|
|
7013
|
+
PassThrough$1.prototype._transform = function(chunk, encoding, cb) {
|
|
7014
|
+
cb(null, chunk);
|
|
7015
|
+
};
|
|
7016
|
+
var eos;
|
|
7017
|
+
function once(callback) {
|
|
7018
|
+
var called = false;
|
|
7019
|
+
return function() {
|
|
7020
|
+
if (called) return;
|
|
7021
|
+
called = true;
|
|
7022
|
+
callback.apply(void 0, arguments);
|
|
7023
|
+
};
|
|
7024
|
+
}
|
|
7025
|
+
var _require$codes = errorsBrowser.codes, ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
7026
|
+
function noop(err) {
|
|
7027
|
+
if (err) throw err;
|
|
7028
|
+
}
|
|
7029
|
+
function isRequest(stream) {
|
|
7030
|
+
return stream.setHeader && typeof stream.abort === "function";
|
|
7031
|
+
}
|
|
7032
|
+
function destroyer(stream, reading, writing, callback) {
|
|
7033
|
+
callback = once(callback);
|
|
7034
|
+
var closed = false;
|
|
7035
|
+
stream.on("close", function() {
|
|
7036
|
+
closed = true;
|
|
7037
|
+
});
|
|
7038
|
+
if (eos === void 0) eos = endOfStream;
|
|
7039
|
+
eos(stream, {
|
|
7040
|
+
readable: reading,
|
|
7041
|
+
writable: writing
|
|
7042
|
+
}, function(err) {
|
|
7043
|
+
if (err) return callback(err);
|
|
7044
|
+
closed = true;
|
|
7045
|
+
callback();
|
|
7046
|
+
});
|
|
7047
|
+
var destroyed = false;
|
|
7048
|
+
return function(err) {
|
|
7049
|
+
if (closed) return;
|
|
7050
|
+
if (destroyed) return;
|
|
7051
|
+
destroyed = true;
|
|
7052
|
+
if (isRequest(stream)) return stream.abort();
|
|
7053
|
+
if (typeof stream.destroy === "function") return stream.destroy();
|
|
7054
|
+
callback(err || new ERR_STREAM_DESTROYED("pipe"));
|
|
7055
|
+
};
|
|
7056
|
+
}
|
|
7057
|
+
function call(fn) {
|
|
7058
|
+
fn();
|
|
7059
|
+
}
|
|
7060
|
+
function pipe(from, to) {
|
|
7061
|
+
return from.pipe(to);
|
|
7062
|
+
}
|
|
7063
|
+
function popCallback(streams) {
|
|
7064
|
+
if (!streams.length) return noop;
|
|
7065
|
+
if (typeof streams[streams.length - 1] !== "function") return noop;
|
|
7066
|
+
return streams.pop();
|
|
7067
|
+
}
|
|
7068
|
+
function pipeline() {
|
|
7069
|
+
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7070
|
+
streams[_key] = arguments[_key];
|
|
7071
|
+
}
|
|
7072
|
+
var callback = popCallback(streams);
|
|
7073
|
+
if (Array.isArray(streams[0])) streams = streams[0];
|
|
7074
|
+
if (streams.length < 2) {
|
|
7075
|
+
throw new ERR_MISSING_ARGS("streams");
|
|
7076
|
+
}
|
|
7077
|
+
var error2;
|
|
7078
|
+
var destroys = streams.map(function(stream, i) {
|
|
7079
|
+
var reading = i < streams.length - 1;
|
|
7080
|
+
var writing = i > 0;
|
|
7081
|
+
return destroyer(stream, reading, writing, function(err) {
|
|
7082
|
+
if (!error2) error2 = err;
|
|
7083
|
+
if (err) destroys.forEach(call);
|
|
7084
|
+
if (reading) return;
|
|
7085
|
+
destroys.forEach(call);
|
|
7086
|
+
callback(error2);
|
|
7141
7087
|
});
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
pipeline_1 = pipeline;
|
|
7145
|
-
return pipeline_1;
|
|
7088
|
+
});
|
|
7089
|
+
return streams.reduce(pipe);
|
|
7146
7090
|
}
|
|
7091
|
+
var pipeline_1 = pipeline;
|
|
7147
7092
|
(function(module2, exports2) {
|
|
7148
7093
|
exports2 = module2.exports = require_stream_readable$1();
|
|
7149
7094
|
exports2.Stream = exports2;
|
|
7150
7095
|
exports2.Readable = exports2;
|
|
7151
7096
|
exports2.Writable = require_stream_writable$1();
|
|
7152
7097
|
exports2.Duplex = require_stream_duplex$1();
|
|
7153
|
-
exports2.Transform =
|
|
7154
|
-
exports2.PassThrough =
|
|
7155
|
-
exports2.finished =
|
|
7156
|
-
exports2.pipeline =
|
|
7098
|
+
exports2.Transform = _stream_transform$1;
|
|
7099
|
+
exports2.PassThrough = _stream_passthrough$1;
|
|
7100
|
+
exports2.finished = endOfStream;
|
|
7101
|
+
exports2.pipeline = pipeline_1;
|
|
7157
7102
|
})(readableBrowser$1, readableBrowser$1.exports);
|
|
7158
7103
|
var readableBrowserExports$1 = readableBrowser$1.exports;
|
|
7159
7104
|
var Buffer$z = safeBufferExports$1.Buffer;
|
|
@@ -8564,10 +8509,10 @@ inherits$h(Stream, EE);
|
|
|
8564
8509
|
Stream.Readable = require_stream_readable$1();
|
|
8565
8510
|
Stream.Writable = require_stream_writable$1();
|
|
8566
8511
|
Stream.Duplex = require_stream_duplex$1();
|
|
8567
|
-
Stream.Transform =
|
|
8568
|
-
Stream.PassThrough =
|
|
8569
|
-
Stream.finished =
|
|
8570
|
-
Stream.pipeline =
|
|
8512
|
+
Stream.Transform = _stream_transform$1;
|
|
8513
|
+
Stream.PassThrough = _stream_passthrough$1;
|
|
8514
|
+
Stream.finished = endOfStream;
|
|
8515
|
+
Stream.pipeline = pipeline_1;
|
|
8571
8516
|
Stream.Stream = Stream;
|
|
8572
8517
|
function Stream() {
|
|
8573
8518
|
EE.call(this);
|
|
@@ -27179,7 +27124,7 @@ const GetValidatorDocument = { "kind": "Document", "definitions": [{ "kind": "Op
|
|
|
27179
27124
|
const GetClusterBalanceDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "GetClusterBalance" }, "variableDefinitions": [{ "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "clusterId" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "daoAddress" } }, "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "ID" } } } }, { "kind": "VariableDefinition", "variable": { "kind": "Variable", "name": { "kind": "Name", "value": "operatorIds" } }, "type": { "kind": "NonNullType", "type": { "kind": "ListType", "type": { "kind": "NonNullType", "type": { "kind": "NamedType", "name": { "kind": "Name", "value": "String" } } } } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "_meta" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "block" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "number" } }] } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "daovalues" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "daoAddress" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "networkFee" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndexBlockNumber" } }, { "kind": "Field", "name": { "kind": "Name", "value": "liquidationThreshold" } }, { "kind": "Field", "name": { "kind": "Name", "value": "minimumLiquidationCollateral" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "operators" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "where" }, "value": { "kind": "ObjectValue", "fields": [{ "kind": "ObjectField", "name": { "kind": "Name", "value": "id_in" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "operatorIds" } } }] } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "fee" } }, { "kind": "Field", "name": { "kind": "Name", "value": "feeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "feeIndexBlockNumber" } }] } }, { "kind": "Field", "name": { "kind": "Name", "value": "cluster" }, "arguments": [{ "kind": "Argument", "name": { "kind": "Name", "value": "id" }, "value": { "kind": "Variable", "name": { "kind": "Name", "value": "clusterId" } } }], "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "validatorCount" } }, { "kind": "Field", "name": { "kind": "Name", "value": "networkFeeIndex" } }, { "kind": "Field", "name": { "kind": "Name", "value": "index" } }, { "kind": "Field", "name": { "kind": "Name", "value": "balance" } }] } }] } }] };
|
|
27180
27125
|
const getOwnerNonce = (client, args) => {
|
|
27181
27126
|
const document2 = typeof args.block === "number" ? GetOwnerNonceByBlockDocument : GetOwnerNonceDocument;
|
|
27182
|
-
return client.request(document2, args).then((r2) => r2.account?.nonce);
|
|
27127
|
+
return client.request(document2, args).then((r2) => r2.account?.nonce || "0").catch(() => "0");
|
|
27183
27128
|
};
|
|
27184
27129
|
const getClusterSnapshot = (client, args) => client.request(GetClusterSnapshotDocument, args).then((res) => res.cluster);
|
|
27185
27130
|
const getCluster = (client, args) => client.request(GetClusterDocument, args).then((res) => res.cluster);
|
|
@@ -27283,18 +27228,36 @@ const mainnet = /* @__PURE__ */ defineChain({
|
|
|
27283
27228
|
}
|
|
27284
27229
|
}
|
|
27285
27230
|
});
|
|
27231
|
+
const hoodi = viem.defineChain({
|
|
27232
|
+
id: 560048,
|
|
27233
|
+
name: "Hoodi",
|
|
27234
|
+
rpcUrls: {
|
|
27235
|
+
default: {
|
|
27236
|
+
http: ["https://rpc.hoodi.ethpandaops.io"]
|
|
27237
|
+
}
|
|
27238
|
+
},
|
|
27239
|
+
nativeCurrency: {
|
|
27240
|
+
name: "Hoodi Ether",
|
|
27241
|
+
symbol: "ETH",
|
|
27242
|
+
decimals: 18
|
|
27243
|
+
},
|
|
27244
|
+
testnet: true
|
|
27245
|
+
});
|
|
27286
27246
|
const chains = {
|
|
27287
27247
|
mainnet,
|
|
27288
|
-
holesky
|
|
27248
|
+
holesky,
|
|
27249
|
+
hoodi
|
|
27289
27250
|
};
|
|
27290
27251
|
const chainIds = Object.values(chains).map((chain) => chain.id);
|
|
27291
27252
|
const graph_endpoints = {
|
|
27292
27253
|
[mainnet.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-ethereum/version/latest",
|
|
27293
|
-
[holesky.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-holesky/version/latest"
|
|
27254
|
+
[holesky.id]: "https://api.studio.thegraph.com/query/71118/ssv-network-holesky/version/latest",
|
|
27255
|
+
[hoodi.id]: "https://graph-node-hoodi.stage.ops.ssvlabsinternal.com/subgraphs/name/ssv-bapps-hoodi/graphql"
|
|
27294
27256
|
};
|
|
27295
27257
|
const rest_endpoints = {
|
|
27296
27258
|
[mainnet.id]: "https://api.ssv.network/api/v4/mainnet",
|
|
27297
|
-
[holesky.id]: "https://api.ssv.network/api/v4/holesky"
|
|
27259
|
+
[holesky.id]: "https://api.ssv.network/api/v4/holesky",
|
|
27260
|
+
[hoodi.id]: "https://api.stage.ops.ssvlabsinternal.com/api/v4/hoodi"
|
|
27298
27261
|
};
|
|
27299
27262
|
const contracts = {
|
|
27300
27263
|
[mainnet.id]: {
|
|
@@ -27306,6 +27269,11 @@ const contracts = {
|
|
|
27306
27269
|
setter: "0x38A4794cCEd47d3baf7370CcC43B560D3a1beEFA",
|
|
27307
27270
|
getter: "0x352A18AEe90cdcd825d1E37d9939dCA86C00e281",
|
|
27308
27271
|
token: "0xad45A78180961079BFaeEe349704F411dfF947C6"
|
|
27272
|
+
},
|
|
27273
|
+
[hoodi.id]: {
|
|
27274
|
+
setter: "0x58410Bef803ECd7E63B23664C586A6DB72DAf59c",
|
|
27275
|
+
getter: "0x5AdDb3f1529C5ec70D77400499eE4bbF328368fe",
|
|
27276
|
+
token: "0x9F5d4Ec84fC4785788aB44F9de973cF34F7A038e"
|
|
27309
27277
|
}
|
|
27310
27278
|
};
|
|
27311
27279
|
const MainnetV4GetterABI = [
|
|
@@ -36487,6 +36455,7 @@ exports.getValidator = getValidator;
|
|
|
36487
36455
|
exports.getValidators = getValidators;
|
|
36488
36456
|
exports.globals = globals;
|
|
36489
36457
|
exports.graph_endpoints = graph_endpoints;
|
|
36458
|
+
exports.hoodi = hoodi;
|
|
36490
36459
|
exports.isConfig = isConfig;
|
|
36491
36460
|
exports.registerValidatorsByClusterSizeLimits = registerValidatorsByClusterSizeLimits;
|
|
36492
36461
|
exports.rest_endpoints = rest_endpoints;
|