@shapeshiftoss/unchained-client 10.7.0 → 10.9.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.
Files changed (72) hide show
  1. package/dist/cosmossdk/parser/index.d.ts +1 -0
  2. package/dist/cosmossdk/parser/index.js +11 -1
  3. package/dist/evm/index.d.ts +1 -0
  4. package/dist/evm/index.js +2 -1
  5. package/dist/evm/optimism/index.d.ts +2 -0
  6. package/dist/evm/optimism/index.js +18 -0
  7. package/dist/evm/optimism/parser/index.d.ts +5 -0
  8. package/dist/evm/optimism/parser/index.js +12 -0
  9. package/dist/evm/parser/index.js +13 -8
  10. package/dist/generated/avalanche/models/GasFees.d.ts +2 -2
  11. package/dist/generated/avalanche/models/GasFees.js +3 -4
  12. package/dist/generated/cosmos/apis/V1Api.d.ts +6 -2
  13. package/dist/generated/cosmos/apis/V1Api.js +9 -3
  14. package/dist/generated/cosmos/models/Validators.d.ts +6 -0
  15. package/dist/generated/cosmos/models/Validators.js +3 -0
  16. package/dist/generated/cosmos/models/ValidatorsAllOf.d.ts +32 -0
  17. package/dist/generated/cosmos/models/ValidatorsAllOf.js +52 -0
  18. package/dist/generated/cosmos/models/index.d.ts +1 -0
  19. package/dist/generated/cosmos/models/index.js +1 -0
  20. package/dist/generated/ethereum/models/GasFees.d.ts +2 -2
  21. package/dist/generated/ethereum/models/GasFees.js +3 -4
  22. package/dist/generated/optimism/apis/V1Api.d.ts +94 -0
  23. package/dist/generated/optimism/apis/V1Api.js +239 -0
  24. package/dist/generated/optimism/apis/index.d.ts +1 -0
  25. package/dist/generated/optimism/apis/index.js +20 -0
  26. package/dist/generated/optimism/index.d.ts +3 -0
  27. package/dist/generated/optimism/index.js +22 -0
  28. package/dist/generated/optimism/models/Account.d.ts +56 -0
  29. package/dist/generated/optimism/models/Account.js +64 -0
  30. package/dist/generated/optimism/models/BadRequestError.d.ts +31 -0
  31. package/dist/generated/optimism/models/BadRequestError.js +51 -0
  32. package/dist/generated/optimism/models/BaseInfo.d.ts +31 -0
  33. package/dist/generated/optimism/models/BaseInfo.js +51 -0
  34. package/dist/generated/optimism/models/BaseTxHistoryTx.d.ts +44 -0
  35. package/dist/generated/optimism/models/BaseTxHistoryTx.js +58 -0
  36. package/dist/generated/optimism/models/GasFees.d.ts +43 -0
  37. package/dist/generated/optimism/models/GasFees.js +56 -0
  38. package/dist/generated/optimism/models/InternalServerError.d.ts +31 -0
  39. package/dist/generated/optimism/models/InternalServerError.js +51 -0
  40. package/dist/generated/optimism/models/InternalTx.d.ts +43 -0
  41. package/dist/generated/optimism/models/InternalTx.js +57 -0
  42. package/dist/generated/optimism/models/SendTxBody.d.ts +31 -0
  43. package/dist/generated/optimism/models/SendTxBody.js +51 -0
  44. package/dist/generated/optimism/models/TokenBalance.d.ts +61 -0
  45. package/dist/generated/optimism/models/TokenBalance.js +66 -0
  46. package/dist/generated/optimism/models/TokenTransfer.d.ts +73 -0
  47. package/dist/generated/optimism/models/TokenTransfer.js +72 -0
  48. package/dist/generated/optimism/models/Tx.d.ts +123 -0
  49. package/dist/generated/optimism/models/Tx.js +94 -0
  50. package/dist/generated/optimism/models/ValidationError.d.ts +46 -0
  51. package/dist/generated/optimism/models/ValidationError.js +60 -0
  52. package/dist/generated/optimism/models/index.d.ts +12 -0
  53. package/dist/generated/optimism/models/index.js +31 -0
  54. package/dist/generated/optimism/runtime.d.ts +170 -0
  55. package/dist/generated/optimism/runtime.js +310 -0
  56. package/dist/generated/osmosis/apis/V1Api.d.ts +6 -2
  57. package/dist/generated/osmosis/apis/V1Api.js +9 -3
  58. package/dist/generated/osmosis/models/Validators.d.ts +6 -0
  59. package/dist/generated/osmosis/models/Validators.js +3 -0
  60. package/dist/generated/osmosis/models/ValidatorsAllOf.d.ts +32 -0
  61. package/dist/generated/osmosis/models/ValidatorsAllOf.js +52 -0
  62. package/dist/generated/osmosis/models/index.d.ts +1 -0
  63. package/dist/generated/osmosis/models/index.js +1 -0
  64. package/dist/generated/thorchain/models/Validators.d.ts +6 -0
  65. package/dist/generated/thorchain/models/Validators.js +3 -0
  66. package/dist/generated/thorchain/models/ValidatorsAllOf.d.ts +32 -0
  67. package/dist/generated/thorchain/models/ValidatorsAllOf.js +52 -0
  68. package/dist/generated/thorchain/models/index.d.ts +1 -0
  69. package/dist/generated/thorchain/models/index.js +1 -0
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.js +2 -1
  72. package/package.json +2 -2
@@ -0,0 +1,310 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * @shapeshiftoss/optimism-api
7
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
8
+ *
9
+ * The version of the OpenAPI document: 8.0.0
10
+ *
11
+ *
12
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
+ * https://openapi-generator.tech
14
+ * Do not edit the class manually.
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
18
+ exports.BASE_PATH = "https://raw.githubusercontent.com".replace(/\/+$/, "");
19
+ class Configuration {
20
+ constructor(configuration = {}) {
21
+ this.configuration = configuration;
22
+ }
23
+ set config(configuration) {
24
+ this.configuration = configuration;
25
+ }
26
+ get basePath() {
27
+ return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
28
+ }
29
+ get fetchApi() {
30
+ return this.configuration.fetchApi;
31
+ }
32
+ get middleware() {
33
+ return this.configuration.middleware || [];
34
+ }
35
+ get queryParamsStringify() {
36
+ return this.configuration.queryParamsStringify || querystring;
37
+ }
38
+ get username() {
39
+ return this.configuration.username;
40
+ }
41
+ get password() {
42
+ return this.configuration.password;
43
+ }
44
+ get apiKey() {
45
+ const apiKey = this.configuration.apiKey;
46
+ if (apiKey) {
47
+ return typeof apiKey === 'function' ? apiKey : () => apiKey;
48
+ }
49
+ return undefined;
50
+ }
51
+ get accessToken() {
52
+ const accessToken = this.configuration.accessToken;
53
+ if (accessToken) {
54
+ return typeof accessToken === 'function' ? accessToken : async () => accessToken;
55
+ }
56
+ return undefined;
57
+ }
58
+ get headers() {
59
+ return this.configuration.headers;
60
+ }
61
+ get credentials() {
62
+ return this.configuration.credentials;
63
+ }
64
+ }
65
+ exports.Configuration = Configuration;
66
+ exports.DefaultConfig = new Configuration();
67
+ /**
68
+ * This is the base class for all generated API classes.
69
+ */
70
+ class BaseAPI {
71
+ constructor(configuration = exports.DefaultConfig) {
72
+ this.configuration = configuration;
73
+ this.fetchApi = async (url, init) => {
74
+ let fetchParams = { url, init };
75
+ for (const middleware of this.middleware) {
76
+ if (middleware.pre) {
77
+ fetchParams = await middleware.pre({
78
+ fetch: this.fetchApi,
79
+ ...fetchParams,
80
+ }) || fetchParams;
81
+ }
82
+ }
83
+ let response = undefined;
84
+ try {
85
+ response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
86
+ }
87
+ catch (e) {
88
+ for (const middleware of this.middleware) {
89
+ if (middleware.onError) {
90
+ response = await middleware.onError({
91
+ fetch: this.fetchApi,
92
+ url: fetchParams.url,
93
+ init: fetchParams.init,
94
+ error: e,
95
+ response: response ? response.clone() : undefined,
96
+ }) || response;
97
+ }
98
+ }
99
+ if (response === undefined) {
100
+ if (e instanceof Error) {
101
+ throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
102
+ }
103
+ else {
104
+ throw e;
105
+ }
106
+ }
107
+ }
108
+ for (const middleware of this.middleware) {
109
+ if (middleware.post) {
110
+ response = await middleware.post({
111
+ fetch: this.fetchApi,
112
+ url: fetchParams.url,
113
+ init: fetchParams.init,
114
+ response: response.clone(),
115
+ }) || response;
116
+ }
117
+ }
118
+ return response;
119
+ };
120
+ this.middleware = configuration.middleware;
121
+ }
122
+ withMiddleware(...middlewares) {
123
+ const next = this.clone();
124
+ next.middleware = next.middleware.concat(...middlewares);
125
+ return next;
126
+ }
127
+ withPreMiddleware(...preMiddlewares) {
128
+ const middlewares = preMiddlewares.map((pre) => ({ pre }));
129
+ return this.withMiddleware(...middlewares);
130
+ }
131
+ withPostMiddleware(...postMiddlewares) {
132
+ const middlewares = postMiddlewares.map((post) => ({ post }));
133
+ return this.withMiddleware(...middlewares);
134
+ }
135
+ async request(context, initOverrides) {
136
+ const { url, init } = await this.createFetchParams(context, initOverrides);
137
+ const response = await this.fetchApi(url, init);
138
+ if (response.status >= 200 && response.status < 300) {
139
+ return response;
140
+ }
141
+ throw new ResponseError(response, 'Response returned an error code');
142
+ }
143
+ async createFetchParams(context, initOverrides) {
144
+ let url = this.configuration.basePath + context.path;
145
+ if (context.query !== undefined && Object.keys(context.query).length !== 0) {
146
+ // only add the querystring to the URL if there are query parameters.
147
+ // this is done to avoid urls ending with a "?" character which buggy webservers
148
+ // do not handle correctly sometimes.
149
+ url += '?' + this.configuration.queryParamsStringify(context.query);
150
+ }
151
+ const headers = Object.assign({}, this.configuration.headers, context.headers);
152
+ Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
153
+ const initOverrideFn = typeof initOverrides === "function"
154
+ ? initOverrides
155
+ : async () => initOverrides;
156
+ const initParams = {
157
+ method: context.method,
158
+ headers,
159
+ body: context.body,
160
+ credentials: this.configuration.credentials,
161
+ };
162
+ const overridedInit = {
163
+ ...initParams,
164
+ ...(await initOverrideFn({
165
+ init: initParams,
166
+ context,
167
+ }))
168
+ };
169
+ const init = {
170
+ ...overridedInit,
171
+ body: isFormData(overridedInit.body) ||
172
+ overridedInit.body instanceof URLSearchParams ||
173
+ isBlob(overridedInit.body)
174
+ ? overridedInit.body
175
+ : JSON.stringify(overridedInit.body),
176
+ };
177
+ return { url, init };
178
+ }
179
+ /**
180
+ * Create a shallow clone of `this` by constructing a new instance
181
+ * and then shallow cloning data members.
182
+ */
183
+ clone() {
184
+ const constructor = this.constructor;
185
+ const next = new constructor(this.configuration);
186
+ next.middleware = this.middleware.slice();
187
+ return next;
188
+ }
189
+ }
190
+ exports.BaseAPI = BaseAPI;
191
+ ;
192
+ function isBlob(value) {
193
+ return typeof Blob !== 'undefined' && value instanceof Blob;
194
+ }
195
+ function isFormData(value) {
196
+ return typeof FormData !== "undefined" && value instanceof FormData;
197
+ }
198
+ class ResponseError extends Error {
199
+ constructor(response, msg) {
200
+ super(msg);
201
+ this.response = response;
202
+ this.name = "ResponseError";
203
+ }
204
+ }
205
+ exports.ResponseError = ResponseError;
206
+ class FetchError extends Error {
207
+ constructor(cause, msg) {
208
+ super(msg);
209
+ this.cause = cause;
210
+ this.name = "FetchError";
211
+ }
212
+ }
213
+ exports.FetchError = FetchError;
214
+ class RequiredError extends Error {
215
+ constructor(field, msg) {
216
+ super(msg);
217
+ this.field = field;
218
+ this.name = "RequiredError";
219
+ }
220
+ }
221
+ exports.RequiredError = RequiredError;
222
+ exports.COLLECTION_FORMATS = {
223
+ csv: ",",
224
+ ssv: " ",
225
+ tsv: "\t",
226
+ pipes: "|",
227
+ };
228
+ function exists(json, key) {
229
+ const value = json[key];
230
+ return value !== null && value !== undefined;
231
+ }
232
+ exports.exists = exists;
233
+ function querystring(params, prefix = '') {
234
+ return Object.keys(params)
235
+ .map(key => querystringSingleKey(key, params[key], prefix))
236
+ .filter(part => part.length > 0)
237
+ .join('&');
238
+ }
239
+ exports.querystring = querystring;
240
+ function querystringSingleKey(key, value, keyPrefix = '') {
241
+ const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
242
+ if (value instanceof Array) {
243
+ const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
244
+ .join(`&${encodeURIComponent(fullKey)}=`);
245
+ return `${encodeURIComponent(fullKey)}=${multiValue}`;
246
+ }
247
+ if (value instanceof Set) {
248
+ const valueAsArray = Array.from(value);
249
+ return querystringSingleKey(key, valueAsArray, keyPrefix);
250
+ }
251
+ if (value instanceof Date) {
252
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
253
+ }
254
+ if (value instanceof Object) {
255
+ return querystring(value, fullKey);
256
+ }
257
+ return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
258
+ }
259
+ function mapValues(data, fn) {
260
+ return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {});
261
+ }
262
+ exports.mapValues = mapValues;
263
+ function canConsumeForm(consumes) {
264
+ for (const consume of consumes) {
265
+ if ('multipart/form-data' === consume.contentType) {
266
+ return true;
267
+ }
268
+ }
269
+ return false;
270
+ }
271
+ exports.canConsumeForm = canConsumeForm;
272
+ class JSONApiResponse {
273
+ constructor(raw, transformer = (jsonValue) => jsonValue) {
274
+ this.raw = raw;
275
+ this.transformer = transformer;
276
+ }
277
+ async value() {
278
+ return this.transformer(await this.raw.json());
279
+ }
280
+ }
281
+ exports.JSONApiResponse = JSONApiResponse;
282
+ class VoidApiResponse {
283
+ constructor(raw) {
284
+ this.raw = raw;
285
+ }
286
+ async value() {
287
+ return undefined;
288
+ }
289
+ }
290
+ exports.VoidApiResponse = VoidApiResponse;
291
+ class BlobApiResponse {
292
+ constructor(raw) {
293
+ this.raw = raw;
294
+ }
295
+ async value() {
296
+ return await this.raw.blob();
297
+ }
298
+ ;
299
+ }
300
+ exports.BlobApiResponse = BlobApiResponse;
301
+ class TextApiResponse {
302
+ constructor(raw) {
303
+ this.raw = raw;
304
+ }
305
+ async value() {
306
+ return await this.raw.text();
307
+ }
308
+ ;
309
+ }
310
+ exports.TextApiResponse = TextApiResponse;
@@ -28,6 +28,10 @@ export interface GetTxHistoryRequest {
28
28
  export interface GetValidatorRequest {
29
29
  pubkey: string;
30
30
  }
31
+ export interface GetValidatorsRequest {
32
+ cursor?: string;
33
+ pageSize?: number;
34
+ }
31
35
  export interface SendTxRequest {
32
36
  body?: EstimateGasRequest;
33
37
  }
@@ -91,11 +95,11 @@ export declare class V1Api extends runtime.BaseAPI {
91
95
  /**
92
96
  * Get the list of current validators.
93
97
  */
94
- getValidatorsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Validators>>;
98
+ getValidatorsRaw(requestParameters: GetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Validators>>;
95
99
  /**
96
100
  * Get the list of current validators.
97
101
  */
98
- getValidators(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Validators>;
102
+ getValidators(requestParameters?: GetValidatorsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Validators>;
99
103
  /**
100
104
  * Sends raw transaction to be broadcast to the node.
101
105
  */
@@ -193,8 +193,14 @@ class V1Api extends runtime.BaseAPI {
193
193
  /**
194
194
  * Get the list of current validators.
195
195
  */
196
- async getValidatorsRaw(initOverrides) {
196
+ async getValidatorsRaw(requestParameters, initOverrides) {
197
197
  const queryParameters = {};
198
+ if (requestParameters.cursor !== undefined) {
199
+ queryParameters['cursor'] = requestParameters.cursor;
200
+ }
201
+ if (requestParameters.pageSize !== undefined) {
202
+ queryParameters['pageSize'] = requestParameters.pageSize;
203
+ }
198
204
  const headerParameters = {};
199
205
  const response = await this.request({
200
206
  path: `/api/v1/validators`,
@@ -207,8 +213,8 @@ class V1Api extends runtime.BaseAPI {
207
213
  /**
208
214
  * Get the list of current validators.
209
215
  */
210
- async getValidators(initOverrides) {
211
- const response = await this.getValidatorsRaw(initOverrides);
216
+ async getValidators(requestParameters = {}, initOverrides) {
217
+ const response = await this.getValidatorsRaw(requestParameters, initOverrides);
212
218
  return await response.value();
213
219
  }
214
220
  /**
@@ -16,6 +16,12 @@ import type { Validator } from './Validator';
16
16
  * @interface Validators
17
17
  */
18
18
  export interface Validators {
19
+ /**
20
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
21
+ * @type {string}
22
+ * @memberof Validators
23
+ */
24
+ cursor: string;
19
25
  /**
20
26
  *
21
27
  * @type {Array<Validator>}
@@ -21,6 +21,7 @@ const Validator_1 = require("./Validator");
21
21
  */
22
22
  function instanceOfValidators(value) {
23
23
  let isInstance = true;
24
+ isInstance = isInstance && "cursor" in value;
24
25
  isInstance = isInstance && "validators" in value;
25
26
  return isInstance;
26
27
  }
@@ -34,6 +35,7 @@ function ValidatorsFromJSONTyped(json, ignoreDiscriminator) {
34
35
  return json;
35
36
  }
36
37
  return {
38
+ 'cursor': json['cursor'],
37
39
  'validators': (json['validators'].map(Validator_1.ValidatorFromJSON)),
38
40
  };
39
41
  }
@@ -46,6 +48,7 @@ function ValidatorsToJSON(value) {
46
48
  return null;
47
49
  }
48
50
  return {
51
+ 'cursor': value.cursor,
49
52
  'validators': (value.validators.map(Validator_1.ValidatorToJSON)),
50
53
  };
51
54
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Osmosis Unchained API
3
+ * Provides access to osmosis chain data.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 type { Validator } from './Validator';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ValidatorsAllOf
17
+ */
18
+ export interface ValidatorsAllOf {
19
+ /**
20
+ *
21
+ * @type {Array<Validator>}
22
+ * @memberof ValidatorsAllOf
23
+ */
24
+ validators: Array<Validator>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ValidatorsAllOf interface.
28
+ */
29
+ export declare function instanceOfValidatorsAllOf(value: object): boolean;
30
+ export declare function ValidatorsAllOfFromJSON(json: any): ValidatorsAllOf;
31
+ export declare function ValidatorsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidatorsAllOf;
32
+ export declare function ValidatorsAllOfToJSON(value?: ValidatorsAllOf | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Osmosis Unchained API
7
+ * Provides access to osmosis chain data.
8
+ *
9
+ * The version of the OpenAPI document: 1.0.0
10
+ *
11
+ *
12
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
+ * https://openapi-generator.tech
14
+ * Do not edit the class manually.
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ValidatorsAllOfToJSON = exports.ValidatorsAllOfFromJSONTyped = exports.ValidatorsAllOfFromJSON = exports.instanceOfValidatorsAllOf = void 0;
18
+ const Validator_1 = require("./Validator");
19
+ /**
20
+ * Check if a given object implements the ValidatorsAllOf interface.
21
+ */
22
+ function instanceOfValidatorsAllOf(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "validators" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfValidatorsAllOf = instanceOfValidatorsAllOf;
28
+ function ValidatorsAllOfFromJSON(json) {
29
+ return ValidatorsAllOfFromJSONTyped(json, false);
30
+ }
31
+ exports.ValidatorsAllOfFromJSON = ValidatorsAllOfFromJSON;
32
+ function ValidatorsAllOfFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'validators': (json['validators'].map(Validator_1.ValidatorFromJSON)),
38
+ };
39
+ }
40
+ exports.ValidatorsAllOfFromJSONTyped = ValidatorsAllOfFromJSONTyped;
41
+ function ValidatorsAllOfToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'validators': (value.validators.map(Validator_1.ValidatorToJSON)),
50
+ };
51
+ }
52
+ exports.ValidatorsAllOfToJSON = ValidatorsAllOfToJSON;
@@ -33,4 +33,5 @@ export * from './Validator';
33
33
  export * from './ValidatorCommission';
34
34
  export * from './ValidatorUnbonding';
35
35
  export * from './Validators';
36
+ export * from './ValidatorsAllOf';
36
37
  export * from './Value';
@@ -52,4 +52,5 @@ __exportStar(require("./Validator"), exports);
52
52
  __exportStar(require("./ValidatorCommission"), exports);
53
53
  __exportStar(require("./ValidatorUnbonding"), exports);
54
54
  __exportStar(require("./Validators"), exports);
55
+ __exportStar(require("./ValidatorsAllOf"), exports);
55
56
  __exportStar(require("./Value"), exports);
@@ -16,6 +16,12 @@ import type { Validator } from './Validator';
16
16
  * @interface Validators
17
17
  */
18
18
  export interface Validators {
19
+ /**
20
+ * Base64 encoded string to fetch next page or undefined if no more data avaiable
21
+ * @type {string}
22
+ * @memberof Validators
23
+ */
24
+ cursor: string;
19
25
  /**
20
26
  *
21
27
  * @type {Array<Validator>}
@@ -21,6 +21,7 @@ const Validator_1 = require("./Validator");
21
21
  */
22
22
  function instanceOfValidators(value) {
23
23
  let isInstance = true;
24
+ isInstance = isInstance && "cursor" in value;
24
25
  isInstance = isInstance && "validators" in value;
25
26
  return isInstance;
26
27
  }
@@ -34,6 +35,7 @@ function ValidatorsFromJSONTyped(json, ignoreDiscriminator) {
34
35
  return json;
35
36
  }
36
37
  return {
38
+ 'cursor': json['cursor'],
37
39
  'validators': (json['validators'].map(Validator_1.ValidatorFromJSON)),
38
40
  };
39
41
  }
@@ -46,6 +48,7 @@ function ValidatorsToJSON(value) {
46
48
  return null;
47
49
  }
48
50
  return {
51
+ 'cursor': value.cursor,
49
52
  'validators': (value.validators.map(Validator_1.ValidatorToJSON)),
50
53
  };
51
54
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Thorchain Unchained API
3
+ * Provides access to thorchain chain data.
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
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 type { Validator } from './Validator';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ValidatorsAllOf
17
+ */
18
+ export interface ValidatorsAllOf {
19
+ /**
20
+ *
21
+ * @type {Array<Validator>}
22
+ * @memberof ValidatorsAllOf
23
+ */
24
+ validators: Array<Validator>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the ValidatorsAllOf interface.
28
+ */
29
+ export declare function instanceOfValidatorsAllOf(value: object): boolean;
30
+ export declare function ValidatorsAllOfFromJSON(json: any): ValidatorsAllOf;
31
+ export declare function ValidatorsAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidatorsAllOf;
32
+ export declare function ValidatorsAllOfToJSON(value?: ValidatorsAllOf | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ // @ts-nocheck
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Thorchain Unchained API
7
+ * Provides access to thorchain chain data.
8
+ *
9
+ * The version of the OpenAPI document: 1.0.0
10
+ *
11
+ *
12
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13
+ * https://openapi-generator.tech
14
+ * Do not edit the class manually.
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ValidatorsAllOfToJSON = exports.ValidatorsAllOfFromJSONTyped = exports.ValidatorsAllOfFromJSON = exports.instanceOfValidatorsAllOf = void 0;
18
+ const Validator_1 = require("./Validator");
19
+ /**
20
+ * Check if a given object implements the ValidatorsAllOf interface.
21
+ */
22
+ function instanceOfValidatorsAllOf(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "validators" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfValidatorsAllOf = instanceOfValidatorsAllOf;
28
+ function ValidatorsAllOfFromJSON(json) {
29
+ return ValidatorsAllOfFromJSONTyped(json, false);
30
+ }
31
+ exports.ValidatorsAllOfFromJSON = ValidatorsAllOfFromJSON;
32
+ function ValidatorsAllOfFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'validators': (json['validators'].map(Validator_1.ValidatorFromJSON)),
38
+ };
39
+ }
40
+ exports.ValidatorsAllOfFromJSONTyped = ValidatorsAllOfFromJSONTyped;
41
+ function ValidatorsAllOfToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'validators': (value.validators.map(Validator_1.ValidatorToJSON)),
50
+ };
51
+ }
52
+ exports.ValidatorsAllOfToJSON = ValidatorsAllOfToJSON;
@@ -32,4 +32,5 @@ export * from './Validator';
32
32
  export * from './ValidatorCommission';
33
33
  export * from './ValidatorUnbonding';
34
34
  export * from './Validators';
35
+ export * from './ValidatorsAllOf';
35
36
  export * from './Value';
@@ -51,4 +51,5 @@ __exportStar(require("./Validator"), exports);
51
51
  __exportStar(require("./ValidatorCommission"), exports);
52
52
  __exportStar(require("./ValidatorUnbonding"), exports);
53
53
  __exportStar(require("./Validators"), exports);
54
+ __exportStar(require("./ValidatorsAllOf"), exports);
54
55
  __exportStar(require("./Value"), exports);
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export * as utxo from './utxo';
5
5
  export * as cosmossdk from './cosmossdk';
6
6
  export * as ethereum from './evm/ethereum';
7
7
  export * as avalanche from './evm/avalanche';
8
+ export * as optimism from './evm/optimism';
8
9
  export * as bitcoin from './utxo/bitcoin';
9
10
  export * as bitcoincash from './utxo/bitcoincash';
10
11
  export * as dogecoin from './utxo/dogecoin';
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.thorchain = exports.osmosis = exports.cosmos = exports.litecoin = exports.dogecoin = exports.bitcoincash = exports.bitcoin = exports.avalanche = exports.ethereum = exports.cosmossdk = exports.utxo = exports.evm = exports.ws = void 0;
29
+ exports.thorchain = exports.osmosis = exports.cosmos = exports.litecoin = exports.dogecoin = exports.bitcoincash = exports.bitcoin = exports.optimism = exports.avalanche = exports.ethereum = exports.cosmossdk = exports.utxo = exports.evm = exports.ws = void 0;
30
30
  __exportStar(require("./types"), exports);
31
31
  exports.ws = __importStar(require("./websocket"));
32
32
  exports.evm = __importStar(require("./evm"));
@@ -34,6 +34,7 @@ exports.utxo = __importStar(require("./utxo"));
34
34
  exports.cosmossdk = __importStar(require("./cosmossdk"));
35
35
  exports.ethereum = __importStar(require("./evm/ethereum"));
36
36
  exports.avalanche = __importStar(require("./evm/avalanche"));
37
+ exports.optimism = __importStar(require("./evm/optimism"));
37
38
  exports.bitcoin = __importStar(require("./utxo/bitcoin"));
38
39
  exports.bitcoincash = __importStar(require("./utxo/bitcoincash"));
39
40
  exports.dogecoin = __importStar(require("./utxo/dogecoin"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/unchained-client",
3
- "version": "10.7.0",
3
+ "version": "10.9.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@openapitools/openapi-generator-cli": "^2.5.1",
32
32
  "@shapeshiftoss/caip": "^8.0.0",
33
- "@shapeshiftoss/common-api": "^8.0.0",
33
+ "@shapeshiftoss/common-api": "^8.1.0",
34
34
  "@shapeshiftoss/logger": "^1.1.2",
35
35
  "@shapeshiftoss/types": "^8.1.0",
36
36
  "@types/ws": "^8.2.1"