@dynamic-labs/sdk-api-core 0.7.0 → 0.9.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -11862,7 +11862,7 @@ class SDKApi extends runtime.BaseAPI {
11862
11862
  await this.walletsVerifyOptionsRaw(requestParameters, initOverrides);
11863
11863
  }
11864
11864
  /**
11865
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
11865
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
11866
11866
  * Build a vault reward-claim signing payload
11867
11867
  */
11868
11868
  async yieldVaultClaimRaw(requestParameters, initOverrides) {
@@ -11885,14 +11885,15 @@ class SDKApi extends runtime.BaseAPI {
11885
11885
  query: queryParameters,
11886
11886
  body: YieldVaultClaimRequest.YieldVaultClaimRequestToJSON(requestParameters.yieldVaultClaimRequest),
11887
11887
  }, initOverrides);
11888
- return new runtime.VoidApiResponse(response);
11888
+ return new runtime.JSONApiResponse(response, (jsonValue) => YieldVaultActionResponse.YieldVaultActionResponseFromJSON(jsonValue));
11889
11889
  }
11890
11890
  /**
11891
- * Reward claiming is not yet supported and currently always responds 422. Encoding a claim needs the Merkl distributor address and a per-user merkle proof; the rewards endpoint reads Merkl\'s active-opportunities API, which reports accrued amounts only and carries neither. Wiring up the Merkl claim data is a follow-up. This path reserves the contract so the SDK surface is stable.
11891
+ * Builds an unsigned Merkl Distributor claim signing payload for the reward token(s) earned through this vault. Responds 422 when there is nothing to claim right now no reward campaign for this vault, or every attributable token is already fully claimed.
11892
11892
  * Build a vault reward-claim signing payload
11893
11893
  */
11894
11894
  async yieldVaultClaim(requestParameters, initOverrides) {
11895
- await this.yieldVaultClaimRaw(requestParameters, initOverrides);
11895
+ const response = await this.yieldVaultClaimRaw(requestParameters, initOverrides);
11896
+ return await response.value();
11896
11897
  }
11897
11898
  /**
11898
11899
  * Options call for this endpoint
@@ -12059,7 +12060,7 @@ class SDKApi extends runtime.BaseAPI {
12059
12060
  await this.yieldVaultRewardsOptionsRaw(requestParameters, initOverrides);
12060
12061
  }
12061
12062
  /**
12062
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
12063
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
12063
12064
  * Build a vault withdraw signing payload
12064
12065
  */
12065
12066
  async yieldVaultWithdrawRaw(requestParameters, initOverrides) {
@@ -12085,7 +12086,7 @@ class SDKApi extends runtime.BaseAPI {
12085
12086
  return new runtime.JSONApiResponse(response, (jsonValue) => YieldVaultActionResponse.YieldVaultActionResponseFromJSON(jsonValue));
12086
12087
  }
12087
12088
  /**
12088
- * Builds an unsigned ERC-4626 withdraw signing payload for the given vault and wallet address. No ERC-20 approval is needed for withdrawals the owner redeems shares they already hold, so the response never contains `evmApproval`.
12089
+ * Builds an unsigned withdraw signing payload for the given vault and wallet address. Withdrawals redeem shares the owner already holds, so no approval step is needed and the response never includes one.
12089
12090
  * Build a vault withdraw signing payload
12090
12091
  */
12091
12092
  async yieldVaultWithdraw(requestParameters, initOverrides) {