@xchainjs/xchain-mayachain-query 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.esm.js CHANGED
@@ -334,8 +334,8 @@ class MayachainQuery {
334
334
  * @param {QuoteSwapParams} quoteSwapParams - Parameters for the quote swap operation.
335
335
  * @returns {QuoteSwap} A quote for the swap operation.
336
336
  */
337
- quoteSwap({ fromAsset, destinationAsset, amount, destinationAddress, toleranceBps, affiliateBps, affiliateAddress, height, streamingInterval, streamingQuantity, }) {
338
- return __awaiter(this, void 0, void 0, function* () {
337
+ quoteSwap(_a) {
338
+ return __awaiter(this, arguments, void 0, function* ({ fromAsset, destinationAsset, amount, destinationAddress, toleranceBps, affiliateBps, affiliateAddress, height, streamingInterval, streamingQuantity, }) {
339
339
  const fromAssetString = assetToString(fromAsset);
340
340
  const toAssetString = assetToString(destinationAsset);
341
341
  // Endpoint allows 10 decimals for Cacao, 8 for the rest of assets
@@ -509,8 +509,8 @@ class MayachainQuery {
509
509
  * @param {Address[]} params.addresses - List of addresses
510
510
  * @returns {SwapsHistory} Swap history
511
511
  */
512
- getSwapHistory({ addresses }) {
513
- return __awaiter(this, void 0, void 0, function* () {
512
+ getSwapHistory(_a) {
513
+ return __awaiter(this, arguments, void 0, function* ({ addresses }) {
514
514
  const actionsResume = yield this.mayachainCache.midgardQuery.getActions({
515
515
  address: addresses.join(','),
516
516
  type: 'swap',
@@ -621,8 +621,8 @@ class MayachainQuery {
621
621
  * @param {QuoteMAYANameParams} params Params to make the update or the registration
622
622
  * @returns {QuoteMAYAName} Memo to make the update or the registration and the estimation of the operation
623
623
  */
624
- estimateMAYAName({ name, owner, isUpdate, expiry, chain, chainAddress, }) {
625
- return __awaiter(this, void 0, void 0, function* () {
624
+ estimateMAYAName(_a) {
625
+ return __awaiter(this, arguments, void 0, function* ({ name, owner, isUpdate, expiry, chain, chainAddress, }) {
626
626
  const details = yield this.getMAYANameDetails(name);
627
627
  if (!details && isUpdate) {
628
628
  throw Error('Can not update an unregistered MAYAName');
package/lib/index.js CHANGED
@@ -342,8 +342,8 @@ class MayachainQuery {
342
342
  * @param {QuoteSwapParams} quoteSwapParams - Parameters for the quote swap operation.
343
343
  * @returns {QuoteSwap} A quote for the swap operation.
344
344
  */
345
- quoteSwap({ fromAsset, destinationAsset, amount, destinationAddress, toleranceBps, affiliateBps, affiliateAddress, height, streamingInterval, streamingQuantity, }) {
346
- return __awaiter(this, void 0, void 0, function* () {
345
+ quoteSwap(_a) {
346
+ return __awaiter(this, arguments, void 0, function* ({ fromAsset, destinationAsset, amount, destinationAddress, toleranceBps, affiliateBps, affiliateAddress, height, streamingInterval, streamingQuantity, }) {
347
347
  const fromAssetString = xchainUtil.assetToString(fromAsset);
348
348
  const toAssetString = xchainUtil.assetToString(destinationAsset);
349
349
  // Endpoint allows 10 decimals for Cacao, 8 for the rest of assets
@@ -517,8 +517,8 @@ class MayachainQuery {
517
517
  * @param {Address[]} params.addresses - List of addresses
518
518
  * @returns {SwapsHistory} Swap history
519
519
  */
520
- getSwapHistory({ addresses }) {
521
- return __awaiter(this, void 0, void 0, function* () {
520
+ getSwapHistory(_a) {
521
+ return __awaiter(this, arguments, void 0, function* ({ addresses }) {
522
522
  const actionsResume = yield this.mayachainCache.midgardQuery.getActions({
523
523
  address: addresses.join(','),
524
524
  type: 'swap',
@@ -629,8 +629,8 @@ class MayachainQuery {
629
629
  * @param {QuoteMAYANameParams} params Params to make the update or the registration
630
630
  * @returns {QuoteMAYAName} Memo to make the update or the registration and the estimation of the operation
631
631
  */
632
- estimateMAYAName({ name, owner, isUpdate, expiry, chain, chainAddress, }) {
633
- return __awaiter(this, void 0, void 0, function* () {
632
+ estimateMAYAName(_a) {
633
+ return __awaiter(this, arguments, void 0, function* ({ name, owner, isUpdate, expiry, chain, chainAddress, }) {
634
634
  const details = yield this.getMAYANameDetails(name);
635
635
  if (!details && isUpdate) {
636
636
  throw Error('Can not update an unregistered MAYAName');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xchainjs/xchain-mayachain-query",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "license": "MIT",
5
5
  "description": "Mayachain query module that is responsible for estimating swap calculations and add/remove liquidity for thorchain",
6
6
  "keywords": [
@@ -33,11 +33,11 @@
33
33
  "postversion": "git push --follow-tags"
34
34
  },
35
35
  "dependencies": {
36
- "@xchainjs/xchain-client": "2.0.5",
37
- "@xchainjs/xchain-mayamidgard": "1.0.3",
38
- "@xchainjs/xchain-mayamidgard-query": "1.0.6",
39
- "@xchainjs/xchain-mayanode": "1.0.3",
40
- "@xchainjs/xchain-util": "2.0.3",
36
+ "@xchainjs/xchain-client": "2.0.6",
37
+ "@xchainjs/xchain-mayamidgard": "1.0.4",
38
+ "@xchainjs/xchain-mayamidgard-query": "1.0.7",
39
+ "@xchainjs/xchain-mayanode": "1.0.4",
40
+ "@xchainjs/xchain-util": "2.0.4",
41
41
  "axios": "1.8.4",
42
42
  "axios-retry": "3.2.5",
43
43
  "bignumber.js": "^9.0.0"