@dynamic-labs/sdk-api 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
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -3943,7 +3943,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3943
3943
|
await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
|
|
3944
3944
|
}
|
|
3945
3945
|
/**
|
|
3946
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
3946
|
+
* 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.
|
|
3947
3947
|
* Get the status of a sponsored EVM transaction
|
|
3948
3948
|
*/
|
|
3949
3949
|
async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
|
|
@@ -3954,6 +3954,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3954
3954
|
throw new runtime.RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
|
|
3955
3955
|
}
|
|
3956
3956
|
const queryParameters = {};
|
|
3957
|
+
if (requestParameters.wait !== undefined) {
|
|
3958
|
+
queryParameters['wait'] = requestParameters.wait;
|
|
3959
|
+
}
|
|
3957
3960
|
const headerParameters = {};
|
|
3958
3961
|
const response = await this.request({
|
|
3959
3962
|
path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
|
|
@@ -3964,7 +3967,7 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3964
3967
|
return new runtime.JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponse.GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
|
|
3965
3968
|
}
|
|
3966
3969
|
/**
|
|
3967
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
3970
|
+
* 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.
|
|
3968
3971
|
* Get the status of a sponsored EVM transaction
|
|
3969
3972
|
*/
|
|
3970
3973
|
async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -477,6 +477,7 @@ export interface GetCurrencyExchangeRatesOptionsRequest {
|
|
|
477
477
|
export interface GetEVMSponsoredTransactionStatusRequest {
|
|
478
478
|
environmentId: string;
|
|
479
479
|
requestId: string;
|
|
480
|
+
wait?: number;
|
|
480
481
|
}
|
|
481
482
|
export interface GetEVMSponsoredTransactionStatusOptionsRequest {
|
|
482
483
|
environmentId: string;
|
|
@@ -2611,12 +2612,12 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
2611
2612
|
*/
|
|
2612
2613
|
getCurrencyExchangeRatesOptions(requestParameters: GetCurrencyExchangeRatesOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
2613
2614
|
/**
|
|
2614
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
2615
|
+
* 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.
|
|
2615
2616
|
* Get the status of a sponsored EVM transaction
|
|
2616
2617
|
*/
|
|
2617
2618
|
getEVMSponsoredTransactionStatusRaw(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GetEVMSponsoredTransactionStatusResponse>>;
|
|
2618
2619
|
/**
|
|
2619
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
2620
|
+
* 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.
|
|
2620
2621
|
* Get the status of a sponsored EVM transaction
|
|
2621
2622
|
*/
|
|
2622
2623
|
getEVMSponsoredTransactionStatus(requestParameters: GetEVMSponsoredTransactionStatusRequest, initOverrides?: RequestInit): Promise<GetEVMSponsoredTransactionStatusResponse>;
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -3939,7 +3939,7 @@ class SDKApi extends BaseAPI {
|
|
|
3939
3939
|
await this.getCurrencyExchangeRatesOptionsRaw(requestParameters, initOverrides);
|
|
3940
3940
|
}
|
|
3941
3941
|
/**
|
|
3942
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
3942
|
+
* 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.
|
|
3943
3943
|
* Get the status of a sponsored EVM transaction
|
|
3944
3944
|
*/
|
|
3945
3945
|
async getEVMSponsoredTransactionStatusRaw(requestParameters, initOverrides) {
|
|
@@ -3950,6 +3950,9 @@ class SDKApi extends BaseAPI {
|
|
|
3950
3950
|
throw new RequiredError('requestId', 'Required parameter requestParameters.requestId was null or undefined when calling getEVMSponsoredTransactionStatus.');
|
|
3951
3951
|
}
|
|
3952
3952
|
const queryParameters = {};
|
|
3953
|
+
if (requestParameters.wait !== undefined) {
|
|
3954
|
+
queryParameters['wait'] = requestParameters.wait;
|
|
3955
|
+
}
|
|
3953
3956
|
const headerParameters = {};
|
|
3954
3957
|
const response = await this.request({
|
|
3955
3958
|
path: `/sdk/{environmentId}/evm/sponsorTransaction/{requestId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"requestId"}}`, encodeURIComponent(String(requestParameters.requestId))),
|
|
@@ -3960,7 +3963,7 @@ class SDKApi extends BaseAPI {
|
|
|
3960
3963
|
return new JSONApiResponse(response, (jsonValue) => GetEVMSponsoredTransactionStatusResponseFromJSON(jsonValue));
|
|
3961
3964
|
}
|
|
3962
3965
|
/**
|
|
3963
|
-
* Returns the current status of a previously sponsored EVM transaction
|
|
3966
|
+
* 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.
|
|
3964
3967
|
* Get the status of a sponsored EVM transaction
|
|
3965
3968
|
*/
|
|
3966
3969
|
async getEVMSponsoredTransactionStatus(requestParameters, initOverrides) {
|
|
@@ -13,7 +13,7 @@ import { ChainEnum } from './ChainEnum';
|
|
|
13
13
|
import { ExchangeKeyEnum } from './ExchangeKeyEnum';
|
|
14
14
|
import { FlowSourceTypeEnum } from './FlowSourceTypeEnum';
|
|
15
15
|
/**
|
|
16
|
-
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and
|
|
16
|
+
* fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId, fromChainName, and refundAddress are all required (refundAddress specifies where funds should be returned if the deposit fails); fromAddress is not accepted.
|
|
17
17
|
* @export
|
|
18
18
|
* @interface FlowAttachSourceRequest
|
|
19
19
|
*/
|