@strkfarm/sdk 2.0.0-dev.15 → 2.0.0-dev.17
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 +155 -128
- package/dist/index.browser.mjs +81 -54
- package/dist/index.d.ts +24 -1
- package/dist/index.js +82 -54
- package/dist/index.mjs +81 -54
- package/package.json +1 -1
- package/src/strategies/universal-adapters/vesu-adapter.ts +6 -6
- package/src/strategies/vesu-extended-strategy/services/operationService.ts +3 -4
- package/src/strategies/vesu-extended-strategy/types/transaction-metadata.ts +11 -0
- package/src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx +67 -41
|
@@ -28659,6 +28659,7 @@ ${r2}}` : "}", l2;
|
|
|
28659
28659
|
BaseStrategy: () => BaseStrategy,
|
|
28660
28660
|
CommonAdapter: () => CommonAdapter,
|
|
28661
28661
|
ContractAddr: () => ContractAddr,
|
|
28662
|
+
CycleType: () => CycleType,
|
|
28662
28663
|
ERC20: () => ERC20,
|
|
28663
28664
|
EXTENDED_CONTRACT: () => EXTENDED_CONTRACT,
|
|
28664
28665
|
EXTENDED_SANITIZER: () => EXTENDED_SANITIZER,
|
|
@@ -68179,10 +68180,10 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68179
68180
|
return old;
|
|
68180
68181
|
}
|
|
68181
68182
|
|
|
68182
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/version.js
|
|
68183
|
+
// 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
|
|
68183
68184
|
var version4 = "3.11.8";
|
|
68184
68185
|
|
|
68185
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/maybe.js
|
|
68186
|
+
// 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
|
|
68186
68187
|
function maybe(thunk) {
|
|
68187
68188
|
try {
|
|
68188
68189
|
return thunk();
|
|
@@ -68190,7 +68191,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68190
68191
|
}
|
|
68191
68192
|
}
|
|
68192
68193
|
|
|
68193
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/global.js
|
|
68194
|
+
// 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
|
|
68194
68195
|
var global_default = maybe(function() {
|
|
68195
68196
|
return globalThis;
|
|
68196
68197
|
}) || maybe(function() {
|
|
@@ -68209,7 +68210,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68209
68210
|
return maybe.constructor("return this")();
|
|
68210
68211
|
});
|
|
68211
68212
|
|
|
68212
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/makeUniqueId.js
|
|
68213
|
+
// 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
|
|
68213
68214
|
var prefixCounts = /* @__PURE__ */ new Map();
|
|
68214
68215
|
function makeUniqueId(prefix) {
|
|
68215
68216
|
var count = prefixCounts.get(prefix) || 1;
|
|
@@ -68217,7 +68218,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68217
68218
|
return "".concat(prefix, ":").concat(count, ":").concat(Math.random().toString(36).slice(2));
|
|
68218
68219
|
}
|
|
68219
68220
|
|
|
68220
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
|
|
68221
|
+
// 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
|
|
68221
68222
|
function stringifyForDisplay(value, space) {
|
|
68222
68223
|
if (space === void 0) {
|
|
68223
68224
|
space = 0;
|
|
@@ -68228,7 +68229,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68228
68229
|
}, space).split(JSON.stringify(undefId)).join("<undefined>");
|
|
68229
68230
|
}
|
|
68230
68231
|
|
|
68231
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/invariantWrappers.js
|
|
68232
|
+
// 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
|
|
68232
68233
|
function wrap(fn) {
|
|
68233
68234
|
return function(message) {
|
|
68234
68235
|
var args = [];
|
|
@@ -68299,7 +68300,7 @@ ${JSON.stringify(data, null, 2)}`;
|
|
|
68299
68300
|
})));
|
|
68300
68301
|
}
|
|
68301
68302
|
|
|
68302
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/index.js
|
|
68303
|
+
// 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
|
|
68303
68304
|
var DEV = globalThis.__DEV__ !== false;
|
|
68304
68305
|
|
|
68305
68306
|
// node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
|
|
@@ -71374,7 +71375,7 @@ spurious results.`);
|
|
|
71374
71375
|
return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;
|
|
71375
71376
|
}
|
|
71376
71377
|
|
|
71377
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/directives.js
|
|
71378
|
+
// 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
|
|
71378
71379
|
function shouldInclude(_a21, variables) {
|
|
71379
71380
|
var directives = _a21.directives;
|
|
71380
71381
|
if (!directives || !directives.length) {
|
|
@@ -71502,7 +71503,7 @@ spurious results.`);
|
|
|
71502
71503
|
return false;
|
|
71503
71504
|
}
|
|
71504
71505
|
|
|
71505
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/canUse.js
|
|
71506
|
+
// 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
|
|
71506
71507
|
var isReactNative = maybe(function() {
|
|
71507
71508
|
return navigator.product;
|
|
71508
71509
|
}) == "ReactNative";
|
|
@@ -71527,12 +71528,12 @@ spurious results.`);
|
|
|
71527
71528
|
}) || false
|
|
71528
71529
|
);
|
|
71529
71530
|
|
|
71530
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/objects.js
|
|
71531
|
+
// 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
|
|
71531
71532
|
function isNonNullObject(obj) {
|
|
71532
71533
|
return obj !== null && typeof obj === "object";
|
|
71533
71534
|
}
|
|
71534
71535
|
|
|
71535
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/fragments.js
|
|
71536
|
+
// 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
|
|
71536
71537
|
function getFragmentQueryDocument(document2, fragmentName) {
|
|
71537
71538
|
var actualFragmentName = fragmentName;
|
|
71538
71539
|
var fragments = [];
|
|
@@ -71828,7 +71829,7 @@ spurious results.`);
|
|
|
71828
71829
|
}
|
|
71829
71830
|
};
|
|
71830
71831
|
|
|
71831
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/caches.js
|
|
71832
|
+
// 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
|
|
71832
71833
|
var scheduledCleanup = /* @__PURE__ */ new WeakSet();
|
|
71833
71834
|
function schedule(cache) {
|
|
71834
71835
|
if (cache.size <= (cache.max || -1)) {
|
|
@@ -71861,11 +71862,11 @@ spurious results.`);
|
|
|
71861
71862
|
return cache;
|
|
71862
71863
|
};
|
|
71863
71864
|
|
|
71864
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/sizes.js
|
|
71865
|
+
// 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
|
|
71865
71866
|
var cacheSizeSymbol = Symbol.for("apollo.cacheSize");
|
|
71866
71867
|
var cacheSizes = __assign({}, global_default[cacheSizeSymbol]);
|
|
71867
71868
|
|
|
71868
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
|
|
71869
|
+
// 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
|
|
71869
71870
|
var globalCaches = {};
|
|
71870
71871
|
function registerGlobalCache(name, getSize) {
|
|
71871
71872
|
globalCaches[name] = getSize;
|
|
@@ -71955,7 +71956,7 @@ spurious results.`);
|
|
|
71955
71956
|
], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
|
|
71956
71957
|
}
|
|
71957
71958
|
|
|
71958
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/canonicalStringify.js
|
|
71959
|
+
// 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
|
|
71959
71960
|
var canonicalStringify = Object.assign(function canonicalStringify2(value) {
|
|
71960
71961
|
return JSON.stringify(value, stableObjectReplacer);
|
|
71961
71962
|
}, {
|
|
@@ -72002,7 +72003,7 @@ spurious results.`);
|
|
|
72002
72003
|
return i === 0 || keys[i - 1] <= key;
|
|
72003
72004
|
}
|
|
72004
72005
|
|
|
72005
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/storeUtils.js
|
|
72006
|
+
// 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
|
|
72006
72007
|
function makeReference(id) {
|
|
72007
72008
|
return { __ref: String(id) };
|
|
72008
72009
|
}
|
|
@@ -72187,7 +72188,7 @@ spurious results.`);
|
|
|
72187
72188
|
return selection.kind === "InlineFragment";
|
|
72188
72189
|
}
|
|
72189
72190
|
|
|
72190
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/getFromAST.js
|
|
72191
|
+
// 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
|
|
72191
72192
|
function checkDocument(doc) {
|
|
72192
72193
|
invariant2(doc && doc.kind === "Document", 77);
|
|
72193
72194
|
var operations = doc.definitions.filter(function(d) {
|
|
@@ -72746,7 +72747,7 @@ spurious results.`);
|
|
|
72746
72747
|
return Object.freeze(optimistic);
|
|
72747
72748
|
}
|
|
72748
72749
|
|
|
72749
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
|
|
72750
|
+
// 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
|
|
72750
72751
|
function identity(document2) {
|
|
72751
72752
|
return document2;
|
|
72752
72753
|
}
|
|
@@ -72830,7 +72831,7 @@ spurious results.`);
|
|
|
72830
72831
|
})()
|
|
72831
72832
|
);
|
|
72832
72833
|
|
|
72833
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/print.js
|
|
72834
|
+
// 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
|
|
72834
72835
|
var printCache;
|
|
72835
72836
|
var print2 = Object.assign(function(ast) {
|
|
72836
72837
|
var result2 = printCache.get(ast);
|
|
@@ -72854,13 +72855,13 @@ spurious results.`);
|
|
|
72854
72855
|
});
|
|
72855
72856
|
}
|
|
72856
72857
|
|
|
72857
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/arrays.js
|
|
72858
|
+
// 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
|
|
72858
72859
|
var isArray2 = Array.isArray;
|
|
72859
72860
|
function isNonEmptyArray(value) {
|
|
72860
72861
|
return Array.isArray(value) && value.length > 0;
|
|
72861
72862
|
}
|
|
72862
72863
|
|
|
72863
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/transform.js
|
|
72864
|
+
// 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
|
|
72864
72865
|
var TYPENAME_FIELD = {
|
|
72865
72866
|
kind: Kind.FIELD,
|
|
72866
72867
|
name: {
|
|
@@ -73152,7 +73153,7 @@ spurious results.`);
|
|
|
73152
73153
|
return modifiedDoc;
|
|
73153
73154
|
}
|
|
73154
73155
|
|
|
73155
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/mergeDeep.js
|
|
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/utilities/common/mergeDeep.js
|
|
73156
73157
|
var hasOwnProperty4 = Object.prototype.hasOwnProperty;
|
|
73157
73158
|
function mergeDeep() {
|
|
73158
73159
|
var sources = [];
|
|
@@ -73788,7 +73789,7 @@ spurious results.`);
|
|
|
73788
73789
|
}
|
|
73789
73790
|
var result = symbolObservablePonyfill(root);
|
|
73790
73791
|
|
|
73791
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/Observable.js
|
|
73792
|
+
// 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
|
|
73792
73793
|
var prototype3 = Observable.prototype;
|
|
73793
73794
|
var fakeObsSymbol = "@@observable";
|
|
73794
73795
|
if (!prototype3[fakeObsSymbol]) {
|
|
@@ -73797,7 +73798,7 @@ spurious results.`);
|
|
|
73797
73798
|
};
|
|
73798
73799
|
}
|
|
73799
73800
|
|
|
73800
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/cloneDeep.js
|
|
73801
|
+
// 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
|
|
73801
73802
|
var toString4 = Object.prototype.toString;
|
|
73802
73803
|
function cloneDeep(value) {
|
|
73803
73804
|
return cloneDeepHelper(value);
|
|
@@ -73831,7 +73832,7 @@ spurious results.`);
|
|
|
73831
73832
|
}
|
|
73832
73833
|
}
|
|
73833
73834
|
|
|
73834
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
|
|
73835
|
+
// 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
|
|
73835
73836
|
function deepFreeze(value) {
|
|
73836
73837
|
var workSet = /* @__PURE__ */ new Set([value]);
|
|
73837
73838
|
workSet.forEach(function(obj) {
|
|
@@ -73863,7 +73864,7 @@ spurious results.`);
|
|
|
73863
73864
|
return obj;
|
|
73864
73865
|
}
|
|
73865
73866
|
|
|
73866
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/iteration.js
|
|
73867
|
+
// 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
|
|
73867
73868
|
function iterateObserversSafely(observers, method, argument) {
|
|
73868
73869
|
var observersWithMethod = [];
|
|
73869
73870
|
observers.forEach(function(obs) {
|
|
@@ -73874,7 +73875,7 @@ spurious results.`);
|
|
|
73874
73875
|
});
|
|
73875
73876
|
}
|
|
73876
73877
|
|
|
73877
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/asyncMap.js
|
|
73878
|
+
// 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
|
|
73878
73879
|
function asyncMap(observable, mapFn, catchFn) {
|
|
73879
73880
|
return new Observable(function(observer) {
|
|
73880
73881
|
var promiseQueue = {
|
|
@@ -73922,7 +73923,7 @@ spurious results.`);
|
|
|
73922
73923
|
});
|
|
73923
73924
|
}
|
|
73924
73925
|
|
|
73925
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/subclassing.js
|
|
73926
|
+
// 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
|
|
73926
73927
|
function fixObservableSubclass(subclass) {
|
|
73927
73928
|
function set(key) {
|
|
73928
73929
|
Object.defineProperty(subclass, key, { value: Observable });
|
|
@@ -73934,7 +73935,7 @@ spurious results.`);
|
|
|
73934
73935
|
return subclass;
|
|
73935
73936
|
}
|
|
73936
73937
|
|
|
73937
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/Concast.js
|
|
73938
|
+
// 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
|
|
73938
73939
|
function isPromiseLike(value) {
|
|
73939
73940
|
return value && typeof value.then === "function";
|
|
73940
73941
|
}
|
|
@@ -74075,7 +74076,7 @@ spurious results.`);
|
|
|
74075
74076
|
);
|
|
74076
74077
|
fixObservableSubclass(Concast);
|
|
74077
74078
|
|
|
74078
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/incrementalResult.js
|
|
74079
|
+
// 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
|
|
74079
74080
|
function isExecutionPatchIncrementalResult(value) {
|
|
74080
74081
|
return "incremental" in value;
|
|
74081
74082
|
}
|
|
@@ -74107,7 +74108,7 @@ spurious results.`);
|
|
|
74107
74108
|
return mergedData;
|
|
74108
74109
|
}
|
|
74109
74110
|
|
|
74110
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/errorHandling.js
|
|
74111
|
+
// 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
|
|
74111
74112
|
function graphQLResultHasError(result2) {
|
|
74112
74113
|
var errors2 = getGraphQLErrorsFromResult(result2);
|
|
74113
74114
|
return isNonEmptyArray(errors2);
|
|
@@ -74124,7 +74125,7 @@ spurious results.`);
|
|
|
74124
74125
|
return graphQLErrors;
|
|
74125
74126
|
}
|
|
74126
74127
|
|
|
74127
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/compact.js
|
|
74128
|
+
// 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
|
|
74128
74129
|
function compact() {
|
|
74129
74130
|
var objects = [];
|
|
74130
74131
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -74144,21 +74145,21 @@ spurious results.`);
|
|
|
74144
74145
|
return result2;
|
|
74145
74146
|
}
|
|
74146
74147
|
|
|
74147
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/utilities/common/mergeOptions.js
|
|
74148
|
+
// 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
|
|
74148
74149
|
function mergeOptions(defaults2, options) {
|
|
74149
74150
|
return compact(defaults2, options, options.variables && {
|
|
74150
74151
|
variables: compact(__assign(__assign({}, defaults2 && defaults2.variables), options.variables))
|
|
74151
74152
|
});
|
|
74152
74153
|
}
|
|
74153
74154
|
|
|
74154
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/fromError.js
|
|
74155
|
+
// 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
|
|
74155
74156
|
function fromError(errorValue) {
|
|
74156
74157
|
return new Observable(function(observer) {
|
|
74157
74158
|
observer.error(errorValue);
|
|
74158
74159
|
});
|
|
74159
74160
|
}
|
|
74160
74161
|
|
|
74161
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/throwServerError.js
|
|
74162
|
+
// 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
|
|
74162
74163
|
var throwServerError = function(response, result2, message) {
|
|
74163
74164
|
var error2 = new Error(message);
|
|
74164
74165
|
error2.name = "ServerError";
|
|
@@ -74168,7 +74169,7 @@ spurious results.`);
|
|
|
74168
74169
|
throw error2;
|
|
74169
74170
|
};
|
|
74170
74171
|
|
|
74171
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/validateOperation.js
|
|
74172
|
+
// 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
|
|
74172
74173
|
function validateOperation(operation) {
|
|
74173
74174
|
var OPERATION_FIELDS = [
|
|
74174
74175
|
"query",
|
|
@@ -74186,7 +74187,7 @@ spurious results.`);
|
|
|
74186
74187
|
return operation;
|
|
74187
74188
|
}
|
|
74188
74189
|
|
|
74189
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/createOperation.js
|
|
74190
|
+
// 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
|
|
74190
74191
|
function createOperation(starting, operation) {
|
|
74191
74192
|
var context = __assign({}, starting);
|
|
74192
74193
|
var setContext = function(next) {
|
|
@@ -74210,7 +74211,7 @@ spurious results.`);
|
|
|
74210
74211
|
return operation;
|
|
74211
74212
|
}
|
|
74212
74213
|
|
|
74213
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/transformOperation.js
|
|
74214
|
+
// 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
|
|
74214
74215
|
function transformOperation(operation) {
|
|
74215
74216
|
var transformedOperation = {
|
|
74216
74217
|
variables: operation.variables || {},
|
|
@@ -74224,7 +74225,7 @@ spurious results.`);
|
|
|
74224
74225
|
return transformedOperation;
|
|
74225
74226
|
}
|
|
74226
74227
|
|
|
74227
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/utils/filterOperationVariables.js
|
|
74228
|
+
// 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
|
|
74228
74229
|
function filterOperationVariables(variables, query) {
|
|
74229
74230
|
var result2 = __assign({}, variables);
|
|
74230
74231
|
var unusedNames = new Set(Object.keys(variables));
|
|
@@ -74241,7 +74242,7 @@ spurious results.`);
|
|
|
74241
74242
|
return result2;
|
|
74242
74243
|
}
|
|
74243
74244
|
|
|
74244
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/core/ApolloLink.js
|
|
74245
|
+
// 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
|
|
74245
74246
|
function passthrough(op, forward) {
|
|
74246
74247
|
return forward ? forward(op) : Observable.of();
|
|
74247
74248
|
}
|
|
@@ -74335,10 +74336,10 @@ spurious results.`);
|
|
|
74335
74336
|
})()
|
|
74336
74337
|
);
|
|
74337
74338
|
|
|
74338
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/core/execute.js
|
|
74339
|
+
// 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
|
|
74339
74340
|
var execute = ApolloLink.execute;
|
|
74340
74341
|
|
|
74341
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/async.js
|
|
74342
|
+
// 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
|
|
74342
74343
|
function asyncIterator(source) {
|
|
74343
74344
|
var _a21;
|
|
74344
74345
|
var iterator2 = source[Symbol.asyncIterator]();
|
|
@@ -74351,7 +74352,7 @@ spurious results.`);
|
|
|
74351
74352
|
}, _a21;
|
|
74352
74353
|
}
|
|
74353
74354
|
|
|
74354
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/nodeStream.js
|
|
74355
|
+
// 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
|
|
74355
74356
|
function nodeStreamIterator(stream) {
|
|
74356
74357
|
var cleanup = null;
|
|
74357
74358
|
var error2 = null;
|
|
@@ -74422,7 +74423,7 @@ spurious results.`);
|
|
|
74422
74423
|
return iterator2;
|
|
74423
74424
|
}
|
|
74424
74425
|
|
|
74425
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/promise.js
|
|
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/link/http/iterators/promise.js
|
|
74426
74427
|
function promiseIterator(promise) {
|
|
74427
74428
|
var resolved = false;
|
|
74428
74429
|
var iterator2 = {
|
|
@@ -74448,7 +74449,7 @@ spurious results.`);
|
|
|
74448
74449
|
return iterator2;
|
|
74449
74450
|
}
|
|
74450
74451
|
|
|
74451
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/reader.js
|
|
74452
|
+
// 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
|
|
74452
74453
|
function readerIterator(reader) {
|
|
74453
74454
|
var iterator2 = {
|
|
74454
74455
|
next: function() {
|
|
@@ -74463,7 +74464,7 @@ spurious results.`);
|
|
|
74463
74464
|
return iterator2;
|
|
74464
74465
|
}
|
|
74465
74466
|
|
|
74466
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/responseIterator.js
|
|
74467
|
+
// 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
|
|
74467
74468
|
function isNodeResponse(value) {
|
|
74468
74469
|
return !!value.body;
|
|
74469
74470
|
}
|
|
@@ -74500,7 +74501,7 @@ spurious results.`);
|
|
|
74500
74501
|
throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
|
|
74501
74502
|
}
|
|
74502
74503
|
|
|
74503
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/errors/index.js
|
|
74504
|
+
// 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
|
|
74504
74505
|
var PROTOCOL_ERRORS_SYMBOL = Symbol();
|
|
74505
74506
|
function graphQLResultHasProtocolErrors(result2) {
|
|
74506
74507
|
if (result2.extensions) {
|
|
@@ -74545,7 +74546,7 @@ spurious results.`);
|
|
|
74545
74546
|
})(Error)
|
|
74546
74547
|
);
|
|
74547
74548
|
|
|
74548
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
|
|
74549
|
+
// 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
|
|
74549
74550
|
var hasOwnProperty5 = Object.prototype.hasOwnProperty;
|
|
74550
74551
|
function readMultipartBody(response, nextValue) {
|
|
74551
74552
|
return __awaiter(this, void 0, void 0, function() {
|
|
@@ -74689,7 +74690,7 @@ spurious results.`);
|
|
|
74689
74690
|
};
|
|
74690
74691
|
}
|
|
74691
74692
|
|
|
74692
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/serializeFetchParameter.js
|
|
74693
|
+
// 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
|
|
74693
74694
|
var serializeFetchParameter = function(p, label) {
|
|
74694
74695
|
var serialized;
|
|
74695
74696
|
try {
|
|
@@ -74702,7 +74703,7 @@ spurious results.`);
|
|
|
74702
74703
|
return serialized;
|
|
74703
74704
|
};
|
|
74704
74705
|
|
|
74705
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
|
|
74706
|
+
// 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
|
|
74706
74707
|
var defaultHttpOptions = {
|
|
74707
74708
|
includeQuery: true,
|
|
74708
74709
|
includeExtensions: false,
|
|
@@ -74786,14 +74787,14 @@ spurious results.`);
|
|
|
74786
74787
|
return normalizedHeaders;
|
|
74787
74788
|
}
|
|
74788
74789
|
|
|
74789
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/checkFetcher.js
|
|
74790
|
+
// 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
|
|
74790
74791
|
var checkFetcher = function(fetcher) {
|
|
74791
74792
|
if (!fetcher && typeof fetch === "undefined") {
|
|
74792
74793
|
throw newInvariantError(38);
|
|
74793
74794
|
}
|
|
74794
74795
|
};
|
|
74795
74796
|
|
|
74796
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/selectURI.js
|
|
74797
|
+
// 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
|
|
74797
74798
|
var selectURI = function(operation, fallbackURI) {
|
|
74798
74799
|
var context = operation.getContext();
|
|
74799
74800
|
var contextURI = context.uri;
|
|
@@ -74806,7 +74807,7 @@ spurious results.`);
|
|
|
74806
74807
|
}
|
|
74807
74808
|
};
|
|
74808
74809
|
|
|
74809
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/rewriteURIForGET.js
|
|
74810
|
+
// 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
|
|
74810
74811
|
function rewriteURIForGET(chosenURI, body) {
|
|
74811
74812
|
var queryParams = [];
|
|
74812
74813
|
var addQueryParam = function(key, value) {
|
|
@@ -74847,7 +74848,7 @@ spurious results.`);
|
|
|
74847
74848
|
return { newURI };
|
|
74848
74849
|
}
|
|
74849
74850
|
|
|
74850
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/createHttpLink.js
|
|
74851
|
+
// 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
|
|
74851
74852
|
var backupFetch = maybe(function() {
|
|
74852
74853
|
return fetch;
|
|
74853
74854
|
});
|
|
@@ -74967,7 +74968,7 @@ spurious results.`);
|
|
|
74967
74968
|
});
|
|
74968
74969
|
};
|
|
74969
74970
|
|
|
74970
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/link/http/HttpLink.js
|
|
74971
|
+
// 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
|
|
74971
74972
|
var HttpLink = (
|
|
74972
74973
|
/** @class */
|
|
74973
74974
|
(function(_super) {
|
|
@@ -75120,7 +75121,7 @@ spurious results.`);
|
|
|
75120
75121
|
return false;
|
|
75121
75122
|
}
|
|
75122
75123
|
|
|
75123
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/equalByQuery.js
|
|
75124
|
+
// 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
|
|
75124
75125
|
function equalByQuery(query, _a21, _b, variables) {
|
|
75125
75126
|
var aData = _a21.data, aRest = __rest(_a21, ["data"]);
|
|
75126
75127
|
var bData = _b.data, bRest = __rest(_b, ["data"]);
|
|
@@ -75193,7 +75194,7 @@ spurious results.`);
|
|
|
75193
75194
|
return dir.name.value === "nonreactive";
|
|
75194
75195
|
}
|
|
75195
75196
|
|
|
75196
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/core/cache.js
|
|
75197
|
+
// 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
|
|
75197
75198
|
var ApolloCache = (
|
|
75198
75199
|
/** @class */
|
|
75199
75200
|
(function() {
|
|
@@ -75325,7 +75326,7 @@ spurious results.`);
|
|
|
75325
75326
|
ApolloCache.prototype.getMemoryInternals = getApolloCacheMemoryInternals;
|
|
75326
75327
|
}
|
|
75327
75328
|
|
|
75328
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/core/types/common.js
|
|
75329
|
+
// 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
|
|
75329
75330
|
var MissingFieldError = (
|
|
75330
75331
|
/** @class */
|
|
75331
75332
|
(function(_super) {
|
|
@@ -75352,7 +75353,7 @@ spurious results.`);
|
|
|
75352
75353
|
})(Error)
|
|
75353
75354
|
);
|
|
75354
75355
|
|
|
75355
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/helpers.js
|
|
75356
|
+
// 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
|
|
75356
75357
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
75357
75358
|
function isNullish(value) {
|
|
75358
75359
|
return value === null || value === void 0;
|
|
@@ -75428,7 +75429,7 @@ spurious results.`);
|
|
|
75428
75429
|
};
|
|
75429
75430
|
}
|
|
75430
75431
|
|
|
75431
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/entityStore.js
|
|
75432
|
+
// 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
|
|
75432
75433
|
var DELETE = /* @__PURE__ */ Object.create(null);
|
|
75433
75434
|
var delModifier = function() {
|
|
75434
75435
|
return DELETE;
|
|
@@ -75945,7 +75946,7 @@ spurious results.`);
|
|
|
75945
75946
|
return !!(store instanceof EntityStore && store.group.caching);
|
|
75946
75947
|
}
|
|
75947
75948
|
|
|
75948
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/object-canon.js
|
|
75949
|
+
// 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
|
|
75949
75950
|
function shallowCopy(value) {
|
|
75950
75951
|
if (isNonNullObject(value)) {
|
|
75951
75952
|
return isArray2(value) ? value.slice(0) : __assign({ __proto__: Object.getPrototypeOf(value) }, value);
|
|
@@ -76039,7 +76040,7 @@ spurious results.`);
|
|
|
76039
76040
|
})()
|
|
76040
76041
|
);
|
|
76041
76042
|
|
|
76042
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/readFromStore.js
|
|
76043
|
+
// 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
|
|
76043
76044
|
function execSelectionSetKeyArgs(options) {
|
|
76044
76045
|
return [
|
|
76045
76046
|
options.selectionSet,
|
|
@@ -76308,7 +76309,7 @@ spurious results.`);
|
|
|
76308
76309
|
}
|
|
76309
76310
|
}
|
|
76310
76311
|
|
|
76311
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
|
|
76312
|
+
// 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
|
|
76312
76313
|
var cacheSlot = new Slot();
|
|
76313
76314
|
var cacheInfoMap = /* @__PURE__ */ new WeakMap();
|
|
76314
76315
|
function getCacheInfo(cache) {
|
|
@@ -76379,7 +76380,7 @@ spurious results.`);
|
|
|
76379
76380
|
}
|
|
76380
76381
|
}
|
|
76381
76382
|
|
|
76382
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/key-extractor.js
|
|
76383
|
+
// 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
|
|
76383
76384
|
var specifierInfoCache = /* @__PURE__ */ Object.create(null);
|
|
76384
76385
|
function lookupSpecifierInfo(spec) {
|
|
76385
76386
|
var cacheKey = JSON.stringify(spec);
|
|
@@ -76512,7 +76513,7 @@ spurious results.`);
|
|
|
76512
76513
|
return value;
|
|
76513
76514
|
}
|
|
76514
76515
|
|
|
76515
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/policies.js
|
|
76516
|
+
// 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
|
|
76516
76517
|
function argsFromFieldSpecifier(spec) {
|
|
76517
76518
|
return spec.args !== void 0 ? spec.args : spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;
|
|
76518
76519
|
}
|
|
@@ -76947,7 +76948,7 @@ spurious results.`);
|
|
|
76947
76948
|
};
|
|
76948
76949
|
}
|
|
76949
76950
|
|
|
76950
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/writeToStore.js
|
|
76951
|
+
// 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
|
|
76951
76952
|
function getContextFlavor(context, clientOnly, deferred) {
|
|
76952
76953
|
var key = "".concat(clientOnly).concat(deferred);
|
|
76953
76954
|
var flavored = context.flavors.get(key);
|
|
@@ -77352,7 +77353,7 @@ spurious results.`);
|
|
|
77352
77353
|
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));
|
|
77353
77354
|
}
|
|
77354
77355
|
|
|
77355
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
|
|
77356
|
+
// 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
|
|
77356
77357
|
var InMemoryCache = (
|
|
77357
77358
|
/** @class */
|
|
77358
77359
|
(function(_super) {
|
|
@@ -77661,7 +77662,7 @@ spurious results.`);
|
|
|
77661
77662
|
InMemoryCache.prototype.getMemoryInternals = getInMemoryCacheMemoryInternals;
|
|
77662
77663
|
}
|
|
77663
77664
|
|
|
77664
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/networkStatus.js
|
|
77665
|
+
// 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
|
|
77665
77666
|
var NetworkStatus;
|
|
77666
77667
|
(function(NetworkStatus2) {
|
|
77667
77668
|
NetworkStatus2[NetworkStatus2["loading"] = 1] = "loading";
|
|
@@ -77676,7 +77677,7 @@ spurious results.`);
|
|
|
77676
77677
|
return networkStatus ? networkStatus < 7 : false;
|
|
77677
77678
|
}
|
|
77678
77679
|
|
|
77679
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/ObservableQuery.js
|
|
77680
|
+
// 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
|
|
77680
77681
|
var assign2 = Object.assign;
|
|
77681
77682
|
var hasOwnProperty7 = Object.hasOwnProperty;
|
|
77682
77683
|
var ObservableQuery = (
|
|
@@ -78284,7 +78285,7 @@ spurious results.`);
|
|
|
78284
78285
|
return fetchPolicy === "network-only" || fetchPolicy === "no-cache" || fetchPolicy === "standby";
|
|
78285
78286
|
}
|
|
78286
78287
|
|
|
78287
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/QueryInfo.js
|
|
78288
|
+
// 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
|
|
78288
78289
|
var destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();
|
|
78289
78290
|
function wrapDestructiveCacheMethod(cache, methodName) {
|
|
78290
78291
|
var original = cache[methodName];
|
|
@@ -78576,7 +78577,7 @@ spurious results.`);
|
|
|
78576
78577
|
return writeWithErrors;
|
|
78577
78578
|
}
|
|
78578
78579
|
|
|
78579
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/QueryManager.js
|
|
78580
|
+
// 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
|
|
78580
78581
|
var hasOwnProperty8 = Object.prototype.hasOwnProperty;
|
|
78581
78582
|
var IGNORE = /* @__PURE__ */ Object.create(null);
|
|
78582
78583
|
var QueryManager = (
|
|
@@ -79562,7 +79563,7 @@ spurious results.`);
|
|
|
79562
79563
|
})()
|
|
79563
79564
|
);
|
|
79564
79565
|
|
|
79565
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/LocalState.js
|
|
79566
|
+
// 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
|
|
79566
79567
|
var LocalState = (
|
|
79567
79568
|
/** @class */
|
|
79568
79569
|
(function() {
|
|
@@ -79912,7 +79913,7 @@ spurious results.`);
|
|
|
79912
79913
|
})()
|
|
79913
79914
|
);
|
|
79914
79915
|
|
|
79915
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/ApolloClient.js
|
|
79916
|
+
// 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
|
|
79916
79917
|
var hasSuggestedDevtools = false;
|
|
79917
79918
|
var ApolloClient = (
|
|
79918
79919
|
/** @class */
|
|
@@ -80314,7 +80315,7 @@ spurious results.`);
|
|
|
80314
80315
|
})(gql || (gql = {}));
|
|
80315
80316
|
gql["default"] = gql;
|
|
80316
80317
|
|
|
80317
|
-
// node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.1.11_graphql@16.9.0/node_modules/@apollo/client/core/index.js
|
|
80318
|
+
// 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
|
|
80318
80319
|
setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
|
|
80319
80320
|
|
|
80320
80321
|
// src/modules/apollo-client.ts
|
|
@@ -91443,11 +91444,6 @@ spurious results.`);
|
|
|
91443
91444
|
if (!this.pricer) {
|
|
91444
91445
|
throw new Error("Pricer is not initialized");
|
|
91445
91446
|
}
|
|
91446
|
-
const CACHE_KEY = `positions_${blockNumber}_${this.config.poolId.shortString()}_${this.config.collateral.symbol}_${this.config.debt.symbol}`;
|
|
91447
|
-
const cacheData = this.getCache(CACHE_KEY);
|
|
91448
|
-
if (cacheData) {
|
|
91449
|
-
return cacheData;
|
|
91450
|
-
}
|
|
91451
91447
|
const { contract, isV2 } = this.getVesuSingletonContract(config3, this.config.poolId);
|
|
91452
91448
|
const output = await contract.call(isV2 ? "position" : "position_unsafe", [
|
|
91453
91449
|
...isV2 ? [] : [this.config.poolId.address],
|
|
@@ -91473,7 +91469,6 @@ spurious results.`);
|
|
|
91473
91469
|
usdValue: debtAmount.multipliedBy(token2Price.price).toNumber(),
|
|
91474
91470
|
remarks: "Debt"
|
|
91475
91471
|
}];
|
|
91476
|
-
this.setCache(CACHE_KEY, value, 6e4);
|
|
91477
91472
|
return value.map((v) => ({ ...v, protocol: Protocols.VESU }));
|
|
91478
91473
|
}
|
|
91479
91474
|
async getCollateralization(config3, blockNumber = "latest") {
|
|
@@ -98296,6 +98291,16 @@ spurious results.`);
|
|
|
98296
98291
|
getStrategySettings("mRe7YIELD", "mRe7YIELD", hypermRe7YIELD, false, false)
|
|
98297
98292
|
];
|
|
98298
98293
|
|
|
98294
|
+
// src/strategies/vesu-extended-strategy/types/transaction-metadata.ts
|
|
98295
|
+
var CycleType = /* @__PURE__ */ ((CycleType2) => {
|
|
98296
|
+
CycleType2["INVESTMENT"] = "INVESTMENT";
|
|
98297
|
+
CycleType2["REBALANCE_PRICE_DROP"] = "REBALANCE_PRICE_DROP";
|
|
98298
|
+
CycleType2["REBALANCE_PRICE_RISE"] = "REBALANCE_PRICE_RISE";
|
|
98299
|
+
CycleType2["WITHDRAWAL"] = "WITHDRAWAL";
|
|
98300
|
+
CycleType2["DELTA_NEUTRAL_ADJUSTMENT"] = "DELTA_NEUTRAL_ADJUSTMENT";
|
|
98301
|
+
return CycleType2;
|
|
98302
|
+
})(CycleType || {});
|
|
98303
|
+
|
|
98299
98304
|
// src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx
|
|
98300
98305
|
var import_jsx_runtime5 = __toESM(require_jsx_runtime());
|
|
98301
98306
|
var VesuExtendedMultiplierStrategy = class _VesuExtendedMultiplierStrategy extends SVKStrategy {
|
|
@@ -98677,7 +98682,8 @@ spurious results.`);
|
|
|
98677
98682
|
{
|
|
98678
98683
|
to: Protocols.VAULT.name,
|
|
98679
98684
|
from: Protocols.EXTENDED.name,
|
|
98680
|
-
amount: extendedAmount.abs()
|
|
98685
|
+
amount: extendedAmount.abs(),
|
|
98686
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98681
98687
|
},
|
|
98682
98688
|
extendedAdapter,
|
|
98683
98689
|
vesuAdapter
|
|
@@ -98692,11 +98698,11 @@ spurious results.`);
|
|
|
98692
98698
|
}
|
|
98693
98699
|
});
|
|
98694
98700
|
} else {
|
|
98695
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmount.abs() }, "NONE")];
|
|
98701
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmount.abs() }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98696
98702
|
}
|
|
98697
98703
|
} catch (err2) {
|
|
98698
98704
|
logger2.error(`Failed moving assets to vault: ${err2}`);
|
|
98699
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmount.abs() }, "NONE")];
|
|
98705
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmount.abs() }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98700
98706
|
}
|
|
98701
98707
|
}
|
|
98702
98708
|
if (vesuAmount.isNegative() && vesuAmount.abs().greaterThan(vesuAdapter.minimumVesuMovementAmount)) {
|
|
@@ -98705,13 +98711,14 @@ spurious results.`);
|
|
|
98705
98711
|
{
|
|
98706
98712
|
to: Protocols.EXTENDED.name,
|
|
98707
98713
|
from: Protocols.VESU.name,
|
|
98708
|
-
amount: vesuAmount.abs()
|
|
98714
|
+
amount: vesuAmount.abs(),
|
|
98715
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98709
98716
|
},
|
|
98710
98717
|
extendedAdapter,
|
|
98711
98718
|
vesuAdapter
|
|
98712
98719
|
);
|
|
98713
98720
|
if (!vesuStatus) {
|
|
98714
|
-
return [this.createTransactionResult([], false, { from: Protocols.VESU.name, to: Protocols.EXTENDED.name, amount: vesuAmount.abs() }, "NONE")];
|
|
98721
|
+
return [this.createTransactionResult([], false, { from: Protocols.VESU.name, to: Protocols.EXTENDED.name, amount: vesuAmount.abs() }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98715
98722
|
}
|
|
98716
98723
|
transactionResults.push({
|
|
98717
98724
|
status: vesuStatus,
|
|
@@ -98723,7 +98730,7 @@ spurious results.`);
|
|
|
98723
98730
|
});
|
|
98724
98731
|
} catch (err2) {
|
|
98725
98732
|
logger2.error(`Failed moving assets to extended via vault allocator: ${err2}`);
|
|
98726
|
-
return [this.createTransactionResult([], false, { from: Protocols.VESU.name, to: Protocols.EXTENDED.name, amount: vesuAmount.abs() }, "NONE")];
|
|
98733
|
+
return [this.createTransactionResult([], false, { from: Protocols.VESU.name, to: Protocols.EXTENDED.name, amount: vesuAmount.abs() }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98727
98734
|
}
|
|
98728
98735
|
}
|
|
98729
98736
|
if (extendedAmountDifferenceAbs.greaterThan(extendedAdapter.minimumExtendedMovementAmount)) {
|
|
@@ -98733,7 +98740,8 @@ spurious results.`);
|
|
|
98733
98740
|
{
|
|
98734
98741
|
to: Protocols.EXTENDED.name,
|
|
98735
98742
|
from: Protocols.VAULT.name,
|
|
98736
|
-
amount: extendedAmountDifference
|
|
98743
|
+
amount: extendedAmountDifference,
|
|
98744
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98737
98745
|
},
|
|
98738
98746
|
extendedAdapter,
|
|
98739
98747
|
vesuAdapter
|
|
@@ -98746,11 +98754,11 @@ spurious results.`);
|
|
|
98746
98754
|
});
|
|
98747
98755
|
} else {
|
|
98748
98756
|
logger2.error(`Failed to move assets to extended - operation returned false status`);
|
|
98749
|
-
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.EXTENDED.name, amount: extendedAmountDifference }, "NONE")];
|
|
98757
|
+
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.EXTENDED.name, amount: extendedAmountDifference }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98750
98758
|
}
|
|
98751
98759
|
} catch (err2) {
|
|
98752
98760
|
logger2.error(`Failed moving assets to extended: ${err2}`);
|
|
98753
|
-
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.EXTENDED.name, amount: extendedAmountDifference }, "NONE")];
|
|
98761
|
+
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.EXTENDED.name, amount: extendedAmountDifference }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98754
98762
|
}
|
|
98755
98763
|
} else if (extendedAmountDifference.lessThan(0)) {
|
|
98756
98764
|
try {
|
|
@@ -98758,7 +98766,8 @@ spurious results.`);
|
|
|
98758
98766
|
{
|
|
98759
98767
|
to: Protocols.VAULT.name,
|
|
98760
98768
|
from: Protocols.EXTENDED.name,
|
|
98761
|
-
amount: extendedAmountDifferenceAbs
|
|
98769
|
+
amount: extendedAmountDifferenceAbs,
|
|
98770
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98762
98771
|
},
|
|
98763
98772
|
extendedAdapter,
|
|
98764
98773
|
vesuAdapter
|
|
@@ -98774,11 +98783,11 @@ spurious results.`);
|
|
|
98774
98783
|
});
|
|
98775
98784
|
} else {
|
|
98776
98785
|
logger2.error(`Failed to withdraw from extended - operation returned false status`);
|
|
98777
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmountDifferenceAbs }, "NONE")];
|
|
98786
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmountDifferenceAbs }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98778
98787
|
}
|
|
98779
98788
|
} catch (err2) {
|
|
98780
98789
|
logger2.error(`Failed moving assets from extended to vault: ${err2}`);
|
|
98781
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmountDifferenceAbs }, "NONE")];
|
|
98790
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: extendedAmountDifferenceAbs }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98782
98791
|
}
|
|
98783
98792
|
}
|
|
98784
98793
|
}
|
|
@@ -98793,14 +98802,15 @@ spurious results.`);
|
|
|
98793
98802
|
{
|
|
98794
98803
|
to: Protocols.VAULT.name,
|
|
98795
98804
|
from: Protocols.EXTENDED.name,
|
|
98796
|
-
amount: vesuAmountDifference
|
|
98805
|
+
amount: vesuAmountDifference,
|
|
98806
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98797
98807
|
},
|
|
98798
98808
|
extendedAdapter,
|
|
98799
98809
|
vesuAdapter
|
|
98800
98810
|
);
|
|
98801
98811
|
if (!vesuStatus) {
|
|
98802
98812
|
logger2.error(`Failed to move assets to vesu - operation returned false status`);
|
|
98803
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: vesuAmountDifference }, "NONE")];
|
|
98813
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: vesuAmountDifference }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98804
98814
|
}
|
|
98805
98815
|
transactionResults.push({
|
|
98806
98816
|
status: vesuStatus,
|
|
@@ -98812,20 +98822,20 @@ spurious results.`);
|
|
|
98812
98822
|
});
|
|
98813
98823
|
} catch (err2) {
|
|
98814
98824
|
logger2.error(`Failed moving assets to vault: ${err2}`);
|
|
98815
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: vesuAmountDifference }, "NONE")];
|
|
98825
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: vesuAmountDifference }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98816
98826
|
}
|
|
98817
98827
|
}
|
|
98818
98828
|
}
|
|
98819
98829
|
return transactionResults;
|
|
98820
98830
|
} catch (err2) {
|
|
98821
98831
|
logger2.error(`Failed moving assets to vesu: ${err2}`);
|
|
98822
|
-
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: new Web3Number(0, USDC_TOKEN_DECIMALS) }, "NONE")];
|
|
98832
|
+
return [this.createTransactionResult([], false, { from: Protocols.EXTENDED.name, to: Protocols.VAULT.name, amount: new Web3Number(0, USDC_TOKEN_DECIMALS) }, "NONE", "INVESTMENT" /* INVESTMENT */)];
|
|
98823
98833
|
}
|
|
98824
98834
|
}
|
|
98825
98835
|
/**
|
|
98826
98836
|
* Helper method to create transaction result with metadata
|
|
98827
98837
|
*/
|
|
98828
|
-
createTransactionResult(calls, status, params, transactionType) {
|
|
98838
|
+
createTransactionResult(calls, status, params, transactionType, cycleType) {
|
|
98829
98839
|
if (status) {
|
|
98830
98840
|
return {
|
|
98831
98841
|
calls,
|
|
@@ -98835,11 +98845,12 @@ spurious results.`);
|
|
|
98835
98845
|
protocolTo: params.to,
|
|
98836
98846
|
transactionType,
|
|
98837
98847
|
usdAmount: params.amount.abs().toFixed(),
|
|
98838
|
-
status: "PENDING"
|
|
98848
|
+
status: "PENDING",
|
|
98849
|
+
cycleType
|
|
98839
98850
|
}
|
|
98840
98851
|
};
|
|
98841
98852
|
}
|
|
98842
|
-
return { calls: [], status: false, transactionMetadata: { protocolFrom: "", protocolTo: "", transactionType: "DEPOSIT", usdAmount: "0", status: "FAILED" } };
|
|
98853
|
+
return { calls: [], status: false, transactionMetadata: { protocolFrom: "", protocolTo: "", transactionType: "DEPOSIT", usdAmount: "0", status: "FAILED", cycleType } };
|
|
98843
98854
|
}
|
|
98844
98855
|
async moveAssets(params, extendedAdapter, vesuAdapter) {
|
|
98845
98856
|
try {
|
|
@@ -98847,7 +98858,7 @@ spurious results.`);
|
|
|
98847
98858
|
logger2.error(
|
|
98848
98859
|
`Invalid amount for moveAssets: ${params.amount.toNumber()}. Amount must be positive.`
|
|
98849
98860
|
);
|
|
98850
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98861
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98851
98862
|
}
|
|
98852
98863
|
const amountAbs = params.amount.abs();
|
|
98853
98864
|
if (params.from === Protocols.EXTENDED.name || params.to === Protocols.EXTENDED.name) {
|
|
@@ -98855,7 +98866,7 @@ spurious results.`);
|
|
|
98855
98866
|
logger2.warn(
|
|
98856
98867
|
`Amount ${amountAbs.toNumber()} is below minimum Extended movement amount ${extendedAdapter.minimumExtendedMovementAmount}. Skipping operation.`
|
|
98857
98868
|
);
|
|
98858
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98869
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98859
98870
|
}
|
|
98860
98871
|
}
|
|
98861
98872
|
if (params.from === Protocols.VESU.name || params.to === Protocols.VESU.name) {
|
|
@@ -98863,13 +98874,13 @@ spurious results.`);
|
|
|
98863
98874
|
logger2.warn(
|
|
98864
98875
|
`Amount ${amountAbs.toNumber()} is below minimum Vesu movement amount ${vesuAdapter.minimumVesuMovementAmount}. Skipping operation.`
|
|
98865
98876
|
);
|
|
98866
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98877
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98867
98878
|
}
|
|
98868
98879
|
}
|
|
98869
98880
|
const avnuAdapter = await this.getAvnuAdapter();
|
|
98870
98881
|
if (!avnuAdapter) {
|
|
98871
98882
|
logger2.error(`avnu adapter not found: ${avnuAdapter}`);
|
|
98872
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98883
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98873
98884
|
}
|
|
98874
98885
|
logger2.info(`moveAssets params, ${JSON.stringify(params)}`);
|
|
98875
98886
|
const collateralToken = vesuAdapter.config.supportedPositions[0].asset;
|
|
@@ -98888,13 +98899,13 @@ spurious results.`);
|
|
|
98888
98899
|
await proofsInfo.callConstructor({ amount: params.amount })
|
|
98889
98900
|
);
|
|
98890
98901
|
calls.push(call);
|
|
98891
|
-
return this.createTransactionResult(calls, true, params, "DEPOSIT");
|
|
98902
|
+
return this.createTransactionResult(calls, true, params, "DEPOSIT", params.cycleType);
|
|
98892
98903
|
} else if (params.to === Protocols.VAULT.name && params.from === Protocols.EXTENDED.name) {
|
|
98893
98904
|
const extendedLeverage = calculateExtendedLevergae();
|
|
98894
98905
|
const extendedHoldings = await extendedAdapter.getExtendedDepositAmount();
|
|
98895
98906
|
if (!extendedHoldings) {
|
|
98896
98907
|
logger2.error(`error getting extended holdings: ${extendedHoldings}`);
|
|
98897
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98908
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98898
98909
|
}
|
|
98899
98910
|
const extendedHoldingAmount = new Web3Number(
|
|
98900
98911
|
extendedHoldings.availableForWithdrawal,
|
|
@@ -98911,7 +98922,7 @@ spurious results.`);
|
|
|
98911
98922
|
"BUY" /* BUY */
|
|
98912
98923
|
) : await extendedAdapter.createOrder(
|
|
98913
98924
|
extendedLeverage.toString(),
|
|
98914
|
-
|
|
98925
|
+
34e-6,
|
|
98915
98926
|
// just in case amount falls short then we need to create a withdrawal
|
|
98916
98927
|
"BUY" /* BUY */
|
|
98917
98928
|
);
|
|
@@ -98921,7 +98932,7 @@ spurious results.`);
|
|
|
98921
98932
|
const updatedHoldings = await extendedAdapter.getExtendedDepositAmount();
|
|
98922
98933
|
if (!updatedHoldings || new Web3Number(updatedHoldings.availableForWithdrawal, USDC_TOKEN_DECIMALS).lessThan(params.amount.abs())) {
|
|
98923
98934
|
logger2.error(`Insufficient balance after opening position. Available: ${updatedHoldings?.availableForWithdrawal}, Needed: ${params.amount.abs()}`);
|
|
98924
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98935
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98925
98936
|
}
|
|
98926
98937
|
}
|
|
98927
98938
|
const {
|
|
@@ -98935,22 +98946,22 @@ spurious results.`);
|
|
|
98935
98946
|
await new Promise((resolve) => setTimeout(resolve, 5e3));
|
|
98936
98947
|
const { calls, status } = await this.moveAssetsToVaultAllocator(params.amount, extendedAdapter);
|
|
98937
98948
|
if (calls.length > 0 && status) {
|
|
98938
|
-
return this.createTransactionResult(calls, true, params, "WITHDRAWAL");
|
|
98949
|
+
return this.createTransactionResult(calls, true, params, "WITHDRAWAL", params.cycleType);
|
|
98939
98950
|
} else {
|
|
98940
|
-
return this.createTransactionResult([], true, params, "WITHDRAWAL");
|
|
98951
|
+
return this.createTransactionResult([], true, params, "WITHDRAWAL", params.cycleType);
|
|
98941
98952
|
}
|
|
98942
98953
|
} else if (withdrawalFromExtendedStatus && !withdrawalFromExtendedTxnHash) {
|
|
98943
98954
|
logger2.error("withdrawal from extended successful, but funds didn't get transferred to the wallet");
|
|
98944
|
-
return this.createTransactionResult([], true, params, "WITHDRAWAL");
|
|
98955
|
+
return this.createTransactionResult([], true, params, "WITHDRAWAL", params.cycleType);
|
|
98945
98956
|
} else {
|
|
98946
98957
|
logger2.error("withdrawal from extended failed");
|
|
98947
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98958
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98948
98959
|
}
|
|
98949
98960
|
} else if (params.to === Protocols.VAULT.name && params.from === Protocols.VESU.name) {
|
|
98950
98961
|
const isPriceDifferenceBetweenAvnuAndExtended = await this.checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, "close" /* CLOSE */);
|
|
98951
98962
|
if (!isPriceDifferenceBetweenAvnuAndExtended) {
|
|
98952
98963
|
logger2.warn(`price difference between avnu and extended doesn't fit the range for close position, ${avnuAdapter.config.maximumExtendedPriceDifferenceForSwapClosing}`);
|
|
98953
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98964
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98954
98965
|
}
|
|
98955
98966
|
const vesuAmountInBTC = new Web3Number(
|
|
98956
98967
|
params.amount.dividedBy(collateralPrice.price).toFixed(WBTC_TOKEN_DECIMALS),
|
|
@@ -98971,12 +98982,12 @@ spurious results.`);
|
|
|
98971
98982
|
await swapProofsInfo.callConstructor({ amount: vesuAmountInBTC })
|
|
98972
98983
|
);
|
|
98973
98984
|
calls.push(swapCall);
|
|
98974
|
-
return this.createTransactionResult(calls, true, params, "WITHDRAWAL");
|
|
98985
|
+
return this.createTransactionResult(calls, true, params, "WITHDRAWAL", params.cycleType);
|
|
98975
98986
|
} else if (params.to === Protocols.EXTENDED.name && params.from === Protocols.VESU.name) {
|
|
98976
98987
|
const isPriceDifferenceBetweenAvnuAndExtended = await this.checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, "close" /* CLOSE */);
|
|
98977
98988
|
if (!isPriceDifferenceBetweenAvnuAndExtended) {
|
|
98978
98989
|
logger2.warn(`price difference between avnu and extended doesn't fit the range for close position, ${avnuAdapter.config.maximumExtendedPriceDifferenceForSwapClosing}`);
|
|
98979
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98990
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98980
98991
|
}
|
|
98981
98992
|
const vesuAmountInBTC = new Web3Number(
|
|
98982
98993
|
params.amount.dividedBy(collateralPrice.price).toNumber(),
|
|
@@ -99007,23 +99018,31 @@ spurious results.`);
|
|
|
99007
99018
|
await proofsInfoDeposit.callConstructor({ amount: params.amount })
|
|
99008
99019
|
);
|
|
99009
99020
|
calls.push(callDeposit);
|
|
99010
|
-
return this.createTransactionResult(calls, true, params, "DEPOSIT");
|
|
99021
|
+
return this.createTransactionResult(calls, true, params, "DEPOSIT", params.cycleType);
|
|
99011
99022
|
}
|
|
99012
99023
|
logger2.error(`Unsupported assets movement: ${params.from} to ${params.to}`);
|
|
99013
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
99024
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
99014
99025
|
} catch (err2) {
|
|
99015
99026
|
logger2.error(`error moving assets: ${err2}`);
|
|
99016
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
99027
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
99017
99028
|
}
|
|
99018
99029
|
}
|
|
99019
99030
|
async handleDeposit() {
|
|
99020
99031
|
try {
|
|
99021
|
-
return this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.VAULT.name, amount: new Web3Number(0, 0) }, "NONE");
|
|
99032
|
+
return this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.VAULT.name, amount: new Web3Number(0, 0) }, "NONE", "INVESTMENT" /* INVESTMENT */);
|
|
99022
99033
|
} catch (err2) {
|
|
99023
99034
|
logger2.error(`error handling deposit: ${err2}`);
|
|
99024
|
-
return this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.VAULT.name, amount: new Web3Number(0, 0) }, "NONE");
|
|
99035
|
+
return this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.VAULT.name, amount: new Web3Number(0, 0) }, "NONE", "INVESTMENT" /* INVESTMENT */);
|
|
99025
99036
|
}
|
|
99026
99037
|
}
|
|
99038
|
+
/**
|
|
99039
|
+
* Check if the price difference between avnu and extended is within the acceptable range to enhance the position size or close the position
|
|
99040
|
+
* @param extendedAdapter - the extended adapter
|
|
99041
|
+
* @param vesuAdapter - the vesu adapter
|
|
99042
|
+
* @param avnuAdapter - the avnu adapter
|
|
99043
|
+
* @param positionType - the position type (open or close)
|
|
99044
|
+
* @returns true if the price difference is within the acceptable range, false otherwise
|
|
99045
|
+
*/
|
|
99027
99046
|
async checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, positionType) {
|
|
99028
99047
|
const {
|
|
99029
99048
|
ask,
|
|
@@ -99055,6 +99074,11 @@ spurious results.`);
|
|
|
99055
99074
|
return result2;
|
|
99056
99075
|
}
|
|
99057
99076
|
}
|
|
99077
|
+
/**
|
|
99078
|
+
* Handle the withdrawal of assets from the vault
|
|
99079
|
+
* @param amount - the amount to withdraw in USDC
|
|
99080
|
+
* @returns the calls to be executed and the status of the calls generated along with the metadata for the calls
|
|
99081
|
+
*/
|
|
99058
99082
|
async handleWithdraw(amount) {
|
|
99059
99083
|
try {
|
|
99060
99084
|
const usdcBalanceVaultAllocator = await this.getUnusedBalance();
|
|
@@ -99067,7 +99091,7 @@ spurious results.`);
|
|
|
99067
99091
|
amount: usdcBalanceVaultAllocator.amount
|
|
99068
99092
|
});
|
|
99069
99093
|
calls.push(withdrawCall2);
|
|
99070
|
-
return [this.createTransactionResult(calls, true, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "WITHDRAWAL")];
|
|
99094
|
+
return [this.createTransactionResult(calls, true, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "WITHDRAWAL", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99071
99095
|
}
|
|
99072
99096
|
const vesuAdapter = await this.getVesuAdapter();
|
|
99073
99097
|
const extendedAdapter = await this.getExtendedAdapter();
|
|
@@ -99076,7 +99100,7 @@ spurious results.`);
|
|
|
99076
99100
|
logger2.error(
|
|
99077
99101
|
`vesu or extended adapter not found: vesuAdapter=${vesuAdapter}, extendedAdapter=${extendedAdapter}`
|
|
99078
99102
|
);
|
|
99079
|
-
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE")];
|
|
99103
|
+
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99080
99104
|
}
|
|
99081
99105
|
let transactionResults = [];
|
|
99082
99106
|
const { collateralTokenAmount } = await vesuAdapter.vesuAdapter.getAssetPrices();
|
|
@@ -99087,7 +99111,7 @@ spurious results.`);
|
|
|
99087
99111
|
if (!extendedPositon) {
|
|
99088
99112
|
status = false;
|
|
99089
99113
|
logger2.error("error getting extended position", extendedPositon);
|
|
99090
|
-
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE")];
|
|
99114
|
+
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99091
99115
|
}
|
|
99092
99116
|
const amountDistributionForWithdrawal = await calculateAmountDistributionForWithdrawal(
|
|
99093
99117
|
usdcBalanceDifference,
|
|
@@ -99100,7 +99124,7 @@ spurious results.`);
|
|
|
99100
99124
|
logger2.error(
|
|
99101
99125
|
`error calculating amount distribution for withdrawal: ${amountDistributionForWithdrawal}`
|
|
99102
99126
|
);
|
|
99103
|
-
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE")];
|
|
99127
|
+
return [this.createTransactionResult(calls, status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99104
99128
|
}
|
|
99105
99129
|
const { vesu_amount, extended_amount } = amountDistributionForWithdrawal;
|
|
99106
99130
|
if (status && vesu_amount.greaterThan(0)) {
|
|
@@ -99108,7 +99132,8 @@ spurious results.`);
|
|
|
99108
99132
|
{
|
|
99109
99133
|
amount: vesu_amount,
|
|
99110
99134
|
from: Protocols.VESU.name,
|
|
99111
|
-
to: Protocols.VAULT.name
|
|
99135
|
+
to: Protocols.VAULT.name,
|
|
99136
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99112
99137
|
},
|
|
99113
99138
|
extendedAdapter,
|
|
99114
99139
|
vesuAdapter
|
|
@@ -99125,7 +99150,8 @@ spurious results.`);
|
|
|
99125
99150
|
{
|
|
99126
99151
|
amount: extended_amount,
|
|
99127
99152
|
from: Protocols.EXTENDED.name,
|
|
99128
|
-
to: Protocols.VAULT.name
|
|
99153
|
+
to: Protocols.VAULT.name,
|
|
99154
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99129
99155
|
},
|
|
99130
99156
|
extendedAdapter,
|
|
99131
99157
|
vesuAdapter
|
|
@@ -99139,7 +99165,7 @@ spurious results.`);
|
|
|
99139
99165
|
});
|
|
99140
99166
|
} else {
|
|
99141
99167
|
logger2.error("error moving assets to vault: extendedStatus: ${extendedStatus}");
|
|
99142
|
-
return [this.createTransactionResult([], status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE")];
|
|
99168
|
+
return [this.createTransactionResult([], status, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99143
99169
|
}
|
|
99144
99170
|
}
|
|
99145
99171
|
const withdrawCall = await this.getBringLiquidityCall({
|
|
@@ -99154,13 +99180,14 @@ spurious results.`);
|
|
|
99154
99180
|
protocolTo: Protocols.NONE.name,
|
|
99155
99181
|
transactionType: "WITHDRAWAL",
|
|
99156
99182
|
usdAmount: amount.toFixed(),
|
|
99157
|
-
status: "PENDING"
|
|
99183
|
+
status: "PENDING",
|
|
99184
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99158
99185
|
}
|
|
99159
99186
|
});
|
|
99160
99187
|
return transactionResults;
|
|
99161
99188
|
} catch (err2) {
|
|
99162
99189
|
logger2.error(`error handling withdrawal: ${err2}`);
|
|
99163
|
-
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE")];
|
|
99190
|
+
return [this.createTransactionResult([], false, { from: Protocols.VAULT.name, to: Protocols.NONE.name, amount }, "NONE", "WITHDRAWAL" /* WITHDRAWAL */)];
|
|
99164
99191
|
}
|
|
99165
99192
|
}
|
|
99166
99193
|
async getAUM() {
|