@xchainjs/xchain-aggregator 2.2.0 → 2.2.1
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/index.esm.js +1019 -38
- package/lib/index.js +1019 -38
- package/package.json +7 -7
package/lib/index.js
CHANGED
|
@@ -4300,10 +4300,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
4300
4300
|
/* eslint-disable */
|
|
4301
4301
|
/**
|
|
4302
4302
|
* Midgard Public API
|
|
4303
|
-
* The Midgard Public API queries
|
|
4303
|
+
* The Midgard Public API queries MAYAChain and prepares information about the network to be readily available for public users. The API parses transaction event data from MAYAChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with MAYAChain protocol, users should query MAYANode directly.
|
|
4304
4304
|
*
|
|
4305
|
-
* The version of the OpenAPI document: 2.
|
|
4306
|
-
* Contact: devs@
|
|
4305
|
+
* The version of the OpenAPI document: 2.16.0
|
|
4306
|
+
* Contact: devs@mayaprotocol.com
|
|
4307
4307
|
*
|
|
4308
4308
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4309
4309
|
* https://openapi-generator.tech
|
|
@@ -4345,10 +4345,10 @@ let RequiredError$1 = class RequiredError extends Error {
|
|
|
4345
4345
|
/* eslint-disable */
|
|
4346
4346
|
/**
|
|
4347
4347
|
* Midgard Public API
|
|
4348
|
-
* The Midgard Public API queries
|
|
4348
|
+
* The Midgard Public API queries MAYAChain and prepares information about the network to be readily available for public users. The API parses transaction event data from MAYAChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with MAYAChain protocol, users should query MAYANode directly.
|
|
4349
4349
|
*
|
|
4350
|
-
* The version of the OpenAPI document: 2.
|
|
4351
|
-
* Contact: devs@
|
|
4350
|
+
* The version of the OpenAPI document: 2.16.0
|
|
4351
|
+
* Contact: devs@mayaprotocol.com
|
|
4352
4352
|
*
|
|
4353
4353
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4354
4354
|
* https://openapi-generator.tech
|
|
@@ -4425,7 +4425,7 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
4425
4425
|
* @param {string} [address] Comma separated list. Address of sender or recipient of any in/out transaction related to the action.
|
|
4426
4426
|
* @param {string} [txid] ID of any in/out tx related to the action
|
|
4427
4427
|
* @param {string} [asset] Comma separated list. Any asset that is part of the action (CHAIN.SYMBOL) Additionally, synth, nosynth, and norune filters can be used for swap, add/withdraw actions.
|
|
4428
|
-
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch)
|
|
4428
|
+
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch, mayaname, cacaoPoolDeposit, cacaoPoolWithdraw)
|
|
4429
4429
|
* @param {string} [affiliate] Comma separated list. Affiliate address of the action (swap, refund)
|
|
4430
4430
|
* @param {number} [limit] number of actions returned, default is 50
|
|
4431
4431
|
* @param {number} [offset] pagination offset, default is 0
|
|
@@ -4496,6 +4496,51 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
4496
4496
|
options: localVarRequestOptions,
|
|
4497
4497
|
};
|
|
4498
4498
|
}),
|
|
4499
|
+
/**
|
|
4500
|
+
* Returns affiliate count, volume in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
4501
|
+
* @summary Affiliate History
|
|
4502
|
+
* @param {string} [mayaname] Return history given mayaname. Returns sum of all mayanames if missing.
|
|
4503
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
4504
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
4505
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
4506
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
4507
|
+
* @param {*} [options] Override http request option.
|
|
4508
|
+
* @throws {RequiredError}
|
|
4509
|
+
*/
|
|
4510
|
+
getAffiliateHistory: (mayaname_1, interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$3(this, [mayaname_1, interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (mayaname, interval, count, to, from, options = {}) {
|
|
4511
|
+
const localVarPath = `/v2/history/affiliate`;
|
|
4512
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4513
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
4514
|
+
let baseOptions;
|
|
4515
|
+
if (configuration) {
|
|
4516
|
+
baseOptions = configuration.baseOptions;
|
|
4517
|
+
}
|
|
4518
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4519
|
+
const localVarHeaderParameter = {};
|
|
4520
|
+
const localVarQueryParameter = {};
|
|
4521
|
+
if (mayaname !== undefined) {
|
|
4522
|
+
localVarQueryParameter['mayaname'] = mayaname;
|
|
4523
|
+
}
|
|
4524
|
+
if (interval !== undefined) {
|
|
4525
|
+
localVarQueryParameter['interval'] = interval;
|
|
4526
|
+
}
|
|
4527
|
+
if (count !== undefined) {
|
|
4528
|
+
localVarQueryParameter['count'] = count;
|
|
4529
|
+
}
|
|
4530
|
+
if (to !== undefined) {
|
|
4531
|
+
localVarQueryParameter['to'] = to;
|
|
4532
|
+
}
|
|
4533
|
+
if (from !== undefined) {
|
|
4534
|
+
localVarQueryParameter['from'] = from;
|
|
4535
|
+
}
|
|
4536
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
4537
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4538
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4539
|
+
return {
|
|
4540
|
+
url: toPathString$1(localVarUrlObj),
|
|
4541
|
+
options: localVarRequestOptions,
|
|
4542
|
+
};
|
|
4543
|
+
}),
|
|
4499
4544
|
/**
|
|
4500
4545
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
4501
4546
|
* @summary Current balance for an address
|
|
@@ -4591,6 +4636,117 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
4591
4636
|
options: localVarRequestOptions,
|
|
4592
4637
|
};
|
|
4593
4638
|
}),
|
|
4639
|
+
/**
|
|
4640
|
+
* Returns an array of statistics for all the CACAOPool associated with given member addresses. Query can also be multiple addresses should be separated by comma (\',\')
|
|
4641
|
+
* @summary CACAOPool Details
|
|
4642
|
+
* @param {string} address Address to match the CACAOPool. multiple cacao addresses can be given.
|
|
4643
|
+
* @param {*} [options] Override http request option.
|
|
4644
|
+
* @throws {RequiredError}
|
|
4645
|
+
*/
|
|
4646
|
+
getCACAOPoolDetail: (address_1, ...args_1) => __awaiter$3(this, [address_1, ...args_1], void 0, function* (address, options = {}) {
|
|
4647
|
+
// verify required parameter 'address' is not null or undefined
|
|
4648
|
+
assertParamExists$1('getCACAOPoolDetail', 'address', address);
|
|
4649
|
+
const localVarPath = `/v2/cacaopool/{address}`
|
|
4650
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
4651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
4653
|
+
let baseOptions;
|
|
4654
|
+
if (configuration) {
|
|
4655
|
+
baseOptions = configuration.baseOptions;
|
|
4656
|
+
}
|
|
4657
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4658
|
+
const localVarHeaderParameter = {};
|
|
4659
|
+
const localVarQueryParameter = {};
|
|
4660
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
4661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4663
|
+
return {
|
|
4664
|
+
url: toPathString$1(localVarUrlObj),
|
|
4665
|
+
options: localVarRequestOptions,
|
|
4666
|
+
};
|
|
4667
|
+
}),
|
|
4668
|
+
/**
|
|
4669
|
+
* Returns CacaoPool members and units. The values report the state at the end of each interval. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
4670
|
+
* @summary CacaoPool total members and units History
|
|
4671
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
4672
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
4673
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
4674
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
4675
|
+
* @param {*} [options] Override http request option.
|
|
4676
|
+
* @throws {RequiredError}
|
|
4677
|
+
*/
|
|
4678
|
+
getCacaoPoolHistory: (interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$3(this, [interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (interval, count, to, from, options = {}) {
|
|
4679
|
+
const localVarPath = `/v2/history/cacaopool`;
|
|
4680
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4681
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
4682
|
+
let baseOptions;
|
|
4683
|
+
if (configuration) {
|
|
4684
|
+
baseOptions = configuration.baseOptions;
|
|
4685
|
+
}
|
|
4686
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4687
|
+
const localVarHeaderParameter = {};
|
|
4688
|
+
const localVarQueryParameter = {};
|
|
4689
|
+
if (interval !== undefined) {
|
|
4690
|
+
localVarQueryParameter['interval'] = interval;
|
|
4691
|
+
}
|
|
4692
|
+
if (count !== undefined) {
|
|
4693
|
+
localVarQueryParameter['count'] = count;
|
|
4694
|
+
}
|
|
4695
|
+
if (to !== undefined) {
|
|
4696
|
+
localVarQueryParameter['to'] = to;
|
|
4697
|
+
}
|
|
4698
|
+
if (from !== undefined) {
|
|
4699
|
+
localVarQueryParameter['from'] = from;
|
|
4700
|
+
}
|
|
4701
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
4702
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4703
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4704
|
+
return {
|
|
4705
|
+
url: toPathString$1(localVarUrlObj),
|
|
4706
|
+
options: localVarRequestOptions,
|
|
4707
|
+
};
|
|
4708
|
+
}),
|
|
4709
|
+
/**
|
|
4710
|
+
* Returns cacao price history in USD based on the time bucket given
|
|
4711
|
+
* @summary Cacao price history in USD
|
|
4712
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
4713
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
4714
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
4715
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
4716
|
+
* @param {*} [options] Override http request option.
|
|
4717
|
+
* @throws {RequiredError}
|
|
4718
|
+
*/
|
|
4719
|
+
getCacaoPriceHistory: (interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$3(this, [interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (interval, count, to, from, options = {}) {
|
|
4720
|
+
const localVarPath = `/v2/history/cacao`;
|
|
4721
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4722
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
4723
|
+
let baseOptions;
|
|
4724
|
+
if (configuration) {
|
|
4725
|
+
baseOptions = configuration.baseOptions;
|
|
4726
|
+
}
|
|
4727
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4728
|
+
const localVarHeaderParameter = {};
|
|
4729
|
+
const localVarQueryParameter = {};
|
|
4730
|
+
if (interval !== undefined) {
|
|
4731
|
+
localVarQueryParameter['interval'] = interval;
|
|
4732
|
+
}
|
|
4733
|
+
if (count !== undefined) {
|
|
4734
|
+
localVarQueryParameter['count'] = count;
|
|
4735
|
+
}
|
|
4736
|
+
if (to !== undefined) {
|
|
4737
|
+
localVarQueryParameter['to'] = to;
|
|
4738
|
+
}
|
|
4739
|
+
if (from !== undefined) {
|
|
4740
|
+
localVarQueryParameter['from'] = from;
|
|
4741
|
+
}
|
|
4742
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
4743
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4744
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4745
|
+
return {
|
|
4746
|
+
url: toPathString$1(localVarUrlObj),
|
|
4747
|
+
options: localVarRequestOptions,
|
|
4748
|
+
};
|
|
4749
|
+
}),
|
|
4594
4750
|
/**
|
|
4595
4751
|
* Returns block height and timestamp for each churn.
|
|
4596
4752
|
* @summary Churns List
|
|
@@ -4727,6 +4883,39 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
4727
4883
|
options: localVarRequestOptions,
|
|
4728
4884
|
};
|
|
4729
4885
|
}),
|
|
4886
|
+
/**
|
|
4887
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
4888
|
+
* @summary Current top holders for an asset
|
|
4889
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
4890
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
4891
|
+
* @param {*} [options] Override http request option.
|
|
4892
|
+
* @throws {RequiredError}
|
|
4893
|
+
*/
|
|
4894
|
+
getHolders: (asset_1, limit_1, ...args_1) => __awaiter$3(this, [asset_1, limit_1, ...args_1], void 0, function* (asset, limit, options = {}) {
|
|
4895
|
+
const localVarPath = `/v2/holders`;
|
|
4896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4897
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
4898
|
+
let baseOptions;
|
|
4899
|
+
if (configuration) {
|
|
4900
|
+
baseOptions = configuration.baseOptions;
|
|
4901
|
+
}
|
|
4902
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4903
|
+
const localVarHeaderParameter = {};
|
|
4904
|
+
const localVarQueryParameter = {};
|
|
4905
|
+
if (asset !== undefined) {
|
|
4906
|
+
localVarQueryParameter['asset'] = asset;
|
|
4907
|
+
}
|
|
4908
|
+
if (limit !== undefined) {
|
|
4909
|
+
localVarQueryParameter['limit'] = limit;
|
|
4910
|
+
}
|
|
4911
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
4912
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4913
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4914
|
+
return {
|
|
4915
|
+
url: toPathString$1(localVarUrlObj),
|
|
4916
|
+
options: localVarRequestOptions,
|
|
4917
|
+
};
|
|
4918
|
+
}),
|
|
4730
4919
|
/**
|
|
4731
4920
|
* Returns an object with known pools and their statuses
|
|
4732
4921
|
* @summary Known Pools List
|
|
@@ -5008,6 +5197,47 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
5008
5197
|
options: localVarRequestOptions,
|
|
5009
5198
|
};
|
|
5010
5199
|
}),
|
|
5200
|
+
/**
|
|
5201
|
+
* Returns reserve module network fee, outbound fee, and gas reimbursement flow in bucketed history
|
|
5202
|
+
* @summary Reserve income and expenses over bucketed history
|
|
5203
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
5204
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
5205
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
5206
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
5207
|
+
* @param {*} [options] Override http request option.
|
|
5208
|
+
* @throws {RequiredError}
|
|
5209
|
+
*/
|
|
5210
|
+
getReserveHistory: (interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$3(this, [interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (interval, count, to, from, options = {}) {
|
|
5211
|
+
const localVarPath = `/v2/history/reserve`;
|
|
5212
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5213
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
5214
|
+
let baseOptions;
|
|
5215
|
+
if (configuration) {
|
|
5216
|
+
baseOptions = configuration.baseOptions;
|
|
5217
|
+
}
|
|
5218
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5219
|
+
const localVarHeaderParameter = {};
|
|
5220
|
+
const localVarQueryParameter = {};
|
|
5221
|
+
if (interval !== undefined) {
|
|
5222
|
+
localVarQueryParameter['interval'] = interval;
|
|
5223
|
+
}
|
|
5224
|
+
if (count !== undefined) {
|
|
5225
|
+
localVarQueryParameter['count'] = count;
|
|
5226
|
+
}
|
|
5227
|
+
if (to !== undefined) {
|
|
5228
|
+
localVarQueryParameter['to'] = to;
|
|
5229
|
+
}
|
|
5230
|
+
if (from !== undefined) {
|
|
5231
|
+
localVarQueryParameter['from'] = from;
|
|
5232
|
+
}
|
|
5233
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
5234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5236
|
+
return {
|
|
5237
|
+
url: toPathString$1(localVarUrlObj),
|
|
5238
|
+
options: localVarRequestOptions,
|
|
5239
|
+
};
|
|
5240
|
+
}),
|
|
5011
5241
|
/**
|
|
5012
5242
|
* Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be seperated by comma (\',\')
|
|
5013
5243
|
* @summary Saver Details
|
|
@@ -5280,6 +5510,35 @@ const DefaultApiAxiosParamCreator$1 = function (configuration) {
|
|
|
5280
5510
|
options: localVarRequestOptions,
|
|
5281
5511
|
};
|
|
5282
5512
|
}),
|
|
5513
|
+
/**
|
|
5514
|
+
* Returns timestamp, key, value for each active node member.
|
|
5515
|
+
* @summary Current Protocol Voting
|
|
5516
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
5517
|
+
* @param {*} [options] Override http request option.
|
|
5518
|
+
* @throws {RequiredError}
|
|
5519
|
+
*/
|
|
5520
|
+
getVotes: (period_1, ...args_1) => __awaiter$3(this, [period_1, ...args_1], void 0, function* (period, options = {}) {
|
|
5521
|
+
const localVarPath = `/v2/votes`;
|
|
5522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5523
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
5524
|
+
let baseOptions;
|
|
5525
|
+
if (configuration) {
|
|
5526
|
+
baseOptions = configuration.baseOptions;
|
|
5527
|
+
}
|
|
5528
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5529
|
+
const localVarHeaderParameter = {};
|
|
5530
|
+
const localVarQueryParameter = {};
|
|
5531
|
+
if (period !== undefined) {
|
|
5532
|
+
localVarQueryParameter['period'] = period;
|
|
5533
|
+
}
|
|
5534
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
5535
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5536
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5537
|
+
return {
|
|
5538
|
+
url: toPathString$1(localVarUrlObj),
|
|
5539
|
+
options: localVarRequestOptions,
|
|
5540
|
+
};
|
|
5541
|
+
}),
|
|
5283
5542
|
};
|
|
5284
5543
|
};
|
|
5285
5544
|
/**
|
|
@@ -5295,7 +5554,7 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5295
5554
|
* @param {string} [address] Comma separated list. Address of sender or recipient of any in/out transaction related to the action.
|
|
5296
5555
|
* @param {string} [txid] ID of any in/out tx related to the action
|
|
5297
5556
|
* @param {string} [asset] Comma separated list. Any asset that is part of the action (CHAIN.SYMBOL) Additionally, synth, nosynth, and norune filters can be used for swap, add/withdraw actions.
|
|
5298
|
-
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch)
|
|
5557
|
+
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch, mayaname, cacaoPoolDeposit, cacaoPoolWithdraw)
|
|
5299
5558
|
* @param {string} [affiliate] Comma separated list. Affiliate address of the action (swap, refund)
|
|
5300
5559
|
* @param {number} [limit] number of actions returned, default is 50
|
|
5301
5560
|
* @param {number} [offset] pagination offset, default is 0
|
|
@@ -5314,6 +5573,23 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5314
5573
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5315
5574
|
});
|
|
5316
5575
|
},
|
|
5576
|
+
/**
|
|
5577
|
+
* Returns affiliate count, volume in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
5578
|
+
* @summary Affiliate History
|
|
5579
|
+
* @param {string} [mayaname] Return history given mayaname. Returns sum of all mayanames if missing.
|
|
5580
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
5581
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
5582
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
5583
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
5584
|
+
* @param {*} [options] Override http request option.
|
|
5585
|
+
* @throws {RequiredError}
|
|
5586
|
+
*/
|
|
5587
|
+
getAffiliateHistory(mayaname, interval, count, to, from, options) {
|
|
5588
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5589
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateHistory(mayaname, interval, count, to, from, options);
|
|
5590
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5591
|
+
});
|
|
5592
|
+
},
|
|
5317
5593
|
/**
|
|
5318
5594
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
5319
5595
|
* @summary Current balance for an address
|
|
@@ -5355,6 +5631,51 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5355
5631
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5356
5632
|
});
|
|
5357
5633
|
},
|
|
5634
|
+
/**
|
|
5635
|
+
* Returns an array of statistics for all the CACAOPool associated with given member addresses. Query can also be multiple addresses should be separated by comma (\',\')
|
|
5636
|
+
* @summary CACAOPool Details
|
|
5637
|
+
* @param {string} address Address to match the CACAOPool. multiple cacao addresses can be given.
|
|
5638
|
+
* @param {*} [options] Override http request option.
|
|
5639
|
+
* @throws {RequiredError}
|
|
5640
|
+
*/
|
|
5641
|
+
getCACAOPoolDetail(address, options) {
|
|
5642
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5643
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCACAOPoolDetail(address, options);
|
|
5644
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5645
|
+
});
|
|
5646
|
+
},
|
|
5647
|
+
/**
|
|
5648
|
+
* Returns CacaoPool members and units. The values report the state at the end of each interval. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
5649
|
+
* @summary CacaoPool total members and units History
|
|
5650
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
5651
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
5652
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
5653
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
5654
|
+
* @param {*} [options] Override http request option.
|
|
5655
|
+
* @throws {RequiredError}
|
|
5656
|
+
*/
|
|
5657
|
+
getCacaoPoolHistory(interval, count, to, from, options) {
|
|
5658
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCacaoPoolHistory(interval, count, to, from, options);
|
|
5660
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5661
|
+
});
|
|
5662
|
+
},
|
|
5663
|
+
/**
|
|
5664
|
+
* Returns cacao price history in USD based on the time bucket given
|
|
5665
|
+
* @summary Cacao price history in USD
|
|
5666
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
5667
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
5668
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
5669
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
5670
|
+
* @param {*} [options] Override http request option.
|
|
5671
|
+
* @throws {RequiredError}
|
|
5672
|
+
*/
|
|
5673
|
+
getCacaoPriceHistory(interval, count, to, from, options) {
|
|
5674
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCacaoPriceHistory(interval, count, to, from, options);
|
|
5676
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5677
|
+
});
|
|
5678
|
+
},
|
|
5358
5679
|
/**
|
|
5359
5680
|
* Returns block height and timestamp for each churn.
|
|
5360
5681
|
* @summary Churns List
|
|
@@ -5412,6 +5733,20 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5412
5733
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5413
5734
|
});
|
|
5414
5735
|
},
|
|
5736
|
+
/**
|
|
5737
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
5738
|
+
* @summary Current top holders for an asset
|
|
5739
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
5740
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
5741
|
+
* @param {*} [options] Override http request option.
|
|
5742
|
+
* @throws {RequiredError}
|
|
5743
|
+
*/
|
|
5744
|
+
getHolders(asset, limit, options) {
|
|
5745
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5746
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHolders(asset, limit, options);
|
|
5747
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5748
|
+
});
|
|
5749
|
+
},
|
|
5415
5750
|
/**
|
|
5416
5751
|
* Returns an object with known pools and their statuses
|
|
5417
5752
|
* @summary Known Pools List
|
|
@@ -5521,16 +5856,32 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5521
5856
|
});
|
|
5522
5857
|
},
|
|
5523
5858
|
/**
|
|
5524
|
-
* Returns an array containing details for a set of pools
|
|
5525
|
-
* @summary Pools List
|
|
5526
|
-
* @param {'available' | 'staged' | 'suspended'} [status] Filter for only pools with this status
|
|
5527
|
-
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which annualPercentageRate and poolAPY is extrapolated. Default is 14d.
|
|
5859
|
+
* Returns an array containing details for a set of pools
|
|
5860
|
+
* @summary Pools List
|
|
5861
|
+
* @param {'available' | 'staged' | 'suspended'} [status] Filter for only pools with this status
|
|
5862
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which annualPercentageRate and poolAPY is extrapolated. Default is 14d.
|
|
5863
|
+
* @param {*} [options] Override http request option.
|
|
5864
|
+
* @throws {RequiredError}
|
|
5865
|
+
*/
|
|
5866
|
+
getPools(status, period, options) {
|
|
5867
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5868
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPools(status, period, options);
|
|
5869
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5870
|
+
});
|
|
5871
|
+
},
|
|
5872
|
+
/**
|
|
5873
|
+
* Returns reserve module network fee, outbound fee, and gas reimbursement flow in bucketed history
|
|
5874
|
+
* @summary Reserve income and expenses over bucketed history
|
|
5875
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
5876
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
5877
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
5878
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
5528
5879
|
* @param {*} [options] Override http request option.
|
|
5529
5880
|
* @throws {RequiredError}
|
|
5530
5881
|
*/
|
|
5531
|
-
|
|
5882
|
+
getReserveHistory(interval, count, to, from, options) {
|
|
5532
5883
|
return __awaiter$3(this, void 0, void 0, function* () {
|
|
5533
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReserveHistory(interval, count, to, from, options);
|
|
5534
5885
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5535
5886
|
});
|
|
5536
5887
|
},
|
|
@@ -5648,6 +5999,19 @@ const DefaultApiFp$1 = function (configuration) {
|
|
|
5648
5999
|
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
5649
6000
|
});
|
|
5650
6001
|
},
|
|
6002
|
+
/**
|
|
6003
|
+
* Returns timestamp, key, value for each active node member.
|
|
6004
|
+
* @summary Current Protocol Voting
|
|
6005
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
6006
|
+
* @param {*} [options] Override http request option.
|
|
6007
|
+
* @throws {RequiredError}
|
|
6008
|
+
*/
|
|
6009
|
+
getVotes(period, options) {
|
|
6010
|
+
return __awaiter$3(this, void 0, void 0, function* () {
|
|
6011
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVotes(period, options);
|
|
6012
|
+
return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
|
|
6013
|
+
});
|
|
6014
|
+
},
|
|
5651
6015
|
};
|
|
5652
6016
|
};
|
|
5653
6017
|
/**
|
|
@@ -5663,7 +6027,7 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5663
6027
|
* @param {string} [address] Comma separated list. Address of sender or recipient of any in/out transaction related to the action.
|
|
5664
6028
|
* @param {string} [txid] ID of any in/out tx related to the action
|
|
5665
6029
|
* @param {string} [asset] Comma separated list. Any asset that is part of the action (CHAIN.SYMBOL) Additionally, synth, nosynth, and norune filters can be used for swap, add/withdraw actions.
|
|
5666
|
-
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch)
|
|
6030
|
+
* @param {string} [type] One or more comma separated unique types of action (swap, addLiquidity, withdraw, donate, refund, switch, mayaname, cacaoPoolDeposit, cacaoPoolWithdraw)
|
|
5667
6031
|
* @param {string} [affiliate] Comma separated list. Affiliate address of the action (swap, refund)
|
|
5668
6032
|
* @param {number} [limit] number of actions returned, default is 50
|
|
5669
6033
|
* @param {number} [offset] pagination offset, default is 0
|
|
@@ -5680,6 +6044,21 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5680
6044
|
getActions(address, txid, asset, type, affiliate, limit, offset, nextPageToken, timestamp, height, prevPageToken, fromTimestamp, fromHeight, options) {
|
|
5681
6045
|
return DefaultApiFp$1(this.configuration).getActions(address, txid, asset, type, affiliate, limit, offset, nextPageToken, timestamp, height, prevPageToken, fromTimestamp, fromHeight, options).then((request) => request(this.axios, this.basePath));
|
|
5682
6046
|
}
|
|
6047
|
+
/**
|
|
6048
|
+
* Returns affiliate count, volume in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
6049
|
+
* @summary Affiliate History
|
|
6050
|
+
* @param {string} [mayaname] Return history given mayaname. Returns sum of all mayanames if missing.
|
|
6051
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
6052
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
6053
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
6054
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
6055
|
+
* @param {*} [options] Override http request option.
|
|
6056
|
+
* @throws {RequiredError}
|
|
6057
|
+
* @memberof DefaultApi
|
|
6058
|
+
*/
|
|
6059
|
+
getAffiliateHistory(mayaname, interval, count, to, from, options) {
|
|
6060
|
+
return DefaultApiFp$1(this.configuration).getAffiliateHistory(mayaname, interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
6061
|
+
}
|
|
5683
6062
|
/**
|
|
5684
6063
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
5685
6064
|
* @summary Current balance for an address
|
|
@@ -5715,6 +6094,45 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5715
6094
|
getBorrowersAddresses(asset, options) {
|
|
5716
6095
|
return DefaultApiFp$1(this.configuration).getBorrowersAddresses(asset, options).then((request) => request(this.axios, this.basePath));
|
|
5717
6096
|
}
|
|
6097
|
+
/**
|
|
6098
|
+
* Returns an array of statistics for all the CACAOPool associated with given member addresses. Query can also be multiple addresses should be separated by comma (\',\')
|
|
6099
|
+
* @summary CACAOPool Details
|
|
6100
|
+
* @param {string} address Address to match the CACAOPool. multiple cacao addresses can be given.
|
|
6101
|
+
* @param {*} [options] Override http request option.
|
|
6102
|
+
* @throws {RequiredError}
|
|
6103
|
+
* @memberof DefaultApi
|
|
6104
|
+
*/
|
|
6105
|
+
getCACAOPoolDetail(address, options) {
|
|
6106
|
+
return DefaultApiFp$1(this.configuration).getCACAOPoolDetail(address, options).then((request) => request(this.axios, this.basePath));
|
|
6107
|
+
}
|
|
6108
|
+
/**
|
|
6109
|
+
* Returns CacaoPool members and units. The values report the state at the end of each interval. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
6110
|
+
* @summary CacaoPool total members and units History
|
|
6111
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
6112
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
6113
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
6114
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
6115
|
+
* @param {*} [options] Override http request option.
|
|
6116
|
+
* @throws {RequiredError}
|
|
6117
|
+
* @memberof DefaultApi
|
|
6118
|
+
*/
|
|
6119
|
+
getCacaoPoolHistory(interval, count, to, from, options) {
|
|
6120
|
+
return DefaultApiFp$1(this.configuration).getCacaoPoolHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
6121
|
+
}
|
|
6122
|
+
/**
|
|
6123
|
+
* Returns cacao price history in USD based on the time bucket given
|
|
6124
|
+
* @summary Cacao price history in USD
|
|
6125
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
6126
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
6127
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
6128
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
6129
|
+
* @param {*} [options] Override http request option.
|
|
6130
|
+
* @throws {RequiredError}
|
|
6131
|
+
* @memberof DefaultApi
|
|
6132
|
+
*/
|
|
6133
|
+
getCacaoPriceHistory(interval, count, to, from, options) {
|
|
6134
|
+
return DefaultApiFp$1(this.configuration).getCacaoPriceHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
6135
|
+
}
|
|
5718
6136
|
/**
|
|
5719
6137
|
* Returns block height and timestamp for each churn.
|
|
5720
6138
|
* @summary Churns List
|
|
@@ -5764,6 +6182,18 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5764
6182
|
getHealth(options) {
|
|
5765
6183
|
return DefaultApiFp$1(this.configuration).getHealth(options).then((request) => request(this.axios, this.basePath));
|
|
5766
6184
|
}
|
|
6185
|
+
/**
|
|
6186
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
6187
|
+
* @summary Current top holders for an asset
|
|
6188
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
6189
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
6190
|
+
* @param {*} [options] Override http request option.
|
|
6191
|
+
* @throws {RequiredError}
|
|
6192
|
+
* @memberof DefaultApi
|
|
6193
|
+
*/
|
|
6194
|
+
getHolders(asset, limit, options) {
|
|
6195
|
+
return DefaultApiFp$1(this.configuration).getHolders(asset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
6196
|
+
}
|
|
5767
6197
|
/**
|
|
5768
6198
|
* Returns an object with known pools and their statuses
|
|
5769
6199
|
* @summary Known Pools List
|
|
@@ -5868,6 +6298,20 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5868
6298
|
getPools(status, period, options) {
|
|
5869
6299
|
return DefaultApiFp$1(this.configuration).getPools(status, period, options).then((request) => request(this.axios, this.basePath));
|
|
5870
6300
|
}
|
|
6301
|
+
/**
|
|
6302
|
+
* Returns reserve module network fee, outbound fee, and gas reimbursement flow in bucketed history
|
|
6303
|
+
* @summary Reserve income and expenses over bucketed history
|
|
6304
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
6305
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
6306
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
6307
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
6308
|
+
* @param {*} [options] Override http request option.
|
|
6309
|
+
* @throws {RequiredError}
|
|
6310
|
+
* @memberof DefaultApi
|
|
6311
|
+
*/
|
|
6312
|
+
getReserveHistory(interval, count, to, from, options) {
|
|
6313
|
+
return DefaultApiFp$1(this.configuration).getReserveHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
6314
|
+
}
|
|
5871
6315
|
/**
|
|
5872
6316
|
* Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be seperated by comma (\',\')
|
|
5873
6317
|
* @summary Saver Details
|
|
@@ -5966,16 +6410,27 @@ let DefaultApi$1 = class DefaultApi extends BaseAPI$1 {
|
|
|
5966
6410
|
getTVLHistory(interval, count, to, from, options) {
|
|
5967
6411
|
return DefaultApiFp$1(this.configuration).getTVLHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
5968
6412
|
}
|
|
6413
|
+
/**
|
|
6414
|
+
* Returns timestamp, key, value for each active node member.
|
|
6415
|
+
* @summary Current Protocol Voting
|
|
6416
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
6417
|
+
* @param {*} [options] Override http request option.
|
|
6418
|
+
* @throws {RequiredError}
|
|
6419
|
+
* @memberof DefaultApi
|
|
6420
|
+
*/
|
|
6421
|
+
getVotes(period, options) {
|
|
6422
|
+
return DefaultApiFp$1(this.configuration).getVotes(period, options).then((request) => request(this.axios, this.basePath));
|
|
6423
|
+
}
|
|
5969
6424
|
};
|
|
5970
6425
|
|
|
5971
6426
|
/* tslint:disable */
|
|
5972
6427
|
/* eslint-disable */
|
|
5973
6428
|
/**
|
|
5974
6429
|
* Midgard Public API
|
|
5975
|
-
* The Midgard Public API queries
|
|
6430
|
+
* The Midgard Public API queries MAYAChain and prepares information about the network to be readily available for public users. The API parses transaction event data from MAYAChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with MAYAChain protocol, users should query MAYANode directly.
|
|
5976
6431
|
*
|
|
5977
|
-
* The version of the OpenAPI document: 2.
|
|
5978
|
-
* Contact: devs@
|
|
6432
|
+
* The version of the OpenAPI document: 2.16.0
|
|
6433
|
+
* Contact: devs@mayaprotocol.com
|
|
5979
6434
|
*
|
|
5980
6435
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5981
6436
|
* https://openapi-generator.tech
|
|
@@ -6937,7 +7392,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
6937
7392
|
* Midgard Public API
|
|
6938
7393
|
* The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.
|
|
6939
7394
|
*
|
|
6940
|
-
* The version of the OpenAPI document: 2.
|
|
7395
|
+
* The version of the OpenAPI document: 2.34.0
|
|
6941
7396
|
* Contact: devs@thorchain.org
|
|
6942
7397
|
*
|
|
6943
7398
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -6982,7 +7437,7 @@ class RequiredError extends Error {
|
|
|
6982
7437
|
* Midgard Public API
|
|
6983
7438
|
* The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.
|
|
6984
7439
|
*
|
|
6985
|
-
* The version of the OpenAPI document: 2.
|
|
7440
|
+
* The version of the OpenAPI document: 2.34.0
|
|
6986
7441
|
* Contact: devs@thorchain.org
|
|
6987
7442
|
*
|
|
6988
7443
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -7135,6 +7590,141 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7135
7590
|
options: localVarRequestOptions,
|
|
7136
7591
|
};
|
|
7137
7592
|
}),
|
|
7593
|
+
/**
|
|
7594
|
+
* Returns affiliate earnings (liquidity fees) in USD and RUNE in specified interval. If thorname is not specified returns all affiliates. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
7595
|
+
* @summary Affiliate Earnings History
|
|
7596
|
+
* @param {string} [thorname] Return earnings for given thorname. Returns all affiliates if missing.
|
|
7597
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
7598
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
7599
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
7600
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
7601
|
+
* @param {*} [options] Override http request option.
|
|
7602
|
+
* @throws {RequiredError}
|
|
7603
|
+
*/
|
|
7604
|
+
getAffiliateEarning: (thorname_1, interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$1(this, [thorname_1, interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (thorname, interval, count, to, from, options = {}) {
|
|
7605
|
+
const localVarPath = `/v2/history/affiliate/earnings`;
|
|
7606
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7607
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7608
|
+
let baseOptions;
|
|
7609
|
+
if (configuration) {
|
|
7610
|
+
baseOptions = configuration.baseOptions;
|
|
7611
|
+
}
|
|
7612
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7613
|
+
const localVarHeaderParameter = {};
|
|
7614
|
+
const localVarQueryParameter = {};
|
|
7615
|
+
if (thorname !== undefined) {
|
|
7616
|
+
localVarQueryParameter['thorname'] = thorname;
|
|
7617
|
+
}
|
|
7618
|
+
if (interval !== undefined) {
|
|
7619
|
+
localVarQueryParameter['interval'] = interval;
|
|
7620
|
+
}
|
|
7621
|
+
if (count !== undefined) {
|
|
7622
|
+
localVarQueryParameter['count'] = count;
|
|
7623
|
+
}
|
|
7624
|
+
if (to !== undefined) {
|
|
7625
|
+
localVarQueryParameter['to'] = to;
|
|
7626
|
+
}
|
|
7627
|
+
if (from !== undefined) {
|
|
7628
|
+
localVarQueryParameter['from'] = from;
|
|
7629
|
+
}
|
|
7630
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7631
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7632
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7633
|
+
return {
|
|
7634
|
+
url: toPathString(localVarUrlObj),
|
|
7635
|
+
options: localVarRequestOptions,
|
|
7636
|
+
};
|
|
7637
|
+
}),
|
|
7638
|
+
/**
|
|
7639
|
+
* Returns affiliate count, earnings in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
7640
|
+
* @summary Affiliate earnings History
|
|
7641
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
7642
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
7643
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
7644
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
7645
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
7646
|
+
* @param {*} [options] Override http request option.
|
|
7647
|
+
* @throws {RequiredError}
|
|
7648
|
+
*/
|
|
7649
|
+
getAffiliateHistory: (thorname_1, interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$1(this, [thorname_1, interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (thorname, interval, count, to, from, options = {}) {
|
|
7650
|
+
const localVarPath = `/v2/history/affiliate`;
|
|
7651
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7652
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7653
|
+
let baseOptions;
|
|
7654
|
+
if (configuration) {
|
|
7655
|
+
baseOptions = configuration.baseOptions;
|
|
7656
|
+
}
|
|
7657
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7658
|
+
const localVarHeaderParameter = {};
|
|
7659
|
+
const localVarQueryParameter = {};
|
|
7660
|
+
if (thorname !== undefined) {
|
|
7661
|
+
localVarQueryParameter['thorname'] = thorname;
|
|
7662
|
+
}
|
|
7663
|
+
if (interval !== undefined) {
|
|
7664
|
+
localVarQueryParameter['interval'] = interval;
|
|
7665
|
+
}
|
|
7666
|
+
if (count !== undefined) {
|
|
7667
|
+
localVarQueryParameter['count'] = count;
|
|
7668
|
+
}
|
|
7669
|
+
if (to !== undefined) {
|
|
7670
|
+
localVarQueryParameter['to'] = to;
|
|
7671
|
+
}
|
|
7672
|
+
if (from !== undefined) {
|
|
7673
|
+
localVarQueryParameter['from'] = from;
|
|
7674
|
+
}
|
|
7675
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7676
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7677
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7678
|
+
return {
|
|
7679
|
+
url: toPathString(localVarUrlObj),
|
|
7680
|
+
options: localVarRequestOptions,
|
|
7681
|
+
};
|
|
7682
|
+
}),
|
|
7683
|
+
/**
|
|
7684
|
+
* Returns affiliate count, swap volume in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
7685
|
+
* @summary Affiliate Volume Stats
|
|
7686
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
7687
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
7688
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
7689
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
7690
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
7691
|
+
* @param {*} [options] Override http request option.
|
|
7692
|
+
* @throws {RequiredError}
|
|
7693
|
+
*/
|
|
7694
|
+
getAffiliateStats: (thorname_1, interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$1(this, [thorname_1, interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (thorname, interval, count, to, from, options = {}) {
|
|
7695
|
+
const localVarPath = `/v2/history/affiliate/stats`;
|
|
7696
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7697
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7698
|
+
let baseOptions;
|
|
7699
|
+
if (configuration) {
|
|
7700
|
+
baseOptions = configuration.baseOptions;
|
|
7701
|
+
}
|
|
7702
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7703
|
+
const localVarHeaderParameter = {};
|
|
7704
|
+
const localVarQueryParameter = {};
|
|
7705
|
+
if (thorname !== undefined) {
|
|
7706
|
+
localVarQueryParameter['thorname'] = thorname;
|
|
7707
|
+
}
|
|
7708
|
+
if (interval !== undefined) {
|
|
7709
|
+
localVarQueryParameter['interval'] = interval;
|
|
7710
|
+
}
|
|
7711
|
+
if (count !== undefined) {
|
|
7712
|
+
localVarQueryParameter['count'] = count;
|
|
7713
|
+
}
|
|
7714
|
+
if (to !== undefined) {
|
|
7715
|
+
localVarQueryParameter['to'] = to;
|
|
7716
|
+
}
|
|
7717
|
+
if (from !== undefined) {
|
|
7718
|
+
localVarQueryParameter['from'] = from;
|
|
7719
|
+
}
|
|
7720
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7722
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7723
|
+
return {
|
|
7724
|
+
url: toPathString(localVarUrlObj),
|
|
7725
|
+
options: localVarRequestOptions,
|
|
7726
|
+
};
|
|
7727
|
+
}),
|
|
7138
7728
|
/**
|
|
7139
7729
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
7140
7730
|
* @summary Current balance for an address
|
|
@@ -7172,6 +7762,35 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7172
7762
|
options: localVarRequestOptions,
|
|
7173
7763
|
};
|
|
7174
7764
|
}),
|
|
7765
|
+
/**
|
|
7766
|
+
* Returns the bond details of a given address. The response contains the bond amount, the bond status, and the bond type. This is wrapper from THORNode nodes API.
|
|
7767
|
+
* @summary Bonder Details
|
|
7768
|
+
* @param {string} address Address of the bonder
|
|
7769
|
+
* @param {*} [options] Override http request option.
|
|
7770
|
+
* @throws {RequiredError}
|
|
7771
|
+
*/
|
|
7772
|
+
getBondersDetails: (address_1, ...args_1) => __awaiter$1(this, [address_1, ...args_1], void 0, function* (address, options = {}) {
|
|
7773
|
+
// verify required parameter 'address' is not null or undefined
|
|
7774
|
+
assertParamExists('getBondersDetails', 'address', address);
|
|
7775
|
+
const localVarPath = `/v2/bonds/{address}`
|
|
7776
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
7777
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7778
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7779
|
+
let baseOptions;
|
|
7780
|
+
if (configuration) {
|
|
7781
|
+
baseOptions = configuration.baseOptions;
|
|
7782
|
+
}
|
|
7783
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7784
|
+
const localVarHeaderParameter = {};
|
|
7785
|
+
const localVarQueryParameter = {};
|
|
7786
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7787
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7788
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7789
|
+
return {
|
|
7790
|
+
url: toPathString(localVarUrlObj),
|
|
7791
|
+
options: localVarRequestOptions,
|
|
7792
|
+
};
|
|
7793
|
+
}),
|
|
7175
7794
|
/**
|
|
7176
7795
|
* Returns an array of statistics for all the open loans associated with a given borrower address.
|
|
7177
7796
|
* @summary Borrower Details
|
|
@@ -7321,18 +7940,43 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7321
7940
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7322
7941
|
const localVarHeaderParameter = {};
|
|
7323
7942
|
const localVarQueryParameter = {};
|
|
7324
|
-
if (interval !== undefined) {
|
|
7325
|
-
localVarQueryParameter['interval'] = interval;
|
|
7326
|
-
}
|
|
7327
|
-
if (count !== undefined) {
|
|
7328
|
-
localVarQueryParameter['count'] = count;
|
|
7329
|
-
}
|
|
7330
|
-
if (to !== undefined) {
|
|
7331
|
-
localVarQueryParameter['to'] = to;
|
|
7332
|
-
}
|
|
7333
|
-
if (from !== undefined) {
|
|
7334
|
-
localVarQueryParameter['from'] = from;
|
|
7335
|
-
}
|
|
7943
|
+
if (interval !== undefined) {
|
|
7944
|
+
localVarQueryParameter['interval'] = interval;
|
|
7945
|
+
}
|
|
7946
|
+
if (count !== undefined) {
|
|
7947
|
+
localVarQueryParameter['count'] = count;
|
|
7948
|
+
}
|
|
7949
|
+
if (to !== undefined) {
|
|
7950
|
+
localVarQueryParameter['to'] = to;
|
|
7951
|
+
}
|
|
7952
|
+
if (from !== undefined) {
|
|
7953
|
+
localVarQueryParameter['from'] = from;
|
|
7954
|
+
}
|
|
7955
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7956
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7957
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7958
|
+
return {
|
|
7959
|
+
url: toPathString(localVarUrlObj),
|
|
7960
|
+
options: localVarRequestOptions,
|
|
7961
|
+
};
|
|
7962
|
+
}),
|
|
7963
|
+
/**
|
|
7964
|
+
* Returns an object containing the health response of the API. Meaning of heights: lastThorNode - Latest block as reported by ThorNode. lastFetched - Latest block fetched from ThorNode. lastCommitted - Latest block committed to the DB but not fully processed yet. lastAggregated - Latest block fully processed and aggregated. genesisInfo - The genesis height Midgard bootstrapped with.
|
|
7965
|
+
* @summary Health Info
|
|
7966
|
+
* @param {*} [options] Override http request option.
|
|
7967
|
+
* @throws {RequiredError}
|
|
7968
|
+
*/
|
|
7969
|
+
getHealth: (...args_1) => __awaiter$1(this, [...args_1], void 0, function* (options = {}) {
|
|
7970
|
+
const localVarPath = `/v2/health`;
|
|
7971
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7972
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7973
|
+
let baseOptions;
|
|
7974
|
+
if (configuration) {
|
|
7975
|
+
baseOptions = configuration.baseOptions;
|
|
7976
|
+
}
|
|
7977
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7978
|
+
const localVarHeaderParameter = {};
|
|
7979
|
+
const localVarQueryParameter = {};
|
|
7336
7980
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7337
7981
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7338
7982
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7342,13 +7986,15 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7342
7986
|
};
|
|
7343
7987
|
}),
|
|
7344
7988
|
/**
|
|
7345
|
-
* Returns
|
|
7346
|
-
* @summary
|
|
7989
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
7990
|
+
* @summary Current top holders for an asset
|
|
7991
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
7992
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
7347
7993
|
* @param {*} [options] Override http request option.
|
|
7348
7994
|
* @throws {RequiredError}
|
|
7349
7995
|
*/
|
|
7350
|
-
|
|
7351
|
-
const localVarPath = `/v2/
|
|
7996
|
+
getHolders: (asset_1, limit_1, ...args_1) => __awaiter$1(this, [asset_1, limit_1, ...args_1], void 0, function* (asset, limit, options = {}) {
|
|
7997
|
+
const localVarPath = `/v2/holders`;
|
|
7352
7998
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7353
7999
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7354
8000
|
let baseOptions;
|
|
@@ -7358,6 +8004,12 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7358
8004
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7359
8005
|
const localVarHeaderParameter = {};
|
|
7360
8006
|
const localVarQueryParameter = {};
|
|
8007
|
+
if (asset !== undefined) {
|
|
8008
|
+
localVarQueryParameter['asset'] = asset;
|
|
8009
|
+
}
|
|
8010
|
+
if (limit !== undefined) {
|
|
8011
|
+
localVarQueryParameter['limit'] = limit;
|
|
8012
|
+
}
|
|
7361
8013
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7362
8014
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7363
8015
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7728,7 +8380,48 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
7728
8380
|
* @throws {RequiredError}
|
|
7729
8381
|
*/
|
|
7730
8382
|
getReserveHistory: (interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$1(this, [interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (interval, count, to, from, options = {}) {
|
|
7731
|
-
const localVarPath = `/v2/reserve`;
|
|
8383
|
+
const localVarPath = `/v2/history/reserve`;
|
|
8384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8385
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8386
|
+
let baseOptions;
|
|
8387
|
+
if (configuration) {
|
|
8388
|
+
baseOptions = configuration.baseOptions;
|
|
8389
|
+
}
|
|
8390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8391
|
+
const localVarHeaderParameter = {};
|
|
8392
|
+
const localVarQueryParameter = {};
|
|
8393
|
+
if (interval !== undefined) {
|
|
8394
|
+
localVarQueryParameter['interval'] = interval;
|
|
8395
|
+
}
|
|
8396
|
+
if (count !== undefined) {
|
|
8397
|
+
localVarQueryParameter['count'] = count;
|
|
8398
|
+
}
|
|
8399
|
+
if (to !== undefined) {
|
|
8400
|
+
localVarQueryParameter['to'] = to;
|
|
8401
|
+
}
|
|
8402
|
+
if (from !== undefined) {
|
|
8403
|
+
localVarQueryParameter['from'] = from;
|
|
8404
|
+
}
|
|
8405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8408
|
+
return {
|
|
8409
|
+
url: toPathString(localVarUrlObj),
|
|
8410
|
+
options: localVarRequestOptions,
|
|
8411
|
+
};
|
|
8412
|
+
}),
|
|
8413
|
+
/**
|
|
8414
|
+
* Returns rune price history in USD based on the time bucket given
|
|
8415
|
+
* @summary Rune price history in USD
|
|
8416
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
8417
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
8418
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
8419
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
8420
|
+
* @param {*} [options] Override http request option.
|
|
8421
|
+
* @throws {RequiredError}
|
|
8422
|
+
*/
|
|
8423
|
+
getRunePriceHistory: (interval_1, count_1, to_1, from_1, ...args_1) => __awaiter$1(this, [interval_1, count_1, to_1, from_1, ...args_1], void 0, function* (interval, count, to, from, options = {}) {
|
|
8424
|
+
const localVarPath = `/v2/history/rune`;
|
|
7732
8425
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7733
8426
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7734
8427
|
let baseOptions;
|
|
@@ -8030,6 +8723,68 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
8030
8723
|
options: localVarRequestOptions,
|
|
8031
8724
|
};
|
|
8032
8725
|
}),
|
|
8726
|
+
/**
|
|
8727
|
+
* Returns an array of TCY distribution for the given address.
|
|
8728
|
+
* @summary Tcy Distribution
|
|
8729
|
+
* @param {string} address Address which is assigned to TCY Holder.
|
|
8730
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which APR will be calculated. Default is 30d.
|
|
8731
|
+
* @param {*} [options] Override http request option.
|
|
8732
|
+
* @throws {RequiredError}
|
|
8733
|
+
*/
|
|
8734
|
+
getTcyDistribution: (address_1, period_1, ...args_1) => __awaiter$1(this, [address_1, period_1, ...args_1], void 0, function* (address, period, options = {}) {
|
|
8735
|
+
// verify required parameter 'address' is not null or undefined
|
|
8736
|
+
assertParamExists('getTcyDistribution', 'address', address);
|
|
8737
|
+
const localVarPath = `/v2/tcy/distribution/{address}`
|
|
8738
|
+
.replace(`{${"address"}}`, encodeURIComponent(String(address)));
|
|
8739
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8740
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8741
|
+
let baseOptions;
|
|
8742
|
+
if (configuration) {
|
|
8743
|
+
baseOptions = configuration.baseOptions;
|
|
8744
|
+
}
|
|
8745
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8746
|
+
const localVarHeaderParameter = {};
|
|
8747
|
+
const localVarQueryParameter = {};
|
|
8748
|
+
if (period !== undefined) {
|
|
8749
|
+
localVarQueryParameter['period'] = period;
|
|
8750
|
+
}
|
|
8751
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8753
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8754
|
+
return {
|
|
8755
|
+
url: toPathString(localVarUrlObj),
|
|
8756
|
+
options: localVarRequestOptions,
|
|
8757
|
+
};
|
|
8758
|
+
}),
|
|
8759
|
+
/**
|
|
8760
|
+
* Returns timestamp, key, value for each active node member.
|
|
8761
|
+
* @summary Current Protocol Voting
|
|
8762
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
8763
|
+
* @param {*} [options] Override http request option.
|
|
8764
|
+
* @throws {RequiredError}
|
|
8765
|
+
*/
|
|
8766
|
+
getVotes: (period_1, ...args_1) => __awaiter$1(this, [period_1, ...args_1], void 0, function* (period, options = {}) {
|
|
8767
|
+
const localVarPath = `/v2/votes`;
|
|
8768
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8769
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8770
|
+
let baseOptions;
|
|
8771
|
+
if (configuration) {
|
|
8772
|
+
baseOptions = configuration.baseOptions;
|
|
8773
|
+
}
|
|
8774
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8775
|
+
const localVarHeaderParameter = {};
|
|
8776
|
+
const localVarQueryParameter = {};
|
|
8777
|
+
if (period !== undefined) {
|
|
8778
|
+
localVarQueryParameter['period'] = period;
|
|
8779
|
+
}
|
|
8780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8782
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8783
|
+
return {
|
|
8784
|
+
url: toPathString(localVarUrlObj),
|
|
8785
|
+
options: localVarRequestOptions,
|
|
8786
|
+
};
|
|
8787
|
+
}),
|
|
8033
8788
|
};
|
|
8034
8789
|
};
|
|
8035
8790
|
/**
|
|
@@ -8065,6 +8820,57 @@ const DefaultApiFp = function (configuration) {
|
|
|
8065
8820
|
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8066
8821
|
});
|
|
8067
8822
|
},
|
|
8823
|
+
/**
|
|
8824
|
+
* Returns affiliate earnings (liquidity fees) in USD and RUNE in specified interval. If thorname is not specified returns all affiliates. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
8825
|
+
* @summary Affiliate Earnings History
|
|
8826
|
+
* @param {string} [thorname] Return earnings for given thorname. Returns all affiliates if missing.
|
|
8827
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
8828
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
8829
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
8830
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
8831
|
+
* @param {*} [options] Override http request option.
|
|
8832
|
+
* @throws {RequiredError}
|
|
8833
|
+
*/
|
|
8834
|
+
getAffiliateEarning(thorname, interval, count, to, from, options) {
|
|
8835
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
8836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateEarning(thorname, interval, count, to, from, options);
|
|
8837
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8838
|
+
});
|
|
8839
|
+
},
|
|
8840
|
+
/**
|
|
8841
|
+
* Returns affiliate count, earnings in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
8842
|
+
* @summary Affiliate earnings History
|
|
8843
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
8844
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
8845
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
8846
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
8847
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
8848
|
+
* @param {*} [options] Override http request option.
|
|
8849
|
+
* @throws {RequiredError}
|
|
8850
|
+
*/
|
|
8851
|
+
getAffiliateHistory(thorname, interval, count, to, from, options) {
|
|
8852
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
8853
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateHistory(thorname, interval, count, to, from, options);
|
|
8854
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8855
|
+
});
|
|
8856
|
+
},
|
|
8857
|
+
/**
|
|
8858
|
+
* Returns affiliate count, swap volume in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
8859
|
+
* @summary Affiliate Volume Stats
|
|
8860
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
8861
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
8862
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
8863
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
8864
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
8865
|
+
* @param {*} [options] Override http request option.
|
|
8866
|
+
* @throws {RequiredError}
|
|
8867
|
+
*/
|
|
8868
|
+
getAffiliateStats(thorname, interval, count, to, from, options) {
|
|
8869
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
8870
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAffiliateStats(thorname, interval, count, to, from, options);
|
|
8871
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8872
|
+
});
|
|
8873
|
+
},
|
|
8068
8874
|
/**
|
|
8069
8875
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
8070
8876
|
* @summary Current balance for an address
|
|
@@ -8080,6 +8886,19 @@ const DefaultApiFp = function (configuration) {
|
|
|
8080
8886
|
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8081
8887
|
});
|
|
8082
8888
|
},
|
|
8889
|
+
/**
|
|
8890
|
+
* Returns the bond details of a given address. The response contains the bond amount, the bond status, and the bond type. This is wrapper from THORNode nodes API.
|
|
8891
|
+
* @summary Bonder Details
|
|
8892
|
+
* @param {string} address Address of the bonder
|
|
8893
|
+
* @param {*} [options] Override http request option.
|
|
8894
|
+
* @throws {RequiredError}
|
|
8895
|
+
*/
|
|
8896
|
+
getBondersDetails(address, options) {
|
|
8897
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
8898
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBondersDetails(address, options);
|
|
8899
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8900
|
+
});
|
|
8901
|
+
},
|
|
8083
8902
|
/**
|
|
8084
8903
|
* Returns an array of statistics for all the open loans associated with a given borrower address.
|
|
8085
8904
|
* @summary Borrower Details
|
|
@@ -8163,6 +8982,20 @@ const DefaultApiFp = function (configuration) {
|
|
|
8163
8982
|
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8164
8983
|
});
|
|
8165
8984
|
},
|
|
8985
|
+
/**
|
|
8986
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
8987
|
+
* @summary Current top holders for an asset
|
|
8988
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
8989
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
8990
|
+
* @param {*} [options] Override http request option.
|
|
8991
|
+
* @throws {RequiredError}
|
|
8992
|
+
*/
|
|
8993
|
+
getHolders(asset, limit, options) {
|
|
8994
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
8995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getHolders(asset, limit, options);
|
|
8996
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8997
|
+
});
|
|
8998
|
+
},
|
|
8166
8999
|
/**
|
|
8167
9000
|
* Returns an object with known pools and their statuses
|
|
8168
9001
|
* @summary Known Pools List
|
|
@@ -8330,6 +9163,22 @@ const DefaultApiFp = function (configuration) {
|
|
|
8330
9163
|
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8331
9164
|
});
|
|
8332
9165
|
},
|
|
9166
|
+
/**
|
|
9167
|
+
* Returns rune price history in USD based on the time bucket given
|
|
9168
|
+
* @summary Rune price history in USD
|
|
9169
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
9170
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
9171
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
9172
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
9173
|
+
* @param {*} [options] Override http request option.
|
|
9174
|
+
* @throws {RequiredError}
|
|
9175
|
+
*/
|
|
9176
|
+
getRunePriceHistory(interval, count, to, from, options) {
|
|
9177
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
9178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRunePriceHistory(interval, count, to, from, options);
|
|
9179
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
9180
|
+
});
|
|
9181
|
+
},
|
|
8333
9182
|
/**
|
|
8334
9183
|
* Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be separated by comma (\',\')
|
|
8335
9184
|
* @summary Saver Details
|
|
@@ -8444,6 +9293,33 @@ const DefaultApiFp = function (configuration) {
|
|
|
8444
9293
|
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
8445
9294
|
});
|
|
8446
9295
|
},
|
|
9296
|
+
/**
|
|
9297
|
+
* Returns an array of TCY distribution for the given address.
|
|
9298
|
+
* @summary Tcy Distribution
|
|
9299
|
+
* @param {string} address Address which is assigned to TCY Holder.
|
|
9300
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which APR will be calculated. Default is 30d.
|
|
9301
|
+
* @param {*} [options] Override http request option.
|
|
9302
|
+
* @throws {RequiredError}
|
|
9303
|
+
*/
|
|
9304
|
+
getTcyDistribution(address, period, options) {
|
|
9305
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
9306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTcyDistribution(address, period, options);
|
|
9307
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
9308
|
+
});
|
|
9309
|
+
},
|
|
9310
|
+
/**
|
|
9311
|
+
* Returns timestamp, key, value for each active node member.
|
|
9312
|
+
* @summary Current Protocol Voting
|
|
9313
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
9314
|
+
* @param {*} [options] Override http request option.
|
|
9315
|
+
* @throws {RequiredError}
|
|
9316
|
+
*/
|
|
9317
|
+
getVotes(period, options) {
|
|
9318
|
+
return __awaiter$1(this, void 0, void 0, function* () {
|
|
9319
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getVotes(period, options);
|
|
9320
|
+
return createRequestFunction(localVarAxiosArgs, axios, BASE_PATH, configuration);
|
|
9321
|
+
});
|
|
9322
|
+
},
|
|
8447
9323
|
};
|
|
8448
9324
|
};
|
|
8449
9325
|
/**
|
|
@@ -8477,6 +9353,51 @@ class DefaultApi extends BaseAPI {
|
|
|
8477
9353
|
getActions(address, txid, asset, type, txType, affiliate, limit, offset, nextPageToken, timestamp, height, prevPageToken, fromTimestamp, fromHeight, options) {
|
|
8478
9354
|
return DefaultApiFp(this.configuration).getActions(address, txid, asset, type, txType, affiliate, limit, offset, nextPageToken, timestamp, height, prevPageToken, fromTimestamp, fromHeight, options).then((request) => request(this.axios, this.basePath));
|
|
8479
9355
|
}
|
|
9356
|
+
/**
|
|
9357
|
+
* Returns affiliate earnings (liquidity fees) in USD and RUNE in specified interval. If thorname is not specified returns all affiliates. History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
9358
|
+
* @summary Affiliate Earnings History
|
|
9359
|
+
* @param {string} [thorname] Return earnings for given thorname. Returns all affiliates if missing.
|
|
9360
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
9361
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
9362
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
9363
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
9364
|
+
* @param {*} [options] Override http request option.
|
|
9365
|
+
* @throws {RequiredError}
|
|
9366
|
+
* @memberof DefaultApi
|
|
9367
|
+
*/
|
|
9368
|
+
getAffiliateEarning(thorname, interval, count, to, from, options) {
|
|
9369
|
+
return DefaultApiFp(this.configuration).getAffiliateEarning(thorname, interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
9370
|
+
}
|
|
9371
|
+
/**
|
|
9372
|
+
* Returns affiliate count, earnings in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
9373
|
+
* @summary Affiliate earnings History
|
|
9374
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
9375
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
9376
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
9377
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
9378
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
9379
|
+
* @param {*} [options] Override http request option.
|
|
9380
|
+
* @throws {RequiredError}
|
|
9381
|
+
* @memberof DefaultApi
|
|
9382
|
+
*/
|
|
9383
|
+
getAffiliateHistory(thorname, interval, count, to, from, options) {
|
|
9384
|
+
return DefaultApiFp(this.configuration).getAffiliateHistory(thorname, interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
9385
|
+
}
|
|
9386
|
+
/**
|
|
9387
|
+
* Returns affiliate count, swap volume in USD in specified interval. If thorname is not specified returns all thornames History endpoint has two modes: * With Interval parameter it returns a series of time buckets. From and To dates will be rounded to the Interval boundaries. * Without Interval parameter a single From..To search is performed with exact timestamps. * Interval: possible values: 5min, hour, day, week, month, quarter, year. * count: [1..400]. Defines number of intervals. Don\'t provide if Interval is missing. * from/to: optional int, unix second. Possible usages with interval. * last 10 days: `?interval=day&count=10` * last 10 days before to: `?interval=day&count=10&to=1608825600` * next 10 days after from: `?interval=day&count=10&from=1606780800` * Days between from and to. From defaults to start of chain, to defaults to now. Only the first 400 intervals are returned: `interval=day&from=1606780800&to=1608825600` Pagination is possible with from&count and then using the returned meta.endTime as the From parameter of the next query. Possible configurations without interval: * exact search for one time frame: `?from=1606780899&to=1608825600` * one time frame until now: `?from=1606780899` * from chain start until now: no query parameters
|
|
9388
|
+
* @summary Affiliate Volume Stats
|
|
9389
|
+
* @param {string} [thorname] Return history given thorname. Returns sum of all thornames if missing.
|
|
9390
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
9391
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
9392
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
9393
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
9394
|
+
* @param {*} [options] Override http request option.
|
|
9395
|
+
* @throws {RequiredError}
|
|
9396
|
+
* @memberof DefaultApi
|
|
9397
|
+
*/
|
|
9398
|
+
getAffiliateStats(thorname, interval, count, to, from, options) {
|
|
9399
|
+
return DefaultApiFp(this.configuration).getAffiliateStats(thorname, interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
9400
|
+
}
|
|
8480
9401
|
/**
|
|
8481
9402
|
* Returns all coin amounts of the given address at the specified timestamp or height, or at the latest process block if neither is provided. (Only one of timestamp or height can be specified, not both.) This endpoint is enabled only if the midgard startup config allows it.
|
|
8482
9403
|
* @summary Current balance for an address
|
|
@@ -8490,6 +9411,17 @@ class DefaultApi extends BaseAPI {
|
|
|
8490
9411
|
getBalance(address, timestamp, height, options) {
|
|
8491
9412
|
return DefaultApiFp(this.configuration).getBalance(address, timestamp, height, options).then((request) => request(this.axios, this.basePath));
|
|
8492
9413
|
}
|
|
9414
|
+
/**
|
|
9415
|
+
* Returns the bond details of a given address. The response contains the bond amount, the bond status, and the bond type. This is wrapper from THORNode nodes API.
|
|
9416
|
+
* @summary Bonder Details
|
|
9417
|
+
* @param {string} address Address of the bonder
|
|
9418
|
+
* @param {*} [options] Override http request option.
|
|
9419
|
+
* @throws {RequiredError}
|
|
9420
|
+
* @memberof DefaultApi
|
|
9421
|
+
*/
|
|
9422
|
+
getBondersDetails(address, options) {
|
|
9423
|
+
return DefaultApiFp(this.configuration).getBondersDetails(address, options).then((request) => request(this.axios, this.basePath));
|
|
9424
|
+
}
|
|
8493
9425
|
/**
|
|
8494
9426
|
* Returns an array of statistics for all the open loans associated with a given borrower address.
|
|
8495
9427
|
* @summary Borrower Details
|
|
@@ -8561,6 +9493,18 @@ class DefaultApi extends BaseAPI {
|
|
|
8561
9493
|
getHealth(options) {
|
|
8562
9494
|
return DefaultApiFp(this.configuration).getHealth(options).then((request) => request(this.axios, this.basePath));
|
|
8563
9495
|
}
|
|
9496
|
+
/**
|
|
9497
|
+
* Returns all coin amounts of the given asset ordered by their amounts in descending order. This endpoint is enabled only if the midgard startup config allows it.
|
|
9498
|
+
* @summary Current top holders for an asset
|
|
9499
|
+
* @param {string} [asset] Asset to get the top holders for.
|
|
9500
|
+
* @param {number} [limit] Number of top holders to return, default is 100, maximum is 1000.
|
|
9501
|
+
* @param {*} [options] Override http request option.
|
|
9502
|
+
* @throws {RequiredError}
|
|
9503
|
+
* @memberof DefaultApi
|
|
9504
|
+
*/
|
|
9505
|
+
getHolders(asset, limit, options) {
|
|
9506
|
+
return DefaultApiFp(this.configuration).getHolders(asset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
9507
|
+
}
|
|
8564
9508
|
/**
|
|
8565
9509
|
* Returns an object with known pools and their statuses
|
|
8566
9510
|
* @summary Known Pools List
|
|
@@ -8704,6 +9648,20 @@ class DefaultApi extends BaseAPI {
|
|
|
8704
9648
|
getReserveHistory(interval, count, to, from, options) {
|
|
8705
9649
|
return DefaultApiFp(this.configuration).getReserveHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
8706
9650
|
}
|
|
9651
|
+
/**
|
|
9652
|
+
* Returns rune price history in USD based on the time bucket given
|
|
9653
|
+
* @summary Rune price history in USD
|
|
9654
|
+
* @param {'5min' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year'} [interval] Interval of calculations
|
|
9655
|
+
* @param {number} [count] Number of intervals to return. Should be between [1..400].
|
|
9656
|
+
* @param {number} [to] End time of the query as unix timestamp. If only count is given, defaults to now.
|
|
9657
|
+
* @param {number} [from] Start time of the query as unix timestamp
|
|
9658
|
+
* @param {*} [options] Override http request option.
|
|
9659
|
+
* @throws {RequiredError}
|
|
9660
|
+
* @memberof DefaultApi
|
|
9661
|
+
*/
|
|
9662
|
+
getRunePriceHistory(interval, count, to, from, options) {
|
|
9663
|
+
return DefaultApiFp(this.configuration).getRunePriceHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
9664
|
+
}
|
|
8707
9665
|
/**
|
|
8708
9666
|
* Returns an array of statistics for all the savers associated with a given member address. Query can also be multiple addresses should be separated by comma (\',\')
|
|
8709
9667
|
* @summary Saver Details
|
|
@@ -8802,6 +9760,29 @@ class DefaultApi extends BaseAPI {
|
|
|
8802
9760
|
getTVLHistory(interval, count, to, from, options) {
|
|
8803
9761
|
return DefaultApiFp(this.configuration).getTVLHistory(interval, count, to, from, options).then((request) => request(this.axios, this.basePath));
|
|
8804
9762
|
}
|
|
9763
|
+
/**
|
|
9764
|
+
* Returns an array of TCY distribution for the given address.
|
|
9765
|
+
* @summary Tcy Distribution
|
|
9766
|
+
* @param {string} address Address which is assigned to TCY Holder.
|
|
9767
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which APR will be calculated. Default is 30d.
|
|
9768
|
+
* @param {*} [options] Override http request option.
|
|
9769
|
+
* @throws {RequiredError}
|
|
9770
|
+
* @memberof DefaultApi
|
|
9771
|
+
*/
|
|
9772
|
+
getTcyDistribution(address, period, options) {
|
|
9773
|
+
return DefaultApiFp(this.configuration).getTcyDistribution(address, period, options).then((request) => request(this.axios, this.basePath));
|
|
9774
|
+
}
|
|
9775
|
+
/**
|
|
9776
|
+
* Returns timestamp, key, value for each active node member.
|
|
9777
|
+
* @summary Current Protocol Voting
|
|
9778
|
+
* @param {'1h' | '24h' | '7d' | '14d' | '30d' | '90d' | '100d' | '180d' | '365d' | 'all'} [period] Specifies the base interval from which votes will be shown. Default is 90d.
|
|
9779
|
+
* @param {*} [options] Override http request option.
|
|
9780
|
+
* @throws {RequiredError}
|
|
9781
|
+
* @memberof DefaultApi
|
|
9782
|
+
*/
|
|
9783
|
+
getVotes(period, options) {
|
|
9784
|
+
return DefaultApiFp(this.configuration).getVotes(period, options).then((request) => request(this.axios, this.basePath));
|
|
9785
|
+
}
|
|
8805
9786
|
}
|
|
8806
9787
|
|
|
8807
9788
|
/* tslint:disable */
|
|
@@ -8810,7 +9791,7 @@ class DefaultApi extends BaseAPI {
|
|
|
8810
9791
|
* Midgard Public API
|
|
8811
9792
|
* The Midgard Public API queries THORChain and any chains linked via the Bifröst and prepares information about the network to be readily available for public users. The API parses transaction event data from THORChain and stores them in a time-series database to make time-dependent queries easy. Midgard does not hold critical information. To interact with THORChain protocol, users should query THORNode directly.
|
|
8812
9793
|
*
|
|
8813
|
-
* The version of the OpenAPI document: 2.
|
|
9794
|
+
* The version of the OpenAPI document: 2.34.0
|
|
8814
9795
|
* Contact: devs@thorchain.org
|
|
8815
9796
|
*
|
|
8816
9797
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|