@strkfarm/sdk 1.1.81 → 1.1.82

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.
@@ -39293,7 +39293,7 @@ ${indent2}}` : "}";
39293
39293
  var _0n6 = BigInt(0);
39294
39294
  var Point = secp256k1.ProjectivePoint;
39295
39295
 
39296
- // node_modules/.pnpm/starknet@9.2.1_typescript@5.9.3/node_modules/starknet/dist/index.mjs
39296
+ // node_modules/.pnpm/starknet@9.2.1_typescript@5.9.3_zod@4.3.6/node_modules/starknet/dist/index.mjs
39297
39297
  init_esm();
39298
39298
  var __defProp2 = Object.defineProperty;
39299
39299
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -49657,7 +49657,7 @@ ${JSON.stringify(data, null, 2)}`;
49657
49657
  return "0x" + result2;
49658
49658
  }
49659
49659
 
49660
- // node_modules/.pnpm/@avnu+avnu-sdk@3.0.2_ethers@6.16.0_moment@2.30.1_qs@6.14.0_starknet@9.2.1_typescript@5.9.3_/node_modules/@avnu/avnu-sdk/dist/index.mjs
49660
+ // node_modules/.pnpm/@avnu+avnu-sdk@3.0.2_ethers@6.16.0_moment@2.30.1_qs@6.14.0_starknet@9.2.1_typescript@5.9.3_zod@4.3.6_/node_modules/@avnu/avnu-sdk/dist/index.mjs
49661
49661
  var import_qs = __toESM(require_lib(), 1);
49662
49662
  var BASE_URL = "https://starknet.api.avnu.fi";
49663
49663
  var ContractError = class {
@@ -67384,10 +67384,10 @@ ${JSON.stringify(data, null, 2)}`;
67384
67384
  return old;
67385
67385
  }
67386
67386
 
67387
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/version.js
67387
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/version.js
67388
67388
  var version4 = "3.11.8";
67389
67389
 
67390
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/globals/maybe.js
67390
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/maybe.js
67391
67391
  function maybe(thunk) {
67392
67392
  try {
67393
67393
  return thunk();
@@ -67395,7 +67395,7 @@ ${JSON.stringify(data, null, 2)}`;
67395
67395
  }
67396
67396
  }
67397
67397
 
67398
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/globals/global.js
67398
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/global.js
67399
67399
  var global_default = maybe(function() {
67400
67400
  return globalThis;
67401
67401
  }) || maybe(function() {
@@ -67414,7 +67414,7 @@ ${JSON.stringify(data, null, 2)}`;
67414
67414
  return maybe.constructor("return this")();
67415
67415
  });
67416
67416
 
67417
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/makeUniqueId.js
67417
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/makeUniqueId.js
67418
67418
  var prefixCounts = /* @__PURE__ */ new Map();
67419
67419
  function makeUniqueId(prefix) {
67420
67420
  var count = prefixCounts.get(prefix) || 1;
@@ -67422,7 +67422,7 @@ ${JSON.stringify(data, null, 2)}`;
67422
67422
  return "".concat(prefix, ":").concat(count, ":").concat(Math.random().toString(36).slice(2));
67423
67423
  }
67424
67424
 
67425
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
67425
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/stringifyForDisplay.js
67426
67426
  function stringifyForDisplay(value, space) {
67427
67427
  if (space === void 0) {
67428
67428
  space = 0;
@@ -67433,7 +67433,7 @@ ${JSON.stringify(data, null, 2)}`;
67433
67433
  }, space).split(JSON.stringify(undefId)).join("<undefined>");
67434
67434
  }
67435
67435
 
67436
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/globals/invariantWrappers.js
67436
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/invariantWrappers.js
67437
67437
  function wrap(fn) {
67438
67438
  return function(message) {
67439
67439
  var args = [];
@@ -67504,7 +67504,7 @@ ${JSON.stringify(data, null, 2)}`;
67504
67504
  })));
67505
67505
  }
67506
67506
 
67507
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/globals/index.js
67507
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/globals/index.js
67508
67508
  var DEV = globalThis.__DEV__ !== false;
67509
67509
 
67510
67510
  // node_modules/.pnpm/graphql@16.9.0/node_modules/graphql/jsutils/devAssert.mjs
@@ -70579,7 +70579,7 @@ spurious results.`);
70579
70579
  return node.kind === Kind.FIELD || node.kind === Kind.FRAGMENT_SPREAD || node.kind === Kind.INLINE_FRAGMENT;
70580
70580
  }
70581
70581
 
70582
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/directives.js
70582
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/directives.js
70583
70583
  function shouldInclude(_a21, variables) {
70584
70584
  var directives = _a21.directives;
70585
70585
  if (!directives || !directives.length) {
@@ -70707,7 +70707,7 @@ spurious results.`);
70707
70707
  return false;
70708
70708
  }
70709
70709
 
70710
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/canUse.js
70710
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/canUse.js
70711
70711
  var isReactNative = maybe(function() {
70712
70712
  return navigator.product;
70713
70713
  }) == "ReactNative";
@@ -70732,12 +70732,12 @@ spurious results.`);
70732
70732
  }) || false
70733
70733
  );
70734
70734
 
70735
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/objects.js
70735
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/objects.js
70736
70736
  function isNonNullObject(obj) {
70737
70737
  return obj !== null && typeof obj === "object";
70738
70738
  }
70739
70739
 
70740
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/fragments.js
70740
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/fragments.js
70741
70741
  function getFragmentQueryDocument(document2, fragmentName) {
70742
70742
  var actualFragmentName = fragmentName;
70743
70743
  var fragments = [];
@@ -71033,7 +71033,7 @@ spurious results.`);
71033
71033
  }
71034
71034
  };
71035
71035
 
71036
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/caching/caches.js
71036
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/caches.js
71037
71037
  var scheduledCleanup = /* @__PURE__ */ new WeakSet();
71038
71038
  function schedule(cache) {
71039
71039
  if (cache.size <= (cache.max || -1)) {
@@ -71066,11 +71066,11 @@ spurious results.`);
71066
71066
  return cache;
71067
71067
  };
71068
71068
 
71069
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/caching/sizes.js
71069
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/sizes.js
71070
71070
  var cacheSizeSymbol = /* @__PURE__ */ Symbol.for("apollo.cacheSize");
71071
71071
  var cacheSizes = __assign({}, global_default[cacheSizeSymbol]);
71072
71072
 
71073
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
71073
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/caching/getMemoryInternals.js
71074
71074
  var globalCaches = {};
71075
71075
  function registerGlobalCache(name, getSize) {
71076
71076
  globalCaches[name] = getSize;
@@ -71160,7 +71160,7 @@ spurious results.`);
71160
71160
  ], linkInfo(link === null || link === void 0 ? void 0 : link.left), true), linkInfo(link === null || link === void 0 ? void 0 : link.right), true).filter(isDefined) : [];
71161
71161
  }
71162
71162
 
71163
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/canonicalStringify.js
71163
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/canonicalStringify.js
71164
71164
  var canonicalStringify = Object.assign(function canonicalStringify2(value) {
71165
71165
  return JSON.stringify(value, stableObjectReplacer);
71166
71166
  }, {
@@ -71207,7 +71207,7 @@ spurious results.`);
71207
71207
  return i === 0 || keys[i - 1] <= key;
71208
71208
  }
71209
71209
 
71210
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/storeUtils.js
71210
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/storeUtils.js
71211
71211
  function makeReference(id) {
71212
71212
  return { __ref: String(id) };
71213
71213
  }
@@ -71392,7 +71392,7 @@ spurious results.`);
71392
71392
  return selection.kind === "InlineFragment";
71393
71393
  }
71394
71394
 
71395
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/getFromAST.js
71395
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/getFromAST.js
71396
71396
  function checkDocument(doc) {
71397
71397
  invariant2(doc && doc.kind === "Document", 77);
71398
71398
  var operations = doc.definitions.filter(function(d) {
@@ -71951,7 +71951,7 @@ spurious results.`);
71951
71951
  return Object.freeze(optimistic);
71952
71952
  }
71953
71953
 
71954
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
71954
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/DocumentTransform.js
71955
71955
  function identity(document2) {
71956
71956
  return document2;
71957
71957
  }
@@ -72035,7 +72035,7 @@ spurious results.`);
72035
72035
  })()
72036
72036
  );
72037
72037
 
72038
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/print.js
72038
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/print.js
72039
72039
  var printCache;
72040
72040
  var print2 = Object.assign(function(ast) {
72041
72041
  var result2 = printCache.get(ast);
@@ -72059,13 +72059,13 @@ spurious results.`);
72059
72059
  });
72060
72060
  }
72061
72061
 
72062
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/arrays.js
72062
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/arrays.js
72063
72063
  var isArray2 = Array.isArray;
72064
72064
  function isNonEmptyArray(value) {
72065
72065
  return Array.isArray(value) && value.length > 0;
72066
72066
  }
72067
72067
 
72068
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/graphql/transform.js
72068
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/graphql/transform.js
72069
72069
  var TYPENAME_FIELD = {
72070
72070
  kind: Kind.FIELD,
72071
72071
  name: {
@@ -72357,7 +72357,7 @@ spurious results.`);
72357
72357
  return modifiedDoc;
72358
72358
  }
72359
72359
 
72360
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/mergeDeep.js
72360
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/mergeDeep.js
72361
72361
  var hasOwnProperty4 = Object.prototype.hasOwnProperty;
72362
72362
  function mergeDeep() {
72363
72363
  var sources = [];
@@ -72993,7 +72993,7 @@ spurious results.`);
72993
72993
  }
72994
72994
  var result = symbolObservablePonyfill(root);
72995
72995
 
72996
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/observables/Observable.js
72996
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/Observable.js
72997
72997
  var prototype3 = Observable.prototype;
72998
72998
  var fakeObsSymbol = "@@observable";
72999
72999
  if (!prototype3[fakeObsSymbol]) {
@@ -73002,7 +73002,7 @@ spurious results.`);
73002
73002
  };
73003
73003
  }
73004
73004
 
73005
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/cloneDeep.js
73005
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/cloneDeep.js
73006
73006
  var toString4 = Object.prototype.toString;
73007
73007
  function cloneDeep(value) {
73008
73008
  return cloneDeepHelper(value);
@@ -73036,7 +73036,7 @@ spurious results.`);
73036
73036
  }
73037
73037
  }
73038
73038
 
73039
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
73039
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/maybeDeepFreeze.js
73040
73040
  function deepFreeze(value) {
73041
73041
  var workSet = /* @__PURE__ */ new Set([value]);
73042
73042
  workSet.forEach(function(obj) {
@@ -73068,7 +73068,7 @@ spurious results.`);
73068
73068
  return obj;
73069
73069
  }
73070
73070
 
73071
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/observables/iteration.js
73071
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/iteration.js
73072
73072
  function iterateObserversSafely(observers, method, argument) {
73073
73073
  var observersWithMethod = [];
73074
73074
  observers.forEach(function(obs) {
@@ -73079,7 +73079,7 @@ spurious results.`);
73079
73079
  });
73080
73080
  }
73081
73081
 
73082
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/observables/asyncMap.js
73082
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/asyncMap.js
73083
73083
  function asyncMap(observable, mapFn, catchFn) {
73084
73084
  return new Observable(function(observer) {
73085
73085
  var promiseQueue = {
@@ -73127,7 +73127,7 @@ spurious results.`);
73127
73127
  });
73128
73128
  }
73129
73129
 
73130
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/observables/subclassing.js
73130
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/subclassing.js
73131
73131
  function fixObservableSubclass(subclass) {
73132
73132
  function set(key) {
73133
73133
  Object.defineProperty(subclass, key, { value: Observable });
@@ -73139,7 +73139,7 @@ spurious results.`);
73139
73139
  return subclass;
73140
73140
  }
73141
73141
 
73142
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/observables/Concast.js
73142
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/observables/Concast.js
73143
73143
  function isPromiseLike(value) {
73144
73144
  return value && typeof value.then === "function";
73145
73145
  }
@@ -73280,7 +73280,7 @@ spurious results.`);
73280
73280
  );
73281
73281
  fixObservableSubclass(Concast);
73282
73282
 
73283
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/incrementalResult.js
73283
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/incrementalResult.js
73284
73284
  function isExecutionPatchIncrementalResult(value) {
73285
73285
  return "incremental" in value;
73286
73286
  }
@@ -73312,7 +73312,7 @@ spurious results.`);
73312
73312
  return mergedData;
73313
73313
  }
73314
73314
 
73315
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/errorHandling.js
73315
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/errorHandling.js
73316
73316
  function graphQLResultHasError(result2) {
73317
73317
  var errors2 = getGraphQLErrorsFromResult(result2);
73318
73318
  return isNonEmptyArray(errors2);
@@ -73329,7 +73329,7 @@ spurious results.`);
73329
73329
  return graphQLErrors;
73330
73330
  }
73331
73331
 
73332
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/compact.js
73332
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/compact.js
73333
73333
  function compact() {
73334
73334
  var objects = [];
73335
73335
  for (var _i = 0; _i < arguments.length; _i++) {
@@ -73349,21 +73349,21 @@ spurious results.`);
73349
73349
  return result2;
73350
73350
  }
73351
73351
 
73352
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/utilities/common/mergeOptions.js
73352
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/utilities/common/mergeOptions.js
73353
73353
  function mergeOptions(defaults2, options) {
73354
73354
  return compact(defaults2, options, options.variables && {
73355
73355
  variables: compact(__assign(__assign({}, defaults2 && defaults2.variables), options.variables))
73356
73356
  });
73357
73357
  }
73358
73358
 
73359
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/fromError.js
73359
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/fromError.js
73360
73360
  function fromError(errorValue) {
73361
73361
  return new Observable(function(observer) {
73362
73362
  observer.error(errorValue);
73363
73363
  });
73364
73364
  }
73365
73365
 
73366
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/throwServerError.js
73366
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/throwServerError.js
73367
73367
  var throwServerError = function(response, result2, message) {
73368
73368
  var error2 = new Error(message);
73369
73369
  error2.name = "ServerError";
@@ -73373,7 +73373,7 @@ spurious results.`);
73373
73373
  throw error2;
73374
73374
  };
73375
73375
 
73376
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/validateOperation.js
73376
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/validateOperation.js
73377
73377
  function validateOperation(operation) {
73378
73378
  var OPERATION_FIELDS = [
73379
73379
  "query",
@@ -73391,7 +73391,7 @@ spurious results.`);
73391
73391
  return operation;
73392
73392
  }
73393
73393
 
73394
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/createOperation.js
73394
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/createOperation.js
73395
73395
  function createOperation(starting, operation) {
73396
73396
  var context = __assign({}, starting);
73397
73397
  var setContext = function(next) {
@@ -73415,7 +73415,7 @@ spurious results.`);
73415
73415
  return operation;
73416
73416
  }
73417
73417
 
73418
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/transformOperation.js
73418
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/transformOperation.js
73419
73419
  function transformOperation(operation) {
73420
73420
  var transformedOperation = {
73421
73421
  variables: operation.variables || {},
@@ -73429,7 +73429,7 @@ spurious results.`);
73429
73429
  return transformedOperation;
73430
73430
  }
73431
73431
 
73432
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/utils/filterOperationVariables.js
73432
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/utils/filterOperationVariables.js
73433
73433
  function filterOperationVariables(variables, query) {
73434
73434
  var result2 = __assign({}, variables);
73435
73435
  var unusedNames = new Set(Object.keys(variables));
@@ -73446,7 +73446,7 @@ spurious results.`);
73446
73446
  return result2;
73447
73447
  }
73448
73448
 
73449
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/core/ApolloLink.js
73449
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/core/ApolloLink.js
73450
73450
  function passthrough(op, forward) {
73451
73451
  return forward ? forward(op) : Observable.of();
73452
73452
  }
@@ -73540,10 +73540,10 @@ spurious results.`);
73540
73540
  })()
73541
73541
  );
73542
73542
 
73543
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/core/execute.js
73543
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/core/execute.js
73544
73544
  var execute = ApolloLink.execute;
73545
73545
 
73546
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/iterators/async.js
73546
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/async.js
73547
73547
  function asyncIterator(source) {
73548
73548
  var _a21;
73549
73549
  var iterator2 = source[Symbol.asyncIterator]();
@@ -73556,7 +73556,7 @@ spurious results.`);
73556
73556
  }, _a21;
73557
73557
  }
73558
73558
 
73559
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/iterators/nodeStream.js
73559
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/nodeStream.js
73560
73560
  function nodeStreamIterator(stream) {
73561
73561
  var cleanup = null;
73562
73562
  var error2 = null;
@@ -73627,7 +73627,7 @@ spurious results.`);
73627
73627
  return iterator2;
73628
73628
  }
73629
73629
 
73630
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/iterators/promise.js
73630
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/promise.js
73631
73631
  function promiseIterator(promise) {
73632
73632
  var resolved = false;
73633
73633
  var iterator2 = {
@@ -73653,7 +73653,7 @@ spurious results.`);
73653
73653
  return iterator2;
73654
73654
  }
73655
73655
 
73656
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/iterators/reader.js
73656
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/iterators/reader.js
73657
73657
  function readerIterator(reader) {
73658
73658
  var iterator2 = {
73659
73659
  next: function() {
@@ -73668,7 +73668,7 @@ spurious results.`);
73668
73668
  return iterator2;
73669
73669
  }
73670
73670
 
73671
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/responseIterator.js
73671
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/responseIterator.js
73672
73672
  function isNodeResponse(value) {
73673
73673
  return !!value.body;
73674
73674
  }
@@ -73705,7 +73705,7 @@ spurious results.`);
73705
73705
  throw new Error("Unknown body type for responseIterator. Please pass a streamable response.");
73706
73706
  }
73707
73707
 
73708
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/errors/index.js
73708
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/errors/index.js
73709
73709
  var PROTOCOL_ERRORS_SYMBOL = /* @__PURE__ */ Symbol();
73710
73710
  function graphQLResultHasProtocolErrors(result2) {
73711
73711
  if (result2.extensions) {
@@ -73750,7 +73750,7 @@ spurious results.`);
73750
73750
  })(Error)
73751
73751
  );
73752
73752
 
73753
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
73753
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/parseAndCheckHttpResponse.js
73754
73754
  var hasOwnProperty5 = Object.prototype.hasOwnProperty;
73755
73755
  function readMultipartBody(response, nextValue) {
73756
73756
  return __awaiter(this, void 0, void 0, function() {
@@ -73894,7 +73894,7 @@ spurious results.`);
73894
73894
  };
73895
73895
  }
73896
73896
 
73897
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/serializeFetchParameter.js
73897
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/serializeFetchParameter.js
73898
73898
  var serializeFetchParameter = function(p, label) {
73899
73899
  var serialized;
73900
73900
  try {
@@ -73907,7 +73907,7 @@ spurious results.`);
73907
73907
  return serialized;
73908
73908
  };
73909
73909
 
73910
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
73910
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/selectHttpOptionsAndBody.js
73911
73911
  var defaultHttpOptions = {
73912
73912
  includeQuery: true,
73913
73913
  includeExtensions: false,
@@ -73991,14 +73991,14 @@ spurious results.`);
73991
73991
  return normalizedHeaders;
73992
73992
  }
73993
73993
 
73994
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/checkFetcher.js
73994
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/checkFetcher.js
73995
73995
  var checkFetcher = function(fetcher) {
73996
73996
  if (!fetcher && typeof fetch === "undefined") {
73997
73997
  throw newInvariantError(38);
73998
73998
  }
73999
73999
  };
74000
74000
 
74001
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/selectURI.js
74001
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/selectURI.js
74002
74002
  var selectURI = function(operation, fallbackURI) {
74003
74003
  var context = operation.getContext();
74004
74004
  var contextURI = context.uri;
@@ -74011,7 +74011,7 @@ spurious results.`);
74011
74011
  }
74012
74012
  };
74013
74013
 
74014
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/rewriteURIForGET.js
74014
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/rewriteURIForGET.js
74015
74015
  function rewriteURIForGET(chosenURI, body) {
74016
74016
  var queryParams = [];
74017
74017
  var addQueryParam = function(key, value) {
@@ -74052,7 +74052,7 @@ spurious results.`);
74052
74052
  return { newURI };
74053
74053
  }
74054
74054
 
74055
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/createHttpLink.js
74055
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/createHttpLink.js
74056
74056
  var backupFetch = maybe(function() {
74057
74057
  return fetch;
74058
74058
  });
@@ -74172,7 +74172,7 @@ spurious results.`);
74172
74172
  });
74173
74173
  };
74174
74174
 
74175
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/link/http/HttpLink.js
74175
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/link/http/HttpLink.js
74176
74176
  var HttpLink = (
74177
74177
  /** @class */
74178
74178
  (function(_super) {
@@ -74325,7 +74325,7 @@ spurious results.`);
74325
74325
  return false;
74326
74326
  }
74327
74327
 
74328
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/equalByQuery.js
74328
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/equalByQuery.js
74329
74329
  function equalByQuery(query, _a21, _b, variables) {
74330
74330
  var aData = _a21.data, aRest = __rest(_a21, ["data"]);
74331
74331
  var bData = _b.data, bRest = __rest(_b, ["data"]);
@@ -74398,7 +74398,7 @@ spurious results.`);
74398
74398
  return dir.name.value === "nonreactive";
74399
74399
  }
74400
74400
 
74401
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/core/cache.js
74401
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/core/cache.js
74402
74402
  var ApolloCache = (
74403
74403
  /** @class */
74404
74404
  (function() {
@@ -74530,7 +74530,7 @@ spurious results.`);
74530
74530
  ApolloCache.prototype.getMemoryInternals = getApolloCacheMemoryInternals;
74531
74531
  }
74532
74532
 
74533
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/core/types/common.js
74533
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/core/types/common.js
74534
74534
  var MissingFieldError = (
74535
74535
  /** @class */
74536
74536
  (function(_super) {
@@ -74557,7 +74557,7 @@ spurious results.`);
74557
74557
  })(Error)
74558
74558
  );
74559
74559
 
74560
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/helpers.js
74560
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/helpers.js
74561
74561
  var hasOwn = Object.prototype.hasOwnProperty;
74562
74562
  function isNullish(value) {
74563
74563
  return value === null || value === void 0;
@@ -74633,7 +74633,7 @@ spurious results.`);
74633
74633
  };
74634
74634
  }
74635
74635
 
74636
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/entityStore.js
74636
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/entityStore.js
74637
74637
  var DELETE = /* @__PURE__ */ Object.create(null);
74638
74638
  var delModifier = function() {
74639
74639
  return DELETE;
@@ -75150,7 +75150,7 @@ spurious results.`);
75150
75150
  return !!(store instanceof EntityStore && store.group.caching);
75151
75151
  }
75152
75152
 
75153
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/object-canon.js
75153
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/object-canon.js
75154
75154
  function shallowCopy(value) {
75155
75155
  if (isNonNullObject(value)) {
75156
75156
  return isArray2(value) ? value.slice(0) : __assign({ __proto__: Object.getPrototypeOf(value) }, value);
@@ -75244,7 +75244,7 @@ spurious results.`);
75244
75244
  })()
75245
75245
  );
75246
75246
 
75247
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/readFromStore.js
75247
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/readFromStore.js
75248
75248
  function execSelectionSetKeyArgs(options) {
75249
75249
  return [
75250
75250
  options.selectionSet,
@@ -75513,7 +75513,7 @@ spurious results.`);
75513
75513
  }
75514
75514
  }
75515
75515
 
75516
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
75516
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/reactiveVars.js
75517
75517
  var cacheSlot = new Slot();
75518
75518
  var cacheInfoMap = /* @__PURE__ */ new WeakMap();
75519
75519
  function getCacheInfo(cache) {
@@ -75584,7 +75584,7 @@ spurious results.`);
75584
75584
  }
75585
75585
  }
75586
75586
 
75587
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/key-extractor.js
75587
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/key-extractor.js
75588
75588
  var specifierInfoCache = /* @__PURE__ */ Object.create(null);
75589
75589
  function lookupSpecifierInfo(spec) {
75590
75590
  var cacheKey = JSON.stringify(spec);
@@ -75717,7 +75717,7 @@ spurious results.`);
75717
75717
  return value;
75718
75718
  }
75719
75719
 
75720
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/policies.js
75720
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/policies.js
75721
75721
  function argsFromFieldSpecifier(spec) {
75722
75722
  return spec.args !== void 0 ? spec.args : spec.field ? argumentsObjectFromField(spec.field, spec.variables) : null;
75723
75723
  }
@@ -76152,7 +76152,7 @@ spurious results.`);
76152
76152
  };
76153
76153
  }
76154
76154
 
76155
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/writeToStore.js
76155
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/writeToStore.js
76156
76156
  function getContextFlavor(context, clientOnly, deferred) {
76157
76157
  var key = "".concat(clientOnly).concat(deferred);
76158
76158
  var flavored = context.flavors.get(key);
@@ -76557,7 +76557,7 @@ spurious results.`);
76557
76557
  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));
76558
76558
  }
76559
76559
 
76560
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
76560
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/cache/inmemory/inMemoryCache.js
76561
76561
  var InMemoryCache = (
76562
76562
  /** @class */
76563
76563
  (function(_super) {
@@ -76866,7 +76866,7 @@ spurious results.`);
76866
76866
  InMemoryCache.prototype.getMemoryInternals = getInMemoryCacheMemoryInternals;
76867
76867
  }
76868
76868
 
76869
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/networkStatus.js
76869
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/networkStatus.js
76870
76870
  var NetworkStatus;
76871
76871
  (function(NetworkStatus2) {
76872
76872
  NetworkStatus2[NetworkStatus2["loading"] = 1] = "loading";
@@ -76881,7 +76881,7 @@ spurious results.`);
76881
76881
  return networkStatus ? networkStatus < 7 : false;
76882
76882
  }
76883
76883
 
76884
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/ObservableQuery.js
76884
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/ObservableQuery.js
76885
76885
  var assign2 = Object.assign;
76886
76886
  var hasOwnProperty7 = Object.hasOwnProperty;
76887
76887
  var ObservableQuery = (
@@ -77489,7 +77489,7 @@ spurious results.`);
77489
77489
  return fetchPolicy === "network-only" || fetchPolicy === "no-cache" || fetchPolicy === "standby";
77490
77490
  }
77491
77491
 
77492
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/QueryInfo.js
77492
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/QueryInfo.js
77493
77493
  var destructiveMethodCounts = new (canUseWeakMap ? WeakMap : Map)();
77494
77494
  function wrapDestructiveCacheMethod(cache, methodName) {
77495
77495
  var original = cache[methodName];
@@ -77781,7 +77781,7 @@ spurious results.`);
77781
77781
  return writeWithErrors;
77782
77782
  }
77783
77783
 
77784
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/QueryManager.js
77784
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/QueryManager.js
77785
77785
  var hasOwnProperty8 = Object.prototype.hasOwnProperty;
77786
77786
  var IGNORE = /* @__PURE__ */ Object.create(null);
77787
77787
  var QueryManager = (
@@ -78767,7 +78767,7 @@ spurious results.`);
78767
78767
  })()
78768
78768
  );
78769
78769
 
78770
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/LocalState.js
78770
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/LocalState.js
78771
78771
  var LocalState = (
78772
78772
  /** @class */
78773
78773
  (function() {
@@ -79117,7 +79117,7 @@ spurious results.`);
79117
79117
  })()
79118
79118
  );
79119
79119
 
79120
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/ApolloClient.js
79120
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/ApolloClient.js
79121
79121
  var hasSuggestedDevtools = false;
79122
79122
  var ApolloClient = (
79123
79123
  /** @class */
@@ -79519,7 +79519,7 @@ spurious results.`);
79519
79519
  })(gql || (gql = {}));
79520
79520
  gql["default"] = gql;
79521
79521
 
79522
- // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0_react@19.1.2/node_modules/@apollo/client/core/index.js
79522
+ // node_modules/.pnpm/@apollo+client@3.11.8_@types+react@19.2.7_graphql@16.9.0/node_modules/@apollo/client/core/index.js
79523
79523
  setVerbosity(globalThis.__DEV__ !== false ? "log" : "silent");
79524
79524
 
79525
79525
  // src/modules/apollo-client.ts
@@ -95146,7 +95146,8 @@ spurious results.`);
95146
95146
  const calls = await this.getVesuMultiplyCall({
95147
95147
  isDeposit: false,
95148
95148
  leg1DepositAmount: debtAmountInLST,
95149
- poolId: vesuAdapter.config.poolId
95149
+ poolId: vesuAdapter.config.poolId,
95150
+ isClose: false
95150
95151
  });
95151
95152
  assert3(calls.length == 1, `Expected 1 call for unwind, got ${calls.length}`);
95152
95153
  return calls[0];
@@ -95312,8 +95313,9 @@ spurious results.`);
95312
95313
  */
95313
95314
  async getVesuMultiplyCall(params) {
95314
95315
  const maxEkuboPriceImpact = params.maxEkuboPriceImpact || 0.01;
95315
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
95316
+ const vesuAdapter1 = params.vesuAdapter1 || this.getVesuSameTokenAdapter(params.poolId);
95316
95317
  const legLTV = await vesuAdapter1.getLTVConfig(this.config);
95318
+ const isClose = params.isClose || false;
95317
95319
  logger2.verbose(`${this.getTag()}::getVesuMultiplyCall legLTV: ${legLTV}`);
95318
95320
  if (!params.isDeposit) {
95319
95321
  const unusedBalance = await this.getUnusedBalance();
@@ -95352,7 +95354,9 @@ spurious results.`);
95352
95354
  lstDexPriceInUnderlying: dexPrice,
95353
95355
  isIncrease: debtAmount.greaterThan(0),
95354
95356
  maxEkuboPriceImpact,
95355
- poolId: params.poolId
95357
+ poolId: params.poolId,
95358
+ vesuAdapter1,
95359
+ isClose
95356
95360
  });
95357
95361
  }
95358
95362
  getLSTUnderlyingTokenInfo() {
@@ -95493,9 +95497,14 @@ spurious results.`);
95493
95497
  * @param params marginAmount is in LST, debtAmount is in underlying
95494
95498
  */
95495
95499
  async getModifyLeverCall(params) {
95500
+ const { isClose, vesuAdapter1 } = params;
95501
+ if (isClose && params.debtAmount.lessThan(0)) {
95502
+ const positionInfo = await vesuAdapter1.getPositions(this.config);
95503
+ params.debtAmount = positionInfo[1].amount.multipliedBy(params.debtAmount.greaterThan(0) ? 1 : -1);
95504
+ params.marginAmount = positionInfo[0].amount.multipliedBy(params.marginAmount.greaterThan(0) ? 1 : -1);
95505
+ }
95496
95506
  logger2.verbose(`${this.getTag()}::getModifyLeverCall marginAmount: ${params.marginAmount}, debtAmount: ${params.debtAmount}, lstDexPriceInUnderlying: ${params.lstDexPriceInUnderlying}, isIncrease: ${params.isIncrease}`);
95497
95507
  assert3(!params.marginAmount.isZero() || !params.debtAmount.isZero(), "Deposit/debt must be non-0");
95498
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
95499
95508
  const lstTokenInfo = this.asset();
95500
95509
  const lstUnderlyingTokenInfo = vesuAdapter1.config.debt;
95501
95510
  const maxAmounts = lstTokenInfo.symbol == "xSTRK" ? 5e5 : 0.5;
@@ -95543,6 +95552,9 @@ spurious results.`);
95543
95552
  const manageCall2 = manage2Info.callConstructor({
95544
95553
  delegation: true
95545
95554
  });
95555
+ if (isClose) {
95556
+ leverSwap[0].token_amount.amount = Web3Number.fromWei(0, leverSwap[0].token_amount.amount.decimals);
95557
+ }
95546
95558
  const STEP3_ID = getVesuLegId("multiply_vesu" /* MULTIPLY_VESU */, vesuAdapter1.config.debt.symbol, vesuAdapter1.config.poolId.toString());
95547
95559
  const manage3Info = this.getProofs(STEP3_ID);
95548
95560
  const multiplyParams = params.isIncrease ? {
@@ -95556,7 +95568,19 @@ spurious results.`);
95556
95568
  }
95557
95569
  } : {
95558
95570
  isIncrease: false,
95559
- decreaseParams: {
95571
+ decreaseParams: isClose ? {
95572
+ sub_margin: new Web3Number(0, params.marginAmount.decimals),
95573
+ // params.marginAmount.multipliedBy(-1),
95574
+ lever_swap: leverSwap,
95575
+ lever_swap_limit_amount: maxUsedCollateral,
95576
+ // only required for close position
95577
+ lever_swap_weights: [new Web3Number(1, 18)],
95578
+ // no need to swap collateral to anything, and any residuals return our contract anyways.
95579
+ withdraw_swap: [],
95580
+ withdraw_swap_limit_amount: Web3Number.fromWei(0, this.asset().decimals),
95581
+ withdraw_swap_weights: [],
95582
+ close_position: true
95583
+ } : {
95560
95584
  sub_margin: params.marginAmount.multipliedBy(-1),
95561
95585
  lever_swap: leverSwap,
95562
95586
  lever_swap_limit_amount: maxUsedCollateral,
@@ -95687,7 +95711,7 @@ spurious results.`);
95687
95711
  id: "common_adapter" /* COMMON */,
95688
95712
  adapter: commonAdapter
95689
95713
  }]);
95690
- vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, underlyingSymbol, vaultSettings, commonAdapter));
95714
+ vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, borrowableAsset.token.symbol, vaultSettings, commonAdapter));
95691
95715
  vaultSettings.leafAdapters.push(commonAdapter.getApproveAdapter(lstToken.address, AVNU_EXCHANGE, "avnu_mul_approve_withdr" /* AVNU_MULTIPLY_APPROVE_WITHDRAW */).bind(commonAdapter));
95692
95716
  const uniqueBorrowableAssets = [...new Set(vaultSettings.borrowable_assets.map((borrowableAsset) => borrowableAsset.token.symbol))];
95693
95717
  for (let borrowableAssetSymbol of uniqueBorrowableAssets) {
@@ -31124,7 +31124,8 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31124
31124
  const calls = await this.getVesuMultiplyCall({
31125
31125
  isDeposit: false,
31126
31126
  leg1DepositAmount: debtAmountInLST,
31127
- poolId: vesuAdapter.config.poolId
31127
+ poolId: vesuAdapter.config.poolId,
31128
+ isClose: false
31128
31129
  });
31129
31130
  assert(calls.length == 1, `Expected 1 call for unwind, got ${calls.length}`);
31130
31131
  return calls[0];
@@ -31290,8 +31291,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31290
31291
  */
31291
31292
  async getVesuMultiplyCall(params) {
31292
31293
  const maxEkuboPriceImpact = params.maxEkuboPriceImpact || 0.01;
31293
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31294
+ const vesuAdapter1 = params.vesuAdapter1 || this.getVesuSameTokenAdapter(params.poolId);
31294
31295
  const legLTV = await vesuAdapter1.getLTVConfig(this.config);
31296
+ const isClose = params.isClose || false;
31295
31297
  logger.verbose(`${this.getTag()}::getVesuMultiplyCall legLTV: ${legLTV}`);
31296
31298
  if (!params.isDeposit) {
31297
31299
  const unusedBalance = await this.getUnusedBalance();
@@ -31330,7 +31332,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31330
31332
  lstDexPriceInUnderlying: dexPrice,
31331
31333
  isIncrease: debtAmount.greaterThan(0),
31332
31334
  maxEkuboPriceImpact,
31333
- poolId: params.poolId
31335
+ poolId: params.poolId,
31336
+ vesuAdapter1,
31337
+ isClose
31334
31338
  });
31335
31339
  }
31336
31340
  getLSTUnderlyingTokenInfo() {
@@ -31471,9 +31475,14 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31471
31475
  * @param params marginAmount is in LST, debtAmount is in underlying
31472
31476
  */
31473
31477
  async getModifyLeverCall(params) {
31478
+ const { isClose, vesuAdapter1 } = params;
31479
+ if (isClose && params.debtAmount.lessThan(0)) {
31480
+ const positionInfo = await vesuAdapter1.getPositions(this.config);
31481
+ params.debtAmount = positionInfo[1].amount.multipliedBy(params.debtAmount.greaterThan(0) ? 1 : -1);
31482
+ params.marginAmount = positionInfo[0].amount.multipliedBy(params.marginAmount.greaterThan(0) ? 1 : -1);
31483
+ }
31474
31484
  logger.verbose(`${this.getTag()}::getModifyLeverCall marginAmount: ${params.marginAmount}, debtAmount: ${params.debtAmount}, lstDexPriceInUnderlying: ${params.lstDexPriceInUnderlying}, isIncrease: ${params.isIncrease}`);
31475
31485
  assert(!params.marginAmount.isZero() || !params.debtAmount.isZero(), "Deposit/debt must be non-0");
31476
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31477
31486
  const lstTokenInfo = this.asset();
31478
31487
  const lstUnderlyingTokenInfo = vesuAdapter1.config.debt;
31479
31488
  const maxAmounts = lstTokenInfo.symbol == "xSTRK" ? 5e5 : 0.5;
@@ -31521,6 +31530,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31521
31530
  const manageCall2 = manage2Info.callConstructor({
31522
31531
  delegation: true
31523
31532
  });
31533
+ if (isClose) {
31534
+ leverSwap[0].token_amount.amount = Web3Number.fromWei(0, leverSwap[0].token_amount.amount.decimals);
31535
+ }
31524
31536
  const STEP3_ID = getVesuLegId("multiply_vesu" /* MULTIPLY_VESU */, vesuAdapter1.config.debt.symbol, vesuAdapter1.config.poolId.toString());
31525
31537
  const manage3Info = this.getProofs(STEP3_ID);
31526
31538
  const multiplyParams = params.isIncrease ? {
@@ -31534,7 +31546,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31534
31546
  }
31535
31547
  } : {
31536
31548
  isIncrease: false,
31537
- decreaseParams: {
31549
+ decreaseParams: isClose ? {
31550
+ sub_margin: new Web3Number(0, params.marginAmount.decimals),
31551
+ // params.marginAmount.multipliedBy(-1),
31552
+ lever_swap: leverSwap,
31553
+ lever_swap_limit_amount: maxUsedCollateral,
31554
+ // only required for close position
31555
+ lever_swap_weights: [new Web3Number(1, 18)],
31556
+ // no need to swap collateral to anything, and any residuals return our contract anyways.
31557
+ withdraw_swap: [],
31558
+ withdraw_swap_limit_amount: Web3Number.fromWei(0, this.asset().decimals),
31559
+ withdraw_swap_weights: [],
31560
+ close_position: true
31561
+ } : {
31538
31562
  sub_margin: params.marginAmount.multipliedBy(-1),
31539
31563
  lever_swap: leverSwap,
31540
31564
  lever_swap_limit_amount: maxUsedCollateral,
@@ -31665,7 +31689,7 @@ function getLooperSettings2(lstSymbol, underlyingSymbol, vaultSettings, defaultP
31665
31689
  id: "common_adapter" /* COMMON */,
31666
31690
  adapter: commonAdapter
31667
31691
  }]);
31668
- vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, underlyingSymbol, vaultSettings, commonAdapter));
31692
+ vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, borrowableAsset.token.symbol, vaultSettings, commonAdapter));
31669
31693
  vaultSettings.leafAdapters.push(commonAdapter.getApproveAdapter(lstToken.address, AVNU_EXCHANGE, "avnu_mul_approve_withdr" /* AVNU_MULTIPLY_APPROVE_WITHDRAW */).bind(commonAdapter));
31670
31694
  const uniqueBorrowableAssets = [...new Set(vaultSettings.borrowable_assets.map((borrowableAsset) => borrowableAsset.token.symbol))];
31671
31695
  for (let borrowableAssetSymbol of uniqueBorrowableAssets) {
package/dist/index.d.ts CHANGED
@@ -1510,6 +1510,8 @@ declare class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTS
1510
1510
  leg1DepositAmount: Web3Number;
1511
1511
  maxEkuboPriceImpact?: number;
1512
1512
  poolId: ContractAddr;
1513
+ vesuAdapter1?: VesuAdapter;
1514
+ isClose: boolean;
1513
1515
  }): Promise<Call[]>;
1514
1516
  getLSTUnderlyingTokenInfo(): TokenInfo;
1515
1517
  getMaxBorrowableAmount(params?: {
@@ -1563,6 +1565,8 @@ declare class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTS
1563
1565
  isIncrease: boolean;
1564
1566
  maxEkuboPriceImpact: number;
1565
1567
  poolId: ContractAddr;
1568
+ vesuAdapter1: VesuAdapter;
1569
+ isClose: boolean;
1566
1570
  }): Promise<Call[]>;
1567
1571
  }
1568
1572
  declare const HyperLSTStrategies: IStrategyMetadata<HyperLSTStrategySettings>[];
package/dist/index.js CHANGED
@@ -31125,7 +31125,8 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31125
31125
  const calls = await this.getVesuMultiplyCall({
31126
31126
  isDeposit: false,
31127
31127
  leg1DepositAmount: debtAmountInLST,
31128
- poolId: vesuAdapter.config.poolId
31128
+ poolId: vesuAdapter.config.poolId,
31129
+ isClose: false
31129
31130
  });
31130
31131
  assert(calls.length == 1, `Expected 1 call for unwind, got ${calls.length}`);
31131
31132
  return calls[0];
@@ -31291,8 +31292,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31291
31292
  */
31292
31293
  async getVesuMultiplyCall(params) {
31293
31294
  const maxEkuboPriceImpact = params.maxEkuboPriceImpact || 0.01;
31294
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31295
+ const vesuAdapter1 = params.vesuAdapter1 || this.getVesuSameTokenAdapter(params.poolId);
31295
31296
  const legLTV = await vesuAdapter1.getLTVConfig(this.config);
31297
+ const isClose = params.isClose || false;
31296
31298
  logger.verbose(`${this.getTag()}::getVesuMultiplyCall legLTV: ${legLTV}`);
31297
31299
  if (!params.isDeposit) {
31298
31300
  const unusedBalance = await this.getUnusedBalance();
@@ -31331,7 +31333,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31331
31333
  lstDexPriceInUnderlying: dexPrice,
31332
31334
  isIncrease: debtAmount.greaterThan(0),
31333
31335
  maxEkuboPriceImpact,
31334
- poolId: params.poolId
31336
+ poolId: params.poolId,
31337
+ vesuAdapter1,
31338
+ isClose
31335
31339
  });
31336
31340
  }
31337
31341
  getLSTUnderlyingTokenInfo() {
@@ -31472,9 +31476,14 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31472
31476
  * @param params marginAmount is in LST, debtAmount is in underlying
31473
31477
  */
31474
31478
  async getModifyLeverCall(params) {
31479
+ const { isClose, vesuAdapter1 } = params;
31480
+ if (isClose && params.debtAmount.lessThan(0)) {
31481
+ const positionInfo = await vesuAdapter1.getPositions(this.config);
31482
+ params.debtAmount = positionInfo[1].amount.multipliedBy(params.debtAmount.greaterThan(0) ? 1 : -1);
31483
+ params.marginAmount = positionInfo[0].amount.multipliedBy(params.marginAmount.greaterThan(0) ? 1 : -1);
31484
+ }
31475
31485
  logger.verbose(`${this.getTag()}::getModifyLeverCall marginAmount: ${params.marginAmount}, debtAmount: ${params.debtAmount}, lstDexPriceInUnderlying: ${params.lstDexPriceInUnderlying}, isIncrease: ${params.isIncrease}`);
31476
31486
  assert(!params.marginAmount.isZero() || !params.debtAmount.isZero(), "Deposit/debt must be non-0");
31477
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31478
31487
  const lstTokenInfo = this.asset();
31479
31488
  const lstUnderlyingTokenInfo = vesuAdapter1.config.debt;
31480
31489
  const maxAmounts = lstTokenInfo.symbol == "xSTRK" ? 5e5 : 0.5;
@@ -31522,6 +31531,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31522
31531
  const manageCall2 = manage2Info.callConstructor({
31523
31532
  delegation: true
31524
31533
  });
31534
+ if (isClose) {
31535
+ leverSwap[0].token_amount.amount = Web3Number.fromWei(0, leverSwap[0].token_amount.amount.decimals);
31536
+ }
31525
31537
  const STEP3_ID = getVesuLegId("multiply_vesu" /* MULTIPLY_VESU */, vesuAdapter1.config.debt.symbol, vesuAdapter1.config.poolId.toString());
31526
31538
  const manage3Info = this.getProofs(STEP3_ID);
31527
31539
  const multiplyParams = params.isIncrease ? {
@@ -31535,7 +31547,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31535
31547
  }
31536
31548
  } : {
31537
31549
  isIncrease: false,
31538
- decreaseParams: {
31550
+ decreaseParams: isClose ? {
31551
+ sub_margin: new Web3Number(0, params.marginAmount.decimals),
31552
+ // params.marginAmount.multipliedBy(-1),
31553
+ lever_swap: leverSwap,
31554
+ lever_swap_limit_amount: maxUsedCollateral,
31555
+ // only required for close position
31556
+ lever_swap_weights: [new Web3Number(1, 18)],
31557
+ // no need to swap collateral to anything, and any residuals return our contract anyways.
31558
+ withdraw_swap: [],
31559
+ withdraw_swap_limit_amount: Web3Number.fromWei(0, this.asset().decimals),
31560
+ withdraw_swap_weights: [],
31561
+ close_position: true
31562
+ } : {
31539
31563
  sub_margin: params.marginAmount.multipliedBy(-1),
31540
31564
  lever_swap: leverSwap,
31541
31565
  lever_swap_limit_amount: maxUsedCollateral,
@@ -31666,7 +31690,7 @@ function getLooperSettings2(lstSymbol, underlyingSymbol, vaultSettings, defaultP
31666
31690
  id: "common_adapter" /* COMMON */,
31667
31691
  adapter: commonAdapter
31668
31692
  }]);
31669
- vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, underlyingSymbol, vaultSettings, commonAdapter));
31693
+ vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, borrowableAsset.token.symbol, vaultSettings, commonAdapter));
31670
31694
  vaultSettings.leafAdapters.push(commonAdapter.getApproveAdapter(lstToken.address, AVNU_EXCHANGE, "avnu_mul_approve_withdr" /* AVNU_MULTIPLY_APPROVE_WITHDRAW */).bind(commonAdapter));
31671
31695
  const uniqueBorrowableAssets = [...new Set(vaultSettings.borrowable_assets.map((borrowableAsset) => borrowableAsset.token.symbol))];
31672
31696
  for (let borrowableAssetSymbol of uniqueBorrowableAssets) {
package/dist/index.mjs CHANGED
@@ -31022,7 +31022,8 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31022
31022
  const calls = await this.getVesuMultiplyCall({
31023
31023
  isDeposit: false,
31024
31024
  leg1DepositAmount: debtAmountInLST,
31025
- poolId: vesuAdapter.config.poolId
31025
+ poolId: vesuAdapter.config.poolId,
31026
+ isClose: false
31026
31027
  });
31027
31028
  assert(calls.length == 1, `Expected 1 call for unwind, got ${calls.length}`);
31028
31029
  return calls[0];
@@ -31188,8 +31189,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31188
31189
  */
31189
31190
  async getVesuMultiplyCall(params) {
31190
31191
  const maxEkuboPriceImpact = params.maxEkuboPriceImpact || 0.01;
31191
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31192
+ const vesuAdapter1 = params.vesuAdapter1 || this.getVesuSameTokenAdapter(params.poolId);
31192
31193
  const legLTV = await vesuAdapter1.getLTVConfig(this.config);
31194
+ const isClose = params.isClose || false;
31193
31195
  logger.verbose(`${this.getTag()}::getVesuMultiplyCall legLTV: ${legLTV}`);
31194
31196
  if (!params.isDeposit) {
31195
31197
  const unusedBalance = await this.getUnusedBalance();
@@ -31228,7 +31230,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31228
31230
  lstDexPriceInUnderlying: dexPrice,
31229
31231
  isIncrease: debtAmount.greaterThan(0),
31230
31232
  maxEkuboPriceImpact,
31231
- poolId: params.poolId
31233
+ poolId: params.poolId,
31234
+ vesuAdapter1,
31235
+ isClose
31232
31236
  });
31233
31237
  }
31234
31238
  getLSTUnderlyingTokenInfo() {
@@ -31369,9 +31373,14 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31369
31373
  * @param params marginAmount is in LST, debtAmount is in underlying
31370
31374
  */
31371
31375
  async getModifyLeverCall(params) {
31376
+ const { isClose, vesuAdapter1 } = params;
31377
+ if (isClose && params.debtAmount.lessThan(0)) {
31378
+ const positionInfo = await vesuAdapter1.getPositions(this.config);
31379
+ params.debtAmount = positionInfo[1].amount.multipliedBy(params.debtAmount.greaterThan(0) ? 1 : -1);
31380
+ params.marginAmount = positionInfo[0].amount.multipliedBy(params.marginAmount.greaterThan(0) ? 1 : -1);
31381
+ }
31372
31382
  logger.verbose(`${this.getTag()}::getModifyLeverCall marginAmount: ${params.marginAmount}, debtAmount: ${params.debtAmount}, lstDexPriceInUnderlying: ${params.lstDexPriceInUnderlying}, isIncrease: ${params.isIncrease}`);
31373
31383
  assert(!params.marginAmount.isZero() || !params.debtAmount.isZero(), "Deposit/debt must be non-0");
31374
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
31375
31384
  const lstTokenInfo = this.asset();
31376
31385
  const lstUnderlyingTokenInfo = vesuAdapter1.config.debt;
31377
31386
  const maxAmounts = lstTokenInfo.symbol == "xSTRK" ? 5e5 : 0.5;
@@ -31419,6 +31428,9 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31419
31428
  const manageCall2 = manage2Info.callConstructor({
31420
31429
  delegation: true
31421
31430
  });
31431
+ if (isClose) {
31432
+ leverSwap[0].token_amount.amount = Web3Number.fromWei(0, leverSwap[0].token_amount.amount.decimals);
31433
+ }
31422
31434
  const STEP3_ID = getVesuLegId("multiply_vesu" /* MULTIPLY_VESU */, vesuAdapter1.config.debt.symbol, vesuAdapter1.config.poolId.toString());
31423
31435
  const manage3Info = this.getProofs(STEP3_ID);
31424
31436
  const multiplyParams = params.isIncrease ? {
@@ -31432,7 +31444,19 @@ var UniversalLstMultiplierStrategy = class _UniversalLstMultiplierStrategy exten
31432
31444
  }
31433
31445
  } : {
31434
31446
  isIncrease: false,
31435
- decreaseParams: {
31447
+ decreaseParams: isClose ? {
31448
+ sub_margin: new Web3Number(0, params.marginAmount.decimals),
31449
+ // params.marginAmount.multipliedBy(-1),
31450
+ lever_swap: leverSwap,
31451
+ lever_swap_limit_amount: maxUsedCollateral,
31452
+ // only required for close position
31453
+ lever_swap_weights: [new Web3Number(1, 18)],
31454
+ // no need to swap collateral to anything, and any residuals return our contract anyways.
31455
+ withdraw_swap: [],
31456
+ withdraw_swap_limit_amount: Web3Number.fromWei(0, this.asset().decimals),
31457
+ withdraw_swap_weights: [],
31458
+ close_position: true
31459
+ } : {
31436
31460
  sub_margin: params.marginAmount.multipliedBy(-1),
31437
31461
  lever_swap: leverSwap,
31438
31462
  lever_swap_limit_amount: maxUsedCollateral,
@@ -31563,7 +31587,7 @@ function getLooperSettings2(lstSymbol, underlyingSymbol, vaultSettings, defaultP
31563
31587
  id: "common_adapter" /* COMMON */,
31564
31588
  adapter: commonAdapter
31565
31589
  }]);
31566
- vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, underlyingSymbol, vaultSettings, commonAdapter));
31590
+ vaultSettings.borrowable_assets.map((borrowableAsset) => addVesuLeaves(borrowableAsset.poolId, lstSymbol, borrowableAsset.token.symbol, vaultSettings, commonAdapter));
31567
31591
  vaultSettings.leafAdapters.push(commonAdapter.getApproveAdapter(lstToken.address, AVNU_EXCHANGE, "avnu_mul_approve_withdr" /* AVNU_MULTIPLY_APPROVE_WITHDRAW */).bind(commonAdapter));
31568
31592
  const uniqueBorrowableAssets = [...new Set(vaultSettings.borrowable_assets.map((borrowableAsset) => borrowableAsset.token.symbol))];
31569
31593
  for (let borrowableAssetSymbol of uniqueBorrowableAssets) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "1.1.81",
3
+ "version": "1.1.82",
4
4
  "description": "STRKFarm TS SDK (Meant for our internal use, but feel free to use it)",
5
5
  "typings": "dist/index.d.ts",
6
6
  "types": "dist/index.d.ts",
@@ -231,7 +231,8 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
231
231
  const calls = await this.getVesuMultiplyCall({
232
232
  isDeposit: false,
233
233
  leg1DepositAmount: debtAmountInLST,
234
- poolId: vesuAdapter.config.poolId
234
+ poolId: vesuAdapter.config.poolId,
235
+ isClose: false
235
236
  })
236
237
  assert(calls.length == 1, `Expected 1 call for unwind, got ${calls.length}`);
237
238
  return calls[0];
@@ -437,11 +438,14 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
437
438
  isDeposit: boolean,
438
439
  leg1DepositAmount: Web3Number,
439
440
  maxEkuboPriceImpact?: number,
440
- poolId: ContractAddr
441
+ poolId: ContractAddr,
442
+ vesuAdapter1?: VesuAdapter,
443
+ isClose: boolean
441
444
  }) {
442
445
  const maxEkuboPriceImpact = params.maxEkuboPriceImpact || 0.01;
443
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
446
+ const vesuAdapter1 = params.vesuAdapter1 || this.getVesuSameTokenAdapter(params.poolId);
444
447
  const legLTV = await vesuAdapter1.getLTVConfig(this.config);
448
+ const isClose = params.isClose || false;
445
449
  logger.verbose(`${this.getTag()}::getVesuMultiplyCall legLTV: ${legLTV}`);
446
450
 
447
451
  if (!params.isDeposit) {
@@ -518,7 +522,9 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
518
522
  lstDexPriceInUnderlying: dexPrice,
519
523
  isIncrease: debtAmount.greaterThan(0),
520
524
  maxEkuboPriceImpact,
521
- poolId: params.poolId
525
+ poolId: params.poolId,
526
+ vesuAdapter1,
527
+ isClose: isClose
522
528
  });
523
529
  }
524
530
 
@@ -688,12 +694,23 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
688
694
  lstDexPriceInUnderlying: number,
689
695
  isIncrease: boolean,
690
696
  maxEkuboPriceImpact: number,
691
- poolId: ContractAddr
697
+ poolId: ContractAddr,
698
+ vesuAdapter1: VesuAdapter,
699
+ isClose: boolean,
692
700
  }): Promise<Call[]> {
701
+
702
+ const { isClose, vesuAdapter1 } = params;
703
+
704
+ // is withdraw
705
+ if (isClose && params.debtAmount.lessThan(0)) {
706
+ const positionInfo = await vesuAdapter1.getPositions(this.config);
707
+ params.debtAmount = positionInfo[1].amount.multipliedBy(params.debtAmount.greaterThan(0) ? 1 : -1);
708
+ params.marginAmount = positionInfo[0].amount.multipliedBy(params.marginAmount.greaterThan(0) ? 1 : -1);
709
+ }
710
+
693
711
  logger.verbose(`${this.getTag()}::getModifyLeverCall marginAmount: ${params.marginAmount}, debtAmount: ${params.debtAmount}, lstDexPriceInUnderlying: ${params.lstDexPriceInUnderlying}, isIncrease: ${params.isIncrease}`);
694
712
  assert(!params.marginAmount.isZero() || !params.debtAmount.isZero(), 'Deposit/debt must be non-0');
695
713
 
696
- const vesuAdapter1 = this.getVesuSameTokenAdapter(params.poolId);
697
714
  const lstTokenInfo = this.asset();
698
715
  const lstUnderlyingTokenInfo = vesuAdapter1.config.debt;
699
716
 
@@ -751,7 +768,6 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
751
768
  minLSTReceived = minLSTReceivedAsPerTruePrice; // in any case, we are ok with this, bcz the BTC LST spread shouldnt be high
752
769
  logger.verbose(`${this.getTag()}::getModifyLeverCall minLSTReceivedAsPerTruePrice: ${minLSTReceivedAsPerTruePrice}, minLSTReceived: ${minLSTReceived}`);
753
770
 
754
- // is withdraw
755
771
  let maxUsedCollateral = params.debtAmount.abs().dividedBy(lstDexPriceInUnderlying).multipliedBy(1 + MAX_SLIPPAGE); // +ve for exact amount out, used for decrease
756
772
  const maxUsedCollateralInLST = params.debtAmount.abs().dividedBy(lstTrueExchangeRate).multipliedBy(1.005); // 0.5% slippage, worst case based on true price
757
773
  logger.verbose(`${this.getTag()}::getModifyLeverCall maxUsedCollateralInLST: ${maxUsedCollateralInLST}, maxUsedCollateral: ${maxUsedCollateral}`);
@@ -766,6 +782,9 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
766
782
  delegation: true,
767
783
  });
768
784
 
785
+ if (isClose) {
786
+ leverSwap[0].token_amount.amount = Web3Number.fromWei(0, leverSwap[0].token_amount.amount.decimals);
787
+ }
769
788
  // deposit and borrow or repay and withdraw
770
789
  const STEP3_ID = getVesuLegId(LST_MULTIPLIER_MANAGE_IDS.MULTIPLY_VESU, vesuAdapter1.config.debt.symbol, vesuAdapter1.config.poolId.toString());
771
790
  const manage3Info = this.getProofs<VesuMultiplyCallParams>(STEP3_ID);
@@ -780,7 +799,18 @@ export class UniversalLstMultiplierStrategy extends UniversalStrategy<HyperLSTSt
780
799
  }
781
800
  } : {
782
801
  isIncrease: false,
783
- decreaseParams: {
802
+ decreaseParams: isClose ? {
803
+ sub_margin: new Web3Number(0, params.marginAmount.decimals), // params.marginAmount.multipliedBy(-1),
804
+ lever_swap: leverSwap,
805
+ lever_swap_limit_amount: maxUsedCollateral,
806
+ // only required for close position
807
+ lever_swap_weights: [new Web3Number(1, 18)],
808
+ // no need to swap collateral to anything, and any residuals return our contract anyways.
809
+ withdraw_swap: [],
810
+ withdraw_swap_limit_amount: Web3Number.fromWei(0, this.asset().decimals),
811
+ withdraw_swap_weights: [],
812
+ close_position: true
813
+ } : {
784
814
  sub_margin: params.marginAmount.multipliedBy(-1),
785
815
  lever_swap: leverSwap,
786
816
  lever_swap_limit_amount: maxUsedCollateral,
@@ -969,7 +999,7 @@ function getLooperSettings(
969
999
  }]);
970
1000
 
971
1001
  // add vesu leaves for all supported pool ids
972
- vaultSettings.borrowable_assets.map(borrowableAsset => addVesuLeaves(borrowableAsset.poolId, lstSymbol, underlyingSymbol, vaultSettings, commonAdapter));
1002
+ vaultSettings.borrowable_assets.map(borrowableAsset => addVesuLeaves(borrowableAsset.poolId, lstSymbol, borrowableAsset.token.symbol, vaultSettings, commonAdapter));
973
1003
 
974
1004
  // approve lst once to avnu
975
1005
  vaultSettings.leafAdapters.push(commonAdapter.getApproveAdapter(lstToken.address, AVNU_EXCHANGE, LST_MULTIPLIER_MANAGE_IDS.AVNU_MULTIPLY_APPROVE_WITHDRAW).bind(commonAdapter));