@strkfarm/sdk 2.0.0-staging.53 → 2.0.0-staging.55

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.
@@ -116682,13 +116682,19 @@ spurious results.`);
116682
116682
  `Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
116683
116683
  `On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
116684
116684
  ];
116685
+ const parentTitle = secondary.replace("x", "");
116686
+ const variantIntro = {
116687
+ title: `${parentTitle} YOLO vault variant`,
116688
+ description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
116689
+ };
116685
116690
  return {
116686
- title: `${secondary.replace("x", "")} YOLO (${input.expiryDate})`,
116691
+ title: `${parentTitle} YOLO (${input.expiryDate})`,
116687
116692
  description,
116688
116693
  vaultTypeDescription: vaultTypeDescription2,
116689
116694
  faqs: faqs3,
116690
116695
  investmentSteps: investmentSteps2,
116691
- parentTitle: `${secondary.replace("x", "")} YOLO`
116696
+ parentTitle: `${parentTitle} YOLO`,
116697
+ variantIntro
116692
116698
  };
116693
116699
  };
116694
116700
  var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
@@ -116747,6 +116753,7 @@ spurious results.`);
116747
116753
  startDate: "03-MAR-2026",
116748
116754
  expiryDate: "31-DEC-2026",
116749
116755
  id: `btc-yolo-31-dec-2026`,
116756
+ priority: 100,
116750
116757
  ...vaultCommonProperties,
116751
116758
  parent_id: wbtc_parent
116752
116759
  },
@@ -116757,6 +116764,7 @@ spurious results.`);
116757
116764
  startDate: "03-APR-2026",
116758
116765
  expiryDate: "31-MAY-2026",
116759
116766
  id: `vusdc-xwbct-yolo-31-may-2026`,
116767
+ priority: 100,
116760
116768
  ...vaultCommonProperties,
116761
116769
  parent_id: wbtc_parent
116762
116770
  },
@@ -116767,6 +116775,7 @@ spurious results.`);
116767
116775
  startDate: "03-APR-2026",
116768
116776
  expiryDate: "31-MAR-2027",
116769
116777
  id: `xstrk-yolo-31-mar-2027`,
116778
+ priority: 50,
116770
116779
  ...vaultCommonProperties,
116771
116780
  spendingLevels: [
116772
116781
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -116784,6 +116793,7 @@ spurious results.`);
116784
116793
  startDate: "03-APR-2026",
116785
116794
  expiryDate: "30-JUN-2026",
116786
116795
  id: `xstrk-yolo-30-jun-2026`,
116796
+ priority: 50,
116787
116797
  ...vaultCommonProperties,
116788
116798
  spendingLevels: [
116789
116799
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -116804,6 +116814,8 @@ spurious results.`);
116804
116814
  name: yoloCopy.title,
116805
116815
  parentName: yoloCopy.parentTitle,
116806
116816
  parentId: yoloConfig.parent_id,
116817
+ priority: yoloConfig.priority,
116818
+ variantIntro: yoloCopy.variantIntro,
116807
116819
  description: yoloCopy.description,
116808
116820
  address: yoloConfig.address,
116809
116821
  vaultType: {
@@ -116860,7 +116872,7 @@ spurious results.`);
116860
116872
  } : {}
116861
116873
  },
116862
116874
  faqs: yoloCopy.faqs,
116863
- contractDetails: [],
116875
+ contractDetails: [{ name: "Vault", address: yoloConfig.address }],
116864
116876
  investmentSteps: yoloCopy.investmentSteps,
116865
116877
  settings: {
116866
116878
  liveStatus: "Hot & New \u{1F525}" /* HOT */,
@@ -29281,13 +29281,19 @@ var getYoloVaultCopy = (input) => {
29281
29281
  `Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
29282
29282
  `On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
29283
29283
  ];
29284
+ const parentTitle = secondary.replace("x", "");
29285
+ const variantIntro = {
29286
+ title: `${parentTitle} YOLO vault variant`,
29287
+ description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
29288
+ };
29284
29289
  return {
29285
- title: `${secondary.replace("x", "")} YOLO (${input.expiryDate})`,
29290
+ title: `${parentTitle} YOLO (${input.expiryDate})`,
29286
29291
  description,
29287
29292
  vaultTypeDescription: vaultTypeDescription2,
29288
29293
  faqs: faqs3,
29289
29294
  investmentSteps: investmentSteps2,
29290
- parentTitle: `${secondary.replace("x", "")} YOLO`
29295
+ parentTitle: `${parentTitle} YOLO`,
29296
+ variantIntro
29291
29297
  };
29292
29298
  };
29293
29299
  var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
@@ -29346,6 +29352,7 @@ var yoloVaultsConfig = [
29346
29352
  startDate: "03-MAR-2026",
29347
29353
  expiryDate: "31-DEC-2026",
29348
29354
  id: `btc-yolo-31-dec-2026`,
29355
+ priority: 100,
29349
29356
  ...vaultCommonProperties,
29350
29357
  parent_id: wbtc_parent
29351
29358
  },
@@ -29356,6 +29363,7 @@ var yoloVaultsConfig = [
29356
29363
  startDate: "03-APR-2026",
29357
29364
  expiryDate: "31-MAY-2026",
29358
29365
  id: `vusdc-xwbct-yolo-31-may-2026`,
29366
+ priority: 100,
29359
29367
  ...vaultCommonProperties,
29360
29368
  parent_id: wbtc_parent
29361
29369
  },
@@ -29366,6 +29374,7 @@ var yoloVaultsConfig = [
29366
29374
  startDate: "03-APR-2026",
29367
29375
  expiryDate: "31-MAR-2027",
29368
29376
  id: `xstrk-yolo-31-mar-2027`,
29377
+ priority: 50,
29369
29378
  ...vaultCommonProperties,
29370
29379
  spendingLevels: [
29371
29380
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29383,6 +29392,7 @@ var yoloVaultsConfig = [
29383
29392
  startDate: "03-APR-2026",
29384
29393
  expiryDate: "30-JUN-2026",
29385
29394
  id: `xstrk-yolo-30-jun-2026`,
29395
+ priority: 50,
29386
29396
  ...vaultCommonProperties,
29387
29397
  spendingLevels: [
29388
29398
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29403,6 +29413,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29403
29413
  name: yoloCopy.title,
29404
29414
  parentName: yoloCopy.parentTitle,
29405
29415
  parentId: yoloConfig.parent_id,
29416
+ priority: yoloConfig.priority,
29417
+ variantIntro: yoloCopy.variantIntro,
29406
29418
  description: yoloCopy.description,
29407
29419
  address: yoloConfig.address,
29408
29420
  vaultType: {
@@ -29459,7 +29471,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29459
29471
  } : {}
29460
29472
  },
29461
29473
  faqs: yoloCopy.faqs,
29462
- contractDetails: [],
29474
+ contractDetails: [{ name: "Vault", address: yoloConfig.address }],
29463
29475
  investmentSteps: yoloCopy.investmentSteps,
29464
29476
  settings: {
29465
29477
  liveStatus: "Hot & New \u{1F525}" /* HOT */,
package/dist/index.d.ts CHANGED
@@ -232,6 +232,19 @@ interface IStrategyMetadata<T> {
232
232
  id: string;
233
233
  name: string;
234
234
  description: string | React.ReactNode;
235
+ /**
236
+ * Optional UI sort priority. Higher shows earlier.
237
+ * Intended for pinning flagship parent vaults (e.g. BTC above STRK).
238
+ */
239
+ priority?: number;
240
+ /**
241
+ * Optional UI config for the variant intro popup (strategy page).
242
+ * Should be identical across strategies that share the same `parentId`.
243
+ */
244
+ variantIntro?: {
245
+ title: string;
246
+ description: string;
247
+ };
235
248
  address: ContractAddr;
236
249
  launchBlock: number;
237
250
  type: "ERC4626" | "ERC721" | "Other";
package/dist/index.js CHANGED
@@ -29421,13 +29421,19 @@ var getYoloVaultCopy = (input) => {
29421
29421
  `Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
29422
29422
  `On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
29423
29423
  ];
29424
+ const parentTitle = secondary.replace("x", "");
29425
+ const variantIntro = {
29426
+ title: `${parentTitle} YOLO vault variant`,
29427
+ description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
29428
+ };
29424
29429
  return {
29425
- title: `${secondary.replace("x", "")} YOLO (${input.expiryDate})`,
29430
+ title: `${parentTitle} YOLO (${input.expiryDate})`,
29426
29431
  description,
29427
29432
  vaultTypeDescription: vaultTypeDescription2,
29428
29433
  faqs: faqs3,
29429
29434
  investmentSteps: investmentSteps2,
29430
- parentTitle: `${secondary.replace("x", "")} YOLO`
29435
+ parentTitle: `${parentTitle} YOLO`,
29436
+ variantIntro
29431
29437
  };
29432
29438
  };
29433
29439
  var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
@@ -29486,6 +29492,7 @@ var yoloVaultsConfig = [
29486
29492
  startDate: "03-MAR-2026",
29487
29493
  expiryDate: "31-DEC-2026",
29488
29494
  id: `btc-yolo-31-dec-2026`,
29495
+ priority: 100,
29489
29496
  ...vaultCommonProperties,
29490
29497
  parent_id: wbtc_parent
29491
29498
  },
@@ -29496,6 +29503,7 @@ var yoloVaultsConfig = [
29496
29503
  startDate: "03-APR-2026",
29497
29504
  expiryDate: "31-MAY-2026",
29498
29505
  id: `vusdc-xwbct-yolo-31-may-2026`,
29506
+ priority: 100,
29499
29507
  ...vaultCommonProperties,
29500
29508
  parent_id: wbtc_parent
29501
29509
  },
@@ -29506,6 +29514,7 @@ var yoloVaultsConfig = [
29506
29514
  startDate: "03-APR-2026",
29507
29515
  expiryDate: "31-MAR-2027",
29508
29516
  id: `xstrk-yolo-31-mar-2027`,
29517
+ priority: 50,
29509
29518
  ...vaultCommonProperties,
29510
29519
  spendingLevels: [
29511
29520
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29523,6 +29532,7 @@ var yoloVaultsConfig = [
29523
29532
  startDate: "03-APR-2026",
29524
29533
  expiryDate: "30-JUN-2026",
29525
29534
  id: `xstrk-yolo-30-jun-2026`,
29535
+ priority: 50,
29526
29536
  ...vaultCommonProperties,
29527
29537
  spendingLevels: [
29528
29538
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29543,6 +29553,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29543
29553
  name: yoloCopy.title,
29544
29554
  parentName: yoloCopy.parentTitle,
29545
29555
  parentId: yoloConfig.parent_id,
29556
+ priority: yoloConfig.priority,
29557
+ variantIntro: yoloCopy.variantIntro,
29546
29558
  description: yoloCopy.description,
29547
29559
  address: yoloConfig.address,
29548
29560
  vaultType: {
@@ -29599,7 +29611,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29599
29611
  } : {}
29600
29612
  },
29601
29613
  faqs: yoloCopy.faqs,
29602
- contractDetails: [],
29614
+ contractDetails: [{ name: "Vault", address: yoloConfig.address }],
29603
29615
  investmentSteps: yoloCopy.investmentSteps,
29604
29616
  settings: {
29605
29617
  liveStatus: "Hot & New \u{1F525}" /* HOT */,
package/dist/index.mjs CHANGED
@@ -29286,13 +29286,19 @@ var getYoloVaultCopy = (input) => {
29286
29286
  `Redeem any time to receive your remaining ${main} plus accumulated ${secondary}.`,
29287
29287
  `On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
29288
29288
  ];
29289
+ const parentTitle = secondary.replace("x", "");
29290
+ const variantIntro = {
29291
+ title: `${parentTitle} YOLO vault variant`,
29292
+ description: "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault."
29293
+ };
29289
29294
  return {
29290
- title: `${secondary.replace("x", "")} YOLO (${input.expiryDate})`,
29295
+ title: `${parentTitle} YOLO (${input.expiryDate})`,
29291
29296
  description,
29292
29297
  vaultTypeDescription: vaultTypeDescription2,
29293
29298
  faqs: faqs3,
29294
29299
  investmentSteps: investmentSteps2,
29295
- parentTitle: `${secondary.replace("x", "")} YOLO`
29300
+ parentTitle: `${parentTitle} YOLO`,
29301
+ variantIntro
29296
29302
  };
29297
29303
  };
29298
29304
  var usdc = Global.getDefaultTokens().find((t) => t.symbol === "USDC");
@@ -29351,6 +29357,7 @@ var yoloVaultsConfig = [
29351
29357
  startDate: "03-MAR-2026",
29352
29358
  expiryDate: "31-DEC-2026",
29353
29359
  id: `btc-yolo-31-dec-2026`,
29360
+ priority: 100,
29354
29361
  ...vaultCommonProperties,
29355
29362
  parent_id: wbtc_parent
29356
29363
  },
@@ -29361,6 +29368,7 @@ var yoloVaultsConfig = [
29361
29368
  startDate: "03-APR-2026",
29362
29369
  expiryDate: "31-MAY-2026",
29363
29370
  id: `vusdc-xwbct-yolo-31-may-2026`,
29371
+ priority: 100,
29364
29372
  ...vaultCommonProperties,
29365
29373
  parent_id: wbtc_parent
29366
29374
  },
@@ -29371,6 +29379,7 @@ var yoloVaultsConfig = [
29371
29379
  startDate: "03-APR-2026",
29372
29380
  expiryDate: "31-MAR-2027",
29373
29381
  id: `xstrk-yolo-31-mar-2027`,
29382
+ priority: 50,
29374
29383
  ...vaultCommonProperties,
29375
29384
  spendingLevels: [
29376
29385
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29388,6 +29397,7 @@ var yoloVaultsConfig = [
29388
29397
  startDate: "03-APR-2026",
29389
29398
  expiryDate: "30-JUN-2026",
29390
29399
  id: `xstrk-yolo-30-jun-2026`,
29400
+ priority: 50,
29391
29401
  ...vaultCommonProperties,
29392
29402
  spendingLevels: [
29393
29403
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -29408,6 +29418,8 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29408
29418
  name: yoloCopy.title,
29409
29419
  parentName: yoloCopy.parentTitle,
29410
29420
  parentId: yoloConfig.parent_id,
29421
+ priority: yoloConfig.priority,
29422
+ variantIntro: yoloCopy.variantIntro,
29411
29423
  description: yoloCopy.description,
29412
29424
  address: yoloConfig.address,
29413
29425
  vaultType: {
@@ -29464,7 +29476,7 @@ var YoloVaultStrategies = yoloVaultsConfig.map((yoloConfig) => {
29464
29476
  } : {}
29465
29477
  },
29466
29478
  faqs: yoloCopy.faqs,
29467
- contractDetails: [],
29479
+ contractDetails: [{ name: "Vault", address: yoloConfig.address }],
29468
29480
  investmentSteps: yoloCopy.investmentSteps,
29469
29481
  settings: {
29470
29482
  liveStatus: "Hot & New \u{1F525}" /* HOT */,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strkfarm/sdk",
3
- "version": "2.0.0-staging.53",
3
+ "version": "2.0.0-staging.55",
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",
@@ -183,6 +183,19 @@ export interface IStrategyMetadata<T> {
183
183
  id: string;
184
184
  name: string;
185
185
  description: string | React.ReactNode;
186
+ /**
187
+ * Optional UI sort priority. Higher shows earlier.
188
+ * Intended for pinning flagship parent vaults (e.g. BTC above STRK).
189
+ */
190
+ priority?: number;
191
+ /**
192
+ * Optional UI config for the variant intro popup (strategy page).
193
+ * Should be identical across strategies that share the same `parentId`.
194
+ */
195
+ variantIntro?: {
196
+ title: string;
197
+ description: string;
198
+ };
186
199
  address: ContractAddr;
187
200
  launchBlock: number;
188
201
  type: "ERC4626" | "ERC721" | "Other";
@@ -67,6 +67,8 @@ interface YoloVaultStrategyConfig extends YoloVaultSettings {
67
67
  id: string;
68
68
  address: ContractAddr;
69
69
  parent_id: string;
70
+ /** Higher shows earlier in UI. */
71
+ priority?: number;
70
72
  }
71
73
 
72
74
  export interface UserYoloInfo {
@@ -826,13 +828,21 @@ const getYoloVaultCopy = (input: YoloVaultSettings) => {
826
828
  `On expiry, entire ${main} token would have been swapped into ${secondary}, unless due to unfavourable market conditions.`
827
829
  ];
828
830
 
831
+ const parentTitle = secondary.replace('x', '');
832
+ const variantIntro = {
833
+ title: `${parentTitle} YOLO vault variant`,
834
+ description:
835
+ "Each variant runs until a different expiry date. TVA schedules and execution windows are configured per vault.",
836
+ };
837
+
829
838
  return {
830
- title: `${secondary.replace('x', '')} YOLO (${input.expiryDate})`,
839
+ title: `${parentTitle} YOLO (${input.expiryDate})`,
831
840
  description,
832
841
  vaultTypeDescription,
833
842
  faqs,
834
843
  investmentSteps,
835
- parentTitle: `${secondary.replace('x', '')} YOLO`
844
+ parentTitle: `${parentTitle} YOLO`,
845
+ variantIntro,
836
846
  };
837
847
  };
838
848
 
@@ -908,6 +918,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
908
918
  startDate: "03-MAR-2026",
909
919
  expiryDate: "31-DEC-2026",
910
920
  id: `btc-yolo-31-dec-2026`,
921
+ priority: 100,
911
922
  ...vaultCommonProperties,
912
923
  parent_id: wbtc_parent,
913
924
  },
@@ -918,6 +929,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
918
929
  startDate: "03-APR-2026",
919
930
  expiryDate: "31-MAY-2026",
920
931
  id: `vusdc-xwbct-yolo-31-may-2026`,
932
+ priority: 100,
921
933
  ...vaultCommonProperties,
922
934
  parent_id: wbtc_parent
923
935
  },
@@ -928,6 +940,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
928
940
  startDate: "03-APR-2026",
929
941
  expiryDate: "31-MAR-2027",
930
942
  id: `xstrk-yolo-31-mar-2027`,
943
+ priority: 50,
931
944
  ...vaultCommonProperties,
932
945
  spendingLevels: [
933
946
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -945,6 +958,7 @@ const yoloVaultsConfig:YoloVaultStrategyConfig[] = [
945
958
  startDate: "03-APR-2026",
946
959
  expiryDate: "30-JUN-2026",
947
960
  id: `xstrk-yolo-30-jun-2026`,
961
+ priority: 50,
948
962
  ...vaultCommonProperties,
949
963
  spendingLevels: [
950
964
  { minPrice: 0.07, maxPrice: 0.1, spendPercent: 50 },
@@ -969,6 +983,8 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
969
983
  name: yoloCopy.title,
970
984
  parentName: yoloCopy.parentTitle,
971
985
  parentId: yoloConfig.parent_id,
986
+ priority: yoloConfig.priority,
987
+ variantIntro: yoloCopy.variantIntro,
972
988
  description: yoloCopy.description,
973
989
  address: yoloConfig.address,
974
990
  vaultType: {
@@ -1027,7 +1043,7 @@ export const YoloVaultStrategies: IStrategyMetadata<YoloVaultSettings>[] = yoloV
1027
1043
  : {}),
1028
1044
  },
1029
1045
  faqs: yoloCopy.faqs,
1030
- contractDetails: [],
1046
+ contractDetails: [{name: "Vault", address: yoloConfig.address}],
1031
1047
  investmentSteps: yoloCopy.investmentSteps,
1032
1048
  settings: {
1033
1049
  liveStatus: StrategyLiveStatus.HOT,