@strkfarm/sdk 1.1.26 → 1.1.27
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/index.browser.global.js +108 -112
- package/dist/index.browser.mjs +4 -3
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
- package/src/strategies/universal-strategy.tsx +3 -3
|
@@ -53965,6 +53965,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
53965
53965
|
const stats = await this.getLSTStats();
|
|
53966
53966
|
const result2 = /* @__PURE__ */ new Map();
|
|
53967
53967
|
for (const stat of stats) {
|
|
53968
|
+
console.log("stat", stat);
|
|
53968
53969
|
result2.set(stat.assetAddress, stat);
|
|
53969
53970
|
}
|
|
53970
53971
|
return result2;
|
|
@@ -67173,10 +67174,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67173
67174
|
return old;
|
|
67174
67175
|
}
|
|
67175
67176
|
|
|
67176
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67177
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/version.js
|
|
67177
67178
|
var version4 = "3.11.8";
|
|
67178
67179
|
|
|
67179
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67180
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/maybe.js
|
|
67180
67181
|
function maybe(thunk) {
|
|
67181
67182
|
try {
|
|
67182
67183
|
return thunk();
|
|
@@ -67184,7 +67185,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67184
67185
|
}
|
|
67185
67186
|
}
|
|
67186
67187
|
|
|
67187
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67188
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/global.js
|
|
67188
67189
|
var global_default = maybe(function() {
|
|
67189
67190
|
return globalThis;
|
|
67190
67191
|
}) || maybe(function() {
|
|
@@ -67203,7 +67204,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67203
67204
|
return maybe.constructor("return this")();
|
|
67204
67205
|
});
|
|
67205
67206
|
|
|
67206
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67207
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/makeUniqueId.js
|
|
67207
67208
|
var prefixCounts = /* @__PURE__ */ new Map();
|
|
67208
67209
|
function makeUniqueId(prefix) {
|
|
67209
67210
|
var count = prefixCounts.get(prefix) || 1;
|
|
@@ -67211,7 +67212,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67211
67212
|
return "".concat(prefix, ":").concat(count, ":").concat(Math.random().toString(36).slice(2));
|
|
67212
67213
|
}
|
|
67213
67214
|
|
|
67214
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67215
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
|
|
67215
67216
|
function stringifyForDisplay(value, space) {
|
|
67216
67217
|
if (space === void 0) {
|
|
67217
67218
|
space = 0;
|
|
@@ -67222,7 +67223,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67222
67223
|
}, space).split(JSON.stringify(undefId)).join("<undefined>");
|
|
67223
67224
|
}
|
|
67224
67225
|
|
|
67225
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67226
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/invariantWrappers.js
|
|
67226
67227
|
function wrap(fn) {
|
|
67227
67228
|
return function(message) {
|
|
67228
67229
|
var args = [];
|
|
@@ -67293,10 +67294,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67293
67294
|
})));
|
|
67294
67295
|
}
|
|
67295
67296
|
|
|
67296
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
67297
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/globals/index.js
|
|
67297
67298
|
var DEV = globalThis.__DEV__ !== false;
|
|
67298
67299
|
|
|
67299
|
-
// node_modules/.pnpm/graphql@16.
|
|
67300
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
|
|
67300
67301
|
function devAssert(condition, message) {
|
|
67301
67302
|
const booleanCondition = Boolean(condition);
|
|
67302
67303
|
if (!booleanCondition) {
|
|
@@ -67304,12 +67305,12 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67304
67305
|
}
|
|
67305
67306
|
}
|
|
67306
67307
|
|
|
67307
|
-
// node_modules/.pnpm/graphql@16.
|
|
67308
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/isObjectLike.mjs
|
|
67308
67309
|
function isObjectLike(value) {
|
|
67309
67310
|
return typeof value == "object" && value !== null;
|
|
67310
67311
|
}
|
|
67311
67312
|
|
|
67312
|
-
// node_modules/.pnpm/graphql@16.
|
|
67313
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/invariant.mjs
|
|
67313
67314
|
function invariant4(condition, message) {
|
|
67314
67315
|
const booleanCondition = Boolean(condition);
|
|
67315
67316
|
if (!booleanCondition) {
|
|
@@ -67319,7 +67320,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67319
67320
|
}
|
|
67320
67321
|
}
|
|
67321
67322
|
|
|
67322
|
-
// node_modules/.pnpm/graphql@16.
|
|
67323
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/location.mjs
|
|
67323
67324
|
var LineRegExp = /\r\n|[\n\r]/g;
|
|
67324
67325
|
function getLocation(source, position) {
|
|
67325
67326
|
let lastLineStart = 0;
|
|
@@ -67338,7 +67339,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67338
67339
|
};
|
|
67339
67340
|
}
|
|
67340
67341
|
|
|
67341
|
-
// node_modules/.pnpm/graphql@16.
|
|
67342
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printLocation.mjs
|
|
67342
67343
|
function printLocation(location) {
|
|
67343
67344
|
return printSourceLocation(
|
|
67344
67345
|
location.source,
|
|
@@ -67385,7 +67386,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67385
67386
|
return existingLines.map(([prefix, line]) => prefix.padStart(padLen) + (line ? " " + line : "")).join("\n");
|
|
67386
67387
|
}
|
|
67387
67388
|
|
|
67388
|
-
// node_modules/.pnpm/graphql@16.
|
|
67389
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/GraphQLError.mjs
|
|
67389
67390
|
function toNormalizedOptions(args) {
|
|
67390
67391
|
const firstArg = args[0];
|
|
67391
67392
|
if (firstArg == null || "kind" in firstArg || "length" in firstArg) {
|
|
@@ -67534,7 +67535,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67534
67535
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
|
67535
67536
|
}
|
|
67536
67537
|
|
|
67537
|
-
// node_modules/.pnpm/graphql@16.
|
|
67538
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/error/syntaxError.mjs
|
|
67538
67539
|
function syntaxError(source, position, description) {
|
|
67539
67540
|
return new GraphQLError(`Syntax Error: ${description}`, {
|
|
67540
67541
|
source,
|
|
@@ -67542,7 +67543,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67542
67543
|
});
|
|
67543
67544
|
}
|
|
67544
67545
|
|
|
67545
|
-
// node_modules/.pnpm/graphql@16.
|
|
67546
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/ast.mjs
|
|
67546
67547
|
var Location = class {
|
|
67547
67548
|
/**
|
|
67548
67549
|
* The character offset at which this Node begins.
|
|
@@ -67712,7 +67713,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67712
67713
|
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
67713
67714
|
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
67714
67715
|
|
|
67715
|
-
// node_modules/.pnpm/graphql@16.
|
|
67716
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/directiveLocation.mjs
|
|
67716
67717
|
var DirectiveLocation;
|
|
67717
67718
|
(function(DirectiveLocation2) {
|
|
67718
67719
|
DirectiveLocation2["QUERY"] = "QUERY";
|
|
@@ -67736,7 +67737,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67736
67737
|
DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
|
|
67737
67738
|
})(DirectiveLocation || (DirectiveLocation = {}));
|
|
67738
67739
|
|
|
67739
|
-
// node_modules/.pnpm/graphql@16.
|
|
67740
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/kinds.mjs
|
|
67740
67741
|
var Kind;
|
|
67741
67742
|
(function(Kind2) {
|
|
67742
67743
|
Kind2["NAME"] = "Name";
|
|
@@ -67784,7 +67785,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67784
67785
|
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
67785
67786
|
})(Kind || (Kind = {}));
|
|
67786
67787
|
|
|
67787
|
-
// node_modules/.pnpm/graphql@16.
|
|
67788
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/characterClasses.mjs
|
|
67788
67789
|
function isWhiteSpace(code) {
|
|
67789
67790
|
return code === 9 || code === 32;
|
|
67790
67791
|
}
|
|
@@ -67802,7 +67803,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67802
67803
|
return isLetter(code) || isDigit2(code) || code === 95;
|
|
67803
67804
|
}
|
|
67804
67805
|
|
|
67805
|
-
// node_modules/.pnpm/graphql@16.
|
|
67806
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/blockString.mjs
|
|
67806
67807
|
function dedentBlockStringLines(lines) {
|
|
67807
67808
|
var _firstNonEmptyLine2;
|
|
67808
67809
|
let commonIndent = Number.MAX_SAFE_INTEGER;
|
|
@@ -67856,7 +67857,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67856
67857
|
return '"""' + result2 + '"""';
|
|
67857
67858
|
}
|
|
67858
67859
|
|
|
67859
|
-
// node_modules/.pnpm/graphql@16.
|
|
67860
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/tokenKind.mjs
|
|
67860
67861
|
var TokenKind;
|
|
67861
67862
|
(function(TokenKind2) {
|
|
67862
67863
|
TokenKind2["SOF"] = "<SOF>";
|
|
@@ -67883,7 +67884,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
67883
67884
|
TokenKind2["COMMENT"] = "Comment";
|
|
67884
67885
|
})(TokenKind || (TokenKind = {}));
|
|
67885
67886
|
|
|
67886
|
-
// node_modules/.pnpm/graphql@16.
|
|
67887
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/lexer.mjs
|
|
67887
67888
|
var Lexer = class {
|
|
67888
67889
|
/**
|
|
67889
67890
|
* The previously focused non-ignored token.
|
|
@@ -68415,7 +68416,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68415
68416
|
);
|
|
68416
68417
|
}
|
|
68417
68418
|
|
|
68418
|
-
// node_modules/.pnpm/graphql@16.
|
|
68419
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/inspect.mjs
|
|
68419
68420
|
var MAX_ARRAY_LENGTH = 10;
|
|
68420
68421
|
var MAX_RECURSIVE_DEPTH = 2;
|
|
68421
68422
|
function inspect(value) {
|
|
@@ -68498,7 +68499,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68498
68499
|
return tag;
|
|
68499
68500
|
}
|
|
68500
68501
|
|
|
68501
|
-
// node_modules/.pnpm/graphql@16.
|
|
68502
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/instanceOf.mjs
|
|
68502
68503
|
var isProduction = globalThis.process && // eslint-disable-next-line no-undef
|
|
68503
68504
|
false;
|
|
68504
68505
|
var instanceOf = (
|
|
@@ -68537,7 +68538,7 @@ spurious results.`);
|
|
|
68537
68538
|
}
|
|
68538
68539
|
);
|
|
68539
68540
|
|
|
68540
|
-
// node_modules/.pnpm/graphql@16.
|
|
68541
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/source.mjs
|
|
68541
68542
|
var Source = class {
|
|
68542
68543
|
constructor(body, name = "GraphQL request", locationOffset = {
|
|
68543
68544
|
line: 1,
|
|
@@ -68564,15 +68565,10 @@ spurious results.`);
|
|
|
68564
68565
|
return instanceOf(source, Source);
|
|
68565
68566
|
}
|
|
68566
68567
|
|
|
68567
|
-
// node_modules/.pnpm/graphql@16.
|
|
68568
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/parser.mjs
|
|
68568
68569
|
function parse3(source, options) {
|
|
68569
68570
|
const parser = new Parser(source, options);
|
|
68570
|
-
|
|
68571
|
-
Object.defineProperty(document2, "tokenCount", {
|
|
68572
|
-
enumerable: false,
|
|
68573
|
-
value: parser.tokenCount
|
|
68574
|
-
});
|
|
68575
|
-
return document2;
|
|
68571
|
+
return parser.parseDocument();
|
|
68576
68572
|
}
|
|
68577
68573
|
var Parser = class {
|
|
68578
68574
|
constructor(source, options = {}) {
|
|
@@ -68581,9 +68577,6 @@ spurious results.`);
|
|
|
68581
68577
|
this._options = options;
|
|
68582
68578
|
this._tokenCounter = 0;
|
|
68583
68579
|
}
|
|
68584
|
-
get tokenCount() {
|
|
68585
|
-
return this._tokenCounter;
|
|
68586
|
-
}
|
|
68587
68580
|
/**
|
|
68588
68581
|
* Converts a name lex token into a name parse node.
|
|
68589
68582
|
*/
|
|
@@ -69801,9 +69794,9 @@ spurious results.`);
|
|
|
69801
69794
|
advanceLexer() {
|
|
69802
69795
|
const { maxTokens } = this._options;
|
|
69803
69796
|
const token = this._lexer.advance();
|
|
69804
|
-
if (token.kind !== TokenKind.EOF) {
|
|
69797
|
+
if (maxTokens !== void 0 && token.kind !== TokenKind.EOF) {
|
|
69805
69798
|
++this._tokenCounter;
|
|
69806
|
-
if (
|
|
69799
|
+
if (this._tokenCounter > maxTokens) {
|
|
69807
69800
|
throw syntaxError(
|
|
69808
69801
|
this._lexer.source,
|
|
69809
69802
|
token.start,
|
|
@@ -69821,7 +69814,7 @@ spurious results.`);
|
|
|
69821
69814
|
return isPunctuatorTokenKind(kind) ? `"${kind}"` : kind;
|
|
69822
69815
|
}
|
|
69823
69816
|
|
|
69824
|
-
// node_modules/.pnpm/graphql@16.
|
|
69817
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printString.mjs
|
|
69825
69818
|
function printString(str) {
|
|
69826
69819
|
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
|
69827
69820
|
}
|
|
@@ -69997,7 +69990,7 @@ spurious results.`);
|
|
|
69997
69990
|
"\\u009F"
|
|
69998
69991
|
];
|
|
69999
69992
|
|
|
70000
|
-
// node_modules/.pnpm/graphql@16.
|
|
69993
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/visitor.mjs
|
|
70001
69994
|
var BREAK = Object.freeze({});
|
|
70002
69995
|
function visit(root2, visitor, visitorKeys = QueryDocumentKeys) {
|
|
70003
69996
|
const enterLeaveMap = /* @__PURE__ */ new Map();
|
|
@@ -70036,7 +70029,10 @@ spurious results.`);
|
|
|
70036
70029
|
}
|
|
70037
70030
|
}
|
|
70038
70031
|
} else {
|
|
70039
|
-
node =
|
|
70032
|
+
node = Object.defineProperties(
|
|
70033
|
+
{},
|
|
70034
|
+
Object.getOwnPropertyDescriptors(node)
|
|
70035
|
+
);
|
|
70040
70036
|
for (const [editKey, editValue] of edits) {
|
|
70041
70037
|
node[editKey] = editValue;
|
|
70042
70038
|
}
|
|
@@ -70126,7 +70122,7 @@ spurious results.`);
|
|
|
70126
70122
|
};
|
|
70127
70123
|
}
|
|
70128
70124
|
|
|
70129
|
-
// node_modules/.pnpm/graphql@16.
|
|
70125
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/printer.mjs
|
|
70130
70126
|
function print(ast) {
|
|
70131
70127
|
return visit(ast, printDocASTReducer);
|
|
70132
70128
|
}
|
|
@@ -70368,12 +70364,12 @@ spurious results.`);
|
|
|
70368
70364
|
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
|
70369
70365
|
}
|
|
70370
70366
|
|
|
70371
|
-
// node_modules/.pnpm/graphql@16.
|
|
70367
|
+
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/language/predicates.mjs
|
|
70372
70368
|
function isSelectionNode(node) {
|
|
70373
70369
|
return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;
|
|
70374
70370
|
}
|
|
70375
70371
|
|
|
70376
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70372
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/directives.js
|
|
70377
70373
|
function shouldInclude(_a21, variables) {
|
|
70378
70374
|
var directives = _a21.directives;
|
|
70379
70375
|
if (!directives || !directives.length) {
|
|
@@ -70501,7 +70497,7 @@ spurious results.`);
|
|
|
70501
70497
|
return false;
|
|
70502
70498
|
}
|
|
70503
70499
|
|
|
70504
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70500
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/canUse.js
|
|
70505
70501
|
var isReactNative = maybe(function() {
|
|
70506
70502
|
return navigator.product;
|
|
70507
70503
|
}) == "ReactNative";
|
|
@@ -70526,12 +70522,12 @@ spurious results.`);
|
|
|
70526
70522
|
}) || false
|
|
70527
70523
|
);
|
|
70528
70524
|
|
|
70529
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70525
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/objects.js
|
|
70530
70526
|
function isNonNullObject(obj) {
|
|
70531
70527
|
return obj !== null && typeof obj === "object";
|
|
70532
70528
|
}
|
|
70533
70529
|
|
|
70534
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70530
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/fragments.js
|
|
70535
70531
|
function getFragmentQueryDocument(document2, fragmentName) {
|
|
70536
70532
|
var actualFragmentName = fragmentName;
|
|
70537
70533
|
var fragments = [];
|
|
@@ -70827,7 +70823,7 @@ spurious results.`);
|
|
|
70827
70823
|
}
|
|
70828
70824
|
};
|
|
70829
70825
|
|
|
70830
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70826
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/caches.js
|
|
70831
70827
|
var scheduledCleanup = /* @__PURE__ */ new WeakSet();
|
|
70832
70828
|
function schedule(cache) {
|
|
70833
70829
|
if (cache.size <= (cache.max || -1)) {
|
|
@@ -70860,11 +70856,11 @@ spurious results.`);
|
|
|
70860
70856
|
return cache;
|
|
70861
70857
|
};
|
|
70862
70858
|
|
|
70863
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70859
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/sizes.js
|
|
70864
70860
|
var cacheSizeSymbol = Symbol.for("apollo.cacheSize");
|
|
70865
70861
|
var cacheSizes = __assign({}, global_default[cacheSizeSymbol]);
|
|
70866
70862
|
|
|
70867
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70863
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
|
|
70868
70864
|
var globalCaches = {};
|
|
70869
70865
|
function registerGlobalCache(name, getSize) {
|
|
70870
70866
|
globalCaches[name] = getSize;
|
|
@@ -70954,7 +70950,7 @@ spurious results.`);
|
|
|
70954
70950
|
], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
|
|
70955
70951
|
}
|
|
70956
70952
|
|
|
70957
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
70953
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/canonicalStringify.js
|
|
70958
70954
|
var canonicalStringify = Object.assign(function canonicalStringify2(value) {
|
|
70959
70955
|
return JSON.stringify(value, stableObjectReplacer);
|
|
70960
70956
|
}, {
|
|
@@ -71001,7 +70997,7 @@ spurious results.`);
|
|
|
71001
70997
|
return i === 0 || keys[i - 1] <= key;
|
|
71002
70998
|
}
|
|
71003
70999
|
|
|
71004
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71000
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/storeUtils.js
|
|
71005
71001
|
function makeReference(id) {
|
|
71006
71002
|
return { __ref: String(id) };
|
|
71007
71003
|
}
|
|
@@ -71186,7 +71182,7 @@ spurious results.`);
|
|
|
71186
71182
|
return selection.kind === "InlineFragment";
|
|
71187
71183
|
}
|
|
71188
71184
|
|
|
71189
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71185
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/getFromAST.js
|
|
71190
71186
|
function checkDocument(doc) {
|
|
71191
71187
|
invariant2(doc && doc.kind === "Document", 77);
|
|
71192
71188
|
var operations = doc.definitions.filter(function(d) {
|
|
@@ -71745,7 +71741,7 @@ spurious results.`);
|
|
|
71745
71741
|
return Object.freeze(optimistic);
|
|
71746
71742
|
}
|
|
71747
71743
|
|
|
71748
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71744
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
|
|
71749
71745
|
function identity(document2) {
|
|
71750
71746
|
return document2;
|
|
71751
71747
|
}
|
|
@@ -71829,7 +71825,7 @@ spurious results.`);
|
|
|
71829
71825
|
})()
|
|
71830
71826
|
);
|
|
71831
71827
|
|
|
71832
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71828
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/print.js
|
|
71833
71829
|
var printCache;
|
|
71834
71830
|
var print2 = Object.assign(function(ast) {
|
|
71835
71831
|
var result2 = printCache.get(ast);
|
|
@@ -71853,13 +71849,13 @@ spurious results.`);
|
|
|
71853
71849
|
});
|
|
71854
71850
|
}
|
|
71855
71851
|
|
|
71856
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71852
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/arrays.js
|
|
71857
71853
|
var isArray2 = Array.isArray;
|
|
71858
71854
|
function isNonEmptyArray(value) {
|
|
71859
71855
|
return Array.isArray(value) && value.length > 0;
|
|
71860
71856
|
}
|
|
71861
71857
|
|
|
71862
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
71858
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/graphql/transform.js
|
|
71863
71859
|
var TYPENAME_FIELD = {
|
|
71864
71860
|
kind: Kind.FIELD,
|
|
71865
71861
|
name: {
|
|
@@ -72151,7 +72147,7 @@ spurious results.`);
|
|
|
72151
72147
|
return modifiedDoc;
|
|
72152
72148
|
}
|
|
72153
72149
|
|
|
72154
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72150
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/mergeDeep.js
|
|
72155
72151
|
var hasOwnProperty4 = Object.prototype.hasOwnProperty;
|
|
72156
72152
|
function mergeDeep() {
|
|
72157
72153
|
var sources = [];
|
|
@@ -72787,7 +72783,7 @@ spurious results.`);
|
|
|
72787
72783
|
}
|
|
72788
72784
|
var result = symbolObservablePonyfill(root);
|
|
72789
72785
|
|
|
72790
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72786
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/Observable.js
|
|
72791
72787
|
var prototype3 = Observable.prototype;
|
|
72792
72788
|
var fakeObsSymbol = "@@observable";
|
|
72793
72789
|
if (!prototype3[fakeObsSymbol]) {
|
|
@@ -72796,7 +72792,7 @@ spurious results.`);
|
|
|
72796
72792
|
};
|
|
72797
72793
|
}
|
|
72798
72794
|
|
|
72799
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72795
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/cloneDeep.js
|
|
72800
72796
|
var toString4 = Object.prototype.toString;
|
|
72801
72797
|
function cloneDeep(value) {
|
|
72802
72798
|
return cloneDeepHelper(value);
|
|
@@ -72830,7 +72826,7 @@ spurious results.`);
|
|
|
72830
72826
|
}
|
|
72831
72827
|
}
|
|
72832
72828
|
|
|
72833
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72829
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
|
|
72834
72830
|
function deepFreeze(value) {
|
|
72835
72831
|
var workSet = /* @__PURE__ */ new Set([value]);
|
|
72836
72832
|
workSet.forEach(function(obj) {
|
|
@@ -72862,7 +72858,7 @@ spurious results.`);
|
|
|
72862
72858
|
return obj;
|
|
72863
72859
|
}
|
|
72864
72860
|
|
|
72865
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72861
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/iteration.js
|
|
72866
72862
|
function iterateObserversSafely(observers, method, argument) {
|
|
72867
72863
|
var observersWithMethod = [];
|
|
72868
72864
|
observers.forEach(function(obs) {
|
|
@@ -72873,7 +72869,7 @@ spurious results.`);
|
|
|
72873
72869
|
});
|
|
72874
72870
|
}
|
|
72875
72871
|
|
|
72876
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72872
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/asyncMap.js
|
|
72877
72873
|
function asyncMap(observable, mapFn, catchFn) {
|
|
72878
72874
|
return new Observable(function(observer) {
|
|
72879
72875
|
var promiseQueue = {
|
|
@@ -72921,7 +72917,7 @@ spurious results.`);
|
|
|
72921
72917
|
});
|
|
72922
72918
|
}
|
|
72923
72919
|
|
|
72924
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72920
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/subclassing.js
|
|
72925
72921
|
function fixObservableSubclass(subclass) {
|
|
72926
72922
|
function set(key) {
|
|
72927
72923
|
Object.defineProperty(subclass, key, { value: Observable });
|
|
@@ -72933,7 +72929,7 @@ spurious results.`);
|
|
|
72933
72929
|
return subclass;
|
|
72934
72930
|
}
|
|
72935
72931
|
|
|
72936
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
72932
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/observables/Concast.js
|
|
72937
72933
|
function isPromiseLike(value) {
|
|
72938
72934
|
return value && typeof value.then === "function";
|
|
72939
72935
|
}
|
|
@@ -73074,7 +73070,7 @@ spurious results.`);
|
|
|
73074
73070
|
);
|
|
73075
73071
|
fixObservableSubclass(Concast);
|
|
73076
73072
|
|
|
73077
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73073
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/incrementalResult.js
|
|
73078
73074
|
function isExecutionPatchIncrementalResult(value) {
|
|
73079
73075
|
return "incremental" in value;
|
|
73080
73076
|
}
|
|
@@ -73106,7 +73102,7 @@ spurious results.`);
|
|
|
73106
73102
|
return mergedData;
|
|
73107
73103
|
}
|
|
73108
73104
|
|
|
73109
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73105
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
73110
73106
|
function graphQLResultHasError(result2) {
|
|
73111
73107
|
var errors2 = getGraphQLErrorsFromResult(result2);
|
|
73112
73108
|
return isNonEmptyArray(errors2);
|
|
@@ -73123,7 +73119,7 @@ spurious results.`);
|
|
|
73123
73119
|
return graphQLErrors;
|
|
73124
73120
|
}
|
|
73125
73121
|
|
|
73126
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73122
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/compact.js
|
|
73127
73123
|
function compact() {
|
|
73128
73124
|
var objects = [];
|
|
73129
73125
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -73143,21 +73139,21 @@ spurious results.`);
|
|
|
73143
73139
|
return result2;
|
|
73144
73140
|
}
|
|
73145
73141
|
|
|
73146
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73142
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/utilities/common/mergeOptions.js
|
|
73147
73143
|
function mergeOptions(defaults2, options) {
|
|
73148
73144
|
return compact(defaults2, options, options.variables && {
|
|
73149
73145
|
variables: compact(__assign(__assign({}, defaults2 && defaults2.variables), options.variables))
|
|
73150
73146
|
});
|
|
73151
73147
|
}
|
|
73152
73148
|
|
|
73153
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73149
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/fromError.js
|
|
73154
73150
|
function fromError(errorValue) {
|
|
73155
73151
|
return new Observable(function(observer) {
|
|
73156
73152
|
observer.error(errorValue);
|
|
73157
73153
|
});
|
|
73158
73154
|
}
|
|
73159
73155
|
|
|
73160
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73156
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/throwServerError.js
|
|
73161
73157
|
var throwServerError = function(response, result2, message) {
|
|
73162
73158
|
var error2 = new Error(message);
|
|
73163
73159
|
error2.name = "ServerError";
|
|
@@ -73167,7 +73163,7 @@ spurious results.`);
|
|
|
73167
73163
|
throw error2;
|
|
73168
73164
|
};
|
|
73169
73165
|
|
|
73170
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73166
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/validateOperation.js
|
|
73171
73167
|
function validateOperation(operation) {
|
|
73172
73168
|
var OPERATION_FIELDS = [
|
|
73173
73169
|
"query",
|
|
@@ -73185,7 +73181,7 @@ spurious results.`);
|
|
|
73185
73181
|
return operation;
|
|
73186
73182
|
}
|
|
73187
73183
|
|
|
73188
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73184
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/createOperation.js
|
|
73189
73185
|
function createOperation(starting, operation) {
|
|
73190
73186
|
var context = __assign({}, starting);
|
|
73191
73187
|
var setContext = function(next) {
|
|
@@ -73209,7 +73205,7 @@ spurious results.`);
|
|
|
73209
73205
|
return operation;
|
|
73210
73206
|
}
|
|
73211
73207
|
|
|
73212
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73208
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/transformOperation.js
|
|
73213
73209
|
function transformOperation(operation) {
|
|
73214
73210
|
var transformedOperation = {
|
|
73215
73211
|
variables: operation.variables || {},
|
|
@@ -73223,7 +73219,7 @@ spurious results.`);
|
|
|
73223
73219
|
return transformedOperation;
|
|
73224
73220
|
}
|
|
73225
73221
|
|
|
73226
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73222
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
73227
73223
|
function filterOperationVariables(variables, query) {
|
|
73228
73224
|
var result2 = __assign({}, variables);
|
|
73229
73225
|
var unusedNames = new Set(Object.keys(variables));
|
|
@@ -73240,7 +73236,7 @@ spurious results.`);
|
|
|
73240
73236
|
return result2;
|
|
73241
73237
|
}
|
|
73242
73238
|
|
|
73243
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73239
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/core/ApolloLink.js
|
|
73244
73240
|
function passthrough(op, forward) {
|
|
73245
73241
|
return forward ? forward(op) : Observable.of();
|
|
73246
73242
|
}
|
|
@@ -73334,10 +73330,10 @@ spurious results.`);
|
|
|
73334
73330
|
})()
|
|
73335
73331
|
);
|
|
73336
73332
|
|
|
73337
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73333
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/core/execute.js
|
|
73338
73334
|
var execute = ApolloLink.execute;
|
|
73339
73335
|
|
|
73340
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73336
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/async.js
|
|
73341
73337
|
function asyncIterator(source) {
|
|
73342
73338
|
var _a21;
|
|
73343
73339
|
var iterator2 = source[Symbol.asyncIterator]();
|
|
@@ -73350,7 +73346,7 @@ spurious results.`);
|
|
|
73350
73346
|
}, _a21;
|
|
73351
73347
|
}
|
|
73352
73348
|
|
|
73353
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73349
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/nodeStream.js
|
|
73354
73350
|
function nodeStreamIterator(stream) {
|
|
73355
73351
|
var cleanup = null;
|
|
73356
73352
|
var error2 = null;
|
|
@@ -73421,7 +73417,7 @@ spurious results.`);
|
|
|
73421
73417
|
return iterator2;
|
|
73422
73418
|
}
|
|
73423
73419
|
|
|
73424
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73420
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/promise.js
|
|
73425
73421
|
function promiseIterator(promise) {
|
|
73426
73422
|
var resolved = false;
|
|
73427
73423
|
var iterator2 = {
|
|
@@ -73447,7 +73443,7 @@ spurious results.`);
|
|
|
73447
73443
|
return iterator2;
|
|
73448
73444
|
}
|
|
73449
73445
|
|
|
73450
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73446
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/iterators/reader.js
|
|
73451
73447
|
function readerIterator(reader) {
|
|
73452
73448
|
var iterator2 = {
|
|
73453
73449
|
next: function() {
|
|
@@ -73462,7 +73458,7 @@ spurious results.`);
|
|
|
73462
73458
|
return iterator2;
|
|
73463
73459
|
}
|
|
73464
73460
|
|
|
73465
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73461
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/responseIterator.js
|
|
73466
73462
|
function isNodeResponse(value) {
|
|
73467
73463
|
return !!value.body;
|
|
73468
73464
|
}
|
|
@@ -73499,7 +73495,7 @@ spurious results.`);
|
|
|
73499
73495
|
throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
73500
73496
|
}
|
|
73501
73497
|
|
|
73502
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73498
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/errors/index.js
|
|
73503
73499
|
var PROTOCOL_ERRORS_SYMBOL = Symbol();
|
|
73504
73500
|
function graphQLResultHasProtocolErrors(result2) {
|
|
73505
73501
|
if (result2.extensions) {
|
|
@@ -73544,7 +73540,7 @@ spurious results.`);
|
|
|
73544
73540
|
})(Error)
|
|
73545
73541
|
);
|
|
73546
73542
|
|
|
73547
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73543
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
73548
73544
|
var hasOwnProperty5 = Object.prototype.hasOwnProperty;
|
|
73549
73545
|
function readMultipartBody(response, nextValue) {
|
|
73550
73546
|
return __awaiter(this, void 0, void 0, function() {
|
|
@@ -73688,7 +73684,7 @@ spurious results.`);
|
|
|
73688
73684
|
};
|
|
73689
73685
|
}
|
|
73690
73686
|
|
|
73691
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73687
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/serializeFetchParameter.js
|
|
73692
73688
|
var serializeFetchParameter = function(p, label) {
|
|
73693
73689
|
var serialized;
|
|
73694
73690
|
try {
|
|
@@ -73701,7 +73697,7 @@ spurious results.`);
|
|
|
73701
73697
|
return serialized;
|
|
73702
73698
|
};
|
|
73703
73699
|
|
|
73704
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73700
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
|
|
73705
73701
|
var defaultHttpOptions = {
|
|
73706
73702
|
includeQuery: true,
|
|
73707
73703
|
includeExtensions: false,
|
|
@@ -73785,14 +73781,14 @@ spurious results.`);
|
|
|
73785
73781
|
return normalizedHeaders;
|
|
73786
73782
|
}
|
|
73787
73783
|
|
|
73788
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73784
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/checkFetcher.js
|
|
73789
73785
|
var checkFetcher = function(fetcher) {
|
|
73790
73786
|
if (!fetcher && typeof fetch === "undefined") {
|
|
73791
73787
|
throw newInvariantError(38);
|
|
73792
73788
|
}
|
|
73793
73789
|
};
|
|
73794
73790
|
|
|
73795
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73791
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/selectURI.js
|
|
73796
73792
|
var selectURI = function(operation, fallbackURI) {
|
|
73797
73793
|
var context = operation.getContext();
|
|
73798
73794
|
var contextURI = context.uri;
|
|
@@ -73805,7 +73801,7 @@ spurious results.`);
|
|
|
73805
73801
|
}
|
|
73806
73802
|
};
|
|
73807
73803
|
|
|
73808
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73804
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/rewriteURIForGET.js
|
|
73809
73805
|
function rewriteURIForGET(chosenURI, body) {
|
|
73810
73806
|
var queryParams = [];
|
|
73811
73807
|
var addQueryParam = function(key, value) {
|
|
@@ -73846,7 +73842,7 @@ spurious results.`);
|
|
|
73846
73842
|
return { newURI };
|
|
73847
73843
|
}
|
|
73848
73844
|
|
|
73849
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73845
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/createHttpLink.js
|
|
73850
73846
|
var backupFetch = maybe(function() {
|
|
73851
73847
|
return fetch;
|
|
73852
73848
|
});
|
|
@@ -73966,7 +73962,7 @@ spurious results.`);
|
|
|
73966
73962
|
});
|
|
73967
73963
|
};
|
|
73968
73964
|
|
|
73969
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
73965
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/link/http/HttpLink.js
|
|
73970
73966
|
var HttpLink = (
|
|
73971
73967
|
/** @class */
|
|
73972
73968
|
(function(_super) {
|
|
@@ -74119,7 +74115,7 @@ spurious results.`);
|
|
|
74119
74115
|
return false;
|
|
74120
74116
|
}
|
|
74121
74117
|
|
|
74122
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74118
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/equalByQuery.js
|
|
74123
74119
|
function equalByQuery(query, _a21, _b, variables) {
|
|
74124
74120
|
var aData = _a21.data, aRest = __rest(_a21, ["data"]);
|
|
74125
74121
|
var bData = _b.data, bRest = __rest(_b, ["data"]);
|
|
@@ -74192,7 +74188,7 @@ spurious results.`);
|
|
|
74192
74188
|
return dir.name.value === "nonreactive";
|
|
74193
74189
|
}
|
|
74194
74190
|
|
|
74195
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74191
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/core/cache.js
|
|
74196
74192
|
var ApolloCache = (
|
|
74197
74193
|
/** @class */
|
|
74198
74194
|
(function() {
|
|
@@ -74324,7 +74320,7 @@ spurious results.`);
|
|
|
74324
74320
|
ApolloCache.prototype.getMemoryInternals = getApolloCacheMemoryInternals;
|
|
74325
74321
|
}
|
|
74326
74322
|
|
|
74327
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74323
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/core/types/common.js
|
|
74328
74324
|
var MissingFieldError = (
|
|
74329
74325
|
/** @class */
|
|
74330
74326
|
(function(_super) {
|
|
@@ -74351,7 +74347,7 @@ spurious results.`);
|
|
|
74351
74347
|
})(Error)
|
|
74352
74348
|
);
|
|
74353
74349
|
|
|
74354
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74350
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/helpers.js
|
|
74355
74351
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
74356
74352
|
function isNullish(value) {
|
|
74357
74353
|
return value === null || value === void 0;
|
|
@@ -74427,7 +74423,7 @@ spurious results.`);
|
|
|
74427
74423
|
};
|
|
74428
74424
|
}
|
|
74429
74425
|
|
|
74430
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74426
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/entityStore.js
|
|
74431
74427
|
var DELETE = /* @__PURE__ */ Object.create(null);
|
|
74432
74428
|
var delModifier = function() {
|
|
74433
74429
|
return DELETE;
|
|
@@ -74944,7 +74940,7 @@ spurious results.`);
|
|
|
74944
74940
|
return !!(store instanceof EntityStore && store.group.caching);
|
|
74945
74941
|
}
|
|
74946
74942
|
|
|
74947
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
74943
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
74948
74944
|
function shallowCopy(value) {
|
|
74949
74945
|
if (isNonNullObject(value)) {
|
|
74950
74946
|
return isArray2(value) ? value.slice(0) : __assign({ __proto__: Object.getPrototypeOf(value) }, value);
|
|
@@ -75038,7 +75034,7 @@ spurious results.`);
|
|
|
75038
75034
|
})()
|
|
75039
75035
|
);
|
|
75040
75036
|
|
|
75041
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75037
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/readFromStore.js
|
|
75042
75038
|
function execSelectionSetKeyArgs(options) {
|
|
75043
75039
|
return [
|
|
75044
75040
|
options.selectionSet,
|
|
@@ -75307,7 +75303,7 @@ spurious results.`);
|
|
|
75307
75303
|
}
|
|
75308
75304
|
}
|
|
75309
75305
|
|
|
75310
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75306
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
75311
75307
|
var cacheSlot = new Slot();
|
|
75312
75308
|
var cacheInfoMap = /* @__PURE__ */ new WeakMap();
|
|
75313
75309
|
function getCacheInfo(cache) {
|
|
@@ -75378,7 +75374,7 @@ spurious results.`);
|
|
|
75378
75374
|
}
|
|
75379
75375
|
}
|
|
75380
75376
|
|
|
75381
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75377
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/key-extractor.js
|
|
75382
75378
|
var specifierInfoCache = /* @__PURE__ */ Object.create(null);
|
|
75383
75379
|
function lookupSpecifierInfo(spec) {
|
|
75384
75380
|
var cacheKey = JSON.stringify(spec);
|
|
@@ -75511,7 +75507,7 @@ spurious results.`);
|
|
|
75511
75507
|
return value;
|
|
75512
75508
|
}
|
|
75513
75509
|
|
|
75514
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75510
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/policies.js
|
|
75515
75511
|
function argsFromFieldSpecifier(spec) {
|
|
75516
75512
|
return spec.args !== void 0 ? spec.args : spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;
|
|
75517
75513
|
}
|
|
@@ -75946,7 +75942,7 @@ spurious results.`);
|
|
|
75946
75942
|
};
|
|
75947
75943
|
}
|
|
75948
75944
|
|
|
75949
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
75945
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
75950
75946
|
function getContextFlavor(context, clientOnly, deferred) {
|
|
75951
75947
|
var key = "".concat(clientOnly).concat(deferred);
|
|
75952
75948
|
var flavored = context.flavors.get(key);
|
|
@@ -76351,7 +76347,7 @@ spurious results.`);
|
|
|
76351
76347
|
globalThis.__DEV__ !== false && invariant2.warn(14, fieldName, parentType, childTypenames.length ? "either ensure all objects of type " + childTypenames.join(" and ") + " have an ID or a custom merge function, or " : "", typeDotName, __assign({}, existing), __assign({}, incoming));
|
|
76352
76348
|
}
|
|
76353
76349
|
|
|
76354
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76350
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
76355
76351
|
var InMemoryCache = (
|
|
76356
76352
|
/** @class */
|
|
76357
76353
|
(function(_super) {
|
|
@@ -76660,7 +76656,7 @@ spurious results.`);
|
|
|
76660
76656
|
InMemoryCache.prototype.getMemoryInternals = getInMemoryCacheMemoryInternals;
|
|
76661
76657
|
}
|
|
76662
76658
|
|
|
76663
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76659
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/networkStatus.js
|
|
76664
76660
|
var NetworkStatus;
|
|
76665
76661
|
(function(NetworkStatus2) {
|
|
76666
76662
|
NetworkStatus2[NetworkStatus2["loading"] = 1] = "loading";
|
|
@@ -76675,7 +76671,7 @@ spurious results.`);
|
|
|
76675
76671
|
return networkStatus ? networkStatus < 7 : false;
|
|
76676
76672
|
}
|
|
76677
76673
|
|
|
76678
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
76674
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/ObservableQuery.js
|
|
76679
76675
|
var assign2 = Object.assign;
|
|
76680
76676
|
var hasOwnProperty7 = Object.hasOwnProperty;
|
|
76681
76677
|
var ObservableQuery = (
|
|
@@ -77283,7 +77279,7 @@ spurious results.`);
|
|
|
77283
77279
|
return fetchPolicy === "network-only" || fetchPolicy === "no-cache" || fetchPolicy === "standby";
|
|
77284
77280
|
}
|
|
77285
77281
|
|
|
77286
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
77282
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/QueryInfo.js
|
|
77287
77283
|
var destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();
|
|
77288
77284
|
function wrapDestructiveCacheMethod(cache, methodName) {
|
|
77289
77285
|
var original = cache[methodName];
|
|
@@ -77575,7 +77571,7 @@ spurious results.`);
|
|
|
77575
77571
|
return writeWithErrors;
|
|
77576
77572
|
}
|
|
77577
77573
|
|
|
77578
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
77574
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/QueryManager.js
|
|
77579
77575
|
var hasOwnProperty8 = Object.prototype.hasOwnProperty;
|
|
77580
77576
|
var IGNORE = /* @__PURE__ */ Object.create(null);
|
|
77581
77577
|
var QueryManager = (
|
|
@@ -78561,7 +78557,7 @@ spurious results.`);
|
|
|
78561
78557
|
})()
|
|
78562
78558
|
);
|
|
78563
78559
|
|
|
78564
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
78560
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/LocalState.js
|
|
78565
78561
|
var LocalState = (
|
|
78566
78562
|
/** @class */
|
|
78567
78563
|
(function() {
|
|
@@ -78911,7 +78907,7 @@ spurious results.`);
|
|
|
78911
78907
|
})()
|
|
78912
78908
|
);
|
|
78913
78909
|
|
|
78914
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
78910
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/ApolloClient.js
|
|
78915
78911
|
var hasSuggestedDevtools = false;
|
|
78916
78912
|
var ApolloClient = (
|
|
78917
78913
|
/** @class */
|
|
@@ -79199,7 +79195,7 @@ spurious results.`);
|
|
|
79199
79195
|
ApolloClient.prototype.getMemoryInternals = getApolloClientMemoryInternals;
|
|
79200
79196
|
}
|
|
79201
79197
|
|
|
79202
|
-
// node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.
|
|
79198
|
+
// node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.9.0/node_modules/graphql-tag/lib/index.js
|
|
79203
79199
|
var docCache = /* @__PURE__ */ new Map();
|
|
79204
79200
|
var fragmentSourceMap = /* @__PURE__ */ new Map();
|
|
79205
79201
|
var printFragmentWarnings = true;
|
|
@@ -79313,7 +79309,7 @@ spurious results.`);
|
|
|
79313
79309
|
})(gql || (gql = {}));
|
|
79314
79310
|
gql["default"] = gql;
|
|
79315
79311
|
|
|
79316
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.
|
|
79312
|
+
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0_react@19.1.0/node_modules/@apollo/client/core/index.js
|
|
79317
79313
|
setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
79318
79314
|
|
|
79319
79315
|
// src/modules/apollo-client.ts
|
|
@@ -90715,10 +90711,10 @@ spurious results.`);
|
|
|
90715
90711
|
logger2.verbose(`${this.metadata.name}::netAPY: positions: ${JSON.stringify(positions)}`);
|
|
90716
90712
|
const baseAPYs = [];
|
|
90717
90713
|
const rewardAPYs = [];
|
|
90718
|
-
const
|
|
90714
|
+
const underlyingAddresses = vesuAdapters.map((adapter) => adapter.config.debt.address);
|
|
90719
90715
|
let lstAPRs;
|
|
90720
90716
|
try {
|
|
90721
|
-
lstAPRs = await LSTAPRService.getLSTAPRs(
|
|
90717
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
90722
90718
|
} catch (error2) {
|
|
90723
90719
|
logger2.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error2}`);
|
|
90724
90720
|
lstAPRs = /* @__PURE__ */ new Map();
|
|
@@ -90728,7 +90724,7 @@ spurious results.`);
|
|
|
90728
90724
|
const collateralAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.collateral.symbol.toLowerCase())?.stats;
|
|
90729
90725
|
const debtAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.debt.symbol.toLowerCase())?.stats;
|
|
90730
90726
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
90731
|
-
const lstAPY = lstAPRs.get(vesuAdapter.config.
|
|
90727
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
90732
90728
|
logger2.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
90733
90729
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|
|
90734
90730
|
rewardAPYs.push(...[Number(collateralAsset.defiSpringSupplyApr?.value || "0") / 1e18, 0]);
|
package/dist/index.browser.mjs
CHANGED
|
@@ -2362,6 +2362,7 @@ var LSTAPRService = class {
|
|
|
2362
2362
|
const stats = await this.getLSTStats();
|
|
2363
2363
|
const result = /* @__PURE__ */ new Map();
|
|
2364
2364
|
for (const stat of stats) {
|
|
2365
|
+
console.log("stat", stat);
|
|
2365
2366
|
result.set(stat.assetAddress, stat);
|
|
2366
2367
|
}
|
|
2367
2368
|
return result;
|
|
@@ -26806,10 +26807,10 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26806
26807
|
logger.verbose(`${this.metadata.name}::netAPY: positions: ${JSON.stringify(positions)}`);
|
|
26807
26808
|
const baseAPYs = [];
|
|
26808
26809
|
const rewardAPYs = [];
|
|
26809
|
-
const
|
|
26810
|
+
const underlyingAddresses = vesuAdapters.map((adapter) => adapter.config.debt.address);
|
|
26810
26811
|
let lstAPRs;
|
|
26811
26812
|
try {
|
|
26812
|
-
lstAPRs = await LSTAPRService.getLSTAPRs(
|
|
26813
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
26813
26814
|
} catch (error) {
|
|
26814
26815
|
logger.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error}`);
|
|
26815
26816
|
lstAPRs = /* @__PURE__ */ new Map();
|
|
@@ -26819,7 +26820,7 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26819
26820
|
const collateralAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.collateral.symbol.toLowerCase())?.stats;
|
|
26820
26821
|
const debtAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.debt.symbol.toLowerCase())?.stats;
|
|
26821
26822
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
26822
|
-
const lstAPY = lstAPRs.get(vesuAdapter.config.
|
|
26823
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
26823
26824
|
logger.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
26824
26825
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|
|
26825
26826
|
rewardAPYs.push(...[Number(collateralAsset.defiSpringSupplyApr?.value || "0") / 1e18, 0]);
|
package/dist/index.js
CHANGED
|
@@ -26802,10 +26802,10 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26802
26802
|
logger.verbose(`${this.metadata.name}::netAPY: positions: ${JSON.stringify(positions)}`);
|
|
26803
26803
|
const baseAPYs = [];
|
|
26804
26804
|
const rewardAPYs = [];
|
|
26805
|
-
const
|
|
26805
|
+
const underlyingAddresses = vesuAdapters.map((adapter) => adapter.config.debt.address);
|
|
26806
26806
|
let lstAPRs;
|
|
26807
26807
|
try {
|
|
26808
|
-
lstAPRs = await LSTAPRService.getLSTAPRs(
|
|
26808
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
26809
26809
|
} catch (error) {
|
|
26810
26810
|
logger.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error}`);
|
|
26811
26811
|
lstAPRs = /* @__PURE__ */ new Map();
|
|
@@ -26815,7 +26815,7 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26815
26815
|
const collateralAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.collateral.symbol.toLowerCase())?.stats;
|
|
26816
26816
|
const debtAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.debt.symbol.toLowerCase())?.stats;
|
|
26817
26817
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
26818
|
-
const lstAPY = lstAPRs.get(vesuAdapter.config.
|
|
26818
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
26819
26819
|
logger.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
26820
26820
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|
|
26821
26821
|
rewardAPYs.push(...[Number(collateralAsset.defiSpringSupplyApr?.value || "0") / 1e18, 0]);
|
|
@@ -28215,6 +28215,7 @@ var LSTAPRService = class {
|
|
|
28215
28215
|
const stats = await this.getLSTStats();
|
|
28216
28216
|
const result = /* @__PURE__ */ new Map();
|
|
28217
28217
|
for (const stat of stats) {
|
|
28218
|
+
console.log("stat", stat);
|
|
28218
28219
|
result.set(stat.assetAddress, stat);
|
|
28219
28220
|
}
|
|
28220
28221
|
return result;
|
package/dist/index.mjs
CHANGED
|
@@ -26704,10 +26704,10 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26704
26704
|
logger.verbose(`${this.metadata.name}::netAPY: positions: ${JSON.stringify(positions)}`);
|
|
26705
26705
|
const baseAPYs = [];
|
|
26706
26706
|
const rewardAPYs = [];
|
|
26707
|
-
const
|
|
26707
|
+
const underlyingAddresses = vesuAdapters.map((adapter) => adapter.config.debt.address);
|
|
26708
26708
|
let lstAPRs;
|
|
26709
26709
|
try {
|
|
26710
|
-
lstAPRs = await LSTAPRService.getLSTAPRs(
|
|
26710
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
26711
26711
|
} catch (error) {
|
|
26712
26712
|
logger.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error}`);
|
|
26713
26713
|
lstAPRs = /* @__PURE__ */ new Map();
|
|
@@ -26717,7 +26717,7 @@ var UniversalStrategy = class _UniversalStrategy extends BaseStrategy {
|
|
|
26717
26717
|
const collateralAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.collateral.symbol.toLowerCase())?.stats;
|
|
26718
26718
|
const debtAsset = pool.assets.find((a) => a.symbol.toLowerCase() === vesuAdapter.config.debt.symbol.toLowerCase())?.stats;
|
|
26719
26719
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
26720
|
-
const lstAPY = lstAPRs.get(vesuAdapter.config.
|
|
26720
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
26721
26721
|
logger.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
26722
26722
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|
|
26723
26723
|
rewardAPYs.push(...[Number(collateralAsset.defiSpringSupplyApr?.value || "0") / 1e18, 0]);
|
|
@@ -28117,6 +28117,7 @@ var LSTAPRService = class {
|
|
|
28117
28117
|
const stats = await this.getLSTStats();
|
|
28118
28118
|
const result = /* @__PURE__ */ new Map();
|
|
28119
28119
|
for (const stat of stats) {
|
|
28120
|
+
console.log("stat", stat);
|
|
28120
28121
|
result.set(stat.assetAddress, stat);
|
|
28121
28122
|
}
|
|
28122
28123
|
return result;
|
package/package.json
CHANGED
|
@@ -229,10 +229,10 @@ export class UniversalStrategy<
|
|
|
229
229
|
const rewardAPYs: number[] = [];
|
|
230
230
|
|
|
231
231
|
// Get LST APRs for all collateral assets with fallback
|
|
232
|
-
const
|
|
232
|
+
const underlyingAddresses = vesuAdapters.map(adapter => adapter.config.debt.address);
|
|
233
233
|
let lstAPRs: Map<string, number>;
|
|
234
234
|
try {
|
|
235
|
-
lstAPRs = await LSTAPRService.getLSTAPRs(
|
|
235
|
+
lstAPRs = await LSTAPRService.getLSTAPRs(underlyingAddresses);
|
|
236
236
|
} catch (error) {
|
|
237
237
|
logger.warn(`${this.metadata.name}::netAPY: Failed to fetch LST APRs from Endur API, using fallback: ${error}`);
|
|
238
238
|
// Fallback: create empty map (will result in 0 LST APR)
|
|
@@ -246,7 +246,7 @@ export class UniversalStrategy<
|
|
|
246
246
|
const supplyApy = Number(collateralAsset.supplyApy.value || 0) / 1e18;
|
|
247
247
|
|
|
248
248
|
// Use LST APR from Endur API instead of Vesu's lstApr
|
|
249
|
-
const lstAPY = lstAPRs.get(vesuAdapter.config.
|
|
249
|
+
const lstAPY = lstAPRs.get(vesuAdapter.config.debt.address.address) || 0;
|
|
250
250
|
logger.verbose(`${this.metadata.name}::netAPY: ${vesuAdapter.config.collateral.symbol} LST APR from Endur: ${lstAPY}`);
|
|
251
251
|
|
|
252
252
|
baseAPYs.push(...[supplyApy + lstAPY, Number(debtAsset.borrowApr.value) / 1e18]);
|