@shapeshiftoss/unchained-client 9.9.0 → 10.0.2

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 (32) hide show
  1. package/dist/evm/ethereum/parser/abi/foxyStaking.d.ts +1 -1
  2. package/dist/evm/ethereum/parser/abi/shapeShiftRouter.d.ts +1 -1
  3. package/dist/evm/ethereum/parser/abi/thor.d.ts +1 -1
  4. package/dist/evm/ethereum/parser/abi/uniV2.d.ts +1 -1
  5. package/dist/evm/ethereum/parser/abi/uniV2StakingRewards.d.ts +1 -1
  6. package/dist/evm/ethereum/parser/abi/weth.d.ts +1 -1
  7. package/dist/evm/ethereum/parser/abi/yearnVault.d.ts +1 -1
  8. package/dist/evm/parser/abi/erc20.d.ts +1 -1
  9. package/dist/evm/parser/index.d.ts +1 -1
  10. package/dist/generated/cosmos/api.d.ts +183 -66
  11. package/dist/generated/cosmos/api.js +82 -13
  12. package/dist/generated/cosmos/base.d.ts +1 -1
  13. package/dist/generated/cosmos/base.js +1 -1
  14. package/dist/generated/cosmos/common.d.ts +1 -1
  15. package/dist/generated/cosmos/common.js +1 -1
  16. package/dist/generated/cosmos/configuration.d.ts +1 -1
  17. package/dist/generated/cosmos/configuration.js +1 -1
  18. package/dist/generated/cosmos/index.d.ts +1 -1
  19. package/dist/generated/cosmos/index.js +1 -1
  20. package/dist/generated/osmosis/api.d.ts +183 -66
  21. package/dist/generated/osmosis/api.js +82 -13
  22. package/dist/generated/osmosis/base.d.ts +1 -1
  23. package/dist/generated/osmosis/base.js +1 -1
  24. package/dist/generated/osmosis/common.d.ts +1 -1
  25. package/dist/generated/osmosis/common.js +1 -1
  26. package/dist/generated/osmosis/configuration.d.ts +1 -1
  27. package/dist/generated/osmosis/configuration.js +1 -1
  28. package/dist/generated/osmosis/index.d.ts +1 -1
  29. package/dist/generated/osmosis/index.js +1 -1
  30. package/dist/types.d.ts +3 -3
  31. package/dist/utils.d.ts +1 -1
  32. package/package.json +3 -3
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const foxyStaking: Array<JsonFragment>;
2
+ declare const foxyStaking: JsonFragment[];
3
3
  export default foxyStaking;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const shapeShiftRouter: Array<JsonFragment>;
2
+ declare const shapeShiftRouter: JsonFragment[];
3
3
  export default shapeShiftRouter;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const thor: Array<JsonFragment>;
2
+ declare const thor: JsonFragment[];
3
3
  export default thor;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const uniV2: Array<JsonFragment>;
2
+ declare const uniV2: JsonFragment[];
3
3
  export default uniV2;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const uniV2StakingRewards: Array<JsonFragment>;
2
+ declare const uniV2StakingRewards: JsonFragment[];
3
3
  export default uniV2StakingRewards;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const weth: Array<JsonFragment>;
2
+ declare const weth: JsonFragment[];
3
3
  export default weth;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const yearnVault: Array<JsonFragment>;
2
+ declare const yearnVault: JsonFragment[];
3
3
  export default yearnVault;
@@ -1,3 +1,3 @@
1
1
  import { JsonFragment } from '@ethersproject/abi/lib/fragments';
2
- declare const erc20: Array<JsonFragment>;
2
+ declare const erc20: JsonFragment[];
3
3
  export default erc20;
@@ -19,7 +19,7 @@ export declare class BaseTransactionParser<T extends Tx> {
19
19
  * _parsers should be registered from most generic first to most specific last_
20
20
  */
21
21
  registerParser(parser: SubParser<T>): void;
22
- protected registerParsers(parsers: Array<SubParser<T>>): void;
22
+ protected registerParsers(parsers: SubParser<T>[]): void;
23
23
  parse(tx: T, address: string): Promise<ParsedTx>;
24
24
  private getStatus;
25
25
  private getParsedTxWithTransfers;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *
@@ -48,83 +48,34 @@ export interface Account {
48
48
  * @memberof Account
49
49
  */
50
50
  'assets': Array<Value>;
51
- /**
52
- *
53
- * @type {Array<Delegation>}
54
- * @memberof Account
55
- */
56
- 'delegations': Array<Delegation>;
57
- /**
58
- *
59
- * @type {Array<Redelegation>}
60
- * @memberof Account
61
- */
62
- 'redelegations': Array<Redelegation>;
63
- /**
64
- *
65
- * @type {Array<Reward>}
66
- * @memberof Account
67
- */
68
- 'rewards': Array<Reward>;
69
51
  /**
70
52
  *
71
53
  * @type {number}
72
54
  * @memberof Account
73
55
  */
74
56
  'sequence': number;
75
- /**
76
- *
77
- * @type {Array<Unbonding>}
78
- * @memberof Account
79
- */
80
- 'unbondings': Array<Unbonding>;
81
- }
82
- /**
83
- *
84
- * @export
85
- * @interface AccountAllOf
86
- */
87
- export interface AccountAllOf {
88
- /**
89
- *
90
- * @type {number}
91
- * @memberof AccountAllOf
92
- */
93
- 'accountNumber': number;
94
- /**
95
- *
96
- * @type {Array<Value>}
97
- * @memberof AccountAllOf
98
- */
99
- 'assets': Array<Value>;
100
57
  /**
101
58
  *
102
59
  * @type {Array<Delegation>}
103
- * @memberof AccountAllOf
60
+ * @memberof Account
104
61
  */
105
62
  'delegations': Array<Delegation>;
106
63
  /**
107
64
  *
108
65
  * @type {Array<Redelegation>}
109
- * @memberof AccountAllOf
66
+ * @memberof Account
110
67
  */
111
68
  'redelegations': Array<Redelegation>;
112
69
  /**
113
70
  *
114
71
  * @type {Array<Reward>}
115
- * @memberof AccountAllOf
72
+ * @memberof Account
116
73
  */
117
74
  'rewards': Array<Reward>;
118
- /**
119
- *
120
- * @type {number}
121
- * @memberof AccountAllOf
122
- */
123
- 'sequence': number;
124
75
  /**
125
76
  *
126
77
  * @type {Array<Unbonding>}
127
- * @memberof AccountAllOf
78
+ * @memberof Account
128
79
  */
129
80
  'unbondings': Array<Unbonding>;
130
81
  }
@@ -286,6 +237,87 @@ export interface BaseTxHistoryAllOf {
286
237
  */
287
238
  'txs': Array<Tx>;
288
239
  }
240
+ /**
241
+ * Contains common cosmossdk info about account details for an address or xpub
242
+ * @export
243
+ * @interface CosmosSDKAccount
244
+ */
245
+ export interface CosmosSDKAccount {
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof CosmosSDKAccount
250
+ */
251
+ 'balance': string;
252
+ /**
253
+ *
254
+ * @type {string}
255
+ * @memberof CosmosSDKAccount
256
+ */
257
+ 'pubkey': string;
258
+ /**
259
+ *
260
+ * @type {string}
261
+ * @memberof CosmosSDKAccount
262
+ */
263
+ 'unconfirmedBalance': string;
264
+ /**
265
+ *
266
+ * @type {number}
267
+ * @memberof CosmosSDKAccount
268
+ */
269
+ 'accountNumber': number;
270
+ /**
271
+ *
272
+ * @type {Array<Value>}
273
+ * @memberof CosmosSDKAccount
274
+ */
275
+ 'assets': Array<Value>;
276
+ /**
277
+ *
278
+ * @type {number}
279
+ * @memberof CosmosSDKAccount
280
+ */
281
+ 'sequence': number;
282
+ }
283
+ /**
284
+ *
285
+ * @export
286
+ * @interface CosmosSDKAccountAllOf
287
+ */
288
+ export interface CosmosSDKAccountAllOf {
289
+ /**
290
+ *
291
+ * @type {number}
292
+ * @memberof CosmosSDKAccountAllOf
293
+ */
294
+ 'accountNumber': number;
295
+ /**
296
+ *
297
+ * @type {Array<Value>}
298
+ * @memberof CosmosSDKAccountAllOf
299
+ */
300
+ 'assets': Array<Value>;
301
+ /**
302
+ *
303
+ * @type {number}
304
+ * @memberof CosmosSDKAccountAllOf
305
+ */
306
+ 'sequence': number;
307
+ }
308
+ /**
309
+ * Contains common cosmossdk info about the running coinstack
310
+ * @export
311
+ * @interface CosmosSDKInfo
312
+ */
313
+ export interface CosmosSDKInfo {
314
+ /**
315
+ *
316
+ * @type {string}
317
+ * @memberof CosmosSDKInfo
318
+ */
319
+ 'network': string;
320
+ }
289
321
  /**
290
322
  * Contains info about a staking delegation
291
323
  * @export
@@ -568,6 +600,37 @@ export interface Reward {
568
600
  */
569
601
  'validator': Validator;
570
602
  }
603
+ /**
604
+ * Contains info about current staking state
605
+ * @export
606
+ * @interface Staking
607
+ */
608
+ export interface Staking {
609
+ /**
610
+ *
611
+ * @type {Array<Delegation>}
612
+ * @memberof Staking
613
+ */
614
+ 'delegations': Array<Delegation>;
615
+ /**
616
+ *
617
+ * @type {Array<Redelegation>}
618
+ * @memberof Staking
619
+ */
620
+ 'redelegations': Array<Redelegation>;
621
+ /**
622
+ *
623
+ * @type {Array<Reward>}
624
+ * @memberof Staking
625
+ */
626
+ 'rewards': Array<Reward>;
627
+ /**
628
+ *
629
+ * @type {Array<Unbonding>}
630
+ * @memberof Staking
631
+ */
632
+ 'unbondings': Array<Unbonding>;
633
+ }
571
634
  /**
572
635
  * Contains info about a transaction
573
636
  * @export
@@ -970,7 +1033,8 @@ export interface Value {
970
1033
  */
971
1034
  export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
972
1035
  /**
973
- * Get the estimated gas cost for a transaction
1036
+ *
1037
+ * @summary Get the estimated gas cost for a transaction.
974
1038
  * @param {InlineObject} [body]
975
1039
  * @param {*} [options] Override http request option.
976
1040
  * @throws {RequiredError}
@@ -991,6 +1055,13 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
991
1055
  * @throws {RequiredError}
992
1056
  */
993
1057
  getInfo: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
1058
+ /**
1059
+ * # Get transaction details
1060
+ * @param {string} txid Transaction hash
1061
+ * @param {*} [options] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ getTx: (txid: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
994
1065
  /**
995
1066
  *
996
1067
  * @summary Get paginated transaction history.
@@ -1002,14 +1073,16 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
1002
1073
  */
1003
1074
  getTxHistory: (pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1004
1075
  /**
1005
- * Get a specific validator
1076
+ *
1077
+ * @summary Get a specific validator.
1006
1078
  * @param {string} pubkey Account address or xpub
1007
1079
  * @param {*} [options] Override http request option.
1008
1080
  * @throws {RequiredError}
1009
1081
  */
1010
1082
  getValidator: (pubkey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
1011
1083
  /**
1012
- * Get the list of current validators
1084
+ *
1085
+ * @summary Get the list of current validators.
1013
1086
  * @param {*} [options] Override http request option.
1014
1087
  * @throws {RequiredError}
1015
1088
  */
@@ -1029,7 +1102,8 @@ export declare const V1ApiAxiosParamCreator: (configuration?: Configuration | un
1029
1102
  */
1030
1103
  export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1031
1104
  /**
1032
- * Get the estimated gas cost for a transaction
1105
+ *
1106
+ * @summary Get the estimated gas cost for a transaction.
1033
1107
  * @param {InlineObject} [body]
1034
1108
  * @param {*} [options] Override http request option.
1035
1109
  * @throws {RequiredError}
@@ -1050,6 +1124,13 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1050
1124
  * @throws {RequiredError}
1051
1125
  */
1052
1126
  getInfo(options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Info>>;
1127
+ /**
1128
+ * # Get transaction details
1129
+ * @param {string} txid Transaction hash
1130
+ * @param {*} [options] Override http request option.
1131
+ * @throws {RequiredError}
1132
+ */
1133
+ getTx(txid: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Tx>>;
1053
1134
  /**
1054
1135
  *
1055
1136
  * @summary Get paginated transaction history.
@@ -1061,14 +1142,16 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1061
1142
  */
1062
1143
  getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<TxHistory>>;
1063
1144
  /**
1064
- * Get a specific validator
1145
+ *
1146
+ * @summary Get a specific validator.
1065
1147
  * @param {string} pubkey Account address or xpub
1066
1148
  * @param {*} [options] Override http request option.
1067
1149
  * @throws {RequiredError}
1068
1150
  */
1069
1151
  getValidator(pubkey: string, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<Validator>>;
1070
1152
  /**
1071
- * Get the list of current validators
1153
+ *
1154
+ * @summary Get the list of current validators.
1072
1155
  * @param {*} [options] Override http request option.
1073
1156
  * @throws {RequiredError}
1074
1157
  */
@@ -1088,7 +1171,8 @@ export declare const V1ApiFp: (configuration?: Configuration | undefined) => {
1088
1171
  */
1089
1172
  export declare const V1ApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
1090
1173
  /**
1091
- * Get the estimated gas cost for a transaction
1174
+ *
1175
+ * @summary Get the estimated gas cost for a transaction.
1092
1176
  * @param {InlineObject} [body]
1093
1177
  * @param {*} [options] Override http request option.
1094
1178
  * @throws {RequiredError}
@@ -1109,6 +1193,13 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
1109
1193
  * @throws {RequiredError}
1110
1194
  */
1111
1195
  getInfo(options?: any): AxiosPromise<Info>;
1196
+ /**
1197
+ * # Get transaction details
1198
+ * @param {string} txid Transaction hash
1199
+ * @param {*} [options] Override http request option.
1200
+ * @throws {RequiredError}
1201
+ */
1202
+ getTx(txid: string, options?: any): AxiosPromise<Tx>;
1112
1203
  /**
1113
1204
  *
1114
1205
  * @summary Get paginated transaction history.
@@ -1120,14 +1211,16 @@ export declare const V1ApiFactory: (configuration?: Configuration | undefined, b
1120
1211
  */
1121
1212
  getTxHistory(pubkey: string, cursor?: string | undefined, pageSize?: number | undefined, options?: any): AxiosPromise<TxHistory>;
1122
1213
  /**
1123
- * Get a specific validator
1214
+ *
1215
+ * @summary Get a specific validator.
1124
1216
  * @param {string} pubkey Account address or xpub
1125
1217
  * @param {*} [options] Override http request option.
1126
1218
  * @throws {RequiredError}
1127
1219
  */
1128
1220
  getValidator(pubkey: string, options?: any): AxiosPromise<Validator>;
1129
1221
  /**
1130
- * Get the list of current validators
1222
+ *
1223
+ * @summary Get the list of current validators.
1131
1224
  * @param {*} [options] Override http request option.
1132
1225
  * @throws {RequiredError}
1133
1226
  */
@@ -1167,6 +1260,19 @@ export interface V1ApiGetAccountRequest {
1167
1260
  */
1168
1261
  readonly pubkey: string;
1169
1262
  }
1263
+ /**
1264
+ * Request parameters for getTx operation in V1Api.
1265
+ * @export
1266
+ * @interface V1ApiGetTxRequest
1267
+ */
1268
+ export interface V1ApiGetTxRequest {
1269
+ /**
1270
+ * Transaction hash
1271
+ * @type {string}
1272
+ * @memberof V1ApiGetTx
1273
+ */
1274
+ readonly txid: string;
1275
+ }
1170
1276
  /**
1171
1277
  * Request parameters for getTxHistory operation in V1Api.
1172
1278
  * @export
@@ -1226,7 +1332,8 @@ export interface V1ApiSendTxRequest {
1226
1332
  */
1227
1333
  export declare class V1Api extends BaseAPI {
1228
1334
  /**
1229
- * Get the estimated gas cost for a transaction
1335
+ *
1336
+ * @summary Get the estimated gas cost for a transaction.
1230
1337
  * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
1231
1338
  * @param {*} [options] Override http request option.
1232
1339
  * @throws {RequiredError}
@@ -1250,6 +1357,14 @@ export declare class V1Api extends BaseAPI {
1250
1357
  * @memberof V1Api
1251
1358
  */
1252
1359
  getInfo(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Info, any>>;
1360
+ /**
1361
+ * # Get transaction details
1362
+ * @param {V1ApiGetTxRequest} requestParameters Request parameters.
1363
+ * @param {*} [options] Override http request option.
1364
+ * @throws {RequiredError}
1365
+ * @memberof V1Api
1366
+ */
1367
+ getTx(requestParameters: V1ApiGetTxRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tx, any>>;
1253
1368
  /**
1254
1369
  *
1255
1370
  * @summary Get paginated transaction history.
@@ -1260,7 +1375,8 @@ export declare class V1Api extends BaseAPI {
1260
1375
  */
1261
1376
  getTxHistory(requestParameters: V1ApiGetTxHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TxHistory, any>>;
1262
1377
  /**
1263
- * Get a specific validator
1378
+ *
1379
+ * @summary Get a specific validator.
1264
1380
  * @param {V1ApiGetValidatorRequest} requestParameters Request parameters.
1265
1381
  * @param {*} [options] Override http request option.
1266
1382
  * @throws {RequiredError}
@@ -1268,7 +1384,8 @@ export declare class V1Api extends BaseAPI {
1268
1384
  */
1269
1385
  getValidator(requestParameters: V1ApiGetValidatorRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Validator, any>>;
1270
1386
  /**
1271
- * Get the list of current validators
1387
+ *
1388
+ * @summary Get the list of current validators.
1272
1389
  * @param {*} [options] Override http request option.
1273
1390
  * @throws {RequiredError}
1274
1391
  * @memberof V1Api
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  /**
5
5
  * Cosmos Unchained API
6
- * Provides access to cosmos chain data
6
+ * Provides access to cosmos chain data.
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0.0
9
9
  *
@@ -30,7 +30,8 @@ const base_1 = require("./base");
30
30
  const V1ApiAxiosParamCreator = function (configuration) {
31
31
  return {
32
32
  /**
33
- * Get the estimated gas cost for a transaction
33
+ *
34
+ * @summary Get the estimated gas cost for a transaction.
34
35
  * @param {InlineObject} [body]
35
36
  * @param {*} [options] Override http request option.
36
37
  * @throws {RequiredError}
@@ -110,6 +111,34 @@ const V1ApiAxiosParamCreator = function (configuration) {
110
111
  options: localVarRequestOptions,
111
112
  };
112
113
  },
114
+ /**
115
+ * # Get transaction details
116
+ * @param {string} txid Transaction hash
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ getTx: async (txid, options = {}) => {
121
+ // verify required parameter 'txid' is not null or undefined
122
+ (0, common_1.assertParamExists)('getTx', 'txid', txid);
123
+ const localVarPath = `/api/v1/tx/{txid}`
124
+ .replace(`{${"txid"}}`, encodeURIComponent(String(txid)));
125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
+ let baseOptions;
128
+ if (configuration) {
129
+ baseOptions = configuration.baseOptions;
130
+ }
131
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
132
+ const localVarHeaderParameter = {};
133
+ const localVarQueryParameter = {};
134
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
137
+ return {
138
+ url: (0, common_1.toPathString)(localVarUrlObj),
139
+ options: localVarRequestOptions,
140
+ };
141
+ },
113
142
  /**
114
143
  *
115
144
  * @summary Get paginated transaction history.
@@ -148,7 +177,8 @@ const V1ApiAxiosParamCreator = function (configuration) {
148
177
  };
149
178
  },
150
179
  /**
151
- * Get a specific validator
180
+ *
181
+ * @summary Get a specific validator.
152
182
  * @param {string} pubkey Account address or xpub
153
183
  * @param {*} [options] Override http request option.
154
184
  * @throws {RequiredError}
@@ -176,7 +206,8 @@ const V1ApiAxiosParamCreator = function (configuration) {
176
206
  };
177
207
  },
178
208
  /**
179
- * Get the list of current validators
209
+ *
210
+ * @summary Get the list of current validators.
180
211
  * @param {*} [options] Override http request option.
181
212
  * @throws {RequiredError}
182
213
  */
@@ -238,7 +269,8 @@ const V1ApiFp = function (configuration) {
238
269
  const localVarAxiosParamCreator = (0, exports.V1ApiAxiosParamCreator)(configuration);
239
270
  return {
240
271
  /**
241
- * Get the estimated gas cost for a transaction
272
+ *
273
+ * @summary Get the estimated gas cost for a transaction.
242
274
  * @param {InlineObject} [body]
243
275
  * @param {*} [options] Override http request option.
244
276
  * @throws {RequiredError}
@@ -268,6 +300,16 @@ const V1ApiFp = function (configuration) {
268
300
  const localVarAxiosArgs = await localVarAxiosParamCreator.getInfo(options);
269
301
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
270
302
  },
303
+ /**
304
+ * # Get transaction details
305
+ * @param {string} txid Transaction hash
306
+ * @param {*} [options] Override http request option.
307
+ * @throws {RequiredError}
308
+ */
309
+ async getTx(txid, options) {
310
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTx(txid, options);
311
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
312
+ },
271
313
  /**
272
314
  *
273
315
  * @summary Get paginated transaction history.
@@ -282,7 +324,8 @@ const V1ApiFp = function (configuration) {
282
324
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
283
325
  },
284
326
  /**
285
- * Get a specific validator
327
+ *
328
+ * @summary Get a specific validator.
286
329
  * @param {string} pubkey Account address or xpub
287
330
  * @param {*} [options] Override http request option.
288
331
  * @throws {RequiredError}
@@ -292,7 +335,8 @@ const V1ApiFp = function (configuration) {
292
335
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
293
336
  },
294
337
  /**
295
- * Get the list of current validators
338
+ *
339
+ * @summary Get the list of current validators.
296
340
  * @param {*} [options] Override http request option.
297
341
  * @throws {RequiredError}
298
342
  */
@@ -322,7 +366,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
322
366
  const localVarFp = (0, exports.V1ApiFp)(configuration);
323
367
  return {
324
368
  /**
325
- * Get the estimated gas cost for a transaction
369
+ *
370
+ * @summary Get the estimated gas cost for a transaction.
326
371
  * @param {InlineObject} [body]
327
372
  * @param {*} [options] Override http request option.
328
373
  * @throws {RequiredError}
@@ -349,6 +394,15 @@ const V1ApiFactory = function (configuration, basePath, axios) {
349
394
  getInfo(options) {
350
395
  return localVarFp.getInfo(options).then((request) => request(axios, basePath));
351
396
  },
397
+ /**
398
+ * # Get transaction details
399
+ * @param {string} txid Transaction hash
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ getTx(txid, options) {
404
+ return localVarFp.getTx(txid, options).then((request) => request(axios, basePath));
405
+ },
352
406
  /**
353
407
  *
354
408
  * @summary Get paginated transaction history.
@@ -362,7 +416,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
362
416
  return localVarFp.getTxHistory(pubkey, cursor, pageSize, options).then((request) => request(axios, basePath));
363
417
  },
364
418
  /**
365
- * Get a specific validator
419
+ *
420
+ * @summary Get a specific validator.
366
421
  * @param {string} pubkey Account address or xpub
367
422
  * @param {*} [options] Override http request option.
368
423
  * @throws {RequiredError}
@@ -371,7 +426,8 @@ const V1ApiFactory = function (configuration, basePath, axios) {
371
426
  return localVarFp.getValidator(pubkey, options).then((request) => request(axios, basePath));
372
427
  },
373
428
  /**
374
- * Get the list of current validators
429
+ *
430
+ * @summary Get the list of current validators.
375
431
  * @param {*} [options] Override http request option.
376
432
  * @throws {RequiredError}
377
433
  */
@@ -399,7 +455,8 @@ exports.V1ApiFactory = V1ApiFactory;
399
455
  */
400
456
  class V1Api extends base_1.BaseAPI {
401
457
  /**
402
- * Get the estimated gas cost for a transaction
458
+ *
459
+ * @summary Get the estimated gas cost for a transaction.
403
460
  * @param {V1ApiEstimateGasRequest} requestParameters Request parameters.
404
461
  * @param {*} [options] Override http request option.
405
462
  * @throws {RequiredError}
@@ -429,6 +486,16 @@ class V1Api extends base_1.BaseAPI {
429
486
  getInfo(options) {
430
487
  return (0, exports.V1ApiFp)(this.configuration).getInfo(options).then((request) => request(this.axios, this.basePath));
431
488
  }
489
+ /**
490
+ * # Get transaction details
491
+ * @param {V1ApiGetTxRequest} requestParameters Request parameters.
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ * @memberof V1Api
495
+ */
496
+ getTx(requestParameters, options) {
497
+ return (0, exports.V1ApiFp)(this.configuration).getTx(requestParameters.txid, options).then((request) => request(this.axios, this.basePath));
498
+ }
432
499
  /**
433
500
  *
434
501
  * @summary Get paginated transaction history.
@@ -441,7 +508,8 @@ class V1Api extends base_1.BaseAPI {
441
508
  return (0, exports.V1ApiFp)(this.configuration).getTxHistory(requestParameters.pubkey, requestParameters.cursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
442
509
  }
443
510
  /**
444
- * Get a specific validator
511
+ *
512
+ * @summary Get a specific validator.
445
513
  * @param {V1ApiGetValidatorRequest} requestParameters Request parameters.
446
514
  * @param {*} [options] Override http request option.
447
515
  * @throws {RequiredError}
@@ -451,7 +519,8 @@ class V1Api extends base_1.BaseAPI {
451
519
  return (0, exports.V1ApiFp)(this.configuration).getValidator(requestParameters.pubkey, options).then((request) => request(this.axios, this.basePath));
452
520
  }
453
521
  /**
454
- * Get the list of current validators
522
+ *
523
+ * @summary Get the list of current validators.
455
524
  * @param {*} [options] Override http request option.
456
525
  * @throws {RequiredError}
457
526
  * @memberof V1Api
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Cosmos Unchained API
3
- * Provides access to cosmos chain data
3
+ * Provides access to cosmos chain data.
4
4
  *
5
5
  * The version of the OpenAPI document: 1.0.0
6
6
  *