@xchainjs/xchain-thornode 0.3.20 → 0.3.22
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/lib/generated/thornodeApi/api.d.ts +587 -13
- package/lib/generated/thornodeApi/base.d.ts +1 -1
- package/lib/generated/thornodeApi/common.d.ts +1 -1
- package/lib/generated/thornodeApi/configuration.d.ts +1 -1
- package/lib/generated/thornodeApi/index.d.ts +1 -1
- package/lib/index.esm.js +680 -6
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +772 -73
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 3.1.1
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,6 +12,101 @@
|
|
|
12
12
|
import { Configuration } from './configuration';
|
|
13
13
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
14
14
|
import { RequestArgs, BaseAPI } from './base';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface Account
|
|
19
|
+
*/
|
|
20
|
+
export interface Account {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof Account
|
|
25
|
+
*/
|
|
26
|
+
'type'?: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Account
|
|
31
|
+
*/
|
|
32
|
+
'address'?: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof Account
|
|
37
|
+
*/
|
|
38
|
+
'pubkey'?: string;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof Account
|
|
43
|
+
*/
|
|
44
|
+
'sequence'?: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof Account
|
|
49
|
+
*/
|
|
50
|
+
'account_number'?: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface AccountResponse
|
|
56
|
+
*/
|
|
57
|
+
export interface AccountResponse {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {AccountResponseResult}
|
|
61
|
+
* @memberof AccountResponse
|
|
62
|
+
*/
|
|
63
|
+
'result'?: AccountResponseResult;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @export
|
|
68
|
+
* @interface AccountResponseResult
|
|
69
|
+
*/
|
|
70
|
+
export interface AccountResponseResult {
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {Account}
|
|
74
|
+
* @memberof AccountResponseResult
|
|
75
|
+
*/
|
|
76
|
+
'value'?: Account;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @export
|
|
81
|
+
* @interface Amount
|
|
82
|
+
*/
|
|
83
|
+
export interface Amount {
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Amount
|
|
88
|
+
*/
|
|
89
|
+
'denom': string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof Amount
|
|
94
|
+
*/
|
|
95
|
+
'amount': string;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @export
|
|
100
|
+
* @interface BalancesResponse
|
|
101
|
+
*/
|
|
102
|
+
export interface BalancesResponse {
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {Array<Amount>}
|
|
106
|
+
* @memberof BalancesResponse
|
|
107
|
+
*/
|
|
108
|
+
'result'?: Array<Amount>;
|
|
109
|
+
}
|
|
15
110
|
/**
|
|
16
111
|
*
|
|
17
112
|
* @export
|
|
@@ -1346,18 +1441,6 @@ export interface NetworkResponse {
|
|
|
1346
1441
|
* @memberof NetworkResponse
|
|
1347
1442
|
*/
|
|
1348
1443
|
'bond_reward_rune': string;
|
|
1349
|
-
/**
|
|
1350
|
-
* total of burned BEP2 RUNE
|
|
1351
|
-
* @type {string}
|
|
1352
|
-
* @memberof NetworkResponse
|
|
1353
|
-
*/
|
|
1354
|
-
'burned_bep_2_rune': string;
|
|
1355
|
-
/**
|
|
1356
|
-
* total of burned ERC20 RUNE
|
|
1357
|
-
* @type {string}
|
|
1358
|
-
* @memberof NetworkResponse
|
|
1359
|
-
*/
|
|
1360
|
-
'burned_erc_20_rune': string;
|
|
1361
1444
|
/**
|
|
1362
1445
|
* total bonded RUNE
|
|
1363
1446
|
* @type {string}
|
|
@@ -3111,6 +3194,38 @@ export interface SaversResponse extends Array<Saver> {
|
|
|
3111
3194
|
*/
|
|
3112
3195
|
export interface ScheduledResponse extends Array<TxOutItem> {
|
|
3113
3196
|
}
|
|
3197
|
+
/**
|
|
3198
|
+
*
|
|
3199
|
+
* @export
|
|
3200
|
+
* @interface SecuredAssetResponse
|
|
3201
|
+
*/
|
|
3202
|
+
export interface SecuredAssetResponse {
|
|
3203
|
+
/**
|
|
3204
|
+
* secured account asset with \"-\" separator
|
|
3205
|
+
* @type {string}
|
|
3206
|
+
* @memberof SecuredAssetResponse
|
|
3207
|
+
*/
|
|
3208
|
+
'asset': string;
|
|
3209
|
+
/**
|
|
3210
|
+
* total share tokens issued for the asset
|
|
3211
|
+
* @type {string}
|
|
3212
|
+
* @memberof SecuredAssetResponse
|
|
3213
|
+
*/
|
|
3214
|
+
'supply': string;
|
|
3215
|
+
/**
|
|
3216
|
+
* total deposits of the asset
|
|
3217
|
+
* @type {string}
|
|
3218
|
+
* @memberof SecuredAssetResponse
|
|
3219
|
+
*/
|
|
3220
|
+
'depth': string;
|
|
3221
|
+
}
|
|
3222
|
+
/**
|
|
3223
|
+
*
|
|
3224
|
+
* @export
|
|
3225
|
+
* @interface SecuredAssetsResponse
|
|
3226
|
+
*/
|
|
3227
|
+
export interface SecuredAssetsResponse extends Array<SecuredAssetResponse> {
|
|
3228
|
+
}
|
|
3114
3229
|
/**
|
|
3115
3230
|
*
|
|
3116
3231
|
* @export
|
|
@@ -3865,6 +3980,87 @@ export interface TxStatusResponse {
|
|
|
3865
3980
|
*/
|
|
3866
3981
|
'stages': TxStagesResponse;
|
|
3867
3982
|
}
|
|
3983
|
+
/**
|
|
3984
|
+
*
|
|
3985
|
+
* @export
|
|
3986
|
+
* @interface UpgradeProposal
|
|
3987
|
+
*/
|
|
3988
|
+
export interface UpgradeProposal {
|
|
3989
|
+
/**
|
|
3990
|
+
* the name of the upgrade
|
|
3991
|
+
* @type {string}
|
|
3992
|
+
* @memberof UpgradeProposal
|
|
3993
|
+
*/
|
|
3994
|
+
'name': string;
|
|
3995
|
+
/**
|
|
3996
|
+
* the block height at which the upgrade will occur
|
|
3997
|
+
* @type {number}
|
|
3998
|
+
* @memberof UpgradeProposal
|
|
3999
|
+
*/
|
|
4000
|
+
'height': number;
|
|
4001
|
+
/**
|
|
4002
|
+
* the description of the upgrade, typically json with URLs to binaries for use with automation tools
|
|
4003
|
+
* @type {string}
|
|
4004
|
+
* @memberof UpgradeProposal
|
|
4005
|
+
*/
|
|
4006
|
+
'info': string;
|
|
4007
|
+
/**
|
|
4008
|
+
* whether the upgrade has been approved by the active validators
|
|
4009
|
+
* @type {boolean}
|
|
4010
|
+
* @memberof UpgradeProposal
|
|
4011
|
+
*/
|
|
4012
|
+
'approved'?: boolean;
|
|
4013
|
+
/**
|
|
4014
|
+
* the percentage of active validators that have approved the upgrade
|
|
4015
|
+
* @type {string}
|
|
4016
|
+
* @memberof UpgradeProposal
|
|
4017
|
+
*/
|
|
4018
|
+
'approved_percent'?: string;
|
|
4019
|
+
/**
|
|
4020
|
+
* the amount of additional active validators required to reach quorum for the upgrade
|
|
4021
|
+
* @type {number}
|
|
4022
|
+
* @memberof UpgradeProposal
|
|
4023
|
+
*/
|
|
4024
|
+
'validators_to_quorum'?: number;
|
|
4025
|
+
}
|
|
4026
|
+
/**
|
|
4027
|
+
*
|
|
4028
|
+
* @export
|
|
4029
|
+
* @interface UpgradeProposalsResponse
|
|
4030
|
+
*/
|
|
4031
|
+
export interface UpgradeProposalsResponse extends Array<UpgradeProposal> {
|
|
4032
|
+
}
|
|
4033
|
+
/**
|
|
4034
|
+
*
|
|
4035
|
+
* @export
|
|
4036
|
+
* @interface UpgradeVote
|
|
4037
|
+
*/
|
|
4038
|
+
export interface UpgradeVote {
|
|
4039
|
+
/**
|
|
4040
|
+
* the node address of the voter
|
|
4041
|
+
* @type {string}
|
|
4042
|
+
* @memberof UpgradeVote
|
|
4043
|
+
*/
|
|
4044
|
+
'node_address': string;
|
|
4045
|
+
/**
|
|
4046
|
+
* the vote cast by the node
|
|
4047
|
+
* @type {string}
|
|
4048
|
+
* @memberof UpgradeVote
|
|
4049
|
+
*/
|
|
4050
|
+
'vote': UpgradeVoteVoteEnum;
|
|
4051
|
+
}
|
|
4052
|
+
export declare const UpgradeVoteVoteEnum: {
|
|
4053
|
+
readonly Approve: "approve";
|
|
4054
|
+
readonly Reject: "reject";
|
|
4055
|
+
};
|
|
4056
|
+
export type UpgradeVoteVoteEnum = typeof UpgradeVoteVoteEnum[keyof typeof UpgradeVoteVoteEnum];
|
|
4057
|
+
/**
|
|
4058
|
+
*
|
|
4059
|
+
* @export
|
|
4060
|
+
* @interface UpgradeVotesResponse
|
|
4061
|
+
*/
|
|
4062
|
+
export interface UpgradeVotesResponse extends Array<UpgradeVote> {
|
|
4063
|
+
}
|
|
3868
4064
|
/**
|
|
3869
4065
|
*
|
|
3870
4066
|
* @export
|
|
@@ -4190,6 +4386,124 @@ export type YggdrasilVaultTypeEnum = typeof YggdrasilVaultTypeEnum[keyof typeof
|
|
|
4190
4386
|
*/
|
|
4191
4387
|
export interface YggdrasilVaultsResponse extends Array<YggdrasilVault> {
|
|
4192
4388
|
}
|
|
4389
|
+
/**
|
|
4390
|
+
* AuthApi - axios parameter creator
|
|
4391
|
+
* @export
|
|
4392
|
+
*/
|
|
4393
|
+
export declare const AuthApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4394
|
+
/**
|
|
4395
|
+
* Returns account information for the provided address.
|
|
4396
|
+
* @param {string} address
|
|
4397
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4398
|
+
* @param {*} [options] Override http request option.
|
|
4399
|
+
* @throws {RequiredError}
|
|
4400
|
+
*/
|
|
4401
|
+
account: (address: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4402
|
+
};
|
|
4403
|
+
/**
|
|
4404
|
+
* AuthApi - functional programming interface
|
|
4405
|
+
* @export
|
|
4406
|
+
*/
|
|
4407
|
+
export declare const AuthApiFp: (configuration?: Configuration) => {
|
|
4408
|
+
/**
|
|
4409
|
+
* Returns account information for the provided address.
|
|
4410
|
+
* @param {string} address
|
|
4411
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4412
|
+
* @param {*} [options] Override http request option.
|
|
4413
|
+
* @throws {RequiredError}
|
|
4414
|
+
*/
|
|
4415
|
+
account(address: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountResponse>>;
|
|
4416
|
+
};
|
|
4417
|
+
/**
|
|
4418
|
+
* AuthApi - factory interface
|
|
4419
|
+
* @export
|
|
4420
|
+
*/
|
|
4421
|
+
export declare const AuthApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4422
|
+
/**
|
|
4423
|
+
* Returns account information for the provided address.
|
|
4424
|
+
* @param {string} address
|
|
4425
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4426
|
+
* @param {*} [options] Override http request option.
|
|
4427
|
+
* @throws {RequiredError}
|
|
4428
|
+
*/
|
|
4429
|
+
account(address: string, height?: number, options?: any): AxiosPromise<AccountResponse>;
|
|
4430
|
+
};
|
|
4431
|
+
/**
|
|
4432
|
+
* AuthApi - object-oriented interface
|
|
4433
|
+
* @export
|
|
4434
|
+
* @class AuthApi
|
|
4435
|
+
* @extends {BaseAPI}
|
|
4436
|
+
*/
|
|
4437
|
+
export declare class AuthApi extends BaseAPI {
|
|
4438
|
+
/**
|
|
4439
|
+
* Returns account information for the provided address.
|
|
4440
|
+
* @param {string} address
|
|
4441
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4442
|
+
* @param {*} [options] Override http request option.
|
|
4443
|
+
* @throws {RequiredError}
|
|
4444
|
+
* @memberof AuthApi
|
|
4445
|
+
*/
|
|
4446
|
+
account(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountResponse, any>>;
|
|
4447
|
+
}
|
|
4448
|
+
/**
|
|
4449
|
+
* BankApi - axios parameter creator
|
|
4450
|
+
* @export
|
|
4451
|
+
*/
|
|
4452
|
+
export declare const BankApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4453
|
+
/**
|
|
4454
|
+
* Returns balances for the provided address.
|
|
4455
|
+
* @param {string} address
|
|
4456
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4457
|
+
* @param {*} [options] Override http request option.
|
|
4458
|
+
* @throws {RequiredError}
|
|
4459
|
+
*/
|
|
4460
|
+
balances: (address: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4461
|
+
};
|
|
4462
|
+
/**
|
|
4463
|
+
* BankApi - functional programming interface
|
|
4464
|
+
* @export
|
|
4465
|
+
*/
|
|
4466
|
+
export declare const BankApiFp: (configuration?: Configuration) => {
|
|
4467
|
+
/**
|
|
4468
|
+
* Returns balances for the provided address.
|
|
4469
|
+
* @param {string} address
|
|
4470
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4471
|
+
* @param {*} [options] Override http request option.
|
|
4472
|
+
* @throws {RequiredError}
|
|
4473
|
+
*/
|
|
4474
|
+
balances(address: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BalancesResponse>>;
|
|
4475
|
+
};
|
|
4476
|
+
/**
|
|
4477
|
+
* BankApi - factory interface
|
|
4478
|
+
* @export
|
|
4479
|
+
*/
|
|
4480
|
+
export declare const BankApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4481
|
+
/**
|
|
4482
|
+
* Returns balances for the provided address.
|
|
4483
|
+
* @param {string} address
|
|
4484
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4485
|
+
* @param {*} [options] Override http request option.
|
|
4486
|
+
* @throws {RequiredError}
|
|
4487
|
+
*/
|
|
4488
|
+
balances(address: string, height?: number, options?: any): AxiosPromise<BalancesResponse>;
|
|
4489
|
+
};
|
|
4490
|
+
/**
|
|
4491
|
+
* BankApi - object-oriented interface
|
|
4492
|
+
* @export
|
|
4493
|
+
* @class BankApi
|
|
4494
|
+
* @extends {BaseAPI}
|
|
4495
|
+
*/
|
|
4496
|
+
export declare class BankApi extends BaseAPI {
|
|
4497
|
+
/**
|
|
4498
|
+
* Returns balances for the provided address.
|
|
4499
|
+
* @param {string} address
|
|
4500
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4501
|
+
* @param {*} [options] Override http request option.
|
|
4502
|
+
* @throws {RequiredError}
|
|
4503
|
+
* @memberof BankApi
|
|
4504
|
+
*/
|
|
4505
|
+
balances(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<BalancesResponse, any>>;
|
|
4506
|
+
}
|
|
4193
4507
|
/**
|
|
4194
4508
|
* BlockApi - axios parameter creator
|
|
4195
4509
|
* @export
|
|
@@ -4400,6 +4714,57 @@ export declare class CloutApi extends BaseAPI {
|
|
|
4400
4714
|
*/
|
|
4401
4715
|
swapperClout(address: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SwapperCloutResponse, any>>;
|
|
4402
4716
|
}
|
|
4717
|
+
/**
|
|
4718
|
+
* ExportApi - axios parameter creator
|
|
4719
|
+
* @export
|
|
4720
|
+
*/
|
|
4721
|
+
export declare const ExportApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4722
|
+
/**
|
|
4723
|
+
* Returns genesis export
|
|
4724
|
+
* @param {*} [options] Override http request option.
|
|
4725
|
+
* @throws {RequiredError}
|
|
4726
|
+
*/
|
|
4727
|
+
_export: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4728
|
+
};
|
|
4729
|
+
/**
|
|
4730
|
+
* ExportApi - functional programming interface
|
|
4731
|
+
* @export
|
|
4732
|
+
*/
|
|
4733
|
+
export declare const ExportApiFp: (configuration?: Configuration) => {
|
|
4734
|
+
/**
|
|
4735
|
+
* Returns genesis export
|
|
4736
|
+
* @param {*} [options] Override http request option.
|
|
4737
|
+
* @throws {RequiredError}
|
|
4738
|
+
*/
|
|
4739
|
+
_export(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
|
|
4740
|
+
};
|
|
4741
|
+
/**
|
|
4742
|
+
* ExportApi - factory interface
|
|
4743
|
+
* @export
|
|
4744
|
+
*/
|
|
4745
|
+
export declare const ExportApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4746
|
+
/**
|
|
4747
|
+
* Returns genesis export
|
|
4748
|
+
* @param {*} [options] Override http request option.
|
|
4749
|
+
* @throws {RequiredError}
|
|
4750
|
+
*/
|
|
4751
|
+
_export(options?: any): AxiosPromise<object>;
|
|
4752
|
+
};
|
|
4753
|
+
/**
|
|
4754
|
+
* ExportApi - object-oriented interface
|
|
4755
|
+
* @export
|
|
4756
|
+
* @class ExportApi
|
|
4757
|
+
* @extends {BaseAPI}
|
|
4758
|
+
*/
|
|
4759
|
+
export declare class ExportApi extends BaseAPI {
|
|
4760
|
+
/**
|
|
4761
|
+
* Returns genesis export
|
|
4762
|
+
* @param {*} [options] Override http request option.
|
|
4763
|
+
* @throws {RequiredError}
|
|
4764
|
+
* @memberof ExportApi
|
|
4765
|
+
*/
|
|
4766
|
+
_export(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
|
|
4767
|
+
}
|
|
4403
4768
|
/**
|
|
4404
4769
|
* HealthApi - axios parameter creator
|
|
4405
4770
|
* @export
|
|
@@ -4885,6 +5250,29 @@ export declare const NetworkApiAxiosParamCreator: (configuration?: Configuration
|
|
|
4885
5250
|
* @throws {RequiredError}
|
|
4886
5251
|
*/
|
|
4887
5252
|
ragnarok: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5253
|
+
/**
|
|
5254
|
+
* Returns the upgrade proposal for the provided name.
|
|
5255
|
+
* @param {string} name
|
|
5256
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5257
|
+
* @param {*} [options] Override http request option.
|
|
5258
|
+
* @throws {RequiredError}
|
|
5259
|
+
*/
|
|
5260
|
+
upgradeProposal: (name: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5261
|
+
/**
|
|
5262
|
+
* Returns the current upgrade proposals.
|
|
5263
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5264
|
+
* @param {*} [options] Override http request option.
|
|
5265
|
+
* @throws {RequiredError}
|
|
5266
|
+
*/
|
|
5267
|
+
upgradeProposals: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
5268
|
+
/**
|
|
5269
|
+
* Returns the upgrade votes for the provided name.
|
|
5270
|
+
* @param {string} name
|
|
5271
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5272
|
+
* @param {*} [options] Override http request option.
|
|
5273
|
+
* @throws {RequiredError}
|
|
5274
|
+
*/
|
|
5275
|
+
upgradeVotes: (name: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
4888
5276
|
/**
|
|
4889
5277
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
4890
5278
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -4964,6 +5352,29 @@ export declare const NetworkApiFp: (configuration?: Configuration) => {
|
|
|
4964
5352
|
* @throws {RequiredError}
|
|
4965
5353
|
*/
|
|
4966
5354
|
ragnarok(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
5355
|
+
/**
|
|
5356
|
+
* Returns the upgrade proposal for the provided name.
|
|
5357
|
+
* @param {string} name
|
|
5358
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5359
|
+
* @param {*} [options] Override http request option.
|
|
5360
|
+
* @throws {RequiredError}
|
|
5361
|
+
*/
|
|
5362
|
+
upgradeProposal(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpgradeProposal>>;
|
|
5363
|
+
/**
|
|
5364
|
+
* Returns the current upgrade proposals.
|
|
5365
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5366
|
+
* @param {*} [options] Override http request option.
|
|
5367
|
+
* @throws {RequiredError}
|
|
5368
|
+
*/
|
|
5369
|
+
upgradeProposals(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpgradeProposalsResponse>>;
|
|
5370
|
+
/**
|
|
5371
|
+
* Returns the upgrade votes for the provided name.
|
|
5372
|
+
* @param {string} name
|
|
5373
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5374
|
+
* @param {*} [options] Override http request option.
|
|
5375
|
+
* @throws {RequiredError}
|
|
5376
|
+
*/
|
|
5377
|
+
upgradeVotes(name: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpgradeVotesResponse>>;
|
|
4967
5378
|
/**
|
|
4968
5379
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
4969
5380
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -5043,6 +5454,29 @@ export declare const NetworkApiFactory: (configuration?: Configuration, basePath
|
|
|
5043
5454
|
* @throws {RequiredError}
|
|
5044
5455
|
*/
|
|
5045
5456
|
ragnarok(height?: number, options?: any): AxiosPromise<boolean>;
|
|
5457
|
+
/**
|
|
5458
|
+
* Returns the upgrade proposal for the provided name.
|
|
5459
|
+
* @param {string} name
|
|
5460
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5461
|
+
* @param {*} [options] Override http request option.
|
|
5462
|
+
* @throws {RequiredError}
|
|
5463
|
+
*/
|
|
5464
|
+
upgradeProposal(name: string, height?: number, options?: any): AxiosPromise<UpgradeProposal>;
|
|
5465
|
+
/**
|
|
5466
|
+
* Returns the current upgrade proposals.
|
|
5467
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5468
|
+
* @param {*} [options] Override http request option.
|
|
5469
|
+
* @throws {RequiredError}
|
|
5470
|
+
*/
|
|
5471
|
+
upgradeProposals(height?: number, options?: any): AxiosPromise<UpgradeProposalsResponse>;
|
|
5472
|
+
/**
|
|
5473
|
+
* Returns the upgrade votes for the provided name.
|
|
5474
|
+
* @param {string} name
|
|
5475
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5476
|
+
* @param {*} [options] Override http request option.
|
|
5477
|
+
* @throws {RequiredError}
|
|
5478
|
+
*/
|
|
5479
|
+
upgradeVotes(name: string, height?: number, options?: any): AxiosPromise<UpgradeVotesResponse>;
|
|
5046
5480
|
/**
|
|
5047
5481
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
5048
5482
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -5133,6 +5567,32 @@ export declare class NetworkApi extends BaseAPI {
|
|
|
5133
5567
|
* @memberof NetworkApi
|
|
5134
5568
|
*/
|
|
5135
5569
|
ragnarok(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
5570
|
+
/**
|
|
5571
|
+
* Returns the upgrade proposal for the provided name.
|
|
5572
|
+
* @param {string} name
|
|
5573
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5574
|
+
* @param {*} [options] Override http request option.
|
|
5575
|
+
* @throws {RequiredError}
|
|
5576
|
+
* @memberof NetworkApi
|
|
5577
|
+
*/
|
|
5578
|
+
upgradeProposal(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpgradeProposal, any>>;
|
|
5579
|
+
/**
|
|
5580
|
+
* Returns the current upgrade proposals.
|
|
5581
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5582
|
+
* @param {*} [options] Override http request option.
|
|
5583
|
+
* @throws {RequiredError}
|
|
5584
|
+
* @memberof NetworkApi
|
|
5585
|
+
*/
|
|
5586
|
+
upgradeProposals(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpgradeProposalsResponse, any>>;
|
|
5587
|
+
/**
|
|
5588
|
+
* Returns the upgrade votes for the provided name.
|
|
5589
|
+
* @param {string} name
|
|
5590
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
5591
|
+
* @param {*} [options] Override http request option.
|
|
5592
|
+
* @throws {RequiredError}
|
|
5593
|
+
* @memberof NetworkApi
|
|
5594
|
+
*/
|
|
5595
|
+
upgradeVotes(name: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpgradeVotesResponse, any>>;
|
|
5136
5596
|
/**
|
|
5137
5597
|
* Returns the network\'s current THORNode version, the network\'s next THORNode version, and the querier\'s THORNode version.
|
|
5138
5598
|
* @param {number} [height] optional block height, defaults to current tip
|
|
@@ -6102,6 +6562,120 @@ export declare class SaversApi extends BaseAPI {
|
|
|
6102
6562
|
*/
|
|
6103
6563
|
savers(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SaversResponse, any>>;
|
|
6104
6564
|
}
|
|
6565
|
+
/**
|
|
6566
|
+
* SecuredAssetApi - axios parameter creator
|
|
6567
|
+
* @export
|
|
6568
|
+
*/
|
|
6569
|
+
export declare const SecuredAssetApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6570
|
+
/**
|
|
6571
|
+
* Returns the total size and ratio of a secured asset
|
|
6572
|
+
* @param {string} asset
|
|
6573
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6574
|
+
* @param {*} [options] Override http request option.
|
|
6575
|
+
* @throws {RequiredError}
|
|
6576
|
+
*/
|
|
6577
|
+
securedAsset: (asset: string, height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6578
|
+
};
|
|
6579
|
+
/**
|
|
6580
|
+
* SecuredAssetApi - functional programming interface
|
|
6581
|
+
* @export
|
|
6582
|
+
*/
|
|
6583
|
+
export declare const SecuredAssetApiFp: (configuration?: Configuration) => {
|
|
6584
|
+
/**
|
|
6585
|
+
* Returns the total size and ratio of a secured asset
|
|
6586
|
+
* @param {string} asset
|
|
6587
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6588
|
+
* @param {*} [options] Override http request option.
|
|
6589
|
+
* @throws {RequiredError}
|
|
6590
|
+
*/
|
|
6591
|
+
securedAsset(asset: string, height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecuredAssetResponse>>;
|
|
6592
|
+
};
|
|
6593
|
+
/**
|
|
6594
|
+
* SecuredAssetApi - factory interface
|
|
6595
|
+
* @export
|
|
6596
|
+
*/
|
|
6597
|
+
export declare const SecuredAssetApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6598
|
+
/**
|
|
6599
|
+
* Returns the total size and ratio of a secured asset
|
|
6600
|
+
* @param {string} asset
|
|
6601
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6602
|
+
* @param {*} [options] Override http request option.
|
|
6603
|
+
* @throws {RequiredError}
|
|
6604
|
+
*/
|
|
6605
|
+
securedAsset(asset: string, height?: number, options?: any): AxiosPromise<SecuredAssetResponse>;
|
|
6606
|
+
};
|
|
6607
|
+
/**
|
|
6608
|
+
* SecuredAssetApi - object-oriented interface
|
|
6609
|
+
* @export
|
|
6610
|
+
* @class SecuredAssetApi
|
|
6611
|
+
* @extends {BaseAPI}
|
|
6612
|
+
*/
|
|
6613
|
+
export declare class SecuredAssetApi extends BaseAPI {
|
|
6614
|
+
/**
|
|
6615
|
+
* Returns the total size and ratio of a secured asset
|
|
6616
|
+
* @param {string} asset
|
|
6617
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6618
|
+
* @param {*} [options] Override http request option.
|
|
6619
|
+
* @throws {RequiredError}
|
|
6620
|
+
* @memberof SecuredAssetApi
|
|
6621
|
+
*/
|
|
6622
|
+
securedAsset(asset: string, height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecuredAssetResponse, any>>;
|
|
6623
|
+
}
|
|
6624
|
+
/**
|
|
6625
|
+
* SecuredAssetsApi - axios parameter creator
|
|
6626
|
+
* @export
|
|
6627
|
+
*/
|
|
6628
|
+
export declare const SecuredAssetsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
6629
|
+
/**
|
|
6630
|
+
* Returns the total size and ratio of all secured asset
|
|
6631
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6632
|
+
* @param {*} [options] Override http request option.
|
|
6633
|
+
* @throws {RequiredError}
|
|
6634
|
+
*/
|
|
6635
|
+
securedAssets: (height?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
6636
|
+
};
|
|
6637
|
+
/**
|
|
6638
|
+
* SecuredAssetsApi - functional programming interface
|
|
6639
|
+
* @export
|
|
6640
|
+
*/
|
|
6641
|
+
export declare const SecuredAssetsApiFp: (configuration?: Configuration) => {
|
|
6642
|
+
/**
|
|
6643
|
+
* Returns the total size and ratio of all secured asset
|
|
6644
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6645
|
+
* @param {*} [options] Override http request option.
|
|
6646
|
+
* @throws {RequiredError}
|
|
6647
|
+
*/
|
|
6648
|
+
securedAssets(height?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecuredAssetsResponse>>;
|
|
6649
|
+
};
|
|
6650
|
+
/**
|
|
6651
|
+
* SecuredAssetsApi - factory interface
|
|
6652
|
+
* @export
|
|
6653
|
+
*/
|
|
6654
|
+
export declare const SecuredAssetsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
6655
|
+
/**
|
|
6656
|
+
* Returns the total size and ratio of all secured asset
|
|
6657
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6658
|
+
* @param {*} [options] Override http request option.
|
|
6659
|
+
* @throws {RequiredError}
|
|
6660
|
+
*/
|
|
6661
|
+
securedAssets(height?: number, options?: any): AxiosPromise<SecuredAssetsResponse>;
|
|
6662
|
+
};
|
|
6663
|
+
/**
|
|
6664
|
+
* SecuredAssetsApi - object-oriented interface
|
|
6665
|
+
* @export
|
|
6666
|
+
* @class SecuredAssetsApi
|
|
6667
|
+
* @extends {BaseAPI}
|
|
6668
|
+
*/
|
|
6669
|
+
export declare class SecuredAssetsApi extends BaseAPI {
|
|
6670
|
+
/**
|
|
6671
|
+
* Returns the total size and ratio of all secured asset
|
|
6672
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
6673
|
+
* @param {*} [options] Override http request option.
|
|
6674
|
+
* @throws {RequiredError}
|
|
6675
|
+
* @memberof SecuredAssetsApi
|
|
6676
|
+
*/
|
|
6677
|
+
securedAssets(height?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecuredAssetsResponse, any>>;
|
|
6678
|
+
}
|
|
6105
6679
|
/**
|
|
6106
6680
|
* StreamingSwapApi - axios parameter creator
|
|
6107
6681
|
* @export
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 3.1.1
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 3.1.1
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Thornode API
|
|
3
3
|
* Thornode REST API.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 1.
|
|
5
|
+
* The version of the OpenAPI document: 3.1.1
|
|
6
6
|
* Contact: devs@thorchain.org
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|