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.5 to 0.0.6

225

apis/meteora-dlmmautomation-instructions-api.ts

@@ -20,6 +20,3 @@ /* tslint:disable */

import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
import { AutomationClaimFeeAndRewardsAutomationIxBody } from '../models';
import { AutomationCompoundAutomationIxBody } from '../models';
import { AutomationCreatePositionAndDepositAutomationIxBody } from '../models';
import { AutomationFullWithdrawAndClosePositionAutomationIxBody } from '../models';
import { InlineResponse400 } from '../models';

@@ -34,44 +31,2 @@ import { TransactionMetadata } from '../models';

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost: async (body: AutomationClaimFeeAndRewardsAutomationIxBody, 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 meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost.');
}
const localVarPath = `/meteora/dlmm/automation/claimFeeAndRewardsAutomationIx`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
localVarHeaderParameter['Content-Type'] = 'application/json';
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};
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -118,86 +73,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost: async (body: AutomationCreatePositionAndDepositAutomationIxBody, 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 meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost.');
}
const localVarPath = `/meteora/dlmm/automation/createPositionAndDepositAutomationIx`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
localVarHeaderParameter['Content-Type'] = 'application/json';
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};
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost: async (body: AutomationFullWithdrawAndClosePositionAutomationIxBody, 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 meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost.');
}
const localVarPath = `/meteora/dlmm/automation/fullWithdrawAndClosePositionAutomationIx`;
// 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: 'POST', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
localVarHeaderParameter['Content-Type'] = 'application/json';
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};
const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
},
}

@@ -213,15 +84,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -239,28 +97,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMAutomationInstructionsApiAxiosParamCreator(configuration).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
}

@@ -276,11 +108,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, options).then((request) => request(axios, basePath));
},
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -294,20 +117,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, options).then((request) => request(axios, basePath));
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(configuration).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, options).then((request) => request(axios, basePath));
},
};

@@ -324,12 +129,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
public async meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -344,22 +139,2 @@ * @param {AutomationCompoundAutomationIxBody} body

}
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
public async meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
public async meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMAutomationInstructionsApiFp(this.configuration).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, options).then((request) => request(this.axios, this.basePath));
}
}

@@ -15,6 +15,3 @@ /**

import { RequestArgs, BaseAPI } from '../base';
import { AutomationClaimFeeAndRewardsAutomationIxBody } from '../models';
import { AutomationCompoundAutomationIxBody } from '../models';
import { AutomationCreatePositionAndDepositAutomationIxBody } from '../models';
import { AutomationFullWithdrawAndClosePositionAutomationIxBody } from '../models';
import { TransactionMetadata } from '../models';

@@ -27,9 +24,2 @@ /**

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost: (body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -41,16 +31,2 @@ * @param {AutomationCompoundAutomationIxBody} body

meteoraDlmmAutomationCompoundAutomationIxPost: (body: AutomationCompoundAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost: (body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost: (body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -63,9 +39,2 @@ /**

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -77,16 +46,2 @@ * @param {AutomationCompoundAutomationIxBody} body

meteoraDlmmAutomationCompoundAutomationIxPost(body: AutomationCompoundAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
};

@@ -99,9 +54,2 @@ /**

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -113,16 +61,2 @@ * @param {AutomationCompoundAutomationIxBody} body

meteoraDlmmAutomationCompoundAutomationIxPost(body: AutomationCompoundAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
};

@@ -137,10 +71,2 @@ /**

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body: AutomationClaimFeeAndRewardsAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -153,18 +79,2 @@ * @param {AutomationCompoundAutomationIxBody} body

meteoraDlmmAutomationCompoundAutomationIxPost(body: AutomationCompoundAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body: AutomationCreatePositionAndDepositAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body: AutomationFullWithdrawAndClosePositionAutomationIxBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
}

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

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost: function (body_1) {
var args_1 = [];
for (var _i = 1; _i < arguments.length; _i++) {
args_1[_i - 1] = arguments[_i];
}
return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost.');
}
localVarPath = "/meteora/dlmm/automation/claimFeeAndRewardsAutomationIx";
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
localVarHeaderParameter['Content-Type'] = 'application/json';
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);
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -194,96 +147,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost: function (body_1) {
var args_1 = [];
for (var _i = 1; _i < arguments.length; _i++) {
args_1[_i - 1] = arguments[_i];
}
return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost.');
}
localVarPath = "/meteora/dlmm/automation/createPositionAndDepositAutomationIx";
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
localVarHeaderParameter['Content-Type'] = 'application/json';
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);
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost: function (body_1) {
var args_1 = [];
for (var _i = 1; _i < arguments.length; _i++) {
args_1[_i - 1] = arguments[_i];
}
return __awaiter(_this, __spreadArray([body_1], args_1, true), void 0, function (body, options) {
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, query, key, key, headersFromBaseOptions, needsSerialization;
if (options === void 0) { options = {}; }
return __generator(this, function (_a) {
// verify required parameter 'body' is not null or undefined
if (body === null || body === undefined) {
throw new base_1.RequiredError('body', 'Required parameter body was null or undefined when calling meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost.');
}
localVarPath = "/meteora/dlmm/automation/fullWithdrawAndClosePositionAutomationIx";
localVarUrlObj = new URL(localVarPath, 'https://example.com');
if (configuration) {
baseOptions = configuration.baseOptions;
}
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
localVarHeaderParameter = {};
localVarQueryParameter = {};
localVarHeaderParameter['Content-Type'] = 'application/json';
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);
needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
return [2 /*return*/, {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
}];
});
});
},
};

@@ -299,26 +158,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost: function (body, 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.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, 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 compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -347,50 +182,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost: function (body, 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.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, 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);
}];
}
});
});
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost: function (body, 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.MeteoraDLMMAutomationInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, 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);
}];
}
});
});
},
};

@@ -406,15 +193,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -432,28 +206,2 @@ * @param {AutomationCompoundAutomationIxBody} body

},
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMAutomationInstructionsApiFp)(configuration).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, options).then(function (request) { return request(axios, basePath); })];
});
});
},
};

@@ -474,17 +222,2 @@ };

/**
* Generate claimFee and claimReward instruction, to be signed by Hawksight authority.
* @param {AutomationClaimFeeAndRewardsAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost = 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).meteoraDlmmAutomationClaimFeeAndRewardsAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
* Generates a compound transaction instruction for Meteora DLMM, to be signed by Hawksight authority. This allows users to modify their positions based on specified parameters.

@@ -504,34 +237,4 @@ * @param {AutomationCompoundAutomationIxBody} body

};
/**
* Generate deposit Meteora instruction (with init position), to be signed by Hawksight authority.
* @param {AutomationCreatePositionAndDepositAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost = 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).meteoraDlmmAutomationCreatePositionAndDepositAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
* Generate full Meteora withdraw instruction, to be signed by Hawksight authority.
* @param {AutomationFullWithdrawAndClosePositionAutomationIxBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMAutomationInstructionsApi
*/
MeteoraDLMMAutomationInstructionsApi.prototype.meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost = 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).meteoraDlmmAutomationFullWithdrawAndClosePositionAutomationIxPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
return MeteoraDLMMAutomationInstructionsApi;
}(base_1.BaseAPI));
exports.MeteoraDLMMAutomationInstructionsApi = MeteoraDLMMAutomationInstructionsApi;

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

newPosition?: string;
/**
* The distribution strategy for the transaction (SPOT, CURVE, BID-ASK).
*
* @type {string}
* @memberof AutomationCompoundAutomationIxBody
*/
distribution?: string;
}

3

dist/models/index.d.ts
export * from './account';
export * from './automation-claim-fee-and-rewards-automation-ix-body';
export * from './automation-compound-automation-ix-body';
export * from './automation-create-position-and-deposit-automation-ix-body';
export * from './automation-full-withdraw-and-close-position-automation-ix-body';
export * from './inline-response200';

@@ -7,0 +4,0 @@ export * from './inline-response2001';

@@ -18,6 +18,3 @@ "use strict";

__exportStar(require("./account"), exports);
__exportStar(require("./automation-claim-fee-and-rewards-automation-ix-body"), exports);
__exportStar(require("./automation-compound-automation-ix-body"), exports);
__exportStar(require("./automation-create-position-and-deposit-automation-ix-body"), exports);
__exportStar(require("./automation-full-withdraw-and-close-position-automation-ix-body"), exports);
__exportStar(require("./inline-response200"), exports);

@@ -24,0 +21,0 @@ __exportStar(require("./inline-response2001"), exports);

@@ -70,10 +70,2 @@ /* tslint:disable */

newPosition?: string;
/**
* The distribution strategy for the transaction (SPOT, CURVE, BID-ASK).
*
* @type {string}
* @memberof AutomationCompoundAutomationIxBody
*/
distribution?: string;
}
export * from './account';
export * from './automation-claim-fee-and-rewards-automation-ix-body';
export * from './automation-compound-automation-ix-body';
export * from './automation-create-position-and-deposit-automation-ix-body';
export * from './automation-full-withdraw-and-close-position-automation-ix-body';
export * from './inline-response200';

@@ -7,0 +4,0 @@ export * from './inline-response2001';

2

package.json
{
"name": "@hawksightco/swagger-client",
"version": "0.0.5",
"version": "0.0.6",
"description": "OpenAPI client for Hawksight v2 Public API",

@@ -5,0 +5,0 @@ "author": "Hawksight",

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