1
- import { AxiosRequestConfig , AxiosInstance , AxiosPromise } from 'axios' ;
1
+ import { AxiosRequestConfig } from 'axios' ;
2
2
import { RequestArgs } from '../../base' ;
3
3
import {
4
4
assertParamExists ,
@@ -39,11 +39,11 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
39
39
* @param {* } [options] Override http request option.
40
40
* @throws {RequiredError }
41
41
*/
42
- accountAddresses : async (
42
+ accountAddresses : (
43
43
stakeAddr : string ,
44
44
localVarQueryParameter : AccountAddressesQueryParams = { } ,
45
45
options : AxiosRequestConfig = { } ,
46
- ) : Promise < RequestArgs > => {
46
+ ) : RequestArgs => {
47
47
// verify required parameter 'stakeAddr' is not null or undefined
48
48
assertParamExists ( 'accountAddresses' , 'stakeAddr' , stakeAddr ) ;
49
49
const localVarPath = `/accounts/{stake_addr}/addresses` . replace (
@@ -81,11 +81,11 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
81
81
* @param {* } [options] Override http request option.
82
82
* @throws {RequiredError }
83
83
*/
84
- accountAssets : async (
84
+ accountAssets : (
85
85
stakeAddr : string ,
86
86
localVarQueryParameter : AccountAssetsQueryParams = { } ,
87
87
options : AxiosRequestConfig = { } ,
88
- ) : Promise < RequestArgs > => {
88
+ ) : RequestArgs => {
89
89
// verify required parameter 'stakeAddr' is not null or undefined
90
90
assertParamExists ( 'accountAssets' , 'stakeAddr' , stakeAddr ) ;
91
91
const localVarPath = `/accounts/{stake_addr}/assets` . replace (
@@ -124,11 +124,11 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
124
124
* @param {* } [options] Override http request option.
125
125
* @throws {RequiredError }
126
126
*/
127
- accountHistory : async (
127
+ accountHistory : (
128
128
stakeAddr : string ,
129
129
localVarQueryParameter : AccountHistoryQueryParams = { } ,
130
130
options : AxiosRequestConfig = { } ,
131
- ) : Promise < RequestArgs > => {
131
+ ) : RequestArgs => {
132
132
// verify required parameter 'stakeAddr' is not null or undefined
133
133
assertParamExists ( 'accountHistory' , 'stakeAddr' , stakeAddr ) ;
134
134
const localVarPath = `/accounts/{stake_addr}/history` . replace (
@@ -165,7 +165,7 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
165
165
* @param {* } [options] Override http request option.
166
166
* @throws {RequiredError }
167
167
*/
168
- accountInfo : async ( stakeAddr : string , options : AxiosRequestConfig = { } ) : Promise < RequestArgs > => {
168
+ accountInfo : ( stakeAddr : string , options : AxiosRequestConfig = { } ) : RequestArgs => {
169
169
// verify required parameter 'stakeAddr' is not null or undefined
170
170
assertParamExists ( 'accountInfo' , 'stakeAddr' , stakeAddr ) ;
171
171
const localVarPath = `/accounts/{stake_addr}` . replace (
@@ -204,11 +204,11 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
204
204
* @param {* } [options] Override http request option.
205
205
* @throws {RequiredError }
206
206
*/
207
- accountRewards : async (
207
+ accountRewards : (
208
208
stakeAddr : string ,
209
209
localVarQueryParameter : AccountRewardsQueryParams = { } ,
210
210
options : AxiosRequestConfig = { } ,
211
- ) : Promise < RequestArgs > => {
211
+ ) : RequestArgs => {
212
212
// verify required parameter 'stakeAddr' is not null or undefined
213
213
assertParamExists ( 'accountRewards' , 'stakeAddr' , stakeAddr ) ;
214
214
const localVarPath = `/accounts/{stake_addr}/rewards` . replace (
@@ -246,11 +246,11 @@ export const AccountsApiAxiosParamCreator = (configuration: Configuration) => ({
246
246
* @param {* } [options] Override http request option.
247
247
* @throws {RequiredError }
248
248
*/
249
- accountUpdates : async (
249
+ accountUpdates : (
250
250
stakeAddr : string ,
251
251
localVarQueryParameter : AccountUpdatesQueryParams = { } ,
252
252
options : AxiosRequestConfig = { } ,
253
- ) : Promise < RequestArgs > => {
253
+ ) : RequestArgs => {
254
254
// verify required parameter 'stakeAddr' is not null or undefined
255
255
assertParamExists ( 'accountUpdates' , 'stakeAddr' , stakeAddr ) ;
256
256
const localVarPath = `/accounts/{stake_addr}/updates` . replace (
@@ -297,12 +297,12 @@ export const AccountsApiFp = (configuration: Configuration) => {
297
297
* @param {* } [options] Override http request option.
298
298
* @throws {RequiredError }
299
299
*/
300
- async accountAddresses (
300
+ accountAddresses (
301
301
stakeAddr : string ,
302
302
queryParams ?: AccountAddressesQueryParams ,
303
303
options ?: AxiosRequestConfig ,
304
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < PaginatedAddress > > {
305
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountAddresses ( stakeAddr , queryParams , options ) ;
304
+ ) : ( ) => Promise < PaginatedAddress > {
305
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountAddresses ( stakeAddr , queryParams , options ) ;
306
306
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
307
307
} ,
308
308
/**
@@ -313,12 +313,12 @@ export const AccountsApiFp = (configuration: Configuration) => {
313
313
* @param {* } [options] Override http request option.
314
314
* @throws {RequiredError }
315
315
*/
316
- async accountAssets (
316
+ accountAssets (
317
317
stakeAddr : string ,
318
318
queryParams ?: AccountAssetsQueryParams ,
319
319
options ?: AxiosRequestConfig ,
320
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < PaginatedAsset > > {
321
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountAssets ( stakeAddr , queryParams , options ) ;
320
+ ) : ( ) => Promise < PaginatedAsset > {
321
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountAssets ( stakeAddr , queryParams , options ) ;
322
322
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
323
323
} ,
324
324
/**
@@ -329,12 +329,12 @@ export const AccountsApiFp = (configuration: Configuration) => {
329
329
* @param {* } [options] Override http request option.
330
330
* @throws {RequiredError }
331
331
*/
332
- async accountHistory (
332
+ accountHistory (
333
333
stakeAddr : string ,
334
334
queryParams ?: AccountHistoryQueryParams ,
335
335
options ?: AxiosRequestConfig ,
336
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < PaginatedAccountHistory > > {
337
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountHistory ( stakeAddr , queryParams , options ) ;
336
+ ) : ( ) => Promise < PaginatedAccountHistory > {
337
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountHistory ( stakeAddr , queryParams , options ) ;
338
338
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
339
339
} ,
340
340
/**
@@ -344,11 +344,8 @@ export const AccountsApiFp = (configuration: Configuration) => {
344
344
* @param {* } [options] Override http request option.
345
345
* @throws {RequiredError }
346
346
*/
347
- async accountInfo (
348
- stakeAddr : string ,
349
- options ?: AxiosRequestConfig ,
350
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < TimestampedAccountInfo > > {
351
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountInfo ( stakeAddr , options ) ;
347
+ accountInfo ( stakeAddr : string , options ?: AxiosRequestConfig ) : ( ) => Promise < TimestampedAccountInfo > {
348
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountInfo ( stakeAddr , options ) ;
352
349
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
353
350
} ,
354
351
/**
@@ -359,12 +356,12 @@ export const AccountsApiFp = (configuration: Configuration) => {
359
356
* @param {* } [options] Override http request option.
360
357
* @throws {RequiredError }
361
358
*/
362
- async accountRewards (
359
+ accountRewards (
363
360
stakeAddr : string ,
364
361
queryParams ?: AccountRewardsQueryParams ,
365
362
options ?: AxiosRequestConfig ,
366
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < PaginatedAccountReward > > {
367
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountRewards ( stakeAddr , queryParams , options ) ;
363
+ ) : ( ) => Promise < PaginatedAccountReward > {
364
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountRewards ( stakeAddr , queryParams , options ) ;
368
365
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
369
366
} ,
370
367
/**
@@ -375,12 +372,12 @@ export const AccountsApiFp = (configuration: Configuration) => {
375
372
* @param {* } [options] Override http request option.
376
373
* @throws {RequiredError }
377
374
*/
378
- async accountUpdates (
375
+ accountUpdates (
379
376
stakeAddr : string ,
380
377
queryParams ?: AccountUpdatesQueryParams ,
381
378
options ?: AxiosRequestConfig ,
382
- ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < PaginatedAccountUpdate > > {
383
- const localVarAxiosArgs = await localVarAxiosParamCreator . accountUpdates ( stakeAddr , queryParams , options ) ;
379
+ ) : ( ) => Promise < PaginatedAccountUpdate > {
380
+ const localVarAxiosArgs = localVarAxiosParamCreator . accountUpdates ( stakeAddr , queryParams , options ) ;
384
381
return createRequestFunction ( localVarAxiosArgs , configuration ) ;
385
382
} ,
386
383
} ;
0 commit comments