@strkfarm/sdk 2.0.0-dev.16 → 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 -122
- package/dist/index.browser.mjs +81 -48
- package/dist/index.d.ts +24 -1
- package/dist/index.js +82 -48
- package/dist/index.mjs +81 -48
- package/package.json +1 -1
- 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
|
|
@@ -98290,6 +98291,16 @@ spurious results.`);
|
|
|
98290
98291
|
getStrategySettings("mRe7YIELD", "mRe7YIELD", hypermRe7YIELD, false, false)
|
|
98291
98292
|
];
|
|
98292
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
|
+
|
|
98293
98304
|
// src/strategies/vesu-extended-strategy/vesu-extended-strategy.tsx
|
|
98294
98305
|
var import_jsx_runtime5 = __toESM(require_jsx_runtime());
|
|
98295
98306
|
var VesuExtendedMultiplierStrategy = class _VesuExtendedMultiplierStrategy extends SVKStrategy {
|
|
@@ -98671,7 +98682,8 @@ spurious results.`);
|
|
|
98671
98682
|
{
|
|
98672
98683
|
to: Protocols.VAULT.name,
|
|
98673
98684
|
from: Protocols.EXTENDED.name,
|
|
98674
|
-
amount: extendedAmount.abs()
|
|
98685
|
+
amount: extendedAmount.abs(),
|
|
98686
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98675
98687
|
},
|
|
98676
98688
|
extendedAdapter,
|
|
98677
98689
|
vesuAdapter
|
|
@@ -98686,11 +98698,11 @@ spurious results.`);
|
|
|
98686
98698
|
}
|
|
98687
98699
|
});
|
|
98688
98700
|
} else {
|
|
98689
|
-
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 */)];
|
|
98690
98702
|
}
|
|
98691
98703
|
} catch (err2) {
|
|
98692
98704
|
logger2.error(`Failed moving assets to vault: ${err2}`);
|
|
98693
|
-
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 */)];
|
|
98694
98706
|
}
|
|
98695
98707
|
}
|
|
98696
98708
|
if (vesuAmount.isNegative() && vesuAmount.abs().greaterThan(vesuAdapter.minimumVesuMovementAmount)) {
|
|
@@ -98699,13 +98711,14 @@ spurious results.`);
|
|
|
98699
98711
|
{
|
|
98700
98712
|
to: Protocols.EXTENDED.name,
|
|
98701
98713
|
from: Protocols.VESU.name,
|
|
98702
|
-
amount: vesuAmount.abs()
|
|
98714
|
+
amount: vesuAmount.abs(),
|
|
98715
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98703
98716
|
},
|
|
98704
98717
|
extendedAdapter,
|
|
98705
98718
|
vesuAdapter
|
|
98706
98719
|
);
|
|
98707
98720
|
if (!vesuStatus) {
|
|
98708
|
-
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 */)];
|
|
98709
98722
|
}
|
|
98710
98723
|
transactionResults.push({
|
|
98711
98724
|
status: vesuStatus,
|
|
@@ -98717,7 +98730,7 @@ spurious results.`);
|
|
|
98717
98730
|
});
|
|
98718
98731
|
} catch (err2) {
|
|
98719
98732
|
logger2.error(`Failed moving assets to extended via vault allocator: ${err2}`);
|
|
98720
|
-
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 */)];
|
|
98721
98734
|
}
|
|
98722
98735
|
}
|
|
98723
98736
|
if (extendedAmountDifferenceAbs.greaterThan(extendedAdapter.minimumExtendedMovementAmount)) {
|
|
@@ -98727,7 +98740,8 @@ spurious results.`);
|
|
|
98727
98740
|
{
|
|
98728
98741
|
to: Protocols.EXTENDED.name,
|
|
98729
98742
|
from: Protocols.VAULT.name,
|
|
98730
|
-
amount: extendedAmountDifference
|
|
98743
|
+
amount: extendedAmountDifference,
|
|
98744
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98731
98745
|
},
|
|
98732
98746
|
extendedAdapter,
|
|
98733
98747
|
vesuAdapter
|
|
@@ -98740,11 +98754,11 @@ spurious results.`);
|
|
|
98740
98754
|
});
|
|
98741
98755
|
} else {
|
|
98742
98756
|
logger2.error(`Failed to move assets to extended - operation returned false status`);
|
|
98743
|
-
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 */)];
|
|
98744
98758
|
}
|
|
98745
98759
|
} catch (err2) {
|
|
98746
98760
|
logger2.error(`Failed moving assets to extended: ${err2}`);
|
|
98747
|
-
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 */)];
|
|
98748
98762
|
}
|
|
98749
98763
|
} else if (extendedAmountDifference.lessThan(0)) {
|
|
98750
98764
|
try {
|
|
@@ -98752,7 +98766,8 @@ spurious results.`);
|
|
|
98752
98766
|
{
|
|
98753
98767
|
to: Protocols.VAULT.name,
|
|
98754
98768
|
from: Protocols.EXTENDED.name,
|
|
98755
|
-
amount: extendedAmountDifferenceAbs
|
|
98769
|
+
amount: extendedAmountDifferenceAbs,
|
|
98770
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98756
98771
|
},
|
|
98757
98772
|
extendedAdapter,
|
|
98758
98773
|
vesuAdapter
|
|
@@ -98768,11 +98783,11 @@ spurious results.`);
|
|
|
98768
98783
|
});
|
|
98769
98784
|
} else {
|
|
98770
98785
|
logger2.error(`Failed to withdraw from extended - operation returned false status`);
|
|
98771
|
-
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 */)];
|
|
98772
98787
|
}
|
|
98773
98788
|
} catch (err2) {
|
|
98774
98789
|
logger2.error(`Failed moving assets from extended to vault: ${err2}`);
|
|
98775
|
-
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 */)];
|
|
98776
98791
|
}
|
|
98777
98792
|
}
|
|
98778
98793
|
}
|
|
@@ -98787,14 +98802,15 @@ spurious results.`);
|
|
|
98787
98802
|
{
|
|
98788
98803
|
to: Protocols.VAULT.name,
|
|
98789
98804
|
from: Protocols.EXTENDED.name,
|
|
98790
|
-
amount: vesuAmountDifference
|
|
98805
|
+
amount: vesuAmountDifference,
|
|
98806
|
+
cycleType: "INVESTMENT" /* INVESTMENT */
|
|
98791
98807
|
},
|
|
98792
98808
|
extendedAdapter,
|
|
98793
98809
|
vesuAdapter
|
|
98794
98810
|
);
|
|
98795
98811
|
if (!vesuStatus) {
|
|
98796
98812
|
logger2.error(`Failed to move assets to vesu - operation returned false status`);
|
|
98797
|
-
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 */)];
|
|
98798
98814
|
}
|
|
98799
98815
|
transactionResults.push({
|
|
98800
98816
|
status: vesuStatus,
|
|
@@ -98806,20 +98822,20 @@ spurious results.`);
|
|
|
98806
98822
|
});
|
|
98807
98823
|
} catch (err2) {
|
|
98808
98824
|
logger2.error(`Failed moving assets to vault: ${err2}`);
|
|
98809
|
-
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 */)];
|
|
98810
98826
|
}
|
|
98811
98827
|
}
|
|
98812
98828
|
}
|
|
98813
98829
|
return transactionResults;
|
|
98814
98830
|
} catch (err2) {
|
|
98815
98831
|
logger2.error(`Failed moving assets to vesu: ${err2}`);
|
|
98816
|
-
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 */)];
|
|
98817
98833
|
}
|
|
98818
98834
|
}
|
|
98819
98835
|
/**
|
|
98820
98836
|
* Helper method to create transaction result with metadata
|
|
98821
98837
|
*/
|
|
98822
|
-
createTransactionResult(calls, status, params, transactionType) {
|
|
98838
|
+
createTransactionResult(calls, status, params, transactionType, cycleType) {
|
|
98823
98839
|
if (status) {
|
|
98824
98840
|
return {
|
|
98825
98841
|
calls,
|
|
@@ -98829,11 +98845,12 @@ spurious results.`);
|
|
|
98829
98845
|
protocolTo: params.to,
|
|
98830
98846
|
transactionType,
|
|
98831
98847
|
usdAmount: params.amount.abs().toFixed(),
|
|
98832
|
-
status: "PENDING"
|
|
98848
|
+
status: "PENDING",
|
|
98849
|
+
cycleType
|
|
98833
98850
|
}
|
|
98834
98851
|
};
|
|
98835
98852
|
}
|
|
98836
|
-
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 } };
|
|
98837
98854
|
}
|
|
98838
98855
|
async moveAssets(params, extendedAdapter, vesuAdapter) {
|
|
98839
98856
|
try {
|
|
@@ -98841,7 +98858,7 @@ spurious results.`);
|
|
|
98841
98858
|
logger2.error(
|
|
98842
98859
|
`Invalid amount for moveAssets: ${params.amount.toNumber()}. Amount must be positive.`
|
|
98843
98860
|
);
|
|
98844
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98861
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98845
98862
|
}
|
|
98846
98863
|
const amountAbs = params.amount.abs();
|
|
98847
98864
|
if (params.from === Protocols.EXTENDED.name || params.to === Protocols.EXTENDED.name) {
|
|
@@ -98849,7 +98866,7 @@ spurious results.`);
|
|
|
98849
98866
|
logger2.warn(
|
|
98850
98867
|
`Amount ${amountAbs.toNumber()} is below minimum Extended movement amount ${extendedAdapter.minimumExtendedMovementAmount}. Skipping operation.`
|
|
98851
98868
|
);
|
|
98852
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98869
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98853
98870
|
}
|
|
98854
98871
|
}
|
|
98855
98872
|
if (params.from === Protocols.VESU.name || params.to === Protocols.VESU.name) {
|
|
@@ -98857,13 +98874,13 @@ spurious results.`);
|
|
|
98857
98874
|
logger2.warn(
|
|
98858
98875
|
`Amount ${amountAbs.toNumber()} is below minimum Vesu movement amount ${vesuAdapter.minimumVesuMovementAmount}. Skipping operation.`
|
|
98859
98876
|
);
|
|
98860
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98877
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98861
98878
|
}
|
|
98862
98879
|
}
|
|
98863
98880
|
const avnuAdapter = await this.getAvnuAdapter();
|
|
98864
98881
|
if (!avnuAdapter) {
|
|
98865
98882
|
logger2.error(`avnu adapter not found: ${avnuAdapter}`);
|
|
98866
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98883
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98867
98884
|
}
|
|
98868
98885
|
logger2.info(`moveAssets params, ${JSON.stringify(params)}`);
|
|
98869
98886
|
const collateralToken = vesuAdapter.config.supportedPositions[0].asset;
|
|
@@ -98882,13 +98899,13 @@ spurious results.`);
|
|
|
98882
98899
|
await proofsInfo.callConstructor({ amount: params.amount })
|
|
98883
98900
|
);
|
|
98884
98901
|
calls.push(call);
|
|
98885
|
-
return this.createTransactionResult(calls, true, params, "DEPOSIT");
|
|
98902
|
+
return this.createTransactionResult(calls, true, params, "DEPOSIT", params.cycleType);
|
|
98886
98903
|
} else if (params.to === Protocols.VAULT.name && params.from === Protocols.EXTENDED.name) {
|
|
98887
98904
|
const extendedLeverage = calculateExtendedLevergae();
|
|
98888
98905
|
const extendedHoldings = await extendedAdapter.getExtendedDepositAmount();
|
|
98889
98906
|
if (!extendedHoldings) {
|
|
98890
98907
|
logger2.error(`error getting extended holdings: ${extendedHoldings}`);
|
|
98891
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98908
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98892
98909
|
}
|
|
98893
98910
|
const extendedHoldingAmount = new Web3Number(
|
|
98894
98911
|
extendedHoldings.availableForWithdrawal,
|
|
@@ -98905,7 +98922,7 @@ spurious results.`);
|
|
|
98905
98922
|
"BUY" /* BUY */
|
|
98906
98923
|
) : await extendedAdapter.createOrder(
|
|
98907
98924
|
extendedLeverage.toString(),
|
|
98908
|
-
|
|
98925
|
+
34e-6,
|
|
98909
98926
|
// just in case amount falls short then we need to create a withdrawal
|
|
98910
98927
|
"BUY" /* BUY */
|
|
98911
98928
|
);
|
|
@@ -98915,7 +98932,7 @@ spurious results.`);
|
|
|
98915
98932
|
const updatedHoldings = await extendedAdapter.getExtendedDepositAmount();
|
|
98916
98933
|
if (!updatedHoldings || new Web3Number(updatedHoldings.availableForWithdrawal, USDC_TOKEN_DECIMALS).lessThan(params.amount.abs())) {
|
|
98917
98934
|
logger2.error(`Insufficient balance after opening position. Available: ${updatedHoldings?.availableForWithdrawal}, Needed: ${params.amount.abs()}`);
|
|
98918
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98935
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98919
98936
|
}
|
|
98920
98937
|
}
|
|
98921
98938
|
const {
|
|
@@ -98929,22 +98946,22 @@ spurious results.`);
|
|
|
98929
98946
|
await new Promise((resolve) => setTimeout(resolve, 5e3));
|
|
98930
98947
|
const { calls, status } = await this.moveAssetsToVaultAllocator(params.amount, extendedAdapter);
|
|
98931
98948
|
if (calls.length > 0 && status) {
|
|
98932
|
-
return this.createTransactionResult(calls, true, params, "WITHDRAWAL");
|
|
98949
|
+
return this.createTransactionResult(calls, true, params, "WITHDRAWAL", params.cycleType);
|
|
98933
98950
|
} else {
|
|
98934
|
-
return this.createTransactionResult([], true, params, "WITHDRAWAL");
|
|
98951
|
+
return this.createTransactionResult([], true, params, "WITHDRAWAL", params.cycleType);
|
|
98935
98952
|
}
|
|
98936
98953
|
} else if (withdrawalFromExtendedStatus && !withdrawalFromExtendedTxnHash) {
|
|
98937
98954
|
logger2.error("withdrawal from extended successful, but funds didn't get transferred to the wallet");
|
|
98938
|
-
return this.createTransactionResult([], true, params, "WITHDRAWAL");
|
|
98955
|
+
return this.createTransactionResult([], true, params, "WITHDRAWAL", params.cycleType);
|
|
98939
98956
|
} else {
|
|
98940
98957
|
logger2.error("withdrawal from extended failed");
|
|
98941
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98958
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98942
98959
|
}
|
|
98943
98960
|
} else if (params.to === Protocols.VAULT.name && params.from === Protocols.VESU.name) {
|
|
98944
98961
|
const isPriceDifferenceBetweenAvnuAndExtended = await this.checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, "close" /* CLOSE */);
|
|
98945
98962
|
if (!isPriceDifferenceBetweenAvnuAndExtended) {
|
|
98946
98963
|
logger2.warn(`price difference between avnu and extended doesn't fit the range for close position, ${avnuAdapter.config.maximumExtendedPriceDifferenceForSwapClosing}`);
|
|
98947
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98964
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98948
98965
|
}
|
|
98949
98966
|
const vesuAmountInBTC = new Web3Number(
|
|
98950
98967
|
params.amount.dividedBy(collateralPrice.price).toFixed(WBTC_TOKEN_DECIMALS),
|
|
@@ -98965,12 +98982,12 @@ spurious results.`);
|
|
|
98965
98982
|
await swapProofsInfo.callConstructor({ amount: vesuAmountInBTC })
|
|
98966
98983
|
);
|
|
98967
98984
|
calls.push(swapCall);
|
|
98968
|
-
return this.createTransactionResult(calls, true, params, "WITHDRAWAL");
|
|
98985
|
+
return this.createTransactionResult(calls, true, params, "WITHDRAWAL", params.cycleType);
|
|
98969
98986
|
} else if (params.to === Protocols.EXTENDED.name && params.from === Protocols.VESU.name) {
|
|
98970
98987
|
const isPriceDifferenceBetweenAvnuAndExtended = await this.checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, "close" /* CLOSE */);
|
|
98971
98988
|
if (!isPriceDifferenceBetweenAvnuAndExtended) {
|
|
98972
98989
|
logger2.warn(`price difference between avnu and extended doesn't fit the range for close position, ${avnuAdapter.config.maximumExtendedPriceDifferenceForSwapClosing}`);
|
|
98973
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
98990
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
98974
98991
|
}
|
|
98975
98992
|
const vesuAmountInBTC = new Web3Number(
|
|
98976
98993
|
params.amount.dividedBy(collateralPrice.price).toNumber(),
|
|
@@ -99001,23 +99018,31 @@ spurious results.`);
|
|
|
99001
99018
|
await proofsInfoDeposit.callConstructor({ amount: params.amount })
|
|
99002
99019
|
);
|
|
99003
99020
|
calls.push(callDeposit);
|
|
99004
|
-
return this.createTransactionResult(calls, true, params, "DEPOSIT");
|
|
99021
|
+
return this.createTransactionResult(calls, true, params, "DEPOSIT", params.cycleType);
|
|
99005
99022
|
}
|
|
99006
99023
|
logger2.error(`Unsupported assets movement: ${params.from} to ${params.to}`);
|
|
99007
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
99024
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
99008
99025
|
} catch (err2) {
|
|
99009
99026
|
logger2.error(`error moving assets: ${err2}`);
|
|
99010
|
-
return this.createTransactionResult([], false, params, "NONE");
|
|
99027
|
+
return this.createTransactionResult([], false, params, "NONE", params.cycleType);
|
|
99011
99028
|
}
|
|
99012
99029
|
}
|
|
99013
99030
|
async handleDeposit() {
|
|
99014
99031
|
try {
|
|
99015
|
-
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 */);
|
|
99016
99033
|
} catch (err2) {
|
|
99017
99034
|
logger2.error(`error handling deposit: ${err2}`);
|
|
99018
|
-
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 */);
|
|
99019
99036
|
}
|
|
99020
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
|
+
*/
|
|
99021
99046
|
async checkPriceDifferenceBetweenAvnuAndExtended(extendedAdapter, vesuAdapter, avnuAdapter, positionType) {
|
|
99022
99047
|
const {
|
|
99023
99048
|
ask,
|
|
@@ -99049,6 +99074,11 @@ spurious results.`);
|
|
|
99049
99074
|
return result2;
|
|
99050
99075
|
}
|
|
99051
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
|
+
*/
|
|
99052
99082
|
async handleWithdraw(amount) {
|
|
99053
99083
|
try {
|
|
99054
99084
|
const usdcBalanceVaultAllocator = await this.getUnusedBalance();
|
|
@@ -99061,7 +99091,7 @@ spurious results.`);
|
|
|
99061
99091
|
amount: usdcBalanceVaultAllocator.amount
|
|
99062
99092
|
});
|
|
99063
99093
|
calls.push(withdrawCall2);
|
|
99064
|
-
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 */)];
|
|
99065
99095
|
}
|
|
99066
99096
|
const vesuAdapter = await this.getVesuAdapter();
|
|
99067
99097
|
const extendedAdapter = await this.getExtendedAdapter();
|
|
@@ -99070,7 +99100,7 @@ spurious results.`);
|
|
|
99070
99100
|
logger2.error(
|
|
99071
99101
|
`vesu or extended adapter not found: vesuAdapter=${vesuAdapter}, extendedAdapter=${extendedAdapter}`
|
|
99072
99102
|
);
|
|
99073
|
-
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 */)];
|
|
99074
99104
|
}
|
|
99075
99105
|
let transactionResults = [];
|
|
99076
99106
|
const { collateralTokenAmount } = await vesuAdapter.vesuAdapter.getAssetPrices();
|
|
@@ -99081,7 +99111,7 @@ spurious results.`);
|
|
|
99081
99111
|
if (!extendedPositon) {
|
|
99082
99112
|
status = false;
|
|
99083
99113
|
logger2.error("error getting extended position", extendedPositon);
|
|
99084
|
-
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 */)];
|
|
99085
99115
|
}
|
|
99086
99116
|
const amountDistributionForWithdrawal = await calculateAmountDistributionForWithdrawal(
|
|
99087
99117
|
usdcBalanceDifference,
|
|
@@ -99094,7 +99124,7 @@ spurious results.`);
|
|
|
99094
99124
|
logger2.error(
|
|
99095
99125
|
`error calculating amount distribution for withdrawal: ${amountDistributionForWithdrawal}`
|
|
99096
99126
|
);
|
|
99097
|
-
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 */)];
|
|
99098
99128
|
}
|
|
99099
99129
|
const { vesu_amount, extended_amount } = amountDistributionForWithdrawal;
|
|
99100
99130
|
if (status && vesu_amount.greaterThan(0)) {
|
|
@@ -99102,7 +99132,8 @@ spurious results.`);
|
|
|
99102
99132
|
{
|
|
99103
99133
|
amount: vesu_amount,
|
|
99104
99134
|
from: Protocols.VESU.name,
|
|
99105
|
-
to: Protocols.VAULT.name
|
|
99135
|
+
to: Protocols.VAULT.name,
|
|
99136
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99106
99137
|
},
|
|
99107
99138
|
extendedAdapter,
|
|
99108
99139
|
vesuAdapter
|
|
@@ -99119,7 +99150,8 @@ spurious results.`);
|
|
|
99119
99150
|
{
|
|
99120
99151
|
amount: extended_amount,
|
|
99121
99152
|
from: Protocols.EXTENDED.name,
|
|
99122
|
-
to: Protocols.VAULT.name
|
|
99153
|
+
to: Protocols.VAULT.name,
|
|
99154
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99123
99155
|
},
|
|
99124
99156
|
extendedAdapter,
|
|
99125
99157
|
vesuAdapter
|
|
@@ -99133,7 +99165,7 @@ spurious results.`);
|
|
|
99133
99165
|
});
|
|
99134
99166
|
} else {
|
|
99135
99167
|
logger2.error("error moving assets to vault: extendedStatus: ${extendedStatus}");
|
|
99136
|
-
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 */)];
|
|
99137
99169
|
}
|
|
99138
99170
|
}
|
|
99139
99171
|
const withdrawCall = await this.getBringLiquidityCall({
|
|
@@ -99148,13 +99180,14 @@ spurious results.`);
|
|
|
99148
99180
|
protocolTo: Protocols.NONE.name,
|
|
99149
99181
|
transactionType: "WITHDRAWAL",
|
|
99150
99182
|
usdAmount: amount.toFixed(),
|
|
99151
|
-
status: "PENDING"
|
|
99183
|
+
status: "PENDING",
|
|
99184
|
+
cycleType: "WITHDRAWAL" /* WITHDRAWAL */
|
|
99152
99185
|
}
|
|
99153
99186
|
});
|
|
99154
99187
|
return transactionResults;
|
|
99155
99188
|
} catch (err2) {
|
|
99156
99189
|
logger2.error(`error handling withdrawal: ${err2}`);
|
|
99157
|
-
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 */)];
|
|
99158
99191
|
}
|
|
99159
99192
|
}
|
|
99160
99193
|
async getAUM() {
|