@dynamic-labs/sdk-api 0.0.514 → 0.0.515
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 +1 -1
- package/src/apis/SDKApi.cjs +27 -0
- package/src/apis/SDKApi.d.ts +11 -0
- package/src/apis/SDKApi.js +27 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -2932,6 +2932,33 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2932
2932
|
return yield response.value();
|
|
2933
2933
|
});
|
|
2934
2934
|
}
|
|
2935
|
+
/**
|
|
2936
|
+
* Options call for this endpoint
|
|
2937
|
+
*/
|
|
2938
|
+
optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
2939
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2940
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2941
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
|
|
2942
|
+
}
|
|
2943
|
+
const queryParameters = {};
|
|
2944
|
+
const headerParameters = {};
|
|
2945
|
+
const response = yield this.request({
|
|
2946
|
+
path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2947
|
+
method: 'OPTIONS',
|
|
2948
|
+
headers: headerParameters,
|
|
2949
|
+
query: queryParameters,
|
|
2950
|
+
}, initOverrides);
|
|
2951
|
+
return new runtime.VoidApiResponse(response);
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2954
|
+
/**
|
|
2955
|
+
* Options call for this endpoint
|
|
2956
|
+
*/
|
|
2957
|
+
optimizeTransactionOptions(requestParameters, initOverrides) {
|
|
2958
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2959
|
+
yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
|
|
2960
|
+
});
|
|
2961
|
+
}
|
|
2935
2962
|
/**
|
|
2936
2963
|
* Options call for this endpoint
|
|
2937
2964
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -332,6 +332,9 @@ export interface OptimizeTransactionRequest {
|
|
|
332
332
|
environmentId: string;
|
|
333
333
|
solanaTransactionOptimizationRequest: SolanaTransactionOptimizationRequest;
|
|
334
334
|
}
|
|
335
|
+
export interface OptimizeTransactionOptionsRequest {
|
|
336
|
+
environmentId: string;
|
|
337
|
+
}
|
|
335
338
|
export interface OptionsConnectRequest {
|
|
336
339
|
environmentId: string;
|
|
337
340
|
}
|
|
@@ -1242,6 +1245,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1242
1245
|
* Add fees to a Solana transaction
|
|
1243
1246
|
*/
|
|
1244
1247
|
optimizeTransaction(requestParameters: OptimizeTransactionRequest, initOverrides?: RequestInit): Promise<SolanaTransactionOptimizationResponse>;
|
|
1248
|
+
/**
|
|
1249
|
+
* Options call for this endpoint
|
|
1250
|
+
*/
|
|
1251
|
+
optimizeTransactionOptionsRaw(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Options call for this endpoint
|
|
1254
|
+
*/
|
|
1255
|
+
optimizeTransactionOptions(requestParameters: OptimizeTransactionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1245
1256
|
/**
|
|
1246
1257
|
* Options call for this endpoint
|
|
1247
1258
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -2928,6 +2928,33 @@ class SDKApi extends BaseAPI {
|
|
|
2928
2928
|
return yield response.value();
|
|
2929
2929
|
});
|
|
2930
2930
|
}
|
|
2931
|
+
/**
|
|
2932
|
+
* Options call for this endpoint
|
|
2933
|
+
*/
|
|
2934
|
+
optimizeTransactionOptionsRaw(requestParameters, initOverrides) {
|
|
2935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2936
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2937
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling optimizeTransactionOptions.');
|
|
2938
|
+
}
|
|
2939
|
+
const queryParameters = {};
|
|
2940
|
+
const headerParameters = {};
|
|
2941
|
+
const response = yield this.request({
|
|
2942
|
+
path: `/sdk/{environmentId}/solana/optimizeTransaction`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2943
|
+
method: 'OPTIONS',
|
|
2944
|
+
headers: headerParameters,
|
|
2945
|
+
query: queryParameters,
|
|
2946
|
+
}, initOverrides);
|
|
2947
|
+
return new VoidApiResponse(response);
|
|
2948
|
+
});
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* Options call for this endpoint
|
|
2952
|
+
*/
|
|
2953
|
+
optimizeTransactionOptions(requestParameters, initOverrides) {
|
|
2954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2955
|
+
yield this.optimizeTransactionOptionsRaw(requestParameters, initOverrides);
|
|
2956
|
+
});
|
|
2957
|
+
}
|
|
2931
2958
|
/**
|
|
2932
2959
|
* Options call for this endpoint
|
|
2933
2960
|
*/
|