@shapeshiftoss/unchained-client 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bitcoin/websocket.d.ts.map +1 -1
- package/dist/bitcoin/websocket.js +5 -3
- package/dist/bitcoin/websocket.js.map +1 -1
- package/dist/cosmos/index.d.ts +2 -0
- package/dist/cosmos/index.d.ts.map +1 -0
- package/dist/cosmos/index.js +24 -0
- package/dist/cosmos/index.js.map +1 -0
- package/dist/ethereum/websocket.d.ts.map +1 -1
- package/dist/ethereum/websocket.js +5 -3
- package/dist/ethereum/websocket.js.map +1 -1
- package/dist/generated/bitcoin/api.d.ts +28 -22
- package/dist/generated/bitcoin/api.d.ts.map +1 -1
- package/dist/generated/bitcoin/api.js +1 -1
- package/dist/generated/bitcoin/api.js.map +1 -1
- package/dist/generated/bitcoin/base.d.ts +1 -1
- package/dist/generated/bitcoin/base.js +1 -1
- package/dist/generated/bitcoin/common.d.ts +1 -1
- package/dist/generated/bitcoin/common.js +1 -1
- package/dist/generated/bitcoin/configuration.d.ts +1 -1
- package/dist/generated/bitcoin/configuration.js +1 -1
- package/dist/generated/bitcoin/index.d.ts +1 -1
- package/dist/generated/bitcoin/index.js +1 -1
- package/dist/generated/cosmos/api.d.ts +1000 -0
- package/dist/generated/cosmos/api.d.ts.map +1 -0
- package/dist/generated/cosmos/api.js +423 -0
- package/dist/generated/cosmos/api.js.map +1 -0
- package/dist/generated/cosmos/base.d.ts +56 -0
- package/dist/generated/cosmos/base.d.ts.map +1 -0
- package/dist/generated/cosmos/base.js +65 -0
- package/dist/generated/cosmos/base.js.map +1 -0
- package/dist/generated/cosmos/common.d.ts +66 -0
- package/dist/generated/cosmos/common.d.ts.map +1 -0
- package/dist/generated/cosmos/common.js +153 -0
- package/dist/generated/cosmos/common.js.map +1 -0
- package/dist/generated/cosmos/configuration.d.ts +84 -0
- package/dist/generated/cosmos/configuration.d.ts.map +1 -0
- package/dist/generated/cosmos/configuration.js +43 -0
- package/dist/generated/cosmos/configuration.js.map +1 -0
- package/dist/generated/cosmos/index.d.ts +14 -0
- package/dist/generated/cosmos/index.d.ts.map +1 -0
- package/dist/generated/cosmos/index.js +28 -0
- package/dist/generated/cosmos/index.js.map +1 -0
- package/dist/generated/ethereum/api.d.ts +7 -1
- package/dist/generated/ethereum/api.d.ts.map +1 -1
- package/dist/generated/ethereum/api.js +1 -1
- package/dist/generated/ethereum/api.js.map +1 -1
- package/dist/generated/ethereum/base.d.ts +1 -1
- package/dist/generated/ethereum/base.js +1 -1
- package/dist/generated/ethereum/common.d.ts +1 -1
- package/dist/generated/ethereum/common.js +1 -1
- package/dist/generated/ethereum/configuration.d.ts +1 -1
- package/dist/generated/ethereum/configuration.js +1 -1
- package/dist/generated/ethereum/index.d.ts +1 -1
- package/dist/generated/ethereum/index.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +124 -37
- package/package.json +5 -5
- package/LICENSE +0 -21
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/generated/cosmos/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKjE,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,QAAQ,CAAC;AAE5F;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH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,CAAC;CAK/G,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAGxB;;;;;OAKG;wBACiB,GAAG,GAAG,aAAa,IAAI,CAAC;CAInD,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,OAAO;IACrC;;;;;;OAMG;IACI,SAAS,CAAC,OAAO,CAAC,EAAE,GAAG;CAGjC"}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cosmos Unchained API
|
|
6
|
+
* Provides access to cosmos chain data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 5.1.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.WebsocketApi = exports.WebsocketApiFactory = exports.WebsocketApiFp = exports.WebsocketApiAxiosParamCreator = exports.V1Api = exports.V1ApiFactory = exports.V1ApiFp = exports.V1ApiAxiosParamCreator = void 0;
|
|
29
|
+
const axios_1 = __importDefault(require("axios"));
|
|
30
|
+
// Some imports not used depending on template conditions
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
const common_1 = require("./common");
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
const base_1 = require("./base");
|
|
35
|
+
/**
|
|
36
|
+
* V1Api - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
const V1ApiAxiosParamCreator = function (configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @summary Get account details.
|
|
44
|
+
* @param {string} pubkey Account address or xpub
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
getAccount: (pubkey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
// verify required parameter 'pubkey' is not null or undefined
|
|
50
|
+
common_1.assertParamExists('getAccount', 'pubkey', pubkey);
|
|
51
|
+
const localVarPath = `/api/v1/account/{pubkey}`
|
|
52
|
+
.replace(`{${"pubkey"}}`, encodeURIComponent(String(pubkey)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
}
|
|
59
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
60
|
+
const localVarHeaderParameter = {};
|
|
61
|
+
const localVarQueryParameter = {};
|
|
62
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
return {
|
|
66
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @summary Get information about the running coinstack.
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
getInfo: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const localVarPath = `/api/v1/info`;
|
|
78
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
80
|
+
let baseOptions;
|
|
81
|
+
if (configuration) {
|
|
82
|
+
baseOptions = configuration.baseOptions;
|
|
83
|
+
}
|
|
84
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
85
|
+
const localVarHeaderParameter = {};
|
|
86
|
+
const localVarQueryParameter = {};
|
|
87
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
90
|
+
return {
|
|
91
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
92
|
+
options: localVarRequestOptions,
|
|
93
|
+
};
|
|
94
|
+
}),
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Get paginated transaction history.
|
|
98
|
+
* @param {string} pubkey Account address or xpub
|
|
99
|
+
* @param {number} [page] Page number (default 1)
|
|
100
|
+
* @param {number} [pageSize] Page size (default 25)
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
*/
|
|
104
|
+
getTxHistory: (pubkey, page, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
// verify required parameter 'pubkey' is not null or undefined
|
|
106
|
+
common_1.assertParamExists('getTxHistory', 'pubkey', pubkey);
|
|
107
|
+
const localVarPath = `/api/v1/account/{pubkey}/txs`
|
|
108
|
+
.replace(`{${"pubkey"}}`, encodeURIComponent(String(pubkey)));
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
if (page !== undefined) {
|
|
119
|
+
localVarQueryParameter['page'] = page;
|
|
120
|
+
}
|
|
121
|
+
if (pageSize !== undefined) {
|
|
122
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
123
|
+
}
|
|
124
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
127
|
+
return {
|
|
128
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
};
|
|
131
|
+
}),
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
135
|
+
* @param {InlineObject} [body]
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
sendTx: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const localVarPath = `/api/v1/send`;
|
|
141
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
142
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
143
|
+
let baseOptions;
|
|
144
|
+
if (configuration) {
|
|
145
|
+
baseOptions = configuration.baseOptions;
|
|
146
|
+
}
|
|
147
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
148
|
+
const localVarHeaderParameter = {};
|
|
149
|
+
const localVarQueryParameter = {};
|
|
150
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
151
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
154
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
155
|
+
return {
|
|
156
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
157
|
+
options: localVarRequestOptions,
|
|
158
|
+
};
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
exports.V1ApiAxiosParamCreator = V1ApiAxiosParamCreator;
|
|
163
|
+
/**
|
|
164
|
+
* V1Api - functional programming interface
|
|
165
|
+
* @export
|
|
166
|
+
*/
|
|
167
|
+
const V1ApiFp = function (configuration) {
|
|
168
|
+
const localVarAxiosParamCreator = exports.V1ApiAxiosParamCreator(configuration);
|
|
169
|
+
return {
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @summary Get account details.
|
|
173
|
+
* @param {string} pubkey Account address or xpub
|
|
174
|
+
* @param {*} [options] Override http request option.
|
|
175
|
+
* @throws {RequiredError}
|
|
176
|
+
*/
|
|
177
|
+
getAccount(pubkey, options) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAccount(pubkey, options);
|
|
180
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
181
|
+
});
|
|
182
|
+
},
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @summary Get information about the running coinstack.
|
|
186
|
+
* @param {*} [options] Override http request option.
|
|
187
|
+
* @throws {RequiredError}
|
|
188
|
+
*/
|
|
189
|
+
getInfo(options) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInfo(options);
|
|
192
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
193
|
+
});
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @summary Get paginated transaction history.
|
|
198
|
+
* @param {string} pubkey Account address or xpub
|
|
199
|
+
* @param {number} [page] Page number (default 1)
|
|
200
|
+
* @param {number} [pageSize] Page size (default 25)
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
getTxHistory(pubkey, page, pageSize, options) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTxHistory(pubkey, page, pageSize, options);
|
|
207
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
213
|
+
* @param {InlineObject} [body]
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
sendTx(body, options) {
|
|
218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
219
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendTx(body, options);
|
|
220
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
221
|
+
});
|
|
222
|
+
},
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
exports.V1ApiFp = V1ApiFp;
|
|
226
|
+
/**
|
|
227
|
+
* V1Api - factory interface
|
|
228
|
+
* @export
|
|
229
|
+
*/
|
|
230
|
+
const V1ApiFactory = function (configuration, basePath, axios) {
|
|
231
|
+
const localVarFp = exports.V1ApiFp(configuration);
|
|
232
|
+
return {
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
* @summary Get account details.
|
|
236
|
+
* @param {string} pubkey Account address or xpub
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
getAccount(pubkey, options) {
|
|
241
|
+
return localVarFp.getAccount(pubkey, options).then((request) => request(axios, basePath));
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @summary Get information about the running coinstack.
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
*/
|
|
249
|
+
getInfo(options) {
|
|
250
|
+
return localVarFp.getInfo(options).then((request) => request(axios, basePath));
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @summary Get paginated transaction history.
|
|
255
|
+
* @param {string} pubkey Account address or xpub
|
|
256
|
+
* @param {number} [page] Page number (default 1)
|
|
257
|
+
* @param {number} [pageSize] Page size (default 25)
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
getTxHistory(pubkey, page, pageSize, options) {
|
|
262
|
+
return localVarFp.getTxHistory(pubkey, page, pageSize, options).then((request) => request(axios, basePath));
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
267
|
+
* @param {InlineObject} [body]
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
sendTx(body, options) {
|
|
272
|
+
return localVarFp.sendTx(body, options).then((request) => request(axios, basePath));
|
|
273
|
+
},
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
exports.V1ApiFactory = V1ApiFactory;
|
|
277
|
+
/**
|
|
278
|
+
* V1Api - object-oriented interface
|
|
279
|
+
* @export
|
|
280
|
+
* @class V1Api
|
|
281
|
+
* @extends {BaseAPI}
|
|
282
|
+
*/
|
|
283
|
+
class V1Api extends base_1.BaseAPI {
|
|
284
|
+
/**
|
|
285
|
+
*
|
|
286
|
+
* @summary Get account details.
|
|
287
|
+
* @param {V1ApiGetAccountRequest} requestParameters Request parameters.
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
* @memberof V1Api
|
|
291
|
+
*/
|
|
292
|
+
getAccount(requestParameters, options) {
|
|
293
|
+
return exports.V1ApiFp(this.configuration).getAccount(requestParameters.pubkey, options).then((request) => request(this.axios, this.basePath));
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @summary Get information about the running coinstack.
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
* @memberof V1Api
|
|
301
|
+
*/
|
|
302
|
+
getInfo(options) {
|
|
303
|
+
return exports.V1ApiFp(this.configuration).getInfo(options).then((request) => request(this.axios, this.basePath));
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @summary Get paginated transaction history.
|
|
308
|
+
* @param {V1ApiGetTxHistoryRequest} requestParameters Request parameters.
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
* @memberof V1Api
|
|
312
|
+
*/
|
|
313
|
+
getTxHistory(requestParameters, options) {
|
|
314
|
+
return exports.V1ApiFp(this.configuration).getTxHistory(requestParameters.pubkey, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Sends raw transaction to be broadcast to the node.
|
|
319
|
+
* @param {V1ApiSendTxRequest} requestParameters Request parameters.
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
* @memberof V1Api
|
|
323
|
+
*/
|
|
324
|
+
sendTx(requestParameters = {}, options) {
|
|
325
|
+
return exports.V1ApiFp(this.configuration).sendTx(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
exports.V1Api = V1Api;
|
|
329
|
+
/**
|
|
330
|
+
* WebsocketApi - axios parameter creator
|
|
331
|
+
* @export
|
|
332
|
+
*/
|
|
333
|
+
const WebsocketApiAxiosParamCreator = function (configuration) {
|
|
334
|
+
return {
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
websocket: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
const localVarPath = `/`;
|
|
343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
344
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
345
|
+
let baseOptions;
|
|
346
|
+
if (configuration) {
|
|
347
|
+
baseOptions = configuration.baseOptions;
|
|
348
|
+
}
|
|
349
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
350
|
+
const localVarHeaderParameter = {};
|
|
351
|
+
const localVarQueryParameter = {};
|
|
352
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
|
|
353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
355
|
+
return {
|
|
356
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
357
|
+
options: localVarRequestOptions,
|
|
358
|
+
};
|
|
359
|
+
}),
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
exports.WebsocketApiAxiosParamCreator = WebsocketApiAxiosParamCreator;
|
|
363
|
+
/**
|
|
364
|
+
* WebsocketApi - functional programming interface
|
|
365
|
+
* @export
|
|
366
|
+
*/
|
|
367
|
+
const WebsocketApiFp = function (configuration) {
|
|
368
|
+
const localVarAxiosParamCreator = exports.WebsocketApiAxiosParamCreator(configuration);
|
|
369
|
+
return {
|
|
370
|
+
/**
|
|
371
|
+
*
|
|
372
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
websocket(options) {
|
|
377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.websocket(options);
|
|
379
|
+
return common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
380
|
+
});
|
|
381
|
+
},
|
|
382
|
+
};
|
|
383
|
+
};
|
|
384
|
+
exports.WebsocketApiFp = WebsocketApiFp;
|
|
385
|
+
/**
|
|
386
|
+
* WebsocketApi - factory interface
|
|
387
|
+
* @export
|
|
388
|
+
*/
|
|
389
|
+
const WebsocketApiFactory = function (configuration, basePath, axios) {
|
|
390
|
+
const localVarFp = exports.WebsocketApiFp(configuration);
|
|
391
|
+
return {
|
|
392
|
+
/**
|
|
393
|
+
*
|
|
394
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
395
|
+
* @param {*} [options] Override http request option.
|
|
396
|
+
* @throws {RequiredError}
|
|
397
|
+
*/
|
|
398
|
+
websocket(options) {
|
|
399
|
+
return localVarFp.websocket(options).then((request) => request(axios, basePath));
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
exports.WebsocketApiFactory = WebsocketApiFactory;
|
|
404
|
+
/**
|
|
405
|
+
* WebsocketApi - object-oriented interface
|
|
406
|
+
* @export
|
|
407
|
+
* @class WebsocketApi
|
|
408
|
+
* @extends {BaseAPI}
|
|
409
|
+
*/
|
|
410
|
+
class WebsocketApi extends base_1.BaseAPI {
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Subscribe to pending and confirmed transactions.
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
* @memberof WebsocketApi
|
|
417
|
+
*/
|
|
418
|
+
websocket(options) {
|
|
419
|
+
return exports.WebsocketApiFp(this.configuration).websocket(options).then((request) => request(this.axios, this.basePath));
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
exports.WebsocketApi = WebsocketApi;
|
|
423
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/generated/cosmos/api.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;AAIH,kDAAiE;AACjE,yDAAyD;AACzD,aAAa;AACb,qCAA4N;AAC5N,aAAa;AACb,iCAA4F;AAgtB5F;;;GAGG;AACI,MAAM,sBAAsB,GAAG,UAAU,aAA6B;IACzE,OAAO;QACH;;;;;;WAMG;QACH,UAAU,EAAE,CAAO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vH,CAAC;CACJ;AAXD,oCAWC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cosmos Unchained API
|
|
3
|
+
* Provides access to cosmos chain data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { AxiosInstance } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: any;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
name: "RequiredError";
|
|
54
|
+
constructor(field: string, msg?: string);
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/generated/cosmos/base.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAoB,EAAgB,aAAa,EAAE,MAAM,OAAO,CAAC;AAEjE,eAAO,MAAM,SAAS,QAAyC,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,GAAG,CAAC;CAChB;AAED;;;;GAIG;AACH,qBAAa,OAAO;IAG2B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAAc,SAAS,CAAC,KAAK,EAAE,aAAa;IAFjH,SAAS,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;gBAEvC,aAAa,CAAC,EAAE,aAAa,EAAY,QAAQ,GAAE,MAAkB,EAAY,KAAK,GAAE,aAA2B;CAMlI;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IAEjB,KAAK,EAAE,MAAM;IADhC,IAAI,EAAE,eAAe,CAAmB;gBACrB,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM;CAGjD"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Cosmos Unchained API
|
|
6
|
+
* Provides access to cosmos chain data
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 5.1.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
|
|
20
|
+
// Some imports not used depending on template conditions
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
const axios_1 = __importDefault(require("axios"));
|
|
23
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.COLLECTION_FORMATS = {
|
|
29
|
+
csv: ",",
|
|
30
|
+
ssv: " ",
|
|
31
|
+
tsv: "\t",
|
|
32
|
+
pipes: "|",
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
class BaseAPI {
|
|
40
|
+
constructor(configuration, basePath = exports.BASE_PATH, axios = axios_1.default) {
|
|
41
|
+
this.basePath = basePath;
|
|
42
|
+
this.axios = axios;
|
|
43
|
+
if (configuration) {
|
|
44
|
+
this.configuration = configuration;
|
|
45
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.BaseAPI = BaseAPI;
|
|
50
|
+
;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @class RequiredError
|
|
55
|
+
* @extends {Error}
|
|
56
|
+
*/
|
|
57
|
+
class RequiredError extends Error {
|
|
58
|
+
constructor(field, msg) {
|
|
59
|
+
super(msg);
|
|
60
|
+
this.field = field;
|
|
61
|
+
this.name = "RequiredError";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.RequiredError = RequiredError;
|
|
65
|
+
//# sourceMappingURL=base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/generated/cosmos/base.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;AAIH,yDAAyD;AACzD,aAAa;AACb,kDAAiE;AAEpD,QAAA,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAEhE;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,IAAI;IACT,KAAK,EAAE,GAAG;CACb,CAAC;AAYF;;;;GAIG;AACH,MAAa,OAAO;IAGhB,YAAY,aAA6B,EAAY,WAAmB,iBAAS,EAAY,QAAuB,eAAW;QAA1E,aAAQ,GAAR,QAAQ,CAAoB;QAAY,UAAK,GAAL,KAAK,CAA6B;QAC3H,IAAI,aAAa,EAAE;YACf,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC;SAC3D;IACL,CAAC;CACJ;AATD,0BASC;AAAA,CAAC;AAEF;;;;;GAKG;AACH,MAAa,aAAc,SAAQ,KAAK;IAEpC,YAAmB,KAAa,EAAE,GAAY;QAC1C,KAAK,CAAC,GAAG,CAAC,CAAC;QADI,UAAK,GAAL,KAAK,CAAQ;QADhC,SAAI,GAAoB,eAAe,CAAC;IAGxC,CAAC;CACJ;AALD,sCAKC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cosmos Unchained API
|
|
3
|
+
* Provides access to cosmos chain data
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 5.1.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Configuration } from "./configuration";
|
|
13
|
+
import { RequestArgs } from "./base";
|
|
14
|
+
import { AxiosInstance } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => (axios?: AxiosInstance, basePath?: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
66
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/generated/cosmos/common.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAiB,WAAW,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,cAAc,wBAAwB,CAAA;AAEnD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,iBAA2B,MAAM,aAAa,MAAM,cAAc,OAAO,SAItG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB,WAA2B,GAAG,gBAAgB,MAAM,6DAOjF,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,WAAqB,GAAG,oDAIxD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,WAA2B,GAAG,6DAO/D,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,WAA2B,GAAG,QAAQ,MAAM,UAAU,MAAM,EAAE,6DAO1F,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAkB,GAAG,cAAc,GAAG,EAAE,SAenE,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAAoB,GAAG,kBAAkB,GAAG,mDAQ7E,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,QAAkB,GAAG,WAE7C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,cAAwB,WAAW,eAAe,aAAa,aAAa,MAAM,yDACjG,aAAa,aAA0B,MAAM,gDAI/D,CAAA"}
|