@dynamic-labs/sdk-api-core 0.11.0 → 0.13.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.11.0",
3
+ "version": "0.13.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -3910,7 +3910,7 @@ class SDKApi extends runtime.BaseAPI {
3910
3910
  await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
3911
3911
  }
3912
3912
  /**
3913
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3913
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
3914
3914
  * Get the status of a sponsored EVM transaction
3915
3915
  */
3916
3916
  async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
@@ -3921,6 +3921,9 @@ class SDKApi extends runtime.BaseAPI {
3921
3921
  throw new runtime.RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
3922
3922
  }
3923
3923
  const queryParameters = {};
3924
+ if (requestParameters.wait !== undefined) {
3925
+ queryParameters['wait'] = requestParameters.wait;
3926
+ }
3924
3927
  const headerParameters = {};
3925
3928
  const response = await this.request({
3926
3929
  path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
@@ -3931,7 +3934,7 @@ class SDKApi extends runtime.BaseAPI {
3931
3934
  return new runtime.JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
3932
3935
  }
3933
3936
  /**
3934
- * Returns the current status of a previously sponsored EVM transaction. Fetches the latest status from the relay provider and updates the stored record.
3937
+ * Returns the current status of a previously sponsored EVM transaction from the stored record, which is kept in sync with the relay provider. Pass `wait` to hold the response open until the transaction resolves.
3935
3938
  * Get the status of a sponsored EVM transaction
3936
3939
  */
3937
3940
  async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {