@xchainjs/xchain-thornode 1.0.0 → 1.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.
- package/lib/generated/thornodeApi/api.d.ts +333 -21
- 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 +337 -12
- package/lib/index.js +344 -11
- package/package.json +2 -2
package/lib/index.esm.js
CHANGED
|
@@ -38,7 +38,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
38
38
|
* Thornode API
|
|
39
39
|
* Thornode REST API.
|
|
40
40
|
*
|
|
41
|
-
* The version of the OpenAPI document: 3.
|
|
41
|
+
* The version of the OpenAPI document: 3.5.1
|
|
42
42
|
* Contact: devs@thorchain.org
|
|
43
43
|
*
|
|
44
44
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -83,7 +83,7 @@ class RequiredError extends Error {
|
|
|
83
83
|
* Thornode API
|
|
84
84
|
* Thornode REST API.
|
|
85
85
|
*
|
|
86
|
-
* The version of the OpenAPI document: 3.
|
|
86
|
+
* The version of the OpenAPI document: 3.5.1
|
|
87
87
|
* Contact: devs@thorchain.org
|
|
88
88
|
*
|
|
89
89
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -156,7 +156,7 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
|
|
|
156
156
|
* Thornode API
|
|
157
157
|
* Thornode REST API.
|
|
158
158
|
*
|
|
159
|
-
* The version of the OpenAPI document: 3.
|
|
159
|
+
* The version of the OpenAPI document: 3.5.1
|
|
160
160
|
* Contact: devs@thorchain.org
|
|
161
161
|
*
|
|
162
162
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3503,12 +3503,13 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
3503
3503
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
3504
3504
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
3505
3505
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
3506
|
+
* @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
|
|
3506
3507
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
3507
3508
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
3508
3509
|
* @param {*} [options] Override http request option.
|
|
3509
3510
|
* @throws {RequiredError}
|
|
3510
3511
|
*/
|
|
3511
|
-
quoteswap: (height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3512
|
+
quoteswap: (height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3512
3513
|
const localVarPath = `/thorchain/quote/swap`;
|
|
3513
3514
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3514
3515
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3546,6 +3547,9 @@ const QuoteApiAxiosParamCreator = function (configuration) {
|
|
|
3546
3547
|
if (toleranceBps !== undefined) {
|
|
3547
3548
|
localVarQueryParameter['tolerance_bps'] = toleranceBps;
|
|
3548
3549
|
}
|
|
3550
|
+
if (liquidityToleranceBps !== undefined) {
|
|
3551
|
+
localVarQueryParameter['liquidity_tolerance_bps'] = liquidityToleranceBps;
|
|
3552
|
+
}
|
|
3549
3553
|
if (affiliateBps !== undefined) {
|
|
3550
3554
|
localVarQueryParameter['affiliate_bps'] = affiliateBps;
|
|
3551
3555
|
}
|
|
@@ -3645,14 +3649,15 @@ const QuoteApiFp = function (configuration) {
|
|
|
3645
3649
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
3646
3650
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
3647
3651
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
3652
|
+
* @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
|
|
3648
3653
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
3649
3654
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
3650
3655
|
* @param {*} [options] Override http request option.
|
|
3651
3656
|
* @throws {RequiredError}
|
|
3652
3657
|
*/
|
|
3653
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3658
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
|
|
3654
3659
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3655
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options);
|
|
3660
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options);
|
|
3656
3661
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3657
3662
|
});
|
|
3658
3663
|
},
|
|
@@ -3729,13 +3734,14 @@ const QuoteApiFactory = function (configuration, basePath, axios) {
|
|
|
3729
3734
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
3730
3735
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
3731
3736
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
3737
|
+
* @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
|
|
3732
3738
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
3733
3739
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
3734
3740
|
* @param {*} [options] Override http request option.
|
|
3735
3741
|
* @throws {RequiredError}
|
|
3736
3742
|
*/
|
|
3737
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3738
|
-
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
3743
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
|
|
3744
|
+
return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
|
|
3739
3745
|
},
|
|
3740
3746
|
};
|
|
3741
3747
|
};
|
|
@@ -3814,14 +3820,15 @@ class QuoteApi extends BaseAPI {
|
|
|
3814
3820
|
* @param {number} [streamingInterval] the interval in which streaming swaps are swapped
|
|
3815
3821
|
* @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
|
|
3816
3822
|
* @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
|
|
3823
|
+
* @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
|
|
3817
3824
|
* @param {number} [affiliateBps] the affiliate fee in basis points
|
|
3818
3825
|
* @param {string} [affiliate] the affiliate (address or thorname)
|
|
3819
3826
|
* @param {*} [options] Override http request option.
|
|
3820
3827
|
* @throws {RequiredError}
|
|
3821
3828
|
* @memberof QuoteApi
|
|
3822
3829
|
*/
|
|
3823
|
-
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options) {
|
|
3824
|
-
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
3830
|
+
quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
|
|
3831
|
+
return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
|
|
3825
3832
|
}
|
|
3826
3833
|
}
|
|
3827
3834
|
/**
|
|
@@ -4567,6 +4574,324 @@ class StreamingSwapApi extends BaseAPI {
|
|
|
4567
4574
|
return StreamingSwapApiFp(this.configuration).streamSwaps(height, options).then((request) => request(this.axios, this.basePath));
|
|
4568
4575
|
}
|
|
4569
4576
|
}
|
|
4577
|
+
/**
|
|
4578
|
+
* TCYClaimersApi - axios parameter creator
|
|
4579
|
+
* @export
|
|
4580
|
+
*/
|
|
4581
|
+
const TCYClaimersApiAxiosParamCreator = function (configuration) {
|
|
4582
|
+
return {
|
|
4583
|
+
/**
|
|
4584
|
+
* Returns the tcy claimer information for an address.
|
|
4585
|
+
* @param {string} address
|
|
4586
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4587
|
+
* @param {*} [options] Override http request option.
|
|
4588
|
+
* @throws {RequiredError}
|
|
4589
|
+
*/
|
|
4590
|
+
tcyClaimer: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4591
|
+
// verify required parameter 'address' is not null or undefined
|
|
4592
|
+
assertParamExists('tcyClaimer', 'address', address);
|
|
4593
|
+
const localVarPath = `/thorchain/tcy_claimer/{address}`
|
|
4594
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
4595
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4596
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4597
|
+
let baseOptions;
|
|
4598
|
+
if (configuration) {
|
|
4599
|
+
baseOptions = configuration.baseOptions;
|
|
4600
|
+
}
|
|
4601
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4602
|
+
const localVarHeaderParameter = {};
|
|
4603
|
+
const localVarQueryParameter = {};
|
|
4604
|
+
if (height !== undefined) {
|
|
4605
|
+
localVarQueryParameter['height'] = height;
|
|
4606
|
+
}
|
|
4607
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4609
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4610
|
+
return {
|
|
4611
|
+
url: toPathString(localVarUrlObj),
|
|
4612
|
+
options: localVarRequestOptions,
|
|
4613
|
+
};
|
|
4614
|
+
}),
|
|
4615
|
+
/**
|
|
4616
|
+
* Returns all tcy claimers information.
|
|
4617
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4618
|
+
* @param {*} [options] Override http request option.
|
|
4619
|
+
* @throws {RequiredError}
|
|
4620
|
+
*/
|
|
4621
|
+
tcyClaimers: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4622
|
+
const localVarPath = `/thorchain/tcy_claimers`;
|
|
4623
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4624
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4625
|
+
let baseOptions;
|
|
4626
|
+
if (configuration) {
|
|
4627
|
+
baseOptions = configuration.baseOptions;
|
|
4628
|
+
}
|
|
4629
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4630
|
+
const localVarHeaderParameter = {};
|
|
4631
|
+
const localVarQueryParameter = {};
|
|
4632
|
+
if (height !== undefined) {
|
|
4633
|
+
localVarQueryParameter['height'] = height;
|
|
4634
|
+
}
|
|
4635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4638
|
+
return {
|
|
4639
|
+
url: toPathString(localVarUrlObj),
|
|
4640
|
+
options: localVarRequestOptions,
|
|
4641
|
+
};
|
|
4642
|
+
}),
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
/**
|
|
4646
|
+
* TCYClaimersApi - functional programming interface
|
|
4647
|
+
* @export
|
|
4648
|
+
*/
|
|
4649
|
+
const TCYClaimersApiFp = function (configuration) {
|
|
4650
|
+
const localVarAxiosParamCreator = TCYClaimersApiAxiosParamCreator(configuration);
|
|
4651
|
+
return {
|
|
4652
|
+
/**
|
|
4653
|
+
* Returns the tcy claimer information for an address.
|
|
4654
|
+
* @param {string} address
|
|
4655
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4656
|
+
* @param {*} [options] Override http request option.
|
|
4657
|
+
* @throws {RequiredError}
|
|
4658
|
+
*/
|
|
4659
|
+
tcyClaimer(address, height, options) {
|
|
4660
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4661
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tcyClaimer(address, height, options);
|
|
4662
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4663
|
+
});
|
|
4664
|
+
},
|
|
4665
|
+
/**
|
|
4666
|
+
* Returns all tcy claimers information.
|
|
4667
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4668
|
+
* @param {*} [options] Override http request option.
|
|
4669
|
+
* @throws {RequiredError}
|
|
4670
|
+
*/
|
|
4671
|
+
tcyClaimers(height, options) {
|
|
4672
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tcyClaimers(height, options);
|
|
4674
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4675
|
+
});
|
|
4676
|
+
},
|
|
4677
|
+
};
|
|
4678
|
+
};
|
|
4679
|
+
/**
|
|
4680
|
+
* TCYClaimersApi - factory interface
|
|
4681
|
+
* @export
|
|
4682
|
+
*/
|
|
4683
|
+
const TCYClaimersApiFactory = function (configuration, basePath, axios) {
|
|
4684
|
+
const localVarFp = TCYClaimersApiFp(configuration);
|
|
4685
|
+
return {
|
|
4686
|
+
/**
|
|
4687
|
+
* Returns the tcy claimer information for an address.
|
|
4688
|
+
* @param {string} address
|
|
4689
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4690
|
+
* @param {*} [options] Override http request option.
|
|
4691
|
+
* @throws {RequiredError}
|
|
4692
|
+
*/
|
|
4693
|
+
tcyClaimer(address, height, options) {
|
|
4694
|
+
return localVarFp.tcyClaimer(address, height, options).then((request) => request(axios, basePath));
|
|
4695
|
+
},
|
|
4696
|
+
/**
|
|
4697
|
+
* Returns all tcy claimers information.
|
|
4698
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4699
|
+
* @param {*} [options] Override http request option.
|
|
4700
|
+
* @throws {RequiredError}
|
|
4701
|
+
*/
|
|
4702
|
+
tcyClaimers(height, options) {
|
|
4703
|
+
return localVarFp.tcyClaimers(height, options).then((request) => request(axios, basePath));
|
|
4704
|
+
},
|
|
4705
|
+
};
|
|
4706
|
+
};
|
|
4707
|
+
/**
|
|
4708
|
+
* TCYClaimersApi - object-oriented interface
|
|
4709
|
+
* @export
|
|
4710
|
+
* @class TCYClaimersApi
|
|
4711
|
+
* @extends {BaseAPI}
|
|
4712
|
+
*/
|
|
4713
|
+
class TCYClaimersApi extends BaseAPI {
|
|
4714
|
+
/**
|
|
4715
|
+
* Returns the tcy claimer information for an address.
|
|
4716
|
+
* @param {string} address
|
|
4717
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4718
|
+
* @param {*} [options] Override http request option.
|
|
4719
|
+
* @throws {RequiredError}
|
|
4720
|
+
* @memberof TCYClaimersApi
|
|
4721
|
+
*/
|
|
4722
|
+
tcyClaimer(address, height, options) {
|
|
4723
|
+
return TCYClaimersApiFp(this.configuration).tcyClaimer(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
* Returns all tcy claimers information.
|
|
4727
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4728
|
+
* @param {*} [options] Override http request option.
|
|
4729
|
+
* @throws {RequiredError}
|
|
4730
|
+
* @memberof TCYClaimersApi
|
|
4731
|
+
*/
|
|
4732
|
+
tcyClaimers(height, options) {
|
|
4733
|
+
return TCYClaimersApiFp(this.configuration).tcyClaimers(height, options).then((request) => request(this.axios, this.basePath));
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
/**
|
|
4737
|
+
* TCYStakersApi - axios parameter creator
|
|
4738
|
+
* @export
|
|
4739
|
+
*/
|
|
4740
|
+
const TCYStakersApiAxiosParamCreator = function (configuration) {
|
|
4741
|
+
return {
|
|
4742
|
+
/**
|
|
4743
|
+
* Returns the tcy staker information for an address.
|
|
4744
|
+
* @param {string} address
|
|
4745
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4746
|
+
* @param {*} [options] Override http request option.
|
|
4747
|
+
* @throws {RequiredError}
|
|
4748
|
+
*/
|
|
4749
|
+
tcyStaker: (address, height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4750
|
+
// verify required parameter 'address' is not null or undefined
|
|
4751
|
+
assertParamExists('tcyStaker', 'address', address);
|
|
4752
|
+
const localVarPath = `/thorchain/tcy_staker/{address}`
|
|
4753
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
4754
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4755
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4756
|
+
let baseOptions;
|
|
4757
|
+
if (configuration) {
|
|
4758
|
+
baseOptions = configuration.baseOptions;
|
|
4759
|
+
}
|
|
4760
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4761
|
+
const localVarHeaderParameter = {};
|
|
4762
|
+
const localVarQueryParameter = {};
|
|
4763
|
+
if (height !== undefined) {
|
|
4764
|
+
localVarQueryParameter['height'] = height;
|
|
4765
|
+
}
|
|
4766
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4767
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4768
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4769
|
+
return {
|
|
4770
|
+
url: toPathString(localVarUrlObj),
|
|
4771
|
+
options: localVarRequestOptions,
|
|
4772
|
+
};
|
|
4773
|
+
}),
|
|
4774
|
+
/**
|
|
4775
|
+
* Returns all tcy stakers information.
|
|
4776
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4777
|
+
* @param {*} [options] Override http request option.
|
|
4778
|
+
* @throws {RequiredError}
|
|
4779
|
+
*/
|
|
4780
|
+
tcyStakers: (height, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4781
|
+
const localVarPath = `/thorchain/tcy_stakers`;
|
|
4782
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4783
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4784
|
+
let baseOptions;
|
|
4785
|
+
if (configuration) {
|
|
4786
|
+
baseOptions = configuration.baseOptions;
|
|
4787
|
+
}
|
|
4788
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4789
|
+
const localVarHeaderParameter = {};
|
|
4790
|
+
const localVarQueryParameter = {};
|
|
4791
|
+
if (height !== undefined) {
|
|
4792
|
+
localVarQueryParameter['height'] = height;
|
|
4793
|
+
}
|
|
4794
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4795
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4796
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4797
|
+
return {
|
|
4798
|
+
url: toPathString(localVarUrlObj),
|
|
4799
|
+
options: localVarRequestOptions,
|
|
4800
|
+
};
|
|
4801
|
+
}),
|
|
4802
|
+
};
|
|
4803
|
+
};
|
|
4804
|
+
/**
|
|
4805
|
+
* TCYStakersApi - functional programming interface
|
|
4806
|
+
* @export
|
|
4807
|
+
*/
|
|
4808
|
+
const TCYStakersApiFp = function (configuration) {
|
|
4809
|
+
const localVarAxiosParamCreator = TCYStakersApiAxiosParamCreator(configuration);
|
|
4810
|
+
return {
|
|
4811
|
+
/**
|
|
4812
|
+
* Returns the tcy staker information for an address.
|
|
4813
|
+
* @param {string} address
|
|
4814
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4815
|
+
* @param {*} [options] Override http request option.
|
|
4816
|
+
* @throws {RequiredError}
|
|
4817
|
+
*/
|
|
4818
|
+
tcyStaker(address, height, options) {
|
|
4819
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4820
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tcyStaker(address, height, options);
|
|
4821
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4822
|
+
});
|
|
4823
|
+
},
|
|
4824
|
+
/**
|
|
4825
|
+
* Returns all tcy stakers information.
|
|
4826
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4827
|
+
* @param {*} [options] Override http request option.
|
|
4828
|
+
* @throws {RequiredError}
|
|
4829
|
+
*/
|
|
4830
|
+
tcyStakers(height, options) {
|
|
4831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4832
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.tcyStakers(height, options);
|
|
4833
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4834
|
+
});
|
|
4835
|
+
},
|
|
4836
|
+
};
|
|
4837
|
+
};
|
|
4838
|
+
/**
|
|
4839
|
+
* TCYStakersApi - factory interface
|
|
4840
|
+
* @export
|
|
4841
|
+
*/
|
|
4842
|
+
const TCYStakersApiFactory = function (configuration, basePath, axios) {
|
|
4843
|
+
const localVarFp = TCYStakersApiFp(configuration);
|
|
4844
|
+
return {
|
|
4845
|
+
/**
|
|
4846
|
+
* Returns the tcy staker information for an address.
|
|
4847
|
+
* @param {string} address
|
|
4848
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4849
|
+
* @param {*} [options] Override http request option.
|
|
4850
|
+
* @throws {RequiredError}
|
|
4851
|
+
*/
|
|
4852
|
+
tcyStaker(address, height, options) {
|
|
4853
|
+
return localVarFp.tcyStaker(address, height, options).then((request) => request(axios, basePath));
|
|
4854
|
+
},
|
|
4855
|
+
/**
|
|
4856
|
+
* Returns all tcy stakers information.
|
|
4857
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4858
|
+
* @param {*} [options] Override http request option.
|
|
4859
|
+
* @throws {RequiredError}
|
|
4860
|
+
*/
|
|
4861
|
+
tcyStakers(height, options) {
|
|
4862
|
+
return localVarFp.tcyStakers(height, options).then((request) => request(axios, basePath));
|
|
4863
|
+
},
|
|
4864
|
+
};
|
|
4865
|
+
};
|
|
4866
|
+
/**
|
|
4867
|
+
* TCYStakersApi - object-oriented interface
|
|
4868
|
+
* @export
|
|
4869
|
+
* @class TCYStakersApi
|
|
4870
|
+
* @extends {BaseAPI}
|
|
4871
|
+
*/
|
|
4872
|
+
class TCYStakersApi extends BaseAPI {
|
|
4873
|
+
/**
|
|
4874
|
+
* Returns the tcy staker information for an address.
|
|
4875
|
+
* @param {string} address
|
|
4876
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4877
|
+
* @param {*} [options] Override http request option.
|
|
4878
|
+
* @throws {RequiredError}
|
|
4879
|
+
* @memberof TCYStakersApi
|
|
4880
|
+
*/
|
|
4881
|
+
tcyStaker(address, height, options) {
|
|
4882
|
+
return TCYStakersApiFp(this.configuration).tcyStaker(address, height, options).then((request) => request(this.axios, this.basePath));
|
|
4883
|
+
}
|
|
4884
|
+
/**
|
|
4885
|
+
* Returns all tcy stakers information.
|
|
4886
|
+
* @param {number} [height] optional block height, defaults to current tip
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
* @memberof TCYStakersApi
|
|
4890
|
+
*/
|
|
4891
|
+
tcyStakers(height, options) {
|
|
4892
|
+
return TCYStakersApiFp(this.configuration).tcyStakers(height, options).then((request) => request(this.axios, this.basePath));
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4570
4895
|
/**
|
|
4571
4896
|
* TSSApi - axios parameter creator
|
|
4572
4897
|
* @export
|
|
@@ -6058,7 +6383,7 @@ class VaultsApi extends BaseAPI {
|
|
|
6058
6383
|
* Thornode API
|
|
6059
6384
|
* Thornode REST API.
|
|
6060
6385
|
*
|
|
6061
|
-
* The version of the OpenAPI document: 3.
|
|
6386
|
+
* The version of the OpenAPI document: 3.5.1
|
|
6062
6387
|
* Contact: devs@thorchain.org
|
|
6063
6388
|
*
|
|
6064
6389
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6096,4 +6421,4 @@ class Configuration {
|
|
|
6096
6421
|
*/
|
|
6097
6422
|
const THORNODE_API_9R_URL = 'https://thornode.ninerealms.com/';
|
|
6098
6423
|
|
|
6099
|
-
export { AuthApi, AuthApiAxiosParamCreator, AuthApiFactory, AuthApiFp, BankApi, BankApiAxiosParamCreator, BankApiFactory, BankApiFp, BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, CloutApi, CloutApiAxiosParamCreator, CloutApiFactory, CloutApiFp, Configuration, ExportApi, ExportApiAxiosParamCreator, ExportApiFactory, ExportApiFp, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, RUNEPoolApi, RUNEPoolApiAxiosParamCreator, RUNEPoolApiFactory, RUNEPoolApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, SecuredAssetApi, SecuredAssetApiAxiosParamCreator, SecuredAssetApiFactory, SecuredAssetApiFp, SecuredAssetsApi, SecuredAssetsApiAxiosParamCreator, SecuredAssetsApiFactory, SecuredAssetsApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TradeAccountApi, TradeAccountApiAxiosParamCreator, TradeAccountApiFactory, TradeAccountApiFp, TradeAccountsApi, TradeAccountsApiAxiosParamCreator, TradeAccountsApiFactory, TradeAccountsApiFp, TradeUnitApi, TradeUnitApiAxiosParamCreator, TradeUnitApiFactory, TradeUnitApiFp, TradeUnitsApi, TradeUnitsApiAxiosParamCreator, TradeUnitsApiFactory, TradeUnitsApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, UpgradeVoteVoteEnum, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp, YggdrasilVaultTypeEnum };
|
|
6424
|
+
export { AuthApi, AuthApiAxiosParamCreator, AuthApiFactory, AuthApiFp, BankApi, BankApiAxiosParamCreator, BankApiFactory, BankApiFp, BlockApi, BlockApiAxiosParamCreator, BlockApiFactory, BlockApiFp, BorrowersApi, BorrowersApiAxiosParamCreator, BorrowersApiFactory, BorrowersApiFp, CloutApi, CloutApiAxiosParamCreator, CloutApiFactory, CloutApiFp, Configuration, ExportApi, ExportApiAxiosParamCreator, ExportApiFactory, ExportApiFp, HealthApi, HealthApiAxiosParamCreator, HealthApiFactory, HealthApiFp, InvariantsApi, InvariantsApiAxiosParamCreator, InvariantsApiFactory, InvariantsApiFp, LiquidityProvidersApi, LiquidityProvidersApiAxiosParamCreator, LiquidityProvidersApiFactory, LiquidityProvidersApiFp, MimirApi, MimirApiAxiosParamCreator, MimirApiFactory, MimirApiFp, NetworkApi, NetworkApiAxiosParamCreator, NetworkApiFactory, NetworkApiFp, NodeStatusEnum, NodesApi, NodesApiAxiosParamCreator, NodesApiFactory, NodesApiFp, ObservedTxStatusEnum, PoolSlipApi, PoolSlipApiAxiosParamCreator, PoolSlipApiFactory, PoolSlipApiFp, PoolsApi, PoolsApiAxiosParamCreator, PoolsApiFactory, PoolsApiFp, QueueApi, QueueApiAxiosParamCreator, QueueApiFactory, QueueApiFp, QuoteApi, QuoteApiAxiosParamCreator, QuoteApiFactory, QuoteApiFp, RUNEPoolApi, RUNEPoolApiAxiosParamCreator, RUNEPoolApiFactory, RUNEPoolApiFp, SaversApi, SaversApiAxiosParamCreator, SaversApiFactory, SaversApiFp, SecuredAssetApi, SecuredAssetApiAxiosParamCreator, SecuredAssetApiFactory, SecuredAssetApiFp, SecuredAssetsApi, SecuredAssetsApiAxiosParamCreator, SecuredAssetsApiFactory, SecuredAssetsApiFp, StreamingSwapApi, StreamingSwapApiAxiosParamCreator, StreamingSwapApiFactory, StreamingSwapApiFp, TCYClaimersApi, TCYClaimersApiAxiosParamCreator, TCYClaimersApiFactory, TCYClaimersApiFp, TCYStakersApi, TCYStakersApiAxiosParamCreator, TCYStakersApiFactory, TCYStakersApiFp, THORNODE_API_9R_URL, TSSApi, TSSApiAxiosParamCreator, TSSApiFactory, TSSApiFp, ThornamesApi, ThornamesApiAxiosParamCreator, ThornamesApiFactory, ThornamesApiFp, TradeAccountApi, TradeAccountApiAxiosParamCreator, TradeAccountApiFactory, TradeAccountApiFp, TradeAccountsApi, TradeAccountsApiAxiosParamCreator, TradeAccountsApiFactory, TradeAccountsApiFp, TradeUnitApi, TradeUnitApiAxiosParamCreator, TradeUnitApiFactory, TradeUnitApiFp, TradeUnitsApi, TradeUnitsApiAxiosParamCreator, TradeUnitsApiFactory, TradeUnitsApiFp, TransactionsApi, TransactionsApiAxiosParamCreator, TransactionsApiFactory, TransactionsApiFp, UpgradeVoteVoteEnum, VaultTypeEnum, VaultsApi, VaultsApiAxiosParamCreator, VaultsApiFactory, VaultsApiFp, YggdrasilVaultTypeEnum };
|