@xchainjs/xchain-thornode 1.0.6 → 1.1.0

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.js CHANGED
@@ -44,7 +44,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
44
44
  * Thornode API
45
45
  * Thornode REST API.
46
46
  *
47
- * The version of the OpenAPI document: 3.5.1
47
+ * The version of the OpenAPI document: 3.15.0
48
48
  * Contact: devs@thorchain.org
49
49
  *
50
50
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -89,7 +89,7 @@ class RequiredError extends Error {
89
89
  * Thornode API
90
90
  * Thornode REST API.
91
91
  *
92
- * The version of the OpenAPI document: 3.5.1
92
+ * The version of the OpenAPI document: 3.15.0
93
93
  * Contact: devs@thorchain.org
94
94
  *
95
95
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -162,7 +162,7 @@ const createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, confi
162
162
  * Thornode API
163
163
  * Thornode REST API.
164
164
  *
165
- * The version of the OpenAPI document: 3.5.1
165
+ * The version of the OpenAPI document: 3.15.0
166
166
  * Contact: devs@thorchain.org
167
167
  *
168
168
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -485,26 +485,22 @@ class BlockApi extends BaseAPI {
485
485
  }
486
486
  }
487
487
  /**
488
- * BorrowersApi - axios parameter creator
488
+ * CloutApi - axios parameter creator
489
489
  * @export
490
490
  */
491
- const BorrowersApiAxiosParamCreator = function (configuration) {
491
+ const CloutApiAxiosParamCreator = function (configuration) {
492
492
  return {
493
493
  /**
494
- * Returns the borrower position given the pool and address.
495
- * @param {string} asset
494
+ * Returns the clout score of an address
496
495
  * @param {string} address
497
496
  * @param {number} [height] optional block height, defaults to current tip
498
497
  * @param {*} [options] Override http request option.
499
498
  * @throws {RequiredError}
500
499
  */
501
- borrower: (asset_1, address_1, height_1, ...args_1) => __awaiter(this, [asset_1, address_1, height_1, ...args_1], void 0, function* (asset, address, height, options = {}) {
502
- // verify required parameter 'asset' is not null or undefined
503
- assertParamExists('borrower', 'asset', asset);
500
+ swapperClout: (address_1, height_1, ...args_1) => __awaiter(this, [address_1, height_1, ...args_1], void 0, function* (address, height, options = {}) {
504
501
  // verify required parameter 'address' is not null or undefined
505
- assertParamExists('borrower', 'address', address);
506
- const localVarPath = `/thorchain/pool/{asset}/borrower/{address}`
507
- .replace(`{${"asset"}}`, encodeURIComponent(String(asset)))
502
+ assertParamExists('swapperClout', 'address', address);
503
+ const localVarPath = `/thorchain/clout/swap/{address}`
508
504
  .replace(`{${"address"}}`, encodeURIComponent(String(address)));
509
505
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
510
506
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -526,155 +522,82 @@ const BorrowersApiAxiosParamCreator = function (configuration) {
526
522
  options: localVarRequestOptions,
527
523
  };
528
524
  }),
529
- /**
530
- * Returns all borrowers for the given pool.
531
- * @param {string} asset
532
- * @param {number} [height] optional block height, defaults to current tip
533
- * @param {*} [options] Override http request option.
534
- * @throws {RequiredError}
535
- */
536
- borrowers: (asset_1, height_1, ...args_1) => __awaiter(this, [asset_1, height_1, ...args_1], void 0, function* (asset, height, options = {}) {
537
- // verify required parameter 'asset' is not null or undefined
538
- assertParamExists('borrowers', 'asset', asset);
539
- const localVarPath = `/thorchain/pool/{asset}/borrowers`
540
- .replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
541
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
543
- let baseOptions;
544
- if (configuration) {
545
- baseOptions = configuration.baseOptions;
546
- }
547
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
548
- const localVarHeaderParameter = {};
549
- const localVarQueryParameter = {};
550
- if (height !== undefined) {
551
- localVarQueryParameter['height'] = height;
552
- }
553
- setSearchParams(localVarUrlObj, localVarQueryParameter);
554
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
555
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
556
- return {
557
- url: toPathString(localVarUrlObj),
558
- options: localVarRequestOptions,
559
- };
560
- }),
561
525
  };
562
526
  };
563
527
  /**
564
- * BorrowersApi - functional programming interface
528
+ * CloutApi - functional programming interface
565
529
  * @export
566
530
  */
567
- const BorrowersApiFp = function (configuration) {
568
- const localVarAxiosParamCreator = BorrowersApiAxiosParamCreator(configuration);
531
+ const CloutApiFp = function (configuration) {
532
+ const localVarAxiosParamCreator = CloutApiAxiosParamCreator(configuration);
569
533
  return {
570
534
  /**
571
- * Returns the borrower position given the pool and address.
572
- * @param {string} asset
535
+ * Returns the clout score of an address
573
536
  * @param {string} address
574
537
  * @param {number} [height] optional block height, defaults to current tip
575
538
  * @param {*} [options] Override http request option.
576
539
  * @throws {RequiredError}
577
540
  */
578
- borrower(asset, address, height, options) {
579
- return __awaiter(this, void 0, void 0, function* () {
580
- const localVarAxiosArgs = yield localVarAxiosParamCreator.borrower(asset, address, height, options);
581
- return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
582
- });
583
- },
584
- /**
585
- * Returns all borrowers for the given pool.
586
- * @param {string} asset
587
- * @param {number} [height] optional block height, defaults to current tip
588
- * @param {*} [options] Override http request option.
589
- * @throws {RequiredError}
590
- */
591
- borrowers(asset, height, options) {
541
+ swapperClout(address, height, options) {
592
542
  return __awaiter(this, void 0, void 0, function* () {
593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.borrowers(asset, height, options);
543
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.swapperClout(address, height, options);
594
544
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
595
545
  });
596
546
  },
597
547
  };
598
548
  };
599
549
  /**
600
- * BorrowersApi - factory interface
550
+ * CloutApi - factory interface
601
551
  * @export
602
552
  */
603
- const BorrowersApiFactory = function (configuration, basePath, axios) {
604
- const localVarFp = BorrowersApiFp(configuration);
553
+ const CloutApiFactory = function (configuration, basePath, axios) {
554
+ const localVarFp = CloutApiFp(configuration);
605
555
  return {
606
556
  /**
607
- * Returns the borrower position given the pool and address.
608
- * @param {string} asset
557
+ * Returns the clout score of an address
609
558
  * @param {string} address
610
559
  * @param {number} [height] optional block height, defaults to current tip
611
560
  * @param {*} [options] Override http request option.
612
561
  * @throws {RequiredError}
613
562
  */
614
- borrower(asset, address, height, options) {
615
- return localVarFp.borrower(asset, address, height, options).then((request) => request(axios, basePath));
616
- },
617
- /**
618
- * Returns all borrowers for the given pool.
619
- * @param {string} asset
620
- * @param {number} [height] optional block height, defaults to current tip
621
- * @param {*} [options] Override http request option.
622
- * @throws {RequiredError}
623
- */
624
- borrowers(asset, height, options) {
625
- return localVarFp.borrowers(asset, height, options).then((request) => request(axios, basePath));
563
+ swapperClout(address, height, options) {
564
+ return localVarFp.swapperClout(address, height, options).then((request) => request(axios, basePath));
626
565
  },
627
566
  };
628
567
  };
629
568
  /**
630
- * BorrowersApi - object-oriented interface
569
+ * CloutApi - object-oriented interface
631
570
  * @export
632
- * @class BorrowersApi
571
+ * @class CloutApi
633
572
  * @extends {BaseAPI}
634
573
  */
635
- class BorrowersApi extends BaseAPI {
574
+ class CloutApi extends BaseAPI {
636
575
  /**
637
- * Returns the borrower position given the pool and address.
638
- * @param {string} asset
576
+ * Returns the clout score of an address
639
577
  * @param {string} address
640
578
  * @param {number} [height] optional block height, defaults to current tip
641
579
  * @param {*} [options] Override http request option.
642
580
  * @throws {RequiredError}
643
- * @memberof BorrowersApi
644
- */
645
- borrower(asset, address, height, options) {
646
- return BorrowersApiFp(this.configuration).borrower(asset, address, height, options).then((request) => request(this.axios, this.basePath));
647
- }
648
- /**
649
- * Returns all borrowers for the given pool.
650
- * @param {string} asset
651
- * @param {number} [height] optional block height, defaults to current tip
652
- * @param {*} [options] Override http request option.
653
- * @throws {RequiredError}
654
- * @memberof BorrowersApi
581
+ * @memberof CloutApi
655
582
  */
656
- borrowers(asset, height, options) {
657
- return BorrowersApiFp(this.configuration).borrowers(asset, height, options).then((request) => request(this.axios, this.basePath));
583
+ swapperClout(address, height, options) {
584
+ return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
658
585
  }
659
586
  }
660
587
  /**
661
- * CloutApi - axios parameter creator
588
+ * CodesApi - axios parameter creator
662
589
  * @export
663
590
  */
664
- const CloutApiAxiosParamCreator = function (configuration) {
591
+ const CodesApiAxiosParamCreator = function (configuration) {
665
592
  return {
666
593
  /**
667
- * Returns the clout score of an address
668
- * @param {string} address
594
+ * Returns all whitelisted contract codes
669
595
  * @param {number} [height] optional block height, defaults to current tip
670
596
  * @param {*} [options] Override http request option.
671
597
  * @throws {RequiredError}
672
598
  */
673
- swapperClout: (address_1, height_1, ...args_1) => __awaiter(this, [address_1, height_1, ...args_1], void 0, function* (address, height, options = {}) {
674
- // verify required parameter 'address' is not null or undefined
675
- assertParamExists('swapperClout', 'address', address);
676
- const localVarPath = `/thorchain/clout/swap/{address}`
677
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
599
+ codes: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
600
+ const localVarPath = `/thorchain/codes`;
678
601
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
679
602
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
680
603
  let baseOptions;
@@ -698,63 +621,60 @@ const CloutApiAxiosParamCreator = function (configuration) {
698
621
  };
699
622
  };
700
623
  /**
701
- * CloutApi - functional programming interface
624
+ * CodesApi - functional programming interface
702
625
  * @export
703
626
  */
704
- const CloutApiFp = function (configuration) {
705
- const localVarAxiosParamCreator = CloutApiAxiosParamCreator(configuration);
627
+ const CodesApiFp = function (configuration) {
628
+ const localVarAxiosParamCreator = CodesApiAxiosParamCreator(configuration);
706
629
  return {
707
630
  /**
708
- * Returns the clout score of an address
709
- * @param {string} address
631
+ * Returns all whitelisted contract codes
710
632
  * @param {number} [height] optional block height, defaults to current tip
711
633
  * @param {*} [options] Override http request option.
712
634
  * @throws {RequiredError}
713
635
  */
714
- swapperClout(address, height, options) {
636
+ codes(height, options) {
715
637
  return __awaiter(this, void 0, void 0, function* () {
716
- const localVarAxiosArgs = yield localVarAxiosParamCreator.swapperClout(address, height, options);
638
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.codes(height, options);
717
639
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
718
640
  });
719
641
  },
720
642
  };
721
643
  };
722
644
  /**
723
- * CloutApi - factory interface
645
+ * CodesApi - factory interface
724
646
  * @export
725
647
  */
726
- const CloutApiFactory = function (configuration, basePath, axios) {
727
- const localVarFp = CloutApiFp(configuration);
648
+ const CodesApiFactory = function (configuration, basePath, axios) {
649
+ const localVarFp = CodesApiFp(configuration);
728
650
  return {
729
651
  /**
730
- * Returns the clout score of an address
731
- * @param {string} address
652
+ * Returns all whitelisted contract codes
732
653
  * @param {number} [height] optional block height, defaults to current tip
733
654
  * @param {*} [options] Override http request option.
734
655
  * @throws {RequiredError}
735
656
  */
736
- swapperClout(address, height, options) {
737
- return localVarFp.swapperClout(address, height, options).then((request) => request(axios, basePath));
657
+ codes(height, options) {
658
+ return localVarFp.codes(height, options).then((request) => request(axios, basePath));
738
659
  },
739
660
  };
740
661
  };
741
662
  /**
742
- * CloutApi - object-oriented interface
663
+ * CodesApi - object-oriented interface
743
664
  * @export
744
- * @class CloutApi
665
+ * @class CodesApi
745
666
  * @extends {BaseAPI}
746
667
  */
747
- class CloutApi extends BaseAPI {
668
+ class CodesApi extends BaseAPI {
748
669
  /**
749
- * Returns the clout score of an address
750
- * @param {string} address
670
+ * Returns all whitelisted contract codes
751
671
  * @param {number} [height] optional block height, defaults to current tip
752
672
  * @param {*} [options] Override http request option.
753
673
  * @throws {RequiredError}
754
- * @memberof CloutApi
674
+ * @memberof CodesApi
755
675
  */
756
- swapperClout(address, height, options) {
757
- return CloutApiFp(this.configuration).swapperClout(address, height, options).then((request) => request(this.axios, this.basePath));
676
+ codes(height, options) {
677
+ return CodesApiFp(this.configuration).codes(height, options).then((request) => request(this.axios, this.basePath));
758
678
  }
759
679
  }
760
680
  /**
@@ -1088,6 +1008,162 @@ class InvariantsApi extends BaseAPI {
1088
1008
  return InvariantsApiFp(this.configuration).invariants(height, options).then((request) => request(this.axios, this.basePath));
1089
1009
  }
1090
1010
  }
1011
+ /**
1012
+ * LimitOrderApi - axios parameter creator
1013
+ * @export
1014
+ */
1015
+ const LimitOrderApiAxiosParamCreator = function (configuration) {
1016
+ return {
1017
+ /**
1018
+ * Provide a limit order quote and memo for the provided limit order
1019
+ * @param {number} [height] optional block height, defaults to current tip
1020
+ * @param {string} [fromAsset] the source asset
1021
+ * @param {string} [toAsset] the target asset
1022
+ * @param {number} [amount] the source asset amount in 1e8 decimals
1023
+ * @param {string} [destination] the destination address, required to generate memo
1024
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
1025
+ * @param {number} [customTtl] the custom TTL in blocks for limit orders
1026
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
1027
+ * @param {number} [affiliateBps] the affiliate fee in basis points
1028
+ * @param {string} [affiliate] the affiliate (address or thorname)
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ quotelimit: (height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, customTtl_1, streamingQuantity_1, affiliateBps_1, affiliate_1, ...args_1) => __awaiter(this, [height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, customTtl_1, streamingQuantity_1, affiliateBps_1, affiliate_1, ...args_1], void 0, function* (height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options = {}) {
1033
+ const localVarPath = `/thorchain/quote/limit`;
1034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1036
+ let baseOptions;
1037
+ if (configuration) {
1038
+ baseOptions = configuration.baseOptions;
1039
+ }
1040
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1041
+ const localVarHeaderParameter = {};
1042
+ const localVarQueryParameter = {};
1043
+ if (height !== undefined) {
1044
+ localVarQueryParameter['height'] = height;
1045
+ }
1046
+ if (fromAsset !== undefined) {
1047
+ localVarQueryParameter['from_asset'] = fromAsset;
1048
+ }
1049
+ if (toAsset !== undefined) {
1050
+ localVarQueryParameter['to_asset'] = toAsset;
1051
+ }
1052
+ if (amount !== undefined) {
1053
+ localVarQueryParameter['amount'] = amount;
1054
+ }
1055
+ if (destination !== undefined) {
1056
+ localVarQueryParameter['destination'] = destination;
1057
+ }
1058
+ if (refundAddress !== undefined) {
1059
+ localVarQueryParameter['refund_address'] = refundAddress;
1060
+ }
1061
+ if (customTtl !== undefined) {
1062
+ localVarQueryParameter['custom_ttl'] = customTtl;
1063
+ }
1064
+ if (streamingQuantity !== undefined) {
1065
+ localVarQueryParameter['streaming_quantity'] = streamingQuantity;
1066
+ }
1067
+ if (affiliateBps !== undefined) {
1068
+ localVarQueryParameter['affiliate_bps'] = affiliateBps;
1069
+ }
1070
+ if (affiliate !== undefined) {
1071
+ localVarQueryParameter['affiliate'] = affiliate;
1072
+ }
1073
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1075
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1076
+ return {
1077
+ url: toPathString(localVarUrlObj),
1078
+ options: localVarRequestOptions,
1079
+ };
1080
+ }),
1081
+ };
1082
+ };
1083
+ /**
1084
+ * LimitOrderApi - functional programming interface
1085
+ * @export
1086
+ */
1087
+ const LimitOrderApiFp = function (configuration) {
1088
+ const localVarAxiosParamCreator = LimitOrderApiAxiosParamCreator(configuration);
1089
+ return {
1090
+ /**
1091
+ * Provide a limit order quote and memo for the provided limit order
1092
+ * @param {number} [height] optional block height, defaults to current tip
1093
+ * @param {string} [fromAsset] the source asset
1094
+ * @param {string} [toAsset] the target asset
1095
+ * @param {number} [amount] the source asset amount in 1e8 decimals
1096
+ * @param {string} [destination] the destination address, required to generate memo
1097
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
1098
+ * @param {number} [customTtl] the custom TTL in blocks for limit orders
1099
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
1100
+ * @param {number} [affiliateBps] the affiliate fee in basis points
1101
+ * @param {string} [affiliate] the affiliate (address or thorname)
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options) {
1106
+ return __awaiter(this, void 0, void 0, function* () {
1107
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options);
1108
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
1109
+ });
1110
+ },
1111
+ };
1112
+ };
1113
+ /**
1114
+ * LimitOrderApi - factory interface
1115
+ * @export
1116
+ */
1117
+ const LimitOrderApiFactory = function (configuration, basePath, axios) {
1118
+ const localVarFp = LimitOrderApiFp(configuration);
1119
+ return {
1120
+ /**
1121
+ * Provide a limit order quote and memo for the provided limit order
1122
+ * @param {number} [height] optional block height, defaults to current tip
1123
+ * @param {string} [fromAsset] the source asset
1124
+ * @param {string} [toAsset] the target asset
1125
+ * @param {number} [amount] the source asset amount in 1e8 decimals
1126
+ * @param {string} [destination] the destination address, required to generate memo
1127
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
1128
+ * @param {number} [customTtl] the custom TTL in blocks for limit orders
1129
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
1130
+ * @param {number} [affiliateBps] the affiliate fee in basis points
1131
+ * @param {string} [affiliate] the affiliate (address or thorname)
1132
+ * @param {*} [options] Override http request option.
1133
+ * @throws {RequiredError}
1134
+ */
1135
+ quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options) {
1136
+ return localVarFp.quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
1137
+ },
1138
+ };
1139
+ };
1140
+ /**
1141
+ * LimitOrderApi - object-oriented interface
1142
+ * @export
1143
+ * @class LimitOrderApi
1144
+ * @extends {BaseAPI}
1145
+ */
1146
+ class LimitOrderApi extends BaseAPI {
1147
+ /**
1148
+ * Provide a limit order quote and memo for the provided limit order
1149
+ * @param {number} [height] optional block height, defaults to current tip
1150
+ * @param {string} [fromAsset] the source asset
1151
+ * @param {string} [toAsset] the target asset
1152
+ * @param {number} [amount] the source asset amount in 1e8 decimals
1153
+ * @param {string} [destination] the destination address, required to generate memo
1154
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
1155
+ * @param {number} [customTtl] the custom TTL in blocks for limit orders
1156
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
1157
+ * @param {number} [affiliateBps] the affiliate fee in basis points
1158
+ * @param {string} [affiliate] the affiliate (address or thorname)
1159
+ * @param {*} [options] Override http request option.
1160
+ * @throws {RequiredError}
1161
+ * @memberof LimitOrderApi
1162
+ */
1163
+ quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options) {
1164
+ return LimitOrderApiFp(this.configuration).quotelimit(height, fromAsset, toAsset, amount, destination, refundAddress, customTtl, streamingQuantity, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
1165
+ }
1166
+ }
1091
1167
  /**
1092
1168
  * LiquidityProvidersApi - axios parameter creator
1093
1169
  * @export
@@ -2600,23 +2676,23 @@ class NodesApi extends BaseAPI {
2600
2676
  }
2601
2677
  }
2602
2678
  /**
2603
- * PoolSlipApi - axios parameter creator
2679
+ * OracleApi - axios parameter creator
2604
2680
  * @export
2605
2681
  */
2606
- const PoolSlipApiAxiosParamCreator = function (configuration) {
2682
+ const OracleApiAxiosParamCreator = function (configuration) {
2607
2683
  return {
2608
2684
  /**
2609
- * Returns the pool slip information for the provided asset.
2610
- * @param {string} asset
2685
+ * Returns oracle price for a symbol.
2686
+ * @param {string} symbol
2611
2687
  * @param {number} [height] optional block height, defaults to current tip
2612
2688
  * @param {*} [options] Override http request option.
2613
2689
  * @throws {RequiredError}
2614
2690
  */
2615
- poolslip: (asset_1, height_1, ...args_1) => __awaiter(this, [asset_1, height_1, ...args_1], void 0, function* (asset, height, options = {}) {
2616
- // verify required parameter 'asset' is not null or undefined
2617
- assertParamExists('poolslip', 'asset', asset);
2618
- const localVarPath = `/thorchain/slip/{asset}`
2619
- .replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
2691
+ oraclePrice: (symbol_1, height_1, ...args_1) => __awaiter(this, [symbol_1, height_1, ...args_1], void 0, function* (symbol, height, options = {}) {
2692
+ // verify required parameter 'symbol' is not null or undefined
2693
+ assertParamExists('oraclePrice', 'symbol', symbol);
2694
+ const localVarPath = `/thorchain/oracle/price/{symbol}`
2695
+ .replace(`{${"symbol"}}`, encodeURIComponent(String(symbol)));
2620
2696
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2621
2697
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2622
2698
  let baseOptions;
@@ -2638,13 +2714,13 @@ const PoolSlipApiAxiosParamCreator = function (configuration) {
2638
2714
  };
2639
2715
  }),
2640
2716
  /**
2641
- * Returns the pool slip information for all Available Layer 1 pool assets.
2717
+ * Returns all available oracle prices.
2642
2718
  * @param {number} [height] optional block height, defaults to current tip
2643
2719
  * @param {*} [options] Override http request option.
2644
2720
  * @throws {RequiredError}
2645
2721
  */
2646
- poolslips: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
2647
- const localVarPath = `/thorchain/slips`;
2722
+ oraclePrices: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
2723
+ const localVarPath = `/thorchain/oracle/prices`;
2648
2724
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2649
2725
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2650
2726
  let baseOptions;
@@ -2668,14 +2744,173 @@ const PoolSlipApiAxiosParamCreator = function (configuration) {
2668
2744
  };
2669
2745
  };
2670
2746
  /**
2671
- * PoolSlipApi - functional programming interface
2747
+ * OracleApi - functional programming interface
2672
2748
  * @export
2673
2749
  */
2674
- const PoolSlipApiFp = function (configuration) {
2675
- const localVarAxiosParamCreator = PoolSlipApiAxiosParamCreator(configuration);
2750
+ const OracleApiFp = function (configuration) {
2751
+ const localVarAxiosParamCreator = OracleApiAxiosParamCreator(configuration);
2676
2752
  return {
2677
2753
  /**
2678
- * Returns the pool slip information for the provided asset.
2754
+ * Returns oracle price for a symbol.
2755
+ * @param {string} symbol
2756
+ * @param {number} [height] optional block height, defaults to current tip
2757
+ * @param {*} [options] Override http request option.
2758
+ * @throws {RequiredError}
2759
+ */
2760
+ oraclePrice(symbol, height, options) {
2761
+ return __awaiter(this, void 0, void 0, function* () {
2762
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oraclePrice(symbol, height, options);
2763
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
2764
+ });
2765
+ },
2766
+ /**
2767
+ * Returns all available oracle prices.
2768
+ * @param {number} [height] optional block height, defaults to current tip
2769
+ * @param {*} [options] Override http request option.
2770
+ * @throws {RequiredError}
2771
+ */
2772
+ oraclePrices(height, options) {
2773
+ return __awaiter(this, void 0, void 0, function* () {
2774
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oraclePrices(height, options);
2775
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
2776
+ });
2777
+ },
2778
+ };
2779
+ };
2780
+ /**
2781
+ * OracleApi - factory interface
2782
+ * @export
2783
+ */
2784
+ const OracleApiFactory = function (configuration, basePath, axios) {
2785
+ const localVarFp = OracleApiFp(configuration);
2786
+ return {
2787
+ /**
2788
+ * Returns oracle price for a symbol.
2789
+ * @param {string} symbol
2790
+ * @param {number} [height] optional block height, defaults to current tip
2791
+ * @param {*} [options] Override http request option.
2792
+ * @throws {RequiredError}
2793
+ */
2794
+ oraclePrice(symbol, height, options) {
2795
+ return localVarFp.oraclePrice(symbol, height, options).then((request) => request(axios, basePath));
2796
+ },
2797
+ /**
2798
+ * Returns all available oracle prices.
2799
+ * @param {number} [height] optional block height, defaults to current tip
2800
+ * @param {*} [options] Override http request option.
2801
+ * @throws {RequiredError}
2802
+ */
2803
+ oraclePrices(height, options) {
2804
+ return localVarFp.oraclePrices(height, options).then((request) => request(axios, basePath));
2805
+ },
2806
+ };
2807
+ };
2808
+ /**
2809
+ * OracleApi - object-oriented interface
2810
+ * @export
2811
+ * @class OracleApi
2812
+ * @extends {BaseAPI}
2813
+ */
2814
+ class OracleApi extends BaseAPI {
2815
+ /**
2816
+ * Returns oracle price for a symbol.
2817
+ * @param {string} symbol
2818
+ * @param {number} [height] optional block height, defaults to current tip
2819
+ * @param {*} [options] Override http request option.
2820
+ * @throws {RequiredError}
2821
+ * @memberof OracleApi
2822
+ */
2823
+ oraclePrice(symbol, height, options) {
2824
+ return OracleApiFp(this.configuration).oraclePrice(symbol, height, options).then((request) => request(this.axios, this.basePath));
2825
+ }
2826
+ /**
2827
+ * Returns all available oracle prices.
2828
+ * @param {number} [height] optional block height, defaults to current tip
2829
+ * @param {*} [options] Override http request option.
2830
+ * @throws {RequiredError}
2831
+ * @memberof OracleApi
2832
+ */
2833
+ oraclePrices(height, options) {
2834
+ return OracleApiFp(this.configuration).oraclePrices(height, options).then((request) => request(this.axios, this.basePath));
2835
+ }
2836
+ }
2837
+ /**
2838
+ * PoolSlipApi - axios parameter creator
2839
+ * @export
2840
+ */
2841
+ const PoolSlipApiAxiosParamCreator = function (configuration) {
2842
+ return {
2843
+ /**
2844
+ * Returns the pool slip information for the provided asset.
2845
+ * @param {string} asset
2846
+ * @param {number} [height] optional block height, defaults to current tip
2847
+ * @param {*} [options] Override http request option.
2848
+ * @throws {RequiredError}
2849
+ */
2850
+ poolslip: (asset_1, height_1, ...args_1) => __awaiter(this, [asset_1, height_1, ...args_1], void 0, function* (asset, height, options = {}) {
2851
+ // verify required parameter 'asset' is not null or undefined
2852
+ assertParamExists('poolslip', 'asset', asset);
2853
+ const localVarPath = `/thorchain/slip/{asset}`
2854
+ .replace(`{${"asset"}}`, encodeURIComponent(String(asset)));
2855
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2856
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2857
+ let baseOptions;
2858
+ if (configuration) {
2859
+ baseOptions = configuration.baseOptions;
2860
+ }
2861
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2862
+ const localVarHeaderParameter = {};
2863
+ const localVarQueryParameter = {};
2864
+ if (height !== undefined) {
2865
+ localVarQueryParameter['height'] = height;
2866
+ }
2867
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2868
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2869
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2870
+ return {
2871
+ url: toPathString(localVarUrlObj),
2872
+ options: localVarRequestOptions,
2873
+ };
2874
+ }),
2875
+ /**
2876
+ * Returns the pool slip information for all Available Layer 1 pool assets.
2877
+ * @param {number} [height] optional block height, defaults to current tip
2878
+ * @param {*} [options] Override http request option.
2879
+ * @throws {RequiredError}
2880
+ */
2881
+ poolslips: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
2882
+ const localVarPath = `/thorchain/slips`;
2883
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2884
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2885
+ let baseOptions;
2886
+ if (configuration) {
2887
+ baseOptions = configuration.baseOptions;
2888
+ }
2889
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2890
+ const localVarHeaderParameter = {};
2891
+ const localVarQueryParameter = {};
2892
+ if (height !== undefined) {
2893
+ localVarQueryParameter['height'] = height;
2894
+ }
2895
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2896
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2897
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2898
+ return {
2899
+ url: toPathString(localVarUrlObj),
2900
+ options: localVarRequestOptions,
2901
+ };
2902
+ }),
2903
+ };
2904
+ };
2905
+ /**
2906
+ * PoolSlipApi - functional programming interface
2907
+ * @export
2908
+ */
2909
+ const PoolSlipApiFp = function (configuration) {
2910
+ const localVarAxiosParamCreator = PoolSlipApiAxiosParamCreator(configuration);
2911
+ return {
2912
+ /**
2913
+ * Returns the pool slip information for the provided asset.
2679
2914
  * @param {string} asset
2680
2915
  * @param {number} [height] optional block height, defaults to current tip
2681
2916
  * @param {*} [options] Override http request option.
@@ -3048,6 +3283,98 @@ class PoolsApi extends BaseAPI {
3048
3283
  */
3049
3284
  const QueueApiAxiosParamCreator = function (configuration) {
3050
3285
  return {
3286
+ /**
3287
+ * Returns limit swaps with pagination and filtering.
3288
+ * @param {number} [height] optional block height, defaults to current tip
3289
+ * @param {number} [offset] Number of items to skip
3290
+ * @param {number} [limit] Number of items to return
3291
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3292
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3293
+ * @param {string} [sender] Filter by sender address
3294
+ * @param {'ratio' | 'age' | 'amount' | 'created_height'} [sortBy] Sort by field
3295
+ * @param {'asc' | 'desc'} [sortOrder] Sort order
3296
+ * @param {*} [options] Override http request option.
3297
+ * @throws {RequiredError}
3298
+ */
3299
+ limitSwaps: (height_1, offset_1, limit_1, sourceAsset_1, targetAsset_1, sender_1, sortBy_1, sortOrder_1, ...args_1) => __awaiter(this, [height_1, offset_1, limit_1, sourceAsset_1, targetAsset_1, sender_1, sortBy_1, sortOrder_1, ...args_1], void 0, function* (height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options = {}) {
3300
+ const localVarPath = `/thorchain/queue/limit_swaps`;
3301
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3302
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3303
+ let baseOptions;
3304
+ if (configuration) {
3305
+ baseOptions = configuration.baseOptions;
3306
+ }
3307
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3308
+ const localVarHeaderParameter = {};
3309
+ const localVarQueryParameter = {};
3310
+ if (height !== undefined) {
3311
+ localVarQueryParameter['height'] = height;
3312
+ }
3313
+ if (offset !== undefined) {
3314
+ localVarQueryParameter['offset'] = offset;
3315
+ }
3316
+ if (limit !== undefined) {
3317
+ localVarQueryParameter['limit'] = limit;
3318
+ }
3319
+ if (sourceAsset !== undefined) {
3320
+ localVarQueryParameter['source_asset'] = sourceAsset;
3321
+ }
3322
+ if (targetAsset !== undefined) {
3323
+ localVarQueryParameter['target_asset'] = targetAsset;
3324
+ }
3325
+ if (sender !== undefined) {
3326
+ localVarQueryParameter['sender'] = sender;
3327
+ }
3328
+ if (sortBy !== undefined) {
3329
+ localVarQueryParameter['sort_by'] = sortBy;
3330
+ }
3331
+ if (sortOrder !== undefined) {
3332
+ localVarQueryParameter['sort_order'] = sortOrder;
3333
+ }
3334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3336
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3337
+ return {
3338
+ url: toPathString(localVarUrlObj),
3339
+ options: localVarRequestOptions,
3340
+ };
3341
+ }),
3342
+ /**
3343
+ * Returns limit swaps summary statistics.
3344
+ * @param {number} [height] optional block height, defaults to current tip
3345
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3346
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3347
+ * @param {*} [options] Override http request option.
3348
+ * @throws {RequiredError}
3349
+ */
3350
+ limitSwapsSummary: (height_1, sourceAsset_1, targetAsset_1, ...args_1) => __awaiter(this, [height_1, sourceAsset_1, targetAsset_1, ...args_1], void 0, function* (height, sourceAsset, targetAsset, options = {}) {
3351
+ const localVarPath = `/thorchain/queue/limit_swaps/summary`;
3352
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3353
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3354
+ let baseOptions;
3355
+ if (configuration) {
3356
+ baseOptions = configuration.baseOptions;
3357
+ }
3358
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3359
+ const localVarHeaderParameter = {};
3360
+ const localVarQueryParameter = {};
3361
+ if (height !== undefined) {
3362
+ localVarQueryParameter['height'] = height;
3363
+ }
3364
+ if (sourceAsset !== undefined) {
3365
+ localVarQueryParameter['source_asset'] = sourceAsset;
3366
+ }
3367
+ if (targetAsset !== undefined) {
3368
+ localVarQueryParameter['target_asset'] = targetAsset;
3369
+ }
3370
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3372
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3373
+ return {
3374
+ url: toPathString(localVarUrlObj),
3375
+ options: localVarRequestOptions,
3376
+ };
3377
+ }),
3051
3378
  /**
3052
3379
  * Returns queue statistics.
3053
3380
  * @param {number} [height] optional block height, defaults to current tip
@@ -3169,6 +3496,39 @@ const QueueApiAxiosParamCreator = function (configuration) {
3169
3496
  const QueueApiFp = function (configuration) {
3170
3497
  const localVarAxiosParamCreator = QueueApiAxiosParamCreator(configuration);
3171
3498
  return {
3499
+ /**
3500
+ * Returns limit swaps with pagination and filtering.
3501
+ * @param {number} [height] optional block height, defaults to current tip
3502
+ * @param {number} [offset] Number of items to skip
3503
+ * @param {number} [limit] Number of items to return
3504
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3505
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3506
+ * @param {string} [sender] Filter by sender address
3507
+ * @param {'ratio' | 'age' | 'amount' | 'created_height'} [sortBy] Sort by field
3508
+ * @param {'asc' | 'desc'} [sortOrder] Sort order
3509
+ * @param {*} [options] Override http request option.
3510
+ * @throws {RequiredError}
3511
+ */
3512
+ limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options) {
3513
+ return __awaiter(this, void 0, void 0, function* () {
3514
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options);
3515
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3516
+ });
3517
+ },
3518
+ /**
3519
+ * Returns limit swaps summary statistics.
3520
+ * @param {number} [height] optional block height, defaults to current tip
3521
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3522
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3523
+ * @param {*} [options] Override http request option.
3524
+ * @throws {RequiredError}
3525
+ */
3526
+ limitSwapsSummary(height, sourceAsset, targetAsset, options) {
3527
+ return __awaiter(this, void 0, void 0, function* () {
3528
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.limitSwapsSummary(height, sourceAsset, targetAsset, options);
3529
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3530
+ });
3531
+ },
3172
3532
  /**
3173
3533
  * Returns queue statistics.
3174
3534
  * @param {number} [height] optional block height, defaults to current tip
@@ -3226,6 +3586,33 @@ const QueueApiFp = function (configuration) {
3226
3586
  const QueueApiFactory = function (configuration, basePath, axios) {
3227
3587
  const localVarFp = QueueApiFp(configuration);
3228
3588
  return {
3589
+ /**
3590
+ * Returns limit swaps with pagination and filtering.
3591
+ * @param {number} [height] optional block height, defaults to current tip
3592
+ * @param {number} [offset] Number of items to skip
3593
+ * @param {number} [limit] Number of items to return
3594
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3595
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3596
+ * @param {string} [sender] Filter by sender address
3597
+ * @param {'ratio' | 'age' | 'amount' | 'created_height'} [sortBy] Sort by field
3598
+ * @param {'asc' | 'desc'} [sortOrder] Sort order
3599
+ * @param {*} [options] Override http request option.
3600
+ * @throws {RequiredError}
3601
+ */
3602
+ limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options) {
3603
+ return localVarFp.limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options).then((request) => request(axios, basePath));
3604
+ },
3605
+ /**
3606
+ * Returns limit swaps summary statistics.
3607
+ * @param {number} [height] optional block height, defaults to current tip
3608
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3609
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3610
+ * @param {*} [options] Override http request option.
3611
+ * @throws {RequiredError}
3612
+ */
3613
+ limitSwapsSummary(height, sourceAsset, targetAsset, options) {
3614
+ return localVarFp.limitSwapsSummary(height, sourceAsset, targetAsset, options).then((request) => request(axios, basePath));
3615
+ },
3229
3616
  /**
3230
3617
  * Returns queue statistics.
3231
3618
  * @param {number} [height] optional block height, defaults to current tip
@@ -3271,6 +3658,35 @@ const QueueApiFactory = function (configuration, basePath, axios) {
3271
3658
  * @extends {BaseAPI}
3272
3659
  */
3273
3660
  class QueueApi extends BaseAPI {
3661
+ /**
3662
+ * Returns limit swaps with pagination and filtering.
3663
+ * @param {number} [height] optional block height, defaults to current tip
3664
+ * @param {number} [offset] Number of items to skip
3665
+ * @param {number} [limit] Number of items to return
3666
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3667
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3668
+ * @param {string} [sender] Filter by sender address
3669
+ * @param {'ratio' | 'age' | 'amount' | 'created_height'} [sortBy] Sort by field
3670
+ * @param {'asc' | 'desc'} [sortOrder] Sort order
3671
+ * @param {*} [options] Override http request option.
3672
+ * @throws {RequiredError}
3673
+ * @memberof QueueApi
3674
+ */
3675
+ limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options) {
3676
+ return QueueApiFp(this.configuration).limitSwaps(height, offset, limit, sourceAsset, targetAsset, sender, sortBy, sortOrder, options).then((request) => request(this.axios, this.basePath));
3677
+ }
3678
+ /**
3679
+ * Returns limit swaps summary statistics.
3680
+ * @param {number} [height] optional block height, defaults to current tip
3681
+ * @param {string} [sourceAsset] Filter by source asset (e.g., \"BTC.BTC\")
3682
+ * @param {string} [targetAsset] Filter by target asset (e.g., \"ETH.ETH\")
3683
+ * @param {*} [options] Override http request option.
3684
+ * @throws {RequiredError}
3685
+ * @memberof QueueApi
3686
+ */
3687
+ limitSwapsSummary(height, sourceAsset, targetAsset, options) {
3688
+ return QueueApiFp(this.configuration).limitSwapsSummary(height, sourceAsset, targetAsset, options).then((request) => request(this.axios, this.basePath));
3689
+ }
3274
3690
  /**
3275
3691
  * Returns queue statistics.
3276
3692
  * @param {number} [height] optional block height, defaults to current tip
@@ -3319,18 +3735,24 @@ class QueueApi extends BaseAPI {
3319
3735
  const QuoteApiAxiosParamCreator = function (configuration) {
3320
3736
  return {
3321
3737
  /**
3322
- * Provide a quote estimate for the provided loan close.
3738
+ * Provide a quote estimate for the provided swap.
3323
3739
  * @param {number} [height] optional block height, defaults to current tip
3324
- * @param {string} [fromAsset] the asset used to repay the loan
3325
- * @param {number} [repayBps] the basis points of the existing position to repay
3326
- * @param {string} [toAsset] the collateral asset of the loan
3327
- * @param {string} [loanOwner] the owner of the loan collateral
3328
- * @param {string} [minOut] the minimum amount of the target asset to accept
3740
+ * @param {string} [fromAsset] the source asset
3741
+ * @param {string} [toAsset] the target asset
3742
+ * @param {number} [amount] the source asset amount in 1e8 decimals
3743
+ * @param {string} [destination] the destination address, required to generate memo
3744
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3745
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3746
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3747
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3748
+ * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3749
+ * @param {number} [affiliateBps] the affiliate fee in basis points
3750
+ * @param {string} [affiliate] the affiliate (address or thorname)
3329
3751
  * @param {*} [options] Override http request option.
3330
3752
  * @throws {RequiredError}
3331
3753
  */
3332
- quoteloanclose: (height_1, fromAsset_1, repayBps_1, toAsset_1, loanOwner_1, minOut_1, ...args_1) => __awaiter(this, [height_1, fromAsset_1, repayBps_1, toAsset_1, loanOwner_1, minOut_1, ...args_1], void 0, function* (height, fromAsset, repayBps, toAsset, loanOwner, minOut, options = {}) {
3333
- const localVarPath = `/thorchain/quote/loan/close`;
3754
+ quoteswap: (height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, streamingInterval_1, streamingQuantity_1, toleranceBps_1, liquidityToleranceBps_1, affiliateBps_1, affiliate_1, ...args_1) => __awaiter(this, [height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, streamingInterval_1, streamingQuantity_1, toleranceBps_1, liquidityToleranceBps_1, affiliateBps_1, affiliate_1, ...args_1], void 0, function* (height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options = {}) {
3755
+ const localVarPath = `/thorchain/quote/swap`;
3334
3756
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3335
3757
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3336
3758
  let baseOptions;
@@ -3346,67 +3768,29 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3346
3768
  if (fromAsset !== undefined) {
3347
3769
  localVarQueryParameter['from_asset'] = fromAsset;
3348
3770
  }
3349
- if (repayBps !== undefined) {
3350
- localVarQueryParameter['repay_bps'] = repayBps;
3351
- }
3352
3771
  if (toAsset !== undefined) {
3353
3772
  localVarQueryParameter['to_asset'] = toAsset;
3354
3773
  }
3355
- if (loanOwner !== undefined) {
3356
- localVarQueryParameter['loan_owner'] = loanOwner;
3774
+ if (amount !== undefined) {
3775
+ localVarQueryParameter['amount'] = amount;
3357
3776
  }
3358
- if (minOut !== undefined) {
3359
- localVarQueryParameter['min_out'] = minOut;
3777
+ if (destination !== undefined) {
3778
+ localVarQueryParameter['destination'] = destination;
3360
3779
  }
3361
- setSearchParams(localVarUrlObj, localVarQueryParameter);
3362
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3363
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3364
- return {
3365
- url: toPathString(localVarUrlObj),
3366
- options: localVarRequestOptions,
3367
- };
3368
- }),
3369
- /**
3370
- * Provide a quote estimate for the provided loan open.
3371
- * @param {number} [height] optional block height, defaults to current tip
3372
- * @param {string} [fromAsset] the collateral asset
3373
- * @param {number} [amount] the collateral asset amount in 1e8 decimals
3374
- * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
3375
- * @param {string} [destination] the destination address, required to generate memo
3376
- * @param {string} [minOut] the minimum amount of the target asset to accept
3377
- * @param {number} [affiliateBps] the affiliate fee in basis points
3378
- * @param {string} [affiliate] the affiliate (address or thorname)
3379
- * @param {*} [options] Override http request option.
3380
- * @throws {RequiredError}
3381
- */
3382
- quoteloanopen: (height_1, fromAsset_1, amount_1, toAsset_1, destination_1, minOut_1, affiliateBps_1, affiliate_1, ...args_1) => __awaiter(this, [height_1, fromAsset_1, amount_1, toAsset_1, destination_1, minOut_1, affiliateBps_1, affiliate_1, ...args_1], void 0, function* (height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options = {}) {
3383
- const localVarPath = `/thorchain/quote/loan/open`;
3384
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
3385
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3386
- let baseOptions;
3387
- if (configuration) {
3388
- baseOptions = configuration.baseOptions;
3389
- }
3390
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3391
- const localVarHeaderParameter = {};
3392
- const localVarQueryParameter = {};
3393
- if (height !== undefined) {
3394
- localVarQueryParameter['height'] = height;
3395
- }
3396
- if (fromAsset !== undefined) {
3397
- localVarQueryParameter['from_asset'] = fromAsset;
3780
+ if (refundAddress !== undefined) {
3781
+ localVarQueryParameter['refund_address'] = refundAddress;
3398
3782
  }
3399
- if (amount !== undefined) {
3400
- localVarQueryParameter['amount'] = amount;
3783
+ if (streamingInterval !== undefined) {
3784
+ localVarQueryParameter['streaming_interval'] = streamingInterval;
3401
3785
  }
3402
- if (toAsset !== undefined) {
3403
- localVarQueryParameter['to_asset'] = toAsset;
3786
+ if (streamingQuantity !== undefined) {
3787
+ localVarQueryParameter['streaming_quantity'] = streamingQuantity;
3404
3788
  }
3405
- if (destination !== undefined) {
3406
- localVarQueryParameter['destination'] = destination;
3789
+ if (toleranceBps !== undefined) {
3790
+ localVarQueryParameter['tolerance_bps'] = toleranceBps;
3407
3791
  }
3408
- if (minOut !== undefined) {
3409
- localVarQueryParameter['min_out'] = minOut;
3792
+ if (liquidityToleranceBps !== undefined) {
3793
+ localVarQueryParameter['liquidity_tolerance_bps'] = liquidityToleranceBps;
3410
3794
  }
3411
3795
  if (affiliateBps !== undefined) {
3412
3796
  localVarQueryParameter['affiliate_bps'] = affiliateBps;
@@ -3422,16 +3806,112 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3422
3806
  options: localVarRequestOptions,
3423
3807
  };
3424
3808
  }),
3809
+ };
3810
+ };
3811
+ /**
3812
+ * QuoteApi - functional programming interface
3813
+ * @export
3814
+ */
3815
+ const QuoteApiFp = function (configuration) {
3816
+ const localVarAxiosParamCreator = QuoteApiAxiosParamCreator(configuration);
3817
+ return {
3425
3818
  /**
3426
- * Provide a quote estimate for the provided saver deposit.
3819
+ * Provide a quote estimate for the provided swap.
3427
3820
  * @param {number} [height] optional block height, defaults to current tip
3428
- * @param {string} [asset] the asset to deposit
3821
+ * @param {string} [fromAsset] the source asset
3822
+ * @param {string} [toAsset] the target asset
3429
3823
  * @param {number} [amount] the source asset amount in 1e8 decimals
3824
+ * @param {string} [destination] the destination address, required to generate memo
3825
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3826
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3827
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3828
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3829
+ * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3830
+ * @param {number} [affiliateBps] the affiliate fee in basis points
3831
+ * @param {string} [affiliate] the affiliate (address or thorname)
3430
3832
  * @param {*} [options] Override http request option.
3431
3833
  * @throws {RequiredError}
3432
3834
  */
3433
- quotesaverdeposit: (height_1, asset_1, amount_1, ...args_1) => __awaiter(this, [height_1, asset_1, amount_1, ...args_1], void 0, function* (height, asset, amount, options = {}) {
3434
- const localVarPath = `/thorchain/quote/saver/deposit`;
3835
+ quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
3836
+ return __awaiter(this, void 0, void 0, function* () {
3837
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options);
3838
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3839
+ });
3840
+ },
3841
+ };
3842
+ };
3843
+ /**
3844
+ * QuoteApi - factory interface
3845
+ * @export
3846
+ */
3847
+ const QuoteApiFactory = function (configuration, basePath, axios) {
3848
+ const localVarFp = QuoteApiFp(configuration);
3849
+ return {
3850
+ /**
3851
+ * Provide a quote estimate for the provided swap.
3852
+ * @param {number} [height] optional block height, defaults to current tip
3853
+ * @param {string} [fromAsset] the source asset
3854
+ * @param {string} [toAsset] the target asset
3855
+ * @param {number} [amount] the source asset amount in 1e8 decimals
3856
+ * @param {string} [destination] the destination address, required to generate memo
3857
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3858
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3859
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3860
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3861
+ * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3862
+ * @param {number} [affiliateBps] the affiliate fee in basis points
3863
+ * @param {string} [affiliate] the affiliate (address or thorname)
3864
+ * @param {*} [options] Override http request option.
3865
+ * @throws {RequiredError}
3866
+ */
3867
+ quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
3868
+ return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
3869
+ },
3870
+ };
3871
+ };
3872
+ /**
3873
+ * QuoteApi - object-oriented interface
3874
+ * @export
3875
+ * @class QuoteApi
3876
+ * @extends {BaseAPI}
3877
+ */
3878
+ class QuoteApi extends BaseAPI {
3879
+ /**
3880
+ * Provide a quote estimate for the provided swap.
3881
+ * @param {number} [height] optional block height, defaults to current tip
3882
+ * @param {string} [fromAsset] the source asset
3883
+ * @param {string} [toAsset] the target asset
3884
+ * @param {number} [amount] the source asset amount in 1e8 decimals
3885
+ * @param {string} [destination] the destination address, required to generate memo
3886
+ * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3887
+ * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3888
+ * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3889
+ * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3890
+ * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3891
+ * @param {number} [affiliateBps] the affiliate fee in basis points
3892
+ * @param {string} [affiliate] the affiliate (address or thorname)
3893
+ * @param {*} [options] Override http request option.
3894
+ * @throws {RequiredError}
3895
+ * @memberof QuoteApi
3896
+ */
3897
+ quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
3898
+ return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
3899
+ }
3900
+ }
3901
+ /**
3902
+ * RUNEPoolApi - axios parameter creator
3903
+ * @export
3904
+ */
3905
+ const RUNEPoolApiAxiosParamCreator = function (configuration) {
3906
+ return {
3907
+ /**
3908
+ * Returns the pool information for the RUNE pool.
3909
+ * @param {number} [height] optional block height, defaults to current tip
3910
+ * @param {*} [options] Override http request option.
3911
+ * @throws {RequiredError}
3912
+ */
3913
+ runePool: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
3914
+ const localVarPath = `/thorchain/runepool`;
3435
3915
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3436
3916
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3437
3917
  let baseOptions;
@@ -3444,12 +3924,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3444
3924
  if (height !== undefined) {
3445
3925
  localVarQueryParameter['height'] = height;
3446
3926
  }
3447
- if (asset !== undefined) {
3448
- localVarQueryParameter['asset'] = asset;
3449
- }
3450
- if (amount !== undefined) {
3451
- localVarQueryParameter['amount'] = amount;
3452
- }
3453
3927
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3454
3928
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3455
3929
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3459,16 +3933,17 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3459
3933
  };
3460
3934
  }),
3461
3935
  /**
3462
- * Provide a quote estimate for the provided saver withdraw.
3936
+ * Returns the RUNE Provider information for an address.
3937
+ * @param {string} address
3463
3938
  * @param {number} [height] optional block height, defaults to current tip
3464
- * @param {string} [asset] the asset to withdraw
3465
- * @param {string} [address] the address for the position
3466
- * @param {number} [withdrawBps] the basis points of the existing position to withdraw
3467
3939
  * @param {*} [options] Override http request option.
3468
3940
  * @throws {RequiredError}
3469
3941
  */
3470
- quotesaverwithdraw: (height_1, asset_1, address_1, withdrawBps_1, ...args_1) => __awaiter(this, [height_1, asset_1, address_1, withdrawBps_1, ...args_1], void 0, function* (height, asset, address, withdrawBps, options = {}) {
3471
- const localVarPath = `/thorchain/quote/saver/withdraw`;
3942
+ runeProvider: (address_1, height_1, ...args_1) => __awaiter(this, [address_1, height_1, ...args_1], void 0, function* (address, height, options = {}) {
3943
+ // verify required parameter 'address' is not null or undefined
3944
+ assertParamExists('runeProvider', 'address', address);
3945
+ const localVarPath = `/thorchain/rune_provider/{address}`
3946
+ .replace(`{${"address"}}`, encodeURIComponent(String(address)));
3472
3947
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3473
3948
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3474
3949
  let baseOptions;
@@ -3481,15 +3956,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3481
3956
  if (height !== undefined) {
3482
3957
  localVarQueryParameter['height'] = height;
3483
3958
  }
3484
- if (asset !== undefined) {
3485
- localVarQueryParameter['asset'] = asset;
3486
- }
3487
- if (address !== undefined) {
3488
- localVarQueryParameter['address'] = address;
3489
- }
3490
- if (withdrawBps !== undefined) {
3491
- localVarQueryParameter['withdraw_bps'] = withdrawBps;
3492
- }
3493
3959
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3494
3960
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3495
3961
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3499,24 +3965,13 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3499
3965
  };
3500
3966
  }),
3501
3967
  /**
3502
- * Provide a quote estimate for the provided swap.
3968
+ * Returns all RUNE Providers.
3503
3969
  * @param {number} [height] optional block height, defaults to current tip
3504
- * @param {string} [fromAsset] the source asset
3505
- * @param {string} [toAsset] the target asset
3506
- * @param {number} [amount] the source asset amount in 1e8 decimals
3507
- * @param {string} [destination] the destination address, required to generate memo
3508
- * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3509
- * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3510
- * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3511
- * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3512
- * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3513
- * @param {number} [affiliateBps] the affiliate fee in basis points
3514
- * @param {string} [affiliate] the affiliate (address or thorname)
3515
3970
  * @param {*} [options] Override http request option.
3516
3971
  * @throws {RequiredError}
3517
3972
  */
3518
- quoteswap: (height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, streamingInterval_1, streamingQuantity_1, toleranceBps_1, liquidityToleranceBps_1, affiliateBps_1, affiliate_1, ...args_1) => __awaiter(this, [height_1, fromAsset_1, toAsset_1, amount_1, destination_1, refundAddress_1, streamingInterval_1, streamingQuantity_1, toleranceBps_1, liquidityToleranceBps_1, affiliateBps_1, affiliate_1, ...args_1], void 0, function* (height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options = {}) {
3519
- const localVarPath = `/thorchain/quote/swap`;
3973
+ runeProviders: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
3974
+ const localVarPath = `/thorchain/rune_providers`;
3520
3975
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3521
3976
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3522
3977
  let baseOptions;
@@ -3529,39 +3984,6 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3529
3984
  if (height !== undefined) {
3530
3985
  localVarQueryParameter['height'] = height;
3531
3986
  }
3532
- if (fromAsset !== undefined) {
3533
- localVarQueryParameter['from_asset'] = fromAsset;
3534
- }
3535
- if (toAsset !== undefined) {
3536
- localVarQueryParameter['to_asset'] = toAsset;
3537
- }
3538
- if (amount !== undefined) {
3539
- localVarQueryParameter['amount'] = amount;
3540
- }
3541
- if (destination !== undefined) {
3542
- localVarQueryParameter['destination'] = destination;
3543
- }
3544
- if (refundAddress !== undefined) {
3545
- localVarQueryParameter['refund_address'] = refundAddress;
3546
- }
3547
- if (streamingInterval !== undefined) {
3548
- localVarQueryParameter['streaming_interval'] = streamingInterval;
3549
- }
3550
- if (streamingQuantity !== undefined) {
3551
- localVarQueryParameter['streaming_quantity'] = streamingQuantity;
3552
- }
3553
- if (toleranceBps !== undefined) {
3554
- localVarQueryParameter['tolerance_bps'] = toleranceBps;
3555
- }
3556
- if (liquidityToleranceBps !== undefined) {
3557
- localVarQueryParameter['liquidity_tolerance_bps'] = liquidityToleranceBps;
3558
- }
3559
- if (affiliateBps !== undefined) {
3560
- localVarQueryParameter['affiliate_bps'] = affiliateBps;
3561
- }
3562
- if (affiliate !== undefined) {
3563
- localVarQueryParameter['affiliate'] = affiliate;
3564
- }
3565
3987
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3566
3988
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3567
3989
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3573,284 +3995,149 @@ const QuoteApiAxiosParamCreator = function (configuration) {
3573
3995
  };
3574
3996
  };
3575
3997
  /**
3576
- * QuoteApi - functional programming interface
3998
+ * RUNEPoolApi - functional programming interface
3577
3999
  * @export
3578
4000
  */
3579
- const QuoteApiFp = function (configuration) {
3580
- const localVarAxiosParamCreator = QuoteApiAxiosParamCreator(configuration);
4001
+ const RUNEPoolApiFp = function (configuration) {
4002
+ const localVarAxiosParamCreator = RUNEPoolApiAxiosParamCreator(configuration);
3581
4003
  return {
3582
4004
  /**
3583
- * Provide a quote estimate for the provided loan close.
3584
- * @param {number} [height] optional block height, defaults to current tip
3585
- * @param {string} [fromAsset] the asset used to repay the loan
3586
- * @param {number} [repayBps] the basis points of the existing position to repay
3587
- * @param {string} [toAsset] the collateral asset of the loan
3588
- * @param {string} [loanOwner] the owner of the loan collateral
3589
- * @param {string} [minOut] the minimum amount of the target asset to accept
3590
- * @param {*} [options] Override http request option.
3591
- * @throws {RequiredError}
3592
- */
3593
- quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
3594
- return __awaiter(this, void 0, void 0, function* () {
3595
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options);
3596
- return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3597
- });
3598
- },
3599
- /**
3600
- * Provide a quote estimate for the provided loan open.
3601
- * @param {number} [height] optional block height, defaults to current tip
3602
- * @param {string} [fromAsset] the collateral asset
3603
- * @param {number} [amount] the collateral asset amount in 1e8 decimals
3604
- * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
3605
- * @param {string} [destination] the destination address, required to generate memo
3606
- * @param {string} [minOut] the minimum amount of the target asset to accept
3607
- * @param {number} [affiliateBps] the affiliate fee in basis points
3608
- * @param {string} [affiliate] the affiliate (address or thorname)
3609
- * @param {*} [options] Override http request option.
3610
- * @throws {RequiredError}
3611
- */
3612
- quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
3613
- return __awaiter(this, void 0, void 0, function* () {
3614
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options);
3615
- return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3616
- });
3617
- },
3618
- /**
3619
- * Provide a quote estimate for the provided saver deposit.
4005
+ * Returns the pool information for the RUNE pool.
3620
4006
  * @param {number} [height] optional block height, defaults to current tip
3621
- * @param {string} [asset] the asset to deposit
3622
- * @param {number} [amount] the source asset amount in 1e8 decimals
3623
4007
  * @param {*} [options] Override http request option.
3624
4008
  * @throws {RequiredError}
3625
4009
  */
3626
- quotesaverdeposit(height, asset, amount, options) {
4010
+ runePool(height, options) {
3627
4011
  return __awaiter(this, void 0, void 0, function* () {
3628
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quotesaverdeposit(height, asset, amount, options);
4012
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.runePool(height, options);
3629
4013
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3630
4014
  });
3631
4015
  },
3632
4016
  /**
3633
- * Provide a quote estimate for the provided saver withdraw.
4017
+ * Returns the RUNE Provider information for an address.
4018
+ * @param {string} address
3634
4019
  * @param {number} [height] optional block height, defaults to current tip
3635
- * @param {string} [asset] the asset to withdraw
3636
- * @param {string} [address] the address for the position
3637
- * @param {number} [withdrawBps] the basis points of the existing position to withdraw
3638
4020
  * @param {*} [options] Override http request option.
3639
4021
  * @throws {RequiredError}
3640
4022
  */
3641
- quotesaverwithdraw(height, asset, address, withdrawBps, options) {
4023
+ runeProvider(address, height, options) {
3642
4024
  return __awaiter(this, void 0, void 0, function* () {
3643
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quotesaverwithdraw(height, asset, address, withdrawBps, options);
4025
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProvider(address, height, options);
3644
4026
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3645
4027
  });
3646
4028
  },
3647
4029
  /**
3648
- * Provide a quote estimate for the provided swap.
4030
+ * Returns all RUNE Providers.
3649
4031
  * @param {number} [height] optional block height, defaults to current tip
3650
- * @param {string} [fromAsset] the source asset
3651
- * @param {string} [toAsset] the target asset
3652
- * @param {number} [amount] the source asset amount in 1e8 decimals
3653
- * @param {string} [destination] the destination address, required to generate memo
3654
- * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3655
- * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3656
- * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3657
- * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3658
- * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3659
- * @param {number} [affiliateBps] the affiliate fee in basis points
3660
- * @param {string} [affiliate] the affiliate (address or thorname)
3661
4032
  * @param {*} [options] Override http request option.
3662
4033
  * @throws {RequiredError}
3663
4034
  */
3664
- quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
4035
+ runeProviders(height, options) {
3665
4036
  return __awaiter(this, void 0, void 0, function* () {
3666
- const localVarAxiosArgs = yield localVarAxiosParamCreator.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options);
4037
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProviders(height, options);
3667
4038
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3668
4039
  });
3669
4040
  },
3670
4041
  };
3671
4042
  };
3672
4043
  /**
3673
- * QuoteApi - factory interface
4044
+ * RUNEPoolApi - factory interface
3674
4045
  * @export
3675
4046
  */
3676
- const QuoteApiFactory = function (configuration, basePath, axios) {
3677
- const localVarFp = QuoteApiFp(configuration);
4047
+ const RUNEPoolApiFactory = function (configuration, basePath, axios) {
4048
+ const localVarFp = RUNEPoolApiFp(configuration);
3678
4049
  return {
3679
4050
  /**
3680
- * Provide a quote estimate for the provided loan close.
3681
- * @param {number} [height] optional block height, defaults to current tip
3682
- * @param {string} [fromAsset] the asset used to repay the loan
3683
- * @param {number} [repayBps] the basis points of the existing position to repay
3684
- * @param {string} [toAsset] the collateral asset of the loan
3685
- * @param {string} [loanOwner] the owner of the loan collateral
3686
- * @param {string} [minOut] the minimum amount of the target asset to accept
3687
- * @param {*} [options] Override http request option.
3688
- * @throws {RequiredError}
3689
- */
3690
- quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
3691
- return localVarFp.quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(axios, basePath));
3692
- },
3693
- /**
3694
- * Provide a quote estimate for the provided loan open.
3695
- * @param {number} [height] optional block height, defaults to current tip
3696
- * @param {string} [fromAsset] the collateral asset
3697
- * @param {number} [amount] the collateral asset amount in 1e8 decimals
3698
- * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
3699
- * @param {string} [destination] the destination address, required to generate memo
3700
- * @param {string} [minOut] the minimum amount of the target asset to accept
3701
- * @param {number} [affiliateBps] the affiliate fee in basis points
3702
- * @param {string} [affiliate] the affiliate (address or thorname)
3703
- * @param {*} [options] Override http request option.
3704
- * @throws {RequiredError}
3705
- */
3706
- quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
3707
- return localVarFp.quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
3708
- },
3709
- /**
3710
- * Provide a quote estimate for the provided saver deposit.
4051
+ * Returns the pool information for the RUNE pool.
3711
4052
  * @param {number} [height] optional block height, defaults to current tip
3712
- * @param {string} [asset] the asset to deposit
3713
- * @param {number} [amount] the source asset amount in 1e8 decimals
3714
4053
  * @param {*} [options] Override http request option.
3715
4054
  * @throws {RequiredError}
3716
4055
  */
3717
- quotesaverdeposit(height, asset, amount, options) {
3718
- return localVarFp.quotesaverdeposit(height, asset, amount, options).then((request) => request(axios, basePath));
4056
+ runePool(height, options) {
4057
+ return localVarFp.runePool(height, options).then((request) => request(axios, basePath));
3719
4058
  },
3720
4059
  /**
3721
- * Provide a quote estimate for the provided saver withdraw.
4060
+ * Returns the RUNE Provider information for an address.
4061
+ * @param {string} address
3722
4062
  * @param {number} [height] optional block height, defaults to current tip
3723
- * @param {string} [asset] the asset to withdraw
3724
- * @param {string} [address] the address for the position
3725
- * @param {number} [withdrawBps] the basis points of the existing position to withdraw
3726
4063
  * @param {*} [options] Override http request option.
3727
4064
  * @throws {RequiredError}
3728
- */
3729
- quotesaverwithdraw(height, asset, address, withdrawBps, options) {
3730
- return localVarFp.quotesaverwithdraw(height, asset, address, withdrawBps, options).then((request) => request(axios, basePath));
3731
- },
3732
- /**
3733
- * Provide a quote estimate for the provided swap.
3734
- * @param {number} [height] optional block height, defaults to current tip
3735
- * @param {string} [fromAsset] the source asset
3736
- * @param {string} [toAsset] the target asset
3737
- * @param {number} [amount] the source asset amount in 1e8 decimals
3738
- * @param {string} [destination] the destination address, required to generate memo
3739
- * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3740
- * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3741
- * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3742
- * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3743
- * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3744
- * @param {number} [affiliateBps] the affiliate fee in basis points
3745
- * @param {string} [affiliate] the affiliate (address or thorname)
4065
+ */
4066
+ runeProvider(address, height, options) {
4067
+ return localVarFp.runeProvider(address, height, options).then((request) => request(axios, basePath));
4068
+ },
4069
+ /**
4070
+ * Returns all RUNE Providers.
4071
+ * @param {number} [height] optional block height, defaults to current tip
3746
4072
  * @param {*} [options] Override http request option.
3747
4073
  * @throws {RequiredError}
3748
4074
  */
3749
- quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
3750
- return localVarFp.quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(axios, basePath));
4075
+ runeProviders(height, options) {
4076
+ return localVarFp.runeProviders(height, options).then((request) => request(axios, basePath));
3751
4077
  },
3752
4078
  };
3753
4079
  };
3754
4080
  /**
3755
- * QuoteApi - object-oriented interface
4081
+ * RUNEPoolApi - object-oriented interface
3756
4082
  * @export
3757
- * @class QuoteApi
4083
+ * @class RUNEPoolApi
3758
4084
  * @extends {BaseAPI}
3759
4085
  */
3760
- class QuoteApi extends BaseAPI {
3761
- /**
3762
- * Provide a quote estimate for the provided loan close.
3763
- * @param {number} [height] optional block height, defaults to current tip
3764
- * @param {string} [fromAsset] the asset used to repay the loan
3765
- * @param {number} [repayBps] the basis points of the existing position to repay
3766
- * @param {string} [toAsset] the collateral asset of the loan
3767
- * @param {string} [loanOwner] the owner of the loan collateral
3768
- * @param {string} [minOut] the minimum amount of the target asset to accept
3769
- * @param {*} [options] Override http request option.
3770
- * @throws {RequiredError}
3771
- * @memberof QuoteApi
3772
- */
3773
- quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options) {
3774
- return QuoteApiFp(this.configuration).quoteloanclose(height, fromAsset, repayBps, toAsset, loanOwner, minOut, options).then((request) => request(this.axios, this.basePath));
3775
- }
3776
- /**
3777
- * Provide a quote estimate for the provided loan open.
3778
- * @param {number} [height] optional block height, defaults to current tip
3779
- * @param {string} [fromAsset] the collateral asset
3780
- * @param {number} [amount] the collateral asset amount in 1e8 decimals
3781
- * @param {string} [toAsset] the target asset to receive (loan denominated in TOR regardless)
3782
- * @param {string} [destination] the destination address, required to generate memo
3783
- * @param {string} [minOut] the minimum amount of the target asset to accept
3784
- * @param {number} [affiliateBps] the affiliate fee in basis points
3785
- * @param {string} [affiliate] the affiliate (address or thorname)
3786
- * @param {*} [options] Override http request option.
3787
- * @throws {RequiredError}
3788
- * @memberof QuoteApi
3789
- */
3790
- quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options) {
3791
- return QuoteApiFp(this.configuration).quoteloanopen(height, fromAsset, amount, toAsset, destination, minOut, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
3792
- }
4086
+ class RUNEPoolApi extends BaseAPI {
3793
4087
  /**
3794
- * Provide a quote estimate for the provided saver deposit.
4088
+ * Returns the pool information for the RUNE pool.
3795
4089
  * @param {number} [height] optional block height, defaults to current tip
3796
- * @param {string} [asset] the asset to deposit
3797
- * @param {number} [amount] the source asset amount in 1e8 decimals
3798
4090
  * @param {*} [options] Override http request option.
3799
4091
  * @throws {RequiredError}
3800
- * @memberof QuoteApi
4092
+ * @memberof RUNEPoolApi
3801
4093
  */
3802
- quotesaverdeposit(height, asset, amount, options) {
3803
- return QuoteApiFp(this.configuration).quotesaverdeposit(height, asset, amount, options).then((request) => request(this.axios, this.basePath));
4094
+ runePool(height, options) {
4095
+ return RUNEPoolApiFp(this.configuration).runePool(height, options).then((request) => request(this.axios, this.basePath));
3804
4096
  }
3805
4097
  /**
3806
- * Provide a quote estimate for the provided saver withdraw.
4098
+ * Returns the RUNE Provider information for an address.
4099
+ * @param {string} address
3807
4100
  * @param {number} [height] optional block height, defaults to current tip
3808
- * @param {string} [asset] the asset to withdraw
3809
- * @param {string} [address] the address for the position
3810
- * @param {number} [withdrawBps] the basis points of the existing position to withdraw
3811
4101
  * @param {*} [options] Override http request option.
3812
4102
  * @throws {RequiredError}
3813
- * @memberof QuoteApi
4103
+ * @memberof RUNEPoolApi
3814
4104
  */
3815
- quotesaverwithdraw(height, asset, address, withdrawBps, options) {
3816
- return QuoteApiFp(this.configuration).quotesaverwithdraw(height, asset, address, withdrawBps, options).then((request) => request(this.axios, this.basePath));
4105
+ runeProvider(address, height, options) {
4106
+ return RUNEPoolApiFp(this.configuration).runeProvider(address, height, options).then((request) => request(this.axios, this.basePath));
3817
4107
  }
3818
4108
  /**
3819
- * Provide a quote estimate for the provided swap.
4109
+ * Returns all RUNE Providers.
3820
4110
  * @param {number} [height] optional block height, defaults to current tip
3821
- * @param {string} [fromAsset] the source asset
3822
- * @param {string} [toAsset] the target asset
3823
- * @param {number} [amount] the source asset amount in 1e8 decimals
3824
- * @param {string} [destination] the destination address, required to generate memo
3825
- * @param {string} [refundAddress] the refund address, refunds will be sent here if the swap fails
3826
- * @param {number} [streamingInterval] the interval in which streaming swaps are swapped
3827
- * @param {number} [streamingQuantity] the quantity of swaps within a streaming swap
3828
- * @param {number} [toleranceBps] the maximum basis points from the current feeless swap price to set the limit in the generated memo
3829
- * @param {number} [liquidityToleranceBps] the maximum basis points of tolerance for pool price movements to set the limit in the generated memo
3830
- * @param {number} [affiliateBps] the affiliate fee in basis points
3831
- * @param {string} [affiliate] the affiliate (address or thorname)
3832
4111
  * @param {*} [options] Override http request option.
3833
4112
  * @throws {RequiredError}
3834
- * @memberof QuoteApi
4113
+ * @memberof RUNEPoolApi
3835
4114
  */
3836
- quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options) {
3837
- return QuoteApiFp(this.configuration).quoteswap(height, fromAsset, toAsset, amount, destination, refundAddress, streamingInterval, streamingQuantity, toleranceBps, liquidityToleranceBps, affiliateBps, affiliate, options).then((request) => request(this.axios, this.basePath));
4115
+ runeProviders(height, options) {
4116
+ return RUNEPoolApiFp(this.configuration).runeProviders(height, options).then((request) => request(this.axios, this.basePath));
3838
4117
  }
3839
4118
  }
3840
4119
  /**
3841
- * RUNEPoolApi - axios parameter creator
4120
+ * ReferenceMemosApi - axios parameter creator
3842
4121
  * @export
3843
4122
  */
3844
- const RUNEPoolApiAxiosParamCreator = function (configuration) {
4123
+ const ReferenceMemosApiAxiosParamCreator = function (configuration) {
3845
4124
  return {
3846
4125
  /**
3847
- * Returns the pool information for the RUNE pool.
4126
+ * Returns the memoless transaction memo for the provided asset and reference number.
4127
+ * @param {string} asset
4128
+ * @param {string} reference the reference number to lookup
3848
4129
  * @param {number} [height] optional block height, defaults to current tip
3849
4130
  * @param {*} [options] Override http request option.
3850
4131
  * @throws {RequiredError}
3851
4132
  */
3852
- runePool: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
3853
- const localVarPath = `/thorchain/runepool`;
4133
+ referenceMemo: (asset_1, reference_1, height_1, ...args_1) => __awaiter(this, [asset_1, reference_1, height_1, ...args_1], void 0, function* (asset, reference, height, options = {}) {
4134
+ // verify required parameter 'asset' is not null or undefined
4135
+ assertParamExists('referenceMemo', 'asset', asset);
4136
+ // verify required parameter 'reference' is not null or undefined
4137
+ assertParamExists('referenceMemo', 'reference', reference);
4138
+ const localVarPath = `/thorchain/memo/{asset}/{reference}`
4139
+ .replace(`{${"asset"}}`, encodeURIComponent(String(asset)))
4140
+ .replace(`{${"reference"}}`, encodeURIComponent(String(reference)));
3854
4141
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3855
4142
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3856
4143
  let baseOptions;
@@ -3872,17 +4159,17 @@ const RUNEPoolApiAxiosParamCreator = function (configuration) {
3872
4159
  };
3873
4160
  }),
3874
4161
  /**
3875
- * Returns the RUNE Provider information for an address.
3876
- * @param {string} address
4162
+ * Returns the memoless transaction memo for the provided reference hash.
4163
+ * @param {string} hash
3877
4164
  * @param {number} [height] optional block height, defaults to current tip
3878
4165
  * @param {*} [options] Override http request option.
3879
4166
  * @throws {RequiredError}
3880
4167
  */
3881
- runeProvider: (address_1, height_1, ...args_1) => __awaiter(this, [address_1, height_1, ...args_1], void 0, function* (address, height, options = {}) {
3882
- // verify required parameter 'address' is not null or undefined
3883
- assertParamExists('runeProvider', 'address', address);
3884
- const localVarPath = `/thorchain/rune_provider/{address}`
3885
- .replace(`{${"address"}}`, encodeURIComponent(String(address)));
4168
+ referenceMemoByHash: (hash_1, height_1, ...args_1) => __awaiter(this, [hash_1, height_1, ...args_1], void 0, function* (hash, height, options = {}) {
4169
+ // verify required parameter 'hash' is not null or undefined
4170
+ assertParamExists('referenceMemoByHash', 'hash', hash);
4171
+ const localVarPath = `/thorchain/memo/{hash}`
4172
+ .replace(`{${"hash"}}`, encodeURIComponent(String(hash)));
3886
4173
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3887
4174
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3888
4175
  let baseOptions;
@@ -3904,13 +4191,21 @@ const RUNEPoolApiAxiosParamCreator = function (configuration) {
3904
4191
  };
3905
4192
  }),
3906
4193
  /**
3907
- * Returns all RUNE Providers.
4194
+ * Pre-flight check for memoless transactions. Returns what reference would be extracted from the amount and whether it\'s available for registration.
4195
+ * @param {string} asset
4196
+ * @param {string} amount the transaction amount in base units to check
3908
4197
  * @param {number} [height] optional block height, defaults to current tip
3909
4198
  * @param {*} [options] Override http request option.
3910
4199
  * @throws {RequiredError}
3911
4200
  */
3912
- runeProviders: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
3913
- const localVarPath = `/thorchain/rune_providers`;
4201
+ referenceMemoCheck: (asset_1, amount_1, height_1, ...args_1) => __awaiter(this, [asset_1, amount_1, height_1, ...args_1], void 0, function* (asset, amount, height, options = {}) {
4202
+ // verify required parameter 'asset' is not null or undefined
4203
+ assertParamExists('referenceMemoCheck', 'asset', asset);
4204
+ // verify required parameter 'amount' is not null or undefined
4205
+ assertParamExists('referenceMemoCheck', 'amount', amount);
4206
+ const localVarPath = `/thorchain/memo/check/{asset}/{amount}`
4207
+ .replace(`{${"asset"}}`, encodeURIComponent(String(asset)))
4208
+ .replace(`{${"amount"}}`, encodeURIComponent(String(amount)));
3914
4209
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3915
4210
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3916
4211
  let baseOptions;
@@ -3934,125 +4229,137 @@ const RUNEPoolApiAxiosParamCreator = function (configuration) {
3934
4229
  };
3935
4230
  };
3936
4231
  /**
3937
- * RUNEPoolApi - functional programming interface
4232
+ * ReferenceMemosApi - functional programming interface
3938
4233
  * @export
3939
4234
  */
3940
- const RUNEPoolApiFp = function (configuration) {
3941
- const localVarAxiosParamCreator = RUNEPoolApiAxiosParamCreator(configuration);
4235
+ const ReferenceMemosApiFp = function (configuration) {
4236
+ const localVarAxiosParamCreator = ReferenceMemosApiAxiosParamCreator(configuration);
3942
4237
  return {
3943
4238
  /**
3944
- * Returns the pool information for the RUNE pool.
4239
+ * Returns the memoless transaction memo for the provided asset and reference number.
4240
+ * @param {string} asset
4241
+ * @param {string} reference the reference number to lookup
3945
4242
  * @param {number} [height] optional block height, defaults to current tip
3946
4243
  * @param {*} [options] Override http request option.
3947
4244
  * @throws {RequiredError}
3948
4245
  */
3949
- runePool(height, options) {
4246
+ referenceMemo(asset, reference, height, options) {
3950
4247
  return __awaiter(this, void 0, void 0, function* () {
3951
- const localVarAxiosArgs = yield localVarAxiosParamCreator.runePool(height, options);
4248
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.referenceMemo(asset, reference, height, options);
3952
4249
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3953
4250
  });
3954
4251
  },
3955
4252
  /**
3956
- * Returns the RUNE Provider information for an address.
3957
- * @param {string} address
4253
+ * Returns the memoless transaction memo for the provided reference hash.
4254
+ * @param {string} hash
3958
4255
  * @param {number} [height] optional block height, defaults to current tip
3959
4256
  * @param {*} [options] Override http request option.
3960
4257
  * @throws {RequiredError}
3961
4258
  */
3962
- runeProvider(address, height, options) {
4259
+ referenceMemoByHash(hash, height, options) {
3963
4260
  return __awaiter(this, void 0, void 0, function* () {
3964
- const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProvider(address, height, options);
4261
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.referenceMemoByHash(hash, height, options);
3965
4262
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3966
4263
  });
3967
4264
  },
3968
4265
  /**
3969
- * Returns all RUNE Providers.
4266
+ * Pre-flight check for memoless transactions. Returns what reference would be extracted from the amount and whether it\'s available for registration.
4267
+ * @param {string} asset
4268
+ * @param {string} amount the transaction amount in base units to check
3970
4269
  * @param {number} [height] optional block height, defaults to current tip
3971
4270
  * @param {*} [options] Override http request option.
3972
4271
  * @throws {RequiredError}
3973
4272
  */
3974
- runeProviders(height, options) {
4273
+ referenceMemoCheck(asset, amount, height, options) {
3975
4274
  return __awaiter(this, void 0, void 0, function* () {
3976
- const localVarAxiosArgs = yield localVarAxiosParamCreator.runeProviders(height, options);
4275
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.referenceMemoCheck(asset, amount, height, options);
3977
4276
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
3978
4277
  });
3979
4278
  },
3980
4279
  };
3981
4280
  };
3982
4281
  /**
3983
- * RUNEPoolApi - factory interface
4282
+ * ReferenceMemosApi - factory interface
3984
4283
  * @export
3985
4284
  */
3986
- const RUNEPoolApiFactory = function (configuration, basePath, axios) {
3987
- const localVarFp = RUNEPoolApiFp(configuration);
4285
+ const ReferenceMemosApiFactory = function (configuration, basePath, axios) {
4286
+ const localVarFp = ReferenceMemosApiFp(configuration);
3988
4287
  return {
3989
4288
  /**
3990
- * Returns the pool information for the RUNE pool.
4289
+ * Returns the memoless transaction memo for the provided asset and reference number.
4290
+ * @param {string} asset
4291
+ * @param {string} reference the reference number to lookup
3991
4292
  * @param {number} [height] optional block height, defaults to current tip
3992
4293
  * @param {*} [options] Override http request option.
3993
4294
  * @throws {RequiredError}
3994
4295
  */
3995
- runePool(height, options) {
3996
- return localVarFp.runePool(height, options).then((request) => request(axios, basePath));
4296
+ referenceMemo(asset, reference, height, options) {
4297
+ return localVarFp.referenceMemo(asset, reference, height, options).then((request) => request(axios, basePath));
3997
4298
  },
3998
4299
  /**
3999
- * Returns the RUNE Provider information for an address.
4000
- * @param {string} address
4300
+ * Returns the memoless transaction memo for the provided reference hash.
4301
+ * @param {string} hash
4001
4302
  * @param {number} [height] optional block height, defaults to current tip
4002
4303
  * @param {*} [options] Override http request option.
4003
4304
  * @throws {RequiredError}
4004
4305
  */
4005
- runeProvider(address, height, options) {
4006
- return localVarFp.runeProvider(address, height, options).then((request) => request(axios, basePath));
4306
+ referenceMemoByHash(hash, height, options) {
4307
+ return localVarFp.referenceMemoByHash(hash, height, options).then((request) => request(axios, basePath));
4007
4308
  },
4008
4309
  /**
4009
- * Returns all RUNE Providers.
4310
+ * Pre-flight check for memoless transactions. Returns what reference would be extracted from the amount and whether it\'s available for registration.
4311
+ * @param {string} asset
4312
+ * @param {string} amount the transaction amount in base units to check
4010
4313
  * @param {number} [height] optional block height, defaults to current tip
4011
4314
  * @param {*} [options] Override http request option.
4012
4315
  * @throws {RequiredError}
4013
4316
  */
4014
- runeProviders(height, options) {
4015
- return localVarFp.runeProviders(height, options).then((request) => request(axios, basePath));
4317
+ referenceMemoCheck(asset, amount, height, options) {
4318
+ return localVarFp.referenceMemoCheck(asset, amount, height, options).then((request) => request(axios, basePath));
4016
4319
  },
4017
4320
  };
4018
4321
  };
4019
4322
  /**
4020
- * RUNEPoolApi - object-oriented interface
4323
+ * ReferenceMemosApi - object-oriented interface
4021
4324
  * @export
4022
- * @class RUNEPoolApi
4325
+ * @class ReferenceMemosApi
4023
4326
  * @extends {BaseAPI}
4024
4327
  */
4025
- class RUNEPoolApi extends BaseAPI {
4328
+ class ReferenceMemosApi extends BaseAPI {
4026
4329
  /**
4027
- * Returns the pool information for the RUNE pool.
4330
+ * Returns the memoless transaction memo for the provided asset and reference number.
4331
+ * @param {string} asset
4332
+ * @param {string} reference the reference number to lookup
4028
4333
  * @param {number} [height] optional block height, defaults to current tip
4029
4334
  * @param {*} [options] Override http request option.
4030
4335
  * @throws {RequiredError}
4031
- * @memberof RUNEPoolApi
4336
+ * @memberof ReferenceMemosApi
4032
4337
  */
4033
- runePool(height, options) {
4034
- return RUNEPoolApiFp(this.configuration).runePool(height, options).then((request) => request(this.axios, this.basePath));
4338
+ referenceMemo(asset, reference, height, options) {
4339
+ return ReferenceMemosApiFp(this.configuration).referenceMemo(asset, reference, height, options).then((request) => request(this.axios, this.basePath));
4035
4340
  }
4036
4341
  /**
4037
- * Returns the RUNE Provider information for an address.
4038
- * @param {string} address
4342
+ * Returns the memoless transaction memo for the provided reference hash.
4343
+ * @param {string} hash
4039
4344
  * @param {number} [height] optional block height, defaults to current tip
4040
4345
  * @param {*} [options] Override http request option.
4041
4346
  * @throws {RequiredError}
4042
- * @memberof RUNEPoolApi
4347
+ * @memberof ReferenceMemosApi
4043
4348
  */
4044
- runeProvider(address, height, options) {
4045
- return RUNEPoolApiFp(this.configuration).runeProvider(address, height, options).then((request) => request(this.axios, this.basePath));
4349
+ referenceMemoByHash(hash, height, options) {
4350
+ return ReferenceMemosApiFp(this.configuration).referenceMemoByHash(hash, height, options).then((request) => request(this.axios, this.basePath));
4046
4351
  }
4047
4352
  /**
4048
- * Returns all RUNE Providers.
4353
+ * Pre-flight check for memoless transactions. Returns what reference would be extracted from the amount and whether it\'s available for registration.
4354
+ * @param {string} asset
4355
+ * @param {string} amount the transaction amount in base units to check
4049
4356
  * @param {number} [height] optional block height, defaults to current tip
4050
4357
  * @param {*} [options] Override http request option.
4051
4358
  * @throws {RequiredError}
4052
- * @memberof RUNEPoolApi
4359
+ * @memberof ReferenceMemosApi
4053
4360
  */
4054
- runeProviders(height, options) {
4055
- return RUNEPoolApiFp(this.configuration).runeProviders(height, options).then((request) => request(this.axios, this.basePath));
4361
+ referenceMemoCheck(asset, amount, height, options) {
4362
+ return ReferenceMemosApiFp(this.configuration).referenceMemoCheck(asset, amount, height, options).then((request) => request(this.axios, this.basePath));
4056
4363
  }
4057
4364
  }
4058
4365
  /**
@@ -4580,6 +4887,106 @@ class StreamingSwapApi extends BaseAPI {
4580
4887
  return StreamingSwapApiFp(this.configuration).streamSwaps(height, options).then((request) => request(this.axios, this.basePath));
4581
4888
  }
4582
4889
  }
4890
+ /**
4891
+ * SwapApi - axios parameter creator
4892
+ * @export
4893
+ */
4894
+ const SwapApiAxiosParamCreator = function (configuration) {
4895
+ return {
4896
+ /**
4897
+ * Returns detailed information about a specific swap including its state.
4898
+ * @param {string} txId Transaction ID of the swap
4899
+ * @param {number} [height] optional block height, defaults to current tip
4900
+ * @param {*} [options] Override http request option.
4901
+ * @throws {RequiredError}
4902
+ */
4903
+ swapDetails: (txId_1, height_1, ...args_1) => __awaiter(this, [txId_1, height_1, ...args_1], void 0, function* (txId, height, options = {}) {
4904
+ // verify required parameter 'txId' is not null or undefined
4905
+ assertParamExists('swapDetails', 'txId', txId);
4906
+ const localVarPath = `/thorchain/queue/swap/details/{tx_id}`
4907
+ .replace(`{${"tx_id"}}`, encodeURIComponent(String(txId)));
4908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4909
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4910
+ let baseOptions;
4911
+ if (configuration) {
4912
+ baseOptions = configuration.baseOptions;
4913
+ }
4914
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4915
+ const localVarHeaderParameter = {};
4916
+ const localVarQueryParameter = {};
4917
+ if (height !== undefined) {
4918
+ localVarQueryParameter['height'] = height;
4919
+ }
4920
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4922
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4923
+ return {
4924
+ url: toPathString(localVarUrlObj),
4925
+ options: localVarRequestOptions,
4926
+ };
4927
+ }),
4928
+ };
4929
+ };
4930
+ /**
4931
+ * SwapApi - functional programming interface
4932
+ * @export
4933
+ */
4934
+ const SwapApiFp = function (configuration) {
4935
+ const localVarAxiosParamCreator = SwapApiAxiosParamCreator(configuration);
4936
+ return {
4937
+ /**
4938
+ * Returns detailed information about a specific swap including its state.
4939
+ * @param {string} txId Transaction ID of the swap
4940
+ * @param {number} [height] optional block height, defaults to current tip
4941
+ * @param {*} [options] Override http request option.
4942
+ * @throws {RequiredError}
4943
+ */
4944
+ swapDetails(txId, height, options) {
4945
+ return __awaiter(this, void 0, void 0, function* () {
4946
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.swapDetails(txId, height, options);
4947
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
4948
+ });
4949
+ },
4950
+ };
4951
+ };
4952
+ /**
4953
+ * SwapApi - factory interface
4954
+ * @export
4955
+ */
4956
+ const SwapApiFactory = function (configuration, basePath, axios) {
4957
+ const localVarFp = SwapApiFp(configuration);
4958
+ return {
4959
+ /**
4960
+ * Returns detailed information about a specific swap including its state.
4961
+ * @param {string} txId Transaction ID of the swap
4962
+ * @param {number} [height] optional block height, defaults to current tip
4963
+ * @param {*} [options] Override http request option.
4964
+ * @throws {RequiredError}
4965
+ */
4966
+ swapDetails(txId, height, options) {
4967
+ return localVarFp.swapDetails(txId, height, options).then((request) => request(axios, basePath));
4968
+ },
4969
+ };
4970
+ };
4971
+ /**
4972
+ * SwapApi - object-oriented interface
4973
+ * @export
4974
+ * @class SwapApi
4975
+ * @extends {BaseAPI}
4976
+ */
4977
+ class SwapApi extends BaseAPI {
4978
+ /**
4979
+ * Returns detailed information about a specific swap including its state.
4980
+ * @param {string} txId Transaction ID of the swap
4981
+ * @param {number} [height] optional block height, defaults to current tip
4982
+ * @param {*} [options] Override http request option.
4983
+ * @throws {RequiredError}
4984
+ * @memberof SwapApi
4985
+ */
4986
+ swapDetails(txId, height, options) {
4987
+ return SwapApiFp(this.configuration).swapDetails(txId, height, options).then((request) => request(this.axios, this.basePath));
4988
+ }
4989
+ }
4583
4990
  /**
4584
4991
  * TCYClaimersApi - axios parameter creator
4585
4992
  * @export
@@ -6199,6 +6606,34 @@ const VaultsApiAxiosParamCreator = function (configuration) {
6199
6606
  options: localVarRequestOptions,
6200
6607
  };
6201
6608
  }),
6609
+ /**
6610
+ * Returns aggregate vault solvency showing over-solvent or under-solvent amounts per asset.
6611
+ * @param {number} [height] optional block height, defaults to current tip
6612
+ * @param {*} [options] Override http request option.
6613
+ * @throws {RequiredError}
6614
+ */
6615
+ vaultSolvency: (height_1, ...args_1) => __awaiter(this, [height_1, ...args_1], void 0, function* (height, options = {}) {
6616
+ const localVarPath = `/thorchain/vaults/solvency`;
6617
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6618
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6619
+ let baseOptions;
6620
+ if (configuration) {
6621
+ baseOptions = configuration.baseOptions;
6622
+ }
6623
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6624
+ const localVarHeaderParameter = {};
6625
+ const localVarQueryParameter = {};
6626
+ if (height !== undefined) {
6627
+ localVarQueryParameter['height'] = height;
6628
+ }
6629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6631
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6632
+ return {
6633
+ url: toPathString(localVarUrlObj),
6634
+ options: localVarRequestOptions,
6635
+ };
6636
+ }),
6202
6637
  /**
6203
6638
  * Returns current yggdrasil vaults.
6204
6639
  * @param {number} [height] optional block height, defaults to current tip
@@ -6273,6 +6708,18 @@ const VaultsApiFp = function (configuration) {
6273
6708
  return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
6274
6709
  });
6275
6710
  },
6711
+ /**
6712
+ * Returns aggregate vault solvency showing over-solvent or under-solvent amounts per asset.
6713
+ * @param {number} [height] optional block height, defaults to current tip
6714
+ * @param {*} [options] Override http request option.
6715
+ * @throws {RequiredError}
6716
+ */
6717
+ vaultSolvency(height, options) {
6718
+ return __awaiter(this, void 0, void 0, function* () {
6719
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.vaultSolvency(height, options);
6720
+ return createRequestFunction(localVarAxiosArgs, globalAxios__default.default, BASE_PATH, configuration);
6721
+ });
6722
+ },
6276
6723
  /**
6277
6724
  * Returns current yggdrasil vaults.
6278
6725
  * @param {number} [height] optional block height, defaults to current tip
@@ -6322,6 +6769,15 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
6322
6769
  vaultPubkeys(height, options) {
6323
6770
  return localVarFp.vaultPubkeys(height, options).then((request) => request(axios, basePath));
6324
6771
  },
6772
+ /**
6773
+ * Returns aggregate vault solvency showing over-solvent or under-solvent amounts per asset.
6774
+ * @param {number} [height] optional block height, defaults to current tip
6775
+ * @param {*} [options] Override http request option.
6776
+ * @throws {RequiredError}
6777
+ */
6778
+ vaultSolvency(height, options) {
6779
+ return localVarFp.vaultSolvency(height, options).then((request) => request(axios, basePath));
6780
+ },
6325
6781
  /**
6326
6782
  * Returns current yggdrasil vaults.
6327
6783
  * @param {number} [height] optional block height, defaults to current tip
@@ -6371,6 +6827,16 @@ class VaultsApi extends BaseAPI {
6371
6827
  vaultPubkeys(height, options) {
6372
6828
  return VaultsApiFp(this.configuration).vaultPubkeys(height, options).then((request) => request(this.axios, this.basePath));
6373
6829
  }
6830
+ /**
6831
+ * Returns aggregate vault solvency showing over-solvent or under-solvent amounts per asset.
6832
+ * @param {number} [height] optional block height, defaults to current tip
6833
+ * @param {*} [options] Override http request option.
6834
+ * @throws {RequiredError}
6835
+ * @memberof VaultsApi
6836
+ */
6837
+ vaultSolvency(height, options) {
6838
+ return VaultsApiFp(this.configuration).vaultSolvency(height, options).then((request) => request(this.axios, this.basePath));
6839
+ }
6374
6840
  /**
6375
6841
  * Returns current yggdrasil vaults.
6376
6842
  * @param {number} [height] optional block height, defaults to current tip
@@ -6389,7 +6855,7 @@ class VaultsApi extends BaseAPI {
6389
6855
  * Thornode API
6390
6856
  * Thornode REST API.
6391
6857
  *
6392
- * The version of the OpenAPI document: 3.5.1
6858
+ * The version of the OpenAPI document: 3.15.0
6393
6859
  * Contact: devs@thorchain.org
6394
6860
  *
6395
6861
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -6439,14 +6905,14 @@ exports.BlockApi = BlockApi;
6439
6905
  exports.BlockApiAxiosParamCreator = BlockApiAxiosParamCreator;
6440
6906
  exports.BlockApiFactory = BlockApiFactory;
6441
6907
  exports.BlockApiFp = BlockApiFp;
6442
- exports.BorrowersApi = BorrowersApi;
6443
- exports.BorrowersApiAxiosParamCreator = BorrowersApiAxiosParamCreator;
6444
- exports.BorrowersApiFactory = BorrowersApiFactory;
6445
- exports.BorrowersApiFp = BorrowersApiFp;
6446
6908
  exports.CloutApi = CloutApi;
6447
6909
  exports.CloutApiAxiosParamCreator = CloutApiAxiosParamCreator;
6448
6910
  exports.CloutApiFactory = CloutApiFactory;
6449
6911
  exports.CloutApiFp = CloutApiFp;
6912
+ exports.CodesApi = CodesApi;
6913
+ exports.CodesApiAxiosParamCreator = CodesApiAxiosParamCreator;
6914
+ exports.CodesApiFactory = CodesApiFactory;
6915
+ exports.CodesApiFp = CodesApiFp;
6450
6916
  exports.Configuration = Configuration;
6451
6917
  exports.ExportApi = ExportApi;
6452
6918
  exports.ExportApiAxiosParamCreator = ExportApiAxiosParamCreator;
@@ -6460,6 +6926,10 @@ exports.InvariantsApi = InvariantsApi;
6460
6926
  exports.InvariantsApiAxiosParamCreator = InvariantsApiAxiosParamCreator;
6461
6927
  exports.InvariantsApiFactory = InvariantsApiFactory;
6462
6928
  exports.InvariantsApiFp = InvariantsApiFp;
6929
+ exports.LimitOrderApi = LimitOrderApi;
6930
+ exports.LimitOrderApiAxiosParamCreator = LimitOrderApiAxiosParamCreator;
6931
+ exports.LimitOrderApiFactory = LimitOrderApiFactory;
6932
+ exports.LimitOrderApiFp = LimitOrderApiFp;
6463
6933
  exports.LiquidityProvidersApi = LiquidityProvidersApi;
6464
6934
  exports.LiquidityProvidersApiAxiosParamCreator = LiquidityProvidersApiAxiosParamCreator;
6465
6935
  exports.LiquidityProvidersApiFactory = LiquidityProvidersApiFactory;
@@ -6478,6 +6948,10 @@ exports.NodesApiAxiosParamCreator = NodesApiAxiosParamCreator;
6478
6948
  exports.NodesApiFactory = NodesApiFactory;
6479
6949
  exports.NodesApiFp = NodesApiFp;
6480
6950
  exports.ObservedTxStatusEnum = ObservedTxStatusEnum;
6951
+ exports.OracleApi = OracleApi;
6952
+ exports.OracleApiAxiosParamCreator = OracleApiAxiosParamCreator;
6953
+ exports.OracleApiFactory = OracleApiFactory;
6954
+ exports.OracleApiFp = OracleApiFp;
6481
6955
  exports.PoolSlipApi = PoolSlipApi;
6482
6956
  exports.PoolSlipApiAxiosParamCreator = PoolSlipApiAxiosParamCreator;
6483
6957
  exports.PoolSlipApiFactory = PoolSlipApiFactory;
@@ -6498,6 +6972,10 @@ exports.RUNEPoolApi = RUNEPoolApi;
6498
6972
  exports.RUNEPoolApiAxiosParamCreator = RUNEPoolApiAxiosParamCreator;
6499
6973
  exports.RUNEPoolApiFactory = RUNEPoolApiFactory;
6500
6974
  exports.RUNEPoolApiFp = RUNEPoolApiFp;
6975
+ exports.ReferenceMemosApi = ReferenceMemosApi;
6976
+ exports.ReferenceMemosApiAxiosParamCreator = ReferenceMemosApiAxiosParamCreator;
6977
+ exports.ReferenceMemosApiFactory = ReferenceMemosApiFactory;
6978
+ exports.ReferenceMemosApiFp = ReferenceMemosApiFp;
6501
6979
  exports.SaversApi = SaversApi;
6502
6980
  exports.SaversApiAxiosParamCreator = SaversApiAxiosParamCreator;
6503
6981
  exports.SaversApiFactory = SaversApiFactory;
@@ -6514,6 +6992,10 @@ exports.StreamingSwapApi = StreamingSwapApi;
6514
6992
  exports.StreamingSwapApiAxiosParamCreator = StreamingSwapApiAxiosParamCreator;
6515
6993
  exports.StreamingSwapApiFactory = StreamingSwapApiFactory;
6516
6994
  exports.StreamingSwapApiFp = StreamingSwapApiFp;
6995
+ exports.SwapApi = SwapApi;
6996
+ exports.SwapApiAxiosParamCreator = SwapApiAxiosParamCreator;
6997
+ exports.SwapApiFactory = SwapApiFactory;
6998
+ exports.SwapApiFp = SwapApiFp;
6517
6999
  exports.TCYClaimersApi = TCYClaimersApi;
6518
7000
  exports.TCYClaimersApiAxiosParamCreator = TCYClaimersApiAxiosParamCreator;
6519
7001
  exports.TCYClaimersApiFactory = TCYClaimersApiFactory;