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.27 to 0.0.28

dist/models/automation-withdraw-and-close-automation-ix-body.d.ts

75

apis/meteora-dlmminstructions-api.ts

@@ -26,2 +26,3 @@ /* tslint:disable */

import { TxDepositBody } from '../models';
import { TxInitializeBinArraysBody } from '../models';
import { TxWithdrawBody } from '../models';

@@ -204,2 +205,44 @@ /**

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost: async (body: TxInitializeBinArraysBody, 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 meteoraDlmmTxInitializeBinArraysPost.');
}
const localVarPath = `/meteora/dlmm/tx/initializeBinArrays`;
// 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,
};
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -308,2 +351,15 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>> {
const localVarAxiosArgs = await MeteoraDLMMInstructionsApiAxiosParamCreator(configuration).meteoraDlmmTxInitializeBinArraysPost(body, options);
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
return axios.request(axiosRequestArgs);
};
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -367,2 +423,11 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMInstructionsApiFp(configuration).meteoraDlmmTxInitializeBinArraysPost(body, options).then((request) => request(axios, basePath));
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -427,2 +492,12 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMInstructionsApi
*/
public async meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig) : Promise<AxiosResponse<TransactionMetadata>> {
return MeteoraDLMMInstructionsApiFp(this.configuration).meteoraDlmmTxInitializeBinArraysPost(body, options).then((request) => request(this.axios, this.basePath));
}
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -429,0 +504,0 @@ * @param {*} [options] Override http request option.

@@ -20,2 +20,3 @@ /**

import { TxDepositBody } from '../models';
import { TxInitializeBinArraysBody } from '../models';
import { TxWithdrawBody } from '../models';

@@ -57,2 +58,9 @@ /**

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost: (body: TxInitializeBinArraysBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -99,2 +107,9 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TransactionMetadata>>>;
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -141,2 +156,9 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -189,2 +211,10 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMInstructionsApi
*/
meteoraDlmmTxInitializeBinArraysPost(body: TxInitializeBinArraysBody, options?: AxiosRequestConfig): Promise<AxiosResponse<TransactionMetadata>>;
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -191,0 +221,0 @@ * @param {*} [options] Override http request option.

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

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost: 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 meteoraDlmmTxInitializeBinArraysPost.');
}
localVarPath = "/meteora/dlmm/tx/initializeBinArrays";
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,
}];
});
});
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -442,2 +489,26 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost: 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.MeteoraDLMMInstructionsApiAxiosParamCreator)(configuration).meteoraDlmmTxInitializeBinArraysPost(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);
}];
}
});
});
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -528,2 +599,15 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
meteoraDlmmTxInitializeBinArraysPost: function (body, options) {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMInstructionsApiFp)(configuration).meteoraDlmmTxInitializeBinArraysPost(body, options).then(function (request) { return request(axios, basePath); })];
});
});
},
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -616,2 +700,17 @@ * @param {*} [options] Override http request option.

* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxInitializeBinArraysBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof MeteoraDLMMInstructionsApi
*/
MeteoraDLMMInstructionsApi.prototype.meteoraDlmmTxInitializeBinArraysPost = function (body, options) {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
return [2 /*return*/, (0, exports.MeteoraDLMMInstructionsApiFp)(this.configuration).meteoraDlmmTxInitializeBinArraysPost(body, options).then(function (request) { return request(_this.axios, _this.basePath); })];
});
});
};
/**
* Return Solana instructions that create a position and deposit to Meteora via Hawksight.
* @param {TxWithdrawBody} body

@@ -618,0 +717,0 @@ * @param {*} [options] Override http request option.

1

dist/models/index.d.ts

@@ -56,2 +56,3 @@ export * from './account';

export * from './tx-deposit-body1';
export * from './tx-initialize-bin-arrays-body';
export * from './tx-open-position-body';

@@ -58,0 +59,0 @@ export * from './tx-withdraw-body';

@@ -72,2 +72,3 @@ "use strict";

__exportStar(require("./tx-deposit-body1"), exports);
__exportStar(require("./tx-initialize-bin-arrays-body"), exports);
__exportStar(require("./tx-open-position-body"), exports);

@@ -74,0 +75,0 @@ __exportStar(require("./tx-withdraw-body"), exports);

@@ -56,2 +56,3 @@ export * from './account';

export * from './tx-deposit-body1';
export * from './tx-initialize-bin-arrays-body';
export * from './tx-open-position-body';

@@ -58,0 +59,0 @@ export * from './tx-withdraw-body';

2

package.json
{
"name": "@hawksightco/swagger-client",
"version": "0.0.27",
"version": "0.0.28",
"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