@zyfai/sdk 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -578,21 +578,21 @@ console.log("Average Weighted APY:", apyHistory.averageWeightedApy);
578
578
 
579
579
  ### 10. Opportunities & Strategies
580
580
 
581
- #### Get Safe Opportunities (Low Risk)
581
+ #### Get Conservative Opportunities (Low Risk)
582
582
 
583
583
  ```typescript
584
- const safeOpps = await sdk.getSafeOpportunities(8453);
585
- safeOpps.data.forEach((o) => {
584
+ const conservativeOpps = await sdk.getConservativeOpportunities(8453);
585
+ conservativeOpps.data.forEach((o) => {
586
586
  console.log(`${o.protocolName} - ${o.poolName}: ${o.apy}% APY`);
587
587
  });
588
588
  ```
589
589
 
590
- #### Get Degen Strategies (High Risk)
590
+ #### Get Aggressive Opportunities (High Risk)
591
591
 
592
592
  ```typescript
593
- const degenStrats = await sdk.getDegenStrategies(8453);
594
- degenStrats.data.forEach((s) => {
595
- console.log(`${s.protocolName} - ${s.poolName}: ${s.apy}% APY`);
593
+ const aggressiveOpps = await sdk.getAggressiveOpportunities(8453);
594
+ aggressiveOpps.data.forEach((o) => {
595
+ console.log(`${o.protocolName} - ${o.poolName}: ${o.apy}% APY`);
596
596
  });
597
597
  ```
598
598
 
package/dist/index.d.mts CHANGED
@@ -823,24 +823,24 @@ declare class ZyfaiSDK {
823
823
  *
824
824
  * @example
825
825
  * ```typescript
826
- * const opportunities = await sdk.getSafeOpportunities(8453);
826
+ * const opportunities = await sdk.getConservativeOpportunities(8453);
827
827
  * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
828
828
  * ```
829
829
  */
830
- getSafeOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
830
+ getConservativeOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
831
831
  /**
832
- * Get aggressive (high-risk, high-reward) yield strategies
832
+ * Get aggressive (high-risk, high-reward) yield opportunities
833
833
  *
834
834
  * @param chainId - Optional chain ID filter
835
- * @returns List of aggressive strategies
835
+ * @returns List of aggressive opportunities
836
836
  *
837
837
  * @example
838
838
  * ```typescript
839
- * const strategies = await sdk.getDegenStrategies(8453);
840
- * strategies.data.forEach(s => console.log(s.protocolName, s.apy));
839
+ * const opportunities = await sdk.getAggressiveOpportunities(8453);
840
+ * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
841
841
  * ```
842
842
  */
843
- getDegenStrategies(chainId?: number): Promise<OpportunitiesResponse>;
843
+ getAggressiveOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
844
844
  /**
845
845
  * Get daily APY history with weighted average for a wallet
846
846
  *
package/dist/index.d.ts CHANGED
@@ -823,24 +823,24 @@ declare class ZyfaiSDK {
823
823
  *
824
824
  * @example
825
825
  * ```typescript
826
- * const opportunities = await sdk.getSafeOpportunities(8453);
826
+ * const opportunities = await sdk.getConservativeOpportunities(8453);
827
827
  * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
828
828
  * ```
829
829
  */
830
- getSafeOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
830
+ getConservativeOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
831
831
  /**
832
- * Get aggressive (high-risk, high-reward) yield strategies
832
+ * Get aggressive (high-risk, high-reward) yield opportunities
833
833
  *
834
834
  * @param chainId - Optional chain ID filter
835
- * @returns List of aggressive strategies
835
+ * @returns List of aggressive opportunities
836
836
  *
837
837
  * @example
838
838
  * ```typescript
839
- * const strategies = await sdk.getDegenStrategies(8453);
840
- * strategies.data.forEach(s => console.log(s.protocolName, s.apy));
839
+ * const opportunities = await sdk.getAggressiveOpportunities(8453);
840
+ * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
841
841
  * ```
842
842
  */
843
- getDegenStrategies(chainId?: number): Promise<OpportunitiesResponse>;
843
+ getAggressiveOpportunities(chainId?: number): Promise<OpportunitiesResponse>;
844
844
  /**
845
845
  * Get daily APY history with weighted average for a wallet
846
846
  *
package/dist/index.js CHANGED
@@ -2004,11 +2004,11 @@ var ZyfaiSDK = class {
2004
2004
  *
2005
2005
  * @example
2006
2006
  * ```typescript
2007
- * const opportunities = await sdk.getSafeOpportunities(8453);
2007
+ * const opportunities = await sdk.getConservativeOpportunities(8453);
2008
2008
  * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
2009
2009
  * ```
2010
2010
  */
2011
- async getSafeOpportunities(chainId) {
2011
+ async getConservativeOpportunities(chainId) {
2012
2012
  try {
2013
2013
  const response = await this.httpClient.dataGet(
2014
2014
  DATA_ENDPOINTS.OPPORTUNITIES_SAFE(chainId)
@@ -2039,18 +2039,18 @@ var ZyfaiSDK = class {
2039
2039
  }
2040
2040
  }
2041
2041
  /**
2042
- * Get aggressive (high-risk, high-reward) yield strategies
2042
+ * Get aggressive (high-risk, high-reward) yield opportunities
2043
2043
  *
2044
2044
  * @param chainId - Optional chain ID filter
2045
- * @returns List of aggressive strategies
2045
+ * @returns List of aggressive opportunities
2046
2046
  *
2047
2047
  * @example
2048
2048
  * ```typescript
2049
- * const strategies = await sdk.getDegenStrategies(8453);
2050
- * strategies.data.forEach(s => console.log(s.protocolName, s.apy));
2049
+ * const opportunities = await sdk.getAggressiveOpportunities(8453);
2050
+ * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
2051
2051
  * ```
2052
2052
  */
2053
- async getDegenStrategies(chainId) {
2053
+ async getAggressiveOpportunities(chainId) {
2054
2054
  try {
2055
2055
  const response = await this.httpClient.dataGet(
2056
2056
  DATA_ENDPOINTS.OPPORTUNITIES_DEGEN(chainId)
package/dist/index.mjs CHANGED
@@ -1981,11 +1981,11 @@ var ZyfaiSDK = class {
1981
1981
  *
1982
1982
  * @example
1983
1983
  * ```typescript
1984
- * const opportunities = await sdk.getSafeOpportunities(8453);
1984
+ * const opportunities = await sdk.getConservativeOpportunities(8453);
1985
1985
  * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
1986
1986
  * ```
1987
1987
  */
1988
- async getSafeOpportunities(chainId) {
1988
+ async getConservativeOpportunities(chainId) {
1989
1989
  try {
1990
1990
  const response = await this.httpClient.dataGet(
1991
1991
  DATA_ENDPOINTS.OPPORTUNITIES_SAFE(chainId)
@@ -2016,18 +2016,18 @@ var ZyfaiSDK = class {
2016
2016
  }
2017
2017
  }
2018
2018
  /**
2019
- * Get aggressive (high-risk, high-reward) yield strategies
2019
+ * Get aggressive (high-risk, high-reward) yield opportunities
2020
2020
  *
2021
2021
  * @param chainId - Optional chain ID filter
2022
- * @returns List of aggressive strategies
2022
+ * @returns List of aggressive opportunities
2023
2023
  *
2024
2024
  * @example
2025
2025
  * ```typescript
2026
- * const strategies = await sdk.getDegenStrategies(8453);
2027
- * strategies.data.forEach(s => console.log(s.protocolName, s.apy));
2026
+ * const opportunities = await sdk.getAggressiveOpportunities(8453);
2027
+ * opportunities.data.forEach(o => console.log(o.protocolName, o.apy));
2028
2028
  * ```
2029
2029
  */
2030
- async getDegenStrategies(chainId) {
2030
+ async getAggressiveOpportunities(chainId) {
2031
2031
  try {
2032
2032
  const response = await this.httpClient.dataGet(
2033
2033
  DATA_ENDPOINTS.OPPORTUNITIES_DEGEN(chainId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript SDK for Zyfai Yield Optimization Engine - Deploy Safe smart wallets, manage session keys, and interact with DeFi protocols",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",