Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hawksightco/swagger-client

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hawksightco/swagger-client - npm Package Compare versions

Comparing version 0.0.26 to 0.0.27

dist/models/automation-limit-close-automation-ix-body.d.ts

74

apis/general-endpoints-api.ts

@@ -152,2 +152,44 @@ /* tslint:disable */

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet: async (position: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'position' is not null or undefined
if (position === null || position === undefined) {
throw new RequiredError('position','Required parameter position was null or undefined when calling positionAnalyticsGet.');
}
const localVarPath = `/positionAnalytics`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
if (position !== undefined) {
localVarQueryParameter['position'] = position;
}
const query = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (const key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -333,2 +375,15 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async positionAnalyticsGet(position: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>> {
const localVarAxiosArgs = await GeneralEndpointsApiAxiosParamCreator(configuration).positionAnalyticsGet(position, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -411,2 +466,11 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async positionAnalyticsGet(position: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>> {
return GeneralEndpointsApiFp(configuration).positionAnalyticsGet(position, options).then((request) => request(axios, basePath));
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -481,2 +545,12 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GeneralEndpointsApi
*/
public async positionAnalyticsGet(position: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<void>> {
return GeneralEndpointsApiFp(this.configuration).positionAnalyticsGet(position, options).then((request) => request(this.axios, this.basePath));
}
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -483,0 +557,0 @@ * @param {RegisterBody} body

62

apis/meteora-dlmmautomation-instructions-api.ts

@@ -21,4 +21,4 @@ /* tslint:disable */

import { AutomationCompoundAutomationIxBody } from '../models';
import { AutomationLimitCloseAutomationIxBody } from '../models';
import { AutomationRebalanceAutomationIxBody } from '../models';
import { AutomationWithdrawAndCloseAutomationIxBody } from '../models';
import { InlineResponse400 } from '../models';

@@ -76,12 +76,12 @@ import { TransactionMetadata } from '../models';

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost: async (body: AutomationRebalanceAutomationIxBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
meteoraDlmmAutomationLimitCloseAutomationIxPost: async (body: AutomationLimitCloseAutomationIxBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('body','Required parameter body was null or undefined when calling meteoraDlmmAutomationRebalanceAutomationIxPost.');
throw new RequiredError('body','Required parameter body was null or undefined when calling meteoraDlmmAutomationLimitCloseAutomationIxPost.');
}
const localVarPath = `/meteora/dlmm/automation/rebalanceAutomationIx`;
const localVarPath = `/meteora/dlmm/automation/limitCloseAutomationIx`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.

@@ -118,13 +118,13 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com');

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: async (body: AutomationWithdrawAndCloseAutomationIxBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
meteoraDlmmAutomationRebalanceAutomationIxPost: async (body: AutomationRebalanceAutomationIxBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new RequiredError('body','Required parameter body was null or undefined when calling meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost.');
throw new RequiredError('body','Required parameter body was null or undefined when calling meteoraDlmmAutomationRebalanceAutomationIxPost.');
}
const localVarPath = `/meteora/dlmm/automation/withdrawAndCloseAutomationIx`;
const localVarPath = `/meteora/dlmm/automation/rebalanceAutomationIx`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.

@@ -184,8 +184,8 @@ const localVarUrlObj = new URL(localVarPath, 'https://example.com');

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options);
async meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

@@ -197,9 +197,9 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options);
async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {

@@ -230,17 +230,17 @@ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then((request) => request(axios, basePath));
async meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options).then((request) => request(axios, basePath));
},
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then((request) => request(axios, basePath));
async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then((request) => request(axios, basePath));
},

@@ -269,3 +269,3 @@ };

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -275,8 +275,8 @@ * @throws {RequiredError}

*/
public async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
public async meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -286,5 +286,5 @@ * @throws {RequiredError}

*/
public async meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
public async meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
}
}

@@ -48,2 +48,9 @@ /**

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet: (position: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -99,2 +106,9 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet(position: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -150,2 +164,9 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet(position: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -206,2 +227,10 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GeneralEndpointsApi
*/
positionAnalyticsGet(position: string, options?: AxiosRequestConfig): Promise<AxiosResponse<void>>;
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -208,0 +237,0 @@ * @param {RegisterBody} body

@@ -233,2 +233,49 @@ "use strict";

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet: function (position_1) {
var args_1 = [];
for (var _i = 1; _i < arguments.length; _i++) {
args_1[_i - 1] = arguments[_i];
}
return __awaiter(_this, __spreadArray([position_1], args_1, true), void 0, function (position, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
// verify required parameter 'position' is not null or undefined
if (position === null || position === undefined) {
throw new base_1.RequiredError('position', 'Required parameter position was null or undefined when calling positionAnalyticsGet.');
}
localVarPath = "/positionAnalytics";
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
if (position !== undefined) {
localVarQueryParameter['position'] = position;
}
query = new URLSearchParams(localVarUrlObj.search);
for (key in localVarQueryParameter) {
query.set(key, localVarQueryParameter[key]);
}
for (key in options.params) {
query.set(key, options.params[key]);
}
localVarUrlObj.search = (new URLSearchParams(query)).toString();
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -460,2 +507,26 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet: function (position, options) {
return __awaiter(this, void 0, void 0, function () {
var localVarAxiosArgs;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, (0, exports.GeneralEndpointsApiAxiosParamCreator)(configuration).positionAnalyticsGet(position, options)];
case 1:
localVarAxiosArgs = _a.sent();
return [2 /*return*/, function (axios, basePath) {
if (axios === void 0) { axios = axios_1.default; }
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
return axios.request(axiosRequestArgs);
}];
}
});
});
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -583,2 +654,15 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
positionAnalyticsGet: function (position, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(configuration).positionAnalyticsGet(position, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -684,2 +768,17 @@ * @param {RegisterBody} body

/**
* Returns all pools integrated by Hawksight.
* @param {string} position Position to search
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GeneralEndpointsApi
*/
GeneralEndpointsApi.prototype.positionAnalyticsGet = function (position, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.GeneralEndpointsApiFp)(this.configuration).positionAnalyticsGet(position, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
* Generates a transaction to create a user's program derived address (PDA).

@@ -686,0 +785,0 @@ * @param {RegisterBody} body

@@ -16,4 +16,4 @@ /**

import { AutomationCompoundAutomationIxBody } from '../models';
import { AutomationLimitCloseAutomationIxBody } from '../models';
import { AutomationRebalanceAutomationIxBody } from '../models';
import { AutomationWithdrawAndCloseAutomationIxBody } from '../models';
import { TransactionMetadata } from '../models';

@@ -34,14 +34,14 @@ /**

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost: (body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
meteoraDlmmAutomationLimitCloseAutomationIxPost: (body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: (body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
meteoraDlmmAutomationRebalanceAutomationIxPost: (body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -62,14 +62,14 @@ /**

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
};

@@ -90,14 +90,14 @@ /**

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
};

@@ -121,3 +121,3 @@ /**

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -127,6 +127,6 @@ * @throws {RequiredError}

*/
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
meteoraDlmmAutomationLimitCloseAutomationIxPost(body: AutomationLimitCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -136,3 +136,3 @@ * @throws {RequiredError}

*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body: AutomationWithdrawAndCloseAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
meteoraDlmmAutomationRebalanceAutomationIxPost(body: AutomationRebalanceAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
}

@@ -148,7 +148,7 @@ "use strict";

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body_1) {
meteoraDlmmAutomationLimitCloseAutomationIxPost: function (body_1) {
var args_1 = [];

@@ -164,5 +164,5 @@ for (var _i = 1; _i < arguments.length; _i++) {

if (body === null || body === undefined) {
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationRebalanceAutomationIxPost.');
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationLimitCloseAutomationIxPost.');
}
localVarPath = "/meteora/dlmm/automation/rebalanceAutomationIx";
localVarPath = "/meteora/dlmm/automation/limitCloseAutomationIx";
localVarUrlObj = new URL(localVarPath, 'https://example.com');

@@ -196,8 +196,8 @@ if (configuration) {

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body_1) {
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body_1) {
var args_1 = [];

@@ -213,5 +213,5 @@ for (var _i = 1; _i < arguments.length; _i++) {

if (body === null || body === undefined) {
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost.');
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationRebalanceAutomationIxPost.');
}
localVarPath = "/meteora/dlmm/automation/withdrawAndCloseAutomationIx";
localVarPath = "/meteora/dlmm/automation/rebalanceAutomationIx";
localVarUrlObj = new URL(localVarPath, 'https://example.com');

@@ -279,7 +279,7 @@ if (configuration) {

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body, options) {
meteoraDlmmAutomationLimitCloseAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {

@@ -289,3 +289,3 @@ var localVarAxiosArgs;

switch (_a.label) {
case 0: return [4 /*yield*/, (0, exports.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options)];
case 0: return [4 /*yield*/, (0, exports.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options)];
case 1:

@@ -304,8 +304,8 @@ localVarAxiosArgs = _a.sent();

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body, options) {
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {

@@ -315,3 +315,3 @@ var localVarAxiosArgs;

switch (_a.label) {
case 0: return [4 /*yield*/, (0, exports.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options)];
case 0: return [4 /*yield*/, (0, exports.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options)];
case 1:

@@ -353,10 +353,10 @@ localVarAxiosArgs = _a.sent();

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body, options) {
meteoraDlmmAutomationLimitCloseAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
});

@@ -366,11 +366,11 @@ });

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost: function (body, options) {
meteoraDlmmAutomationRebalanceAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
});

@@ -410,3 +410,3 @@ });

* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {AutomationLimitCloseAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -416,7 +416,7 @@ * @throws {RequiredError}

*/
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationRebalanceAutomationIxPost = function (body, options) {
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationLimitCloseAutomationIxPost = function (body, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(this.configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(this.configuration).meteoraDlmmAutomationLimitCloseAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});

@@ -426,4 +426,4 @@ });

/**
* Performs a full withdrawal and closes position
* @param {AutomationWithdrawAndCloseAutomationIxBody} body
* Perform a rebalance operation for the user's DLMM automation setup.
* @param {AutomationRebalanceAutomationIxBody} body
* @param {*} [options] Override http request option.

@@ -433,7 +433,7 @@ * @throws {RequiredError}

*/
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost = function (body, options) {
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationRebalanceAutomationIxPost = function (body, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(this.configuration).meteoraDlmmAutomationWithdrawAndCloseAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(this.configuration).meteoraDlmmAutomationRebalanceAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});

@@ -440,0 +440,0 @@ });

@@ -6,4 +6,4 @@ export * from './account';

export * from './automation-compound-automation-ix-body';
export * from './automation-limit-close-automation-ix-body';
export * from './automation-rebalance-automation-ix-body';
export * from './automation-withdraw-and-close-automation-ix-body';
export * from './balance';

@@ -10,0 +10,0 @@ export * from './hawksight-pool';

@@ -22,4 +22,4 @@ "use strict";

__exportStar(require("./automation-compound-automation-ix-body"), exports);
__exportStar(require("./automation-limit-close-automation-ix-body"), exports);
__exportStar(require("./automation-rebalance-automation-ix-body"), exports);
__exportStar(require("./automation-withdraw-and-close-automation-ix-body"), exports);
__exportStar(require("./balance"), exports);

@@ -26,0 +26,0 @@ __exportStar(require("./hawksight-pool"), exports);

@@ -6,4 +6,4 @@ export * from './account';

export * from './automation-compound-automation-ix-body';
export * from './automation-limit-close-automation-ix-body';
export * from './automation-rebalance-automation-ix-body';
export * from './automation-withdraw-and-close-automation-ix-body';
export * from './balance';

@@ -10,0 +10,0 @@ export * from './hawksight-pool';

{
"name": "@hawksightco/swagger-client",
"version": "0.0.26",
"version": "0.0.27",
"description": "OpenAPI client for Hawksight v2 Public API",

@@ -22,2 +22,3 @@ "author": "Hawksight",

"dependencies": {
"@hawksightco/swagger-client": "^0.0.26",
"axios": "^1.6.8"

@@ -24,0 +25,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc