@strkfarm/sdk 1.0.29 → 1.0.30
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/cli.js +4 -6
- package/dist/cli.mjs +7 -9
- package/dist/index.browser.global.js +9173 -63
- package/dist/index.browser.mjs +9185 -75
- package/dist/index.d.ts +10 -2
- package/dist/index.js +9197 -87
- package/dist/index.mjs +9187 -77
- package/package.json +1 -1
- package/src/data/vesu_pools.json +9019 -0
- package/src/modules/avnu.ts +7 -3
- package/src/modules/harvests.ts +42 -5
- package/src/strategies/ekubo-cl-vault.ts +1 -1
- package/src/strategies/vesu-rebalance.ts +75 -12
package/dist/cli.js
CHANGED
|
@@ -517,11 +517,14 @@ var getNoRiskTags = (risks) => {
|
|
|
517
517
|
var import_starknet6 = require("starknet");
|
|
518
518
|
|
|
519
519
|
// src/strategies/vesu-rebalance.ts
|
|
520
|
-
var
|
|
520
|
+
var import_starknet8 = require("starknet");
|
|
521
521
|
|
|
522
522
|
// src/node/headless.browser.ts
|
|
523
523
|
var import_axios5 = __toESM(require("axios"));
|
|
524
524
|
|
|
525
|
+
// src/modules/harvests.ts
|
|
526
|
+
var import_starknet7 = require("starknet");
|
|
527
|
+
|
|
525
528
|
// src/strategies/vesu-rebalance.ts
|
|
526
529
|
var _description = "Automatically diversify {{TOKEN}} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring STRK Rewards are auto-compounded as well.";
|
|
527
530
|
var _protocol = { name: "Vesu", logo: "https://static-assets-8zct.onrender.com/integrations/vesu/logo.png" };
|
|
@@ -619,11 +622,6 @@ var VesuRebalanceStrategies = [{
|
|
|
619
622
|
|
|
620
623
|
// src/strategies/ekubo-cl-vault.ts
|
|
621
624
|
var import_starknet9 = require("starknet");
|
|
622
|
-
|
|
623
|
-
// src/modules/harvests.ts
|
|
624
|
-
var import_starknet8 = require("starknet");
|
|
625
|
-
|
|
626
|
-
// src/strategies/ekubo-cl-vault.ts
|
|
627
625
|
var _description2 = "Deploys your {{POOL_NAME}} into an Ekubo liquidity pool, automatically rebalancing positions around the current price to optimize yield and reduce the need for manual adjustments. Trading fees and DeFi Spring rewards are automatically compounded back into the strategy. In return, you receive an ERC-20 token representing your share of the strategy. The APY is calculated based on 7-day historical performance.";
|
|
628
626
|
var _protocol2 = { name: "Ekubo", logo: "https://app.ekubo.org/favicon.ico" };
|
|
629
627
|
var _riskFactor2 = [
|
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import inquirer from "inquirer";
|
|
|
6
6
|
|
|
7
7
|
// src/utils/store.ts
|
|
8
8
|
import fs, { readFileSync, writeFileSync } from "fs";
|
|
9
|
-
import { Account as
|
|
9
|
+
import { Account as Account3, constants } from "starknet";
|
|
10
10
|
import * as crypto2 from "crypto";
|
|
11
11
|
|
|
12
12
|
// src/utils/encrypt.ts
|
|
@@ -494,11 +494,14 @@ var getNoRiskTags = (risks) => {
|
|
|
494
494
|
import { Contract as Contract3, uint256 as uint2562 } from "starknet";
|
|
495
495
|
|
|
496
496
|
// src/strategies/vesu-rebalance.ts
|
|
497
|
-
import { CairoCustomEnum, Contract as
|
|
497
|
+
import { CairoCustomEnum, Contract as Contract5, num as num3, uint256 as uint2563 } from "starknet";
|
|
498
498
|
|
|
499
499
|
// src/node/headless.browser.ts
|
|
500
500
|
import axios5 from "axios";
|
|
501
501
|
|
|
502
|
+
// src/modules/harvests.ts
|
|
503
|
+
import { Contract as Contract4, num as num2 } from "starknet";
|
|
504
|
+
|
|
502
505
|
// src/strategies/vesu-rebalance.ts
|
|
503
506
|
var _description = "Automatically diversify {{TOKEN}} holdings into different Vesu pools while reducing risk and maximizing yield. Defi spring STRK Rewards are auto-compounded as well.";
|
|
504
507
|
var _protocol = { name: "Vesu", logo: "https://static-assets-8zct.onrender.com/integrations/vesu/logo.png" };
|
|
@@ -595,12 +598,7 @@ var VesuRebalanceStrategies = [{
|
|
|
595
598
|
}];
|
|
596
599
|
|
|
597
600
|
// src/strategies/ekubo-cl-vault.ts
|
|
598
|
-
import { Contract as Contract6, num as
|
|
599
|
-
|
|
600
|
-
// src/modules/harvests.ts
|
|
601
|
-
import { Contract as Contract5 } from "starknet";
|
|
602
|
-
|
|
603
|
-
// src/strategies/ekubo-cl-vault.ts
|
|
601
|
+
import { Contract as Contract6, num as num4, uint256 as uint2564 } from "starknet";
|
|
604
602
|
var _description2 = "Deploys your {{POOL_NAME}} into an Ekubo liquidity pool, automatically rebalancing positions around the current price to optimize yield and reduce the need for manual adjustments. Trading fees and DeFi Spring rewards are automatically compounded back into the strategy. In return, you receive an ERC-20 token representing your share of the strategy. The APY is calculated based on 7-day historical performance.";
|
|
605
603
|
var _protocol2 = { name: "Ekubo", logo: "https://app.ekubo.org/favicon.ico" };
|
|
606
604
|
var _riskFactor2 = [
|
|
@@ -682,7 +680,7 @@ var Store = class _Store {
|
|
|
682
680
|
}
|
|
683
681
|
logger.verbose(`Account loaded: ${accountKey} from network: ${this.config.network}`);
|
|
684
682
|
logger.verbose(`Address: ${data.address}`);
|
|
685
|
-
const acc = new
|
|
683
|
+
const acc = new Account3(this.config.provider, data.address, data.pk, void 0, txVersion);
|
|
686
684
|
return acc;
|
|
687
685
|
}
|
|
688
686
|
addAccount(accountKey, address, pk) {
|