@shapeshiftoss/swapper 17.7.1 → 17.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/index.d.ts +1 -0
  3. package/dist/cjs/index.js +18 -7
  4. package/dist/cjs/swappers/AcrossSwapper/utils/acrossService.d.ts +3 -3
  5. package/dist/cjs/swappers/AcrossSwapper/utils/getTrade.js +1 -2
  6. package/dist/cjs/swappers/ArbitrumBridgeSwapper/endpoints.d.ts +3 -3
  7. package/dist/cjs/swappers/ArbitrumBridgeSwapper/getTradeQuote/getTradeQuote.js +2 -2
  8. package/dist/cjs/swappers/ArbitrumBridgeSwapper/getTradeRate/getTradeRate.js +1 -2
  9. package/dist/cjs/swappers/ArbitrumBridgeSwapper/utils/fetchArbitrumBridgeSwap.d.ts +2 -2
  10. package/dist/cjs/swappers/AvnuSwapper/endpoints.js +2 -2
  11. package/dist/cjs/swappers/AvnuSwapper/utils/constants.d.ts +1 -1
  12. package/dist/cjs/swappers/BebopSwapper/getBebopSolanaTradeQuote/getBebopSolanaTradeQuote.js +1 -2
  13. package/dist/cjs/swappers/BebopSwapper/getBebopSolanaTradeRate/getBebopSolanaTradeRate.js +1 -2
  14. package/dist/cjs/swappers/BebopSwapper/getBebopTradeQuote/getBebopTradeQuote.js +2 -3
  15. package/dist/cjs/swappers/BebopSwapper/getBebopTradeRate/getBebopTradeRate.js +2 -3
  16. package/dist/cjs/swappers/BebopSwapper/types.d.ts +1 -1
  17. package/dist/cjs/swappers/BebopSwapper/utils/bebopService.d.ts +1 -1
  18. package/dist/cjs/swappers/BebopSwapper/utils/fetchFromBebop.d.ts +4 -4
  19. package/dist/cjs/swappers/BebopSwapper/utils/helpers/helpers.d.ts +2 -1
  20. package/dist/cjs/swappers/ButterSwap/swapperApi/checkTradeStatus.test.js +19 -9
  21. package/dist/cjs/swappers/ButterSwap/swapperApi/getTradeQuote.js +1 -1
  22. package/dist/cjs/swappers/ButterSwap/test-data/routeQuote.js +4 -4
  23. package/dist/cjs/swappers/ButterSwap/utils/butterSwapHistoryService.d.ts +3 -3
  24. package/dist/cjs/swappers/ButterSwap/utils/butterSwapService.d.ts +3 -3
  25. package/dist/cjs/swappers/ButterSwap/xhr.js +4 -4
  26. package/dist/cjs/swappers/CetusSwapper/utils/constants.d.ts +1 -1
  27. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteBoostQuote.js +4 -5
  28. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteEstimatedDurationsSeconds.js +4 -5
  29. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteQuote.js +5 -5
  30. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteQuoteFee.js +5 -5
  31. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusChunkInfo.js +4 -5
  32. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusDca.js +4 -5
  33. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusEgress.js +4 -5
  34. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusSwap.js +4 -5
  35. package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasSwapDepositAddress.js +4 -5
  36. package/dist/cjs/swappers/ChainflipSwapper/utils/chainflipService.d.ts +3 -3
  37. package/dist/cjs/swappers/ChainflipSwapper/utils/getQuoteOrRate.js +2 -2
  38. package/dist/cjs/swappers/ChainflipSwapper/utils/getUtxoTxFees.d.ts +1 -1
  39. package/dist/cjs/swappers/ChainflipSwapper/utils/helpers.d.ts +3 -2
  40. package/dist/cjs/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.js +2 -3
  41. package/dist/cjs/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.test.js +8 -8
  42. package/dist/cjs/swappers/CowSwapper/getCowSwapTradeRate/getCowSwapTradeRate.js +2 -3
  43. package/dist/cjs/swappers/CowSwapper/utils/cowService.d.ts +3 -3
  44. package/dist/cjs/swappers/DebridgeSwapper/utils/debridgeService.d.ts +3 -3
  45. package/dist/cjs/swappers/DebridgeSwapper/utils/getTrade.js +1 -2
  46. package/dist/cjs/swappers/NearIntentsSwapper/utils/helpers/helpers.d.ts +2 -2
  47. package/dist/cjs/swappers/PortalsSwapper/getPortalsTradeQuote/getPortalsTradeQuote.js +1 -2
  48. package/dist/cjs/swappers/PortalsSwapper/getPortalsTradeRate/getPortalsTradeRate.js +3 -4
  49. package/dist/cjs/swappers/PortalsSwapper/utils/helpers.d.ts +1 -1
  50. package/dist/cjs/swappers/RelaySwapper/constant.d.ts +39 -1
  51. package/dist/cjs/swappers/RelaySwapper/utils/fetchRelayTrade.d.ts +1 -1
  52. package/dist/cjs/swappers/RelaySwapper/utils/getRelayPsbtRelayer.js +17 -7
  53. package/dist/cjs/swappers/RelaySwapper/utils/getTrade.js +1 -2
  54. package/dist/cjs/swappers/RelaySwapper/utils/relayService.d.ts +3 -3
  55. package/dist/cjs/swappers/SunioSwapper/utils/getQuoteOrRate.js +1 -2
  56. package/dist/cjs/swappers/SunioSwapper/utils/helpers/helpers.d.ts +2 -1
  57. package/dist/cjs/swappers/SunioSwapper/utils/sunioService.d.ts +3 -3
  58. package/dist/cjs/swappers/ThorchainSwapper/utils/getL1ToLongtailQuote.js +18 -8
  59. package/dist/cjs/swappers/ThorchainSwapper/utils/getL1ToLongtailRate.js +18 -8
  60. package/dist/cjs/swappers/ThorchainSwapper/utils/getLongtailQuote.js +1 -1
  61. package/dist/cjs/swappers/ThorchainSwapper/utils/getLongtailRate.js +1 -1
  62. package/dist/cjs/swappers/ThorchainSwapper/utils/longTailHelpers.js +2 -2
  63. package/dist/cjs/swappers/ZrxSwapper/getZrxTradeQuote/getZrxTradeQuote.js +1 -2
  64. package/dist/cjs/swappers/ZrxSwapper/getZrxTradeQuote/getZrxTradeQuote.test.js +17 -7
  65. package/dist/cjs/swappers/ZrxSwapper/getZrxTradeRate/getZrxTradeRate.js +1 -2
  66. package/dist/cjs/swappers/ZrxSwapper/utils/fetchFromZrx.js +2 -2
  67. package/dist/cjs/swappers/ZrxSwapper/utils/helpers/helpers.d.ts +2 -3
  68. package/dist/cjs/swappers/ZrxSwapper/utils/zrxService.d.ts +1 -1
  69. package/dist/cjs/swappers/utils/test-data/cryptoMarketDataById.d.ts +35 -1
  70. package/dist/cjs/thorchain-utils/getCallDataFromQuote.d.ts +1 -1
  71. package/dist/cjs/thorchain-utils/getL1RateOrQuote.js +21 -11
  72. package/dist/cjs/thorchain-utils/index.js +17 -7
  73. package/dist/cjs/thorchain-utils/parseBuyTxHash.d.ts +1 -1
  74. package/dist/cjs/thorchain-utils/service.d.ts +3 -3
  75. package/dist/cjs/tron-utils/getTronTransactionFees.d.ts +1 -1
  76. package/dist/cjs/utils/tenderly/storageSlots.js +20 -20
  77. package/dist/cjs/utils.d.ts +4 -4
  78. package/dist/esm/.tsbuildinfo +1 -1
  79. package/dist/esm/index.d.ts +1 -0
  80. package/dist/esm/index.js +1 -0
  81. package/dist/esm/swappers/AcrossSwapper/utils/acrossService.d.ts +3 -3
  82. package/dist/esm/swappers/ArbitrumBridgeSwapper/endpoints.d.ts +3 -3
  83. package/dist/esm/swappers/ArbitrumBridgeSwapper/utils/fetchArbitrumBridgeSwap.d.ts +2 -2
  84. package/dist/esm/swappers/AvnuSwapper/endpoints.js +2 -2
  85. package/dist/esm/swappers/AvnuSwapper/utils/constants.d.ts +1 -1
  86. package/dist/esm/swappers/BebopSwapper/getBebopTradeQuote/getBebopTradeQuote.js +1 -1
  87. package/dist/esm/swappers/BebopSwapper/getBebopTradeRate/getBebopTradeRate.js +1 -1
  88. package/dist/esm/swappers/BebopSwapper/types.d.ts +1 -1
  89. package/dist/esm/swappers/BebopSwapper/utils/bebopService.d.ts +1 -1
  90. package/dist/esm/swappers/BebopSwapper/utils/fetchFromBebop.d.ts +4 -4
  91. package/dist/esm/swappers/BebopSwapper/utils/helpers/helpers.d.ts +2 -1
  92. package/dist/esm/swappers/ButterSwap/swapperApi/checkTradeStatus.test.js +2 -2
  93. package/dist/esm/swappers/ButterSwap/swapperApi/getTradeQuote.js +1 -1
  94. package/dist/esm/swappers/ButterSwap/test-data/routeQuote.js +4 -4
  95. package/dist/esm/swappers/ButterSwap/utils/butterSwapHistoryService.d.ts +3 -3
  96. package/dist/esm/swappers/ButterSwap/utils/butterSwapService.d.ts +3 -3
  97. package/dist/esm/swappers/CetusSwapper/utils/constants.d.ts +1 -1
  98. package/dist/esm/swappers/ChainflipSwapper/utils/chainflipService.d.ts +3 -3
  99. package/dist/esm/swappers/ChainflipSwapper/utils/getQuoteOrRate.js +2 -2
  100. package/dist/esm/swappers/ChainflipSwapper/utils/getUtxoTxFees.d.ts +1 -1
  101. package/dist/esm/swappers/ChainflipSwapper/utils/helpers.d.ts +3 -2
  102. package/dist/esm/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.js +1 -1
  103. package/dist/esm/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.test.js +8 -8
  104. package/dist/esm/swappers/CowSwapper/getCowSwapTradeRate/getCowSwapTradeRate.js +1 -1
  105. package/dist/esm/swappers/CowSwapper/utils/cowService.d.ts +3 -3
  106. package/dist/esm/swappers/DebridgeSwapper/utils/debridgeService.d.ts +3 -3
  107. package/dist/esm/swappers/NearIntentsSwapper/utils/helpers/helpers.d.ts +2 -2
  108. package/dist/esm/swappers/PortalsSwapper/getPortalsTradeRate/getPortalsTradeRate.js +2 -2
  109. package/dist/esm/swappers/PortalsSwapper/utils/helpers.d.ts +1 -1
  110. package/dist/esm/swappers/RelaySwapper/constant.d.ts +39 -1
  111. package/dist/esm/swappers/RelaySwapper/utils/fetchRelayTrade.d.ts +1 -1
  112. package/dist/esm/swappers/RelaySwapper/utils/relayService.d.ts +3 -3
  113. package/dist/esm/swappers/SunioSwapper/utils/helpers/helpers.d.ts +2 -1
  114. package/dist/esm/swappers/SunioSwapper/utils/sunioService.d.ts +3 -3
  115. package/dist/esm/swappers/ThorchainSwapper/utils/getL1ToLongtailQuote.js +1 -1
  116. package/dist/esm/swappers/ThorchainSwapper/utils/getL1ToLongtailRate.js +1 -1
  117. package/dist/esm/swappers/ThorchainSwapper/utils/getLongtailQuote.js +1 -1
  118. package/dist/esm/swappers/ThorchainSwapper/utils/getLongtailRate.js +1 -1
  119. package/dist/esm/swappers/ZrxSwapper/utils/fetchFromZrx.js +2 -2
  120. package/dist/esm/swappers/ZrxSwapper/utils/helpers/helpers.d.ts +2 -3
  121. package/dist/esm/swappers/ZrxSwapper/utils/zrxService.d.ts +1 -1
  122. package/dist/esm/swappers/utils/test-data/cryptoMarketDataById.d.ts +35 -1
  123. package/dist/esm/thorchain-utils/getCallDataFromQuote.d.ts +1 -1
  124. package/dist/esm/thorchain-utils/getL1RateOrQuote.js +4 -4
  125. package/dist/esm/thorchain-utils/parseBuyTxHash.d.ts +1 -1
  126. package/dist/esm/thorchain-utils/service.d.ts +3 -3
  127. package/dist/esm/tron-utils/getTronTransactionFees.d.ts +1 -1
  128. package/dist/esm/utils/tenderly/storageSlots.js +20 -20
  129. package/dist/esm/utils.d.ts +4 -4
  130. package/package.json +3 -3
@@ -14,6 +14,7 @@ export * from './swappers/PortalsSwapper';
14
14
  export * from './swappers/ThorchainSwapper';
15
15
  export * from './swappers/MayachainSwapper';
16
16
  export * from './swappers/ButterSwap';
17
+ export * from './swappers/RelaySwapper';
17
18
  export * from './swappers/utils/helpers/helpers';
18
19
  export * from './thorchain-utils';
19
20
  export * from './types';
package/dist/cjs/index.js CHANGED
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
28
38
  Object.defineProperty(exports, "__esModule", { value: true });
29
39
  exports.testData = void 0;
30
40
  __exportStar(require("./constants"), exports);
@@ -43,6 +53,7 @@ __exportStar(require("./swappers/PortalsSwapper"), exports);
43
53
  __exportStar(require("./swappers/ThorchainSwapper"), exports);
44
54
  __exportStar(require("./swappers/MayachainSwapper"), exports);
45
55
  __exportStar(require("./swappers/ButterSwap"), exports);
56
+ __exportStar(require("./swappers/RelaySwapper"), exports);
46
57
  __exportStar(require("./swappers/utils/helpers/helpers"), exports);
47
58
  __exportStar(require("./thorchain-utils"), exports);
48
59
  __exportStar(require("./types"), exports);
@@ -1,5 +1,5 @@
1
1
  export declare const acrossService: {
2
- get: <T = any>(url: string, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T, any, {}>, import("../../..").SwapErrorRight>>;
3
- post: <T_1 = any>(url: string, data: any, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_1, any, {}>, import("../../..").SwapErrorRight>>;
4
- delete: <T_2 = any>(url: string, data: any, config?: import("axios").AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_2, any, {}>, import("../../..").SwapErrorRight>>;
2
+ get: <T = any>(url: string, config?: import("axios").AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
3
+ post: <T = any>(url: string, data: any, config?: import("axios").AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
4
+ delete: <T = any>(url: string, data: any, config?: import("axios").AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
5
5
  };
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.getTrade = void 0;
6
+ exports.getTrade = getTrade;
7
7
  const caip_1 = require("@shapeshiftoss/caip");
8
8
  const chain_adapters_1 = require("@shapeshiftoss/chain-adapters");
9
9
  const utils_1 = require("@shapeshiftoss/utils");
@@ -346,4 +346,3 @@ async function getTrade({ input, deps, }) {
346
346
  };
347
347
  return (0, monads_1.Ok)([tradeRate]);
348
348
  }
349
- exports.getTrade = getTrade;
@@ -5,9 +5,9 @@ export declare const getParentToChildMessageDataFromParentTxHash: ({ depositTxId
5
5
  depositTxId: string;
6
6
  parentProvider: ethersv5.providers.JsonRpcProvider;
7
7
  childProvider: ethersv5.providers.JsonRpcProvider;
8
- isClassic?: boolean | undefined;
8
+ isClassic?: boolean;
9
9
  }) => Promise<{
10
- isClassic?: boolean | undefined;
11
- parentToChildMsg?: ParentToChildMessageReaderClassic | ParentToChildMessageReader | undefined;
10
+ isClassic?: boolean;
11
+ parentToChildMsg?: ParentToChildMessageReaderClassic | ParentToChildMessageReader;
12
12
  } | undefined>;
13
13
  export declare const arbitrumBridgeApi: SwapperApi;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTradeQuote = exports.getTradeQuoteWithWallet = exports.isArbitrumBridgeTradeQuoteOrRate = void 0;
3
+ exports.getTradeQuoteWithWallet = exports.isArbitrumBridgeTradeQuoteOrRate = void 0;
4
+ exports.getTradeQuote = getTradeQuote;
4
5
  const caip_1 = require("@shapeshiftoss/caip");
5
6
  const hdwallet_core_1 = require("@shapeshiftoss/hdwallet-core");
6
7
  const monads_1 = require("@sniptt/monads");
@@ -83,4 +84,3 @@ async function getTradeQuote(input, { assertGetEvmChainAdapter }) {
83
84
  }));
84
85
  }
85
86
  }
86
- exports.getTradeQuote = getTradeQuote;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getTradeRate = void 0;
3
+ exports.getTradeRate = getTradeRate;
4
4
  const caip_1 = require("@shapeshiftoss/caip");
5
5
  const monads_1 = require("@sniptt/monads");
6
6
  const uuid_1 = require("uuid");
@@ -72,4 +72,3 @@ async function getTradeRate(input, { assertGetEvmChainAdapter }) {
72
72
  }));
73
73
  }
74
74
  }
75
- exports.getTradeRate = getTradeRate;
@@ -23,12 +23,12 @@ export type FetchArbitrumBridgeQuoteInput = {
23
23
  assertGetEvmChainAdapter: (chainId: ChainId) => EvmChainAdapter;
24
24
  };
25
25
  export declare const fetchArbitrumBridgePrice: (args: FetchArbitrumBridgePriceInput) => Promise<{
26
- request: Omit<ParentToChildTransactionRequest | ChildToParentTransactionRequest, 'retryableData'> | undefined;
26
+ request: Omit<ParentToChildTransactionRequest | ChildToParentTransactionRequest, "retryableData"> | undefined;
27
27
  allowanceContract: string;
28
28
  networkFeeCryptoBaseUnit: string;
29
29
  }>;
30
30
  export declare const fetchArbitrumBridgeQuote: (args: FetchArbitrumBridgeQuoteInput) => Promise<{
31
- request: Omit<ParentToChildTransactionRequest | ChildToParentTransactionRequest, 'retryableData'> | undefined;
31
+ request: Omit<ParentToChildTransactionRequest | ChildToParentTransactionRequest, "retryableData"> | undefined;
32
32
  allowanceContract: string;
33
33
  networkFeeCryptoBaseUnit: string;
34
34
  }>;
@@ -148,8 +148,8 @@ exports.avnuApi = {
148
148
  compiledCalldata: formattedCalldata,
149
149
  chainId: chainIdHex,
150
150
  nonce,
151
- nonceDataAvailabilityMode: 0,
152
- feeDataAvailabilityMode: 0,
151
+ nonceDataAvailabilityMode: 0, // L1
152
+ feeDataAvailabilityMode: 0, // L1
153
153
  resourceBounds: {
154
154
  l1_gas: {
155
155
  max_amount: resourceBounds.l1_gas.max_amount,
@@ -1,5 +1,5 @@
1
1
  import type { ChainId } from '@shapeshiftoss/caip';
2
2
  export declare const AVNU_SUPPORTED_CHAIN_IDS: readonly ChainId[];
3
- export declare const isSupportedChainId: (chainId: ChainId) => chainId is ChainId;
3
+ export declare const isSupportedChainId: (chainId: ChainId) => chainId is (typeof AVNU_SUPPORTED_CHAIN_IDS)[number];
4
4
  export declare const DEFAULT_SLIPPAGE_PERCENTAGE = "0.005";
5
5
  export declare const AVNU_API_BASE_URL = "https://starknet.api.avnu.fi";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBebopSolanaTradeQuote = void 0;
3
+ exports.getBebopSolanaTradeQuote = getBebopSolanaTradeQuote;
4
4
  const monads_1 = require("@sniptt/monads");
5
5
  const uuid_1 = require("uuid");
6
6
  const constants_1 = require("../../../constants");
@@ -88,4 +88,3 @@ async function getBebopSolanaTradeQuote(input, _assetsById, apiKey) {
88
88
  ],
89
89
  });
90
90
  }
91
- exports.getBebopSolanaTradeQuote = getBebopSolanaTradeQuote;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBebopSolanaTradeRate = void 0;
3
+ exports.getBebopSolanaTradeRate = getBebopSolanaTradeRate;
4
4
  const monads_1 = require("@sniptt/monads");
5
5
  const uuid_1 = require("uuid");
6
6
  const constants_1 = require("../../../constants");
@@ -85,4 +85,3 @@ async function getBebopSolanaTradeRate(input, _assetsById, apiKey) {
85
85
  ],
86
86
  });
87
87
  }
88
- exports.getBebopSolanaTradeRate = getBebopSolanaTradeRate;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBebopTradeQuote = void 0;
3
+ exports.getBebopTradeQuote = getBebopTradeQuote;
4
4
  const chain_adapters_1 = require("@shapeshiftoss/chain-adapters");
5
5
  const utils_1 = require("@shapeshiftoss/utils");
6
6
  const monads_1 = require("@sniptt/monads");
@@ -95,7 +95,7 @@ async function getBebopTradeQuote(input, assertGetEvmChainAdapter, _assetsById,
95
95
  accountNumber,
96
96
  rate,
97
97
  feeData: {
98
- protocolFees: {},
98
+ protocolFees: {}, // Bebop doesn't charge protocol fees
99
99
  networkFeeCryptoBaseUnit,
100
100
  },
101
101
  buyAmountBeforeFeesCryptoBaseUnit,
@@ -124,4 +124,3 @@ async function getBebopTradeQuote(input, assertGetEvmChainAdapter, _assetsById,
124
124
  }));
125
125
  }
126
126
  }
127
- exports.getBebopTradeQuote = getBebopTradeQuote;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getBebopTradeRate = void 0;
3
+ exports.getBebopTradeRate = getBebopTradeRate;
4
4
  const chain_adapters_1 = require("@shapeshiftoss/chain-adapters");
5
5
  const utils_1 = require("@shapeshiftoss/utils");
6
6
  const monads_1 = require("@sniptt/monads");
@@ -79,7 +79,7 @@ async function getBebopTradeRate(input, assertGetEvmChainAdapter, _assetsById, a
79
79
  accountNumber,
80
80
  rate,
81
81
  feeData: {
82
- protocolFees: {},
82
+ protocolFees: {}, // Bebop doesn't charge protocol fees
83
83
  networkFeeCryptoBaseUnit,
84
84
  },
85
85
  buyAmountBeforeFeesCryptoBaseUnit,
@@ -99,4 +99,3 @@ async function getBebopTradeRate(input, assertGetEvmChainAdapter, _assetsById, a
99
99
  ],
100
100
  });
101
101
  }
102
- exports.getBebopTradeRate = getBebopTradeRate;
@@ -87,7 +87,7 @@ export type BebopQuoteResponse = {
87
87
  };
88
88
  export declare const chainIdToBebopChain: Record<BebopSupportedChainId, string>;
89
89
  export declare const BEBOP_NATIVE_MARKER = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE";
90
- export declare const BEBOP_DUMMY_ADDRESS: `0x${string}`;
90
+ export declare const BEBOP_DUMMY_ADDRESS: Address;
91
91
  export declare const BEBOP_SOLANA_DUMMY_ADDRESS = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
92
92
  export type BebopSolanaQuoteResponse = {
93
93
  requestId: string;
@@ -4,6 +4,6 @@ import type { MonadicSwapperAxiosService } from '../../../types';
4
4
  type AxiosInstanceHoF = (instance: AxiosInstance, options?: Omit<RetryConfig, 'instance'>) => AxiosInstance;
5
5
  export declare const bebopServiceFactory: ({ apiKey, wrapper, }: {
6
6
  apiKey: string;
7
- wrapper?: AxiosInstanceHoF | undefined;
7
+ wrapper?: AxiosInstanceHoF;
8
8
  }) => MonadicSwapperAxiosService;
9
9
  export {};
@@ -10,7 +10,7 @@ export declare const fetchBebopQuote: ({ buyAsset, sellAsset, sellAmountIncludin
10
10
  takerAddress: Address;
11
11
  receiverAddress: Address;
12
12
  slippageTolerancePercentageDecimal: string;
13
- affiliateBps?: string | undefined;
13
+ affiliateBps?: string;
14
14
  apiKey: string;
15
15
  }) => Promise<Result<BebopQuoteResponse, SwapErrorRight>>;
16
16
  export declare const fetchBebopPrice: ({ buyAsset, sellAsset, sellAmountIncludingProtocolFeesCryptoBaseUnit, receiveAddress, affiliateBps, apiKey, }: {
@@ -18,7 +18,7 @@ export declare const fetchBebopPrice: ({ buyAsset, sellAsset, sellAmountIncludin
18
18
  sellAsset: Asset;
19
19
  sellAmountIncludingProtocolFeesCryptoBaseUnit: string;
20
20
  receiveAddress: string | undefined;
21
- affiliateBps?: string | undefined;
21
+ affiliateBps?: string;
22
22
  apiKey: string;
23
23
  }) => Promise<Result<BebopQuoteResponse, SwapErrorRight>>;
24
24
  export declare const fetchBebopSolanaQuote: ({ buyAsset, sellAsset, sellAmountIncludingProtocolFeesCryptoBaseUnit, takerAddress, receiverAddress, slippageTolerancePercentageDecimal, affiliateBps, apiKey, }: {
@@ -28,7 +28,7 @@ export declare const fetchBebopSolanaQuote: ({ buyAsset, sellAsset, sellAmountIn
28
28
  takerAddress: string;
29
29
  receiverAddress: string;
30
30
  slippageTolerancePercentageDecimal: string;
31
- affiliateBps?: string | undefined;
31
+ affiliateBps?: string;
32
32
  apiKey: string;
33
33
  }) => Promise<Result<BebopSolanaQuoteResponse, SwapErrorRight>>;
34
34
  export declare const fetchBebopSolanaPrice: ({ buyAsset, sellAsset, sellAmountIncludingProtocolFeesCryptoBaseUnit, receiveAddress, affiliateBps, apiKey, }: {
@@ -36,6 +36,6 @@ export declare const fetchBebopSolanaPrice: ({ buyAsset, sellAsset, sellAmountIn
36
36
  sellAsset: Asset;
37
37
  sellAmountIncludingProtocolFeesCryptoBaseUnit: string;
38
38
  receiveAddress: string | undefined;
39
- affiliateBps?: string | undefined;
39
+ affiliateBps?: string;
40
40
  apiKey: string;
41
41
  }) => Promise<Result<BebopSolanaQuoteResponse, SwapErrorRight>>;
@@ -1,9 +1,10 @@
1
1
  import type { AssetId, ChainId } from '@shapeshiftoss/caip';
2
2
  import type { Asset } from '@shapeshiftoss/types';
3
+ import type { BebopSupportedChainId } from '../../types';
3
4
  export declare const isSolanaChainId: (chainId: ChainId) => boolean;
4
5
  export declare const assetIdToBebopToken: (assetId: AssetId) => string;
5
6
  export declare const assetIdToBebopSolanaToken: (assetId: AssetId) => string;
6
- export declare const isSupportedChainId: (chainId: ChainId) => chainId is import("@shapeshiftoss/types").KnownChainIds.EthereumMainnet | import("@shapeshiftoss/types").KnownChainIds.AvalancheMainnet | import("@shapeshiftoss/types").KnownChainIds.OptimismMainnet | import("@shapeshiftoss/types").KnownChainIds.BnbSmartChainMainnet | import("@shapeshiftoss/types").KnownChainIds.PolygonMainnet | import("@shapeshiftoss/types").KnownChainIds.ArbitrumMainnet | import("@shapeshiftoss/types").KnownChainIds.BaseMainnet | import("@shapeshiftoss/types").KnownChainIds.SolanaMainnet;
7
+ export declare const isSupportedChainId: (chainId: ChainId) => chainId is BebopSupportedChainId;
7
8
  export declare const assertValidTrade: ({ buyAsset, sellAsset, }: {
8
9
  buyAsset: Asset;
9
10
  sellAsset: Asset;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  const caip_1 = require("@shapeshiftoss/caip");
27
37
  const unchained_client_1 = require("@shapeshiftoss/unchained-client");
@@ -145,7 +155,7 @@ vitest_1.vi.mock('../xhr', () => ({
145
155
  (0, vitest_1.it)('should proceed to bridge polling for cross-chain swaps', async () => {
146
156
  const mockBridgeInfo = {
147
157
  id: 12345,
148
- state: 1,
158
+ state: 1, // Confirmed
149
159
  toHash: 'dest-tx',
150
160
  relayerHash: 'relayer-tx',
151
161
  relayerChain: { scanUrl: 'https://scan.url' },
@@ -189,7 +199,7 @@ vitest_1.vi.mock('../xhr', () => ({
189
199
  txHash: mockTxHash,
190
200
  chainId: mockEvmChainId,
191
201
  address: mockAddress,
192
- swap: undefined,
202
+ swap: undefined, // No swap data
193
203
  assertGetEvmChainAdapter: mockAssertGetEvmChainAdapter,
194
204
  assertGetSolanaChainAdapter: mockAssertGetSolanaChainAdapter,
195
205
  fetchIsSmartContractAddressQuery: mockFetchIsSmartContractAddressQuery,
@@ -74,7 +74,7 @@ const getTradeQuote = async (input, _deps) => {
74
74
  const buildTxResult = await (0, xhr_1.fetchTxData)({
75
75
  hash: route.hash,
76
76
  slippage,
77
- from: sendAddress,
77
+ from: sendAddress, // from (source chain address)
78
78
  receiver: receiveAddress, // receiver (destination chain address)
79
79
  });
80
80
  if (buildTxResult.isErr())
@@ -17,12 +17,12 @@ exports.ROUTE_QUOTE = {
17
17
  },
18
18
  tradeType: 0,
19
19
  gasFee: {
20
- amount: '0.001333043669759539',
20
+ amount: '0.001333043669759539', // human units
21
21
  symbol: 'ETH',
22
22
  inUSD: '3.0629382849310107',
23
23
  },
24
24
  swapFee: {
25
- nativeFee: '0.0',
25
+ nativeFee: '0.0', // human units
26
26
  tokenFee: '0.001', // human units
27
27
  },
28
28
  feeConfig: {
@@ -53,8 +53,8 @@ exports.ROUTE_QUOTE = {
53
53
  symbol: 'USDC',
54
54
  icon: 'https://s3.amazonaws.com/map-static-file/mapSwap/ethereum/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48/logo.png',
55
55
  },
56
- totalAmountIn: '0.999',
57
- totalAmountOut: '2296.409699',
56
+ totalAmountIn: '0.999', // in human units
57
+ totalAmountOut: '2296.409699', // in human units
58
58
  route: [
59
59
  {
60
60
  amountIn: '0.999',
@@ -1,6 +1,6 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  export declare const butterHistoryService: {
3
- get: <T = any>(url: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T, any, {}>, import("../../..").SwapErrorRight>>;
4
- post: <T_1 = any>(url: string, data: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_1, any, {}>, import("../../..").SwapErrorRight>>;
5
- delete: <T_2 = any>(url: string, data: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_2, any, {}>, import("../../..").SwapErrorRight>>;
3
+ get: <T = any>(url: string, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
4
+ post: <T = any>(url: string, data: any, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
5
+ delete: <T = any>(url: string, data: any, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import type { AxiosRequestConfig } from 'axios';
2
2
  export declare const butterService: {
3
- get: <T = any>(url: string, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T, any, {}>, import("../../..").SwapErrorRight>>;
4
- post: <T_1 = any>(url: string, data: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_1, any, {}>, import("../../..").SwapErrorRight>>;
5
- delete: <T_2 = any>(url: string, data: any, config?: AxiosRequestConfig<any> | undefined) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T_2, any, {}>, import("../../..").SwapErrorRight>>;
3
+ get: <T = any>(url: string, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
4
+ post: <T = any>(url: string, data: any, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
5
+ delete: <T = any>(url: string, data: any, config?: AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
6
6
  };
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.butterSwapErrorToTradeQuoteError = exports.getBridgeInfoBySourceHash = exports.isBuildTxSuccess = exports.isRouteSuccess = exports.fetchTxData = exports.getButterRoute = exports.ButterSwapErrorCode = void 0;
3
+ exports.getBridgeInfoBySourceHash = exports.fetchTxData = exports.getButterRoute = exports.ButterSwapErrorCode = void 0;
4
+ exports.isRouteSuccess = isRouteSuccess;
5
+ exports.isBuildTxSuccess = isBuildTxSuccess;
6
+ exports.butterSwapErrorToTradeQuoteError = butterSwapErrorToTradeQuoteError;
4
7
  const caip_1 = require("@shapeshiftoss/caip");
5
8
  const utils_1 = require("@shapeshiftoss/utils");
6
9
  const monads_1 = require("@sniptt/monads");
@@ -90,11 +93,9 @@ exports.fetchTxData = fetchTxData;
90
93
  function isRouteSuccess(response) {
91
94
  return response.errno === 0;
92
95
  }
93
- exports.isRouteSuccess = isRouteSuccess;
94
96
  function isBuildTxSuccess(response) {
95
97
  return response.errno === 0;
96
98
  }
97
- exports.isBuildTxSuccess = isBuildTxSuccess;
98
99
  /**
99
100
  * @see https://docs.butternetwork.io/butter-swap-integration/butter-api-for-swap-data/get-swap-history-by-source-hash
100
101
  */
@@ -143,4 +144,3 @@ function butterSwapErrorToTradeQuoteError(errno) {
143
144
  return types_1.TradeQuoteError.QueryFailed;
144
145
  }
145
146
  }
146
- exports.butterSwapErrorToTradeQuoteError = butterSwapErrorToTradeQuoteError;
@@ -1,4 +1,4 @@
1
1
  import type { ChainId } from '@shapeshiftoss/caip';
2
2
  export declare const SUPPORTED_CETUS_CHAIN_IDS: readonly ChainId[];
3
- export declare const isSupportedChainId: (chainId: ChainId) => chainId is ChainId;
3
+ export declare const isSupportedChainId: (chainId: ChainId) => chainId is (typeof SUPPORTED_CETUS_CHAIN_IDS)[number];
4
4
  export declare const PYTH_DEPENDENT_PROVIDERS: string[];
@@ -14,7 +14,10 @@
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ChainflipBaasQuoteBoostQuoteToJSON = exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = exports.ChainflipBaasQuoteBoostQuoteFromJSON = exports.instanceOfChainflipBaasQuoteBoostQuote = void 0;
17
+ exports.instanceOfChainflipBaasQuoteBoostQuote = instanceOfChainflipBaasQuoteBoostQuote;
18
+ exports.ChainflipBaasQuoteBoostQuoteFromJSON = ChainflipBaasQuoteBoostQuoteFromJSON;
19
+ exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = ChainflipBaasQuoteBoostQuoteFromJSONTyped;
20
+ exports.ChainflipBaasQuoteBoostQuoteToJSON = ChainflipBaasQuoteBoostQuoteToJSON;
18
21
  const runtime_1 = require("../runtime");
19
22
  const ChainflipBaasQuoteEstimatedDurationsSeconds_1 = require("./ChainflipBaasQuoteEstimatedDurationsSeconds");
20
23
  const ChainflipBaasQuotePoolInfo_1 = require("./ChainflipBaasQuotePoolInfo");
@@ -26,11 +29,9 @@ function instanceOfChainflipBaasQuoteBoostQuote(value) {
26
29
  let isInstance = true;
27
30
  return isInstance;
28
31
  }
29
- exports.instanceOfChainflipBaasQuoteBoostQuote = instanceOfChainflipBaasQuoteBoostQuote;
30
32
  function ChainflipBaasQuoteBoostQuoteFromJSON(json) {
31
33
  return ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, false);
32
34
  }
33
- exports.ChainflipBaasQuoteBoostQuoteFromJSON = ChainflipBaasQuoteBoostQuoteFromJSON;
34
35
  function ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, ignoreDiscriminator) {
35
36
  if ((json === undefined) || (json === null)) {
36
37
  return json;
@@ -55,7 +56,6 @@ function ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'numberOfChunks': !(0, runtime_1.exists)(json, 'numberOfChunks') ? undefined : json['numberOfChunks'],
56
57
  };
57
58
  }
58
- exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = ChainflipBaasQuoteBoostQuoteFromJSONTyped;
59
59
  function ChainflipBaasQuoteBoostQuoteToJSON(value) {
60
60
  if (value === undefined) {
61
61
  return undefined;
@@ -71,4 +71,3 @@ function ChainflipBaasQuoteBoostQuoteToJSON(value) {
71
71
  'estimatedDurationsSeconds': (0, ChainflipBaasQuoteEstimatedDurationsSeconds_1.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON)(value.estimatedDurationsSeconds),
72
72
  };
73
73
  }
74
- exports.ChainflipBaasQuoteBoostQuoteToJSON = ChainflipBaasQuoteBoostQuoteToJSON;
@@ -14,7 +14,10 @@
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds = void 0;
17
+ exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds = instanceOfChainflipBaasQuoteEstimatedDurationsSeconds;
18
+ exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON;
19
+ exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped;
20
+ exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = ChainflipBaasQuoteEstimatedDurationsSecondsToJSON;
18
21
  const runtime_1 = require("../runtime");
19
22
  /**
20
23
  * Check if a given object implements the ChainflipBaasQuoteEstimatedDurationsSeconds interface.
@@ -23,11 +26,9 @@ function instanceOfChainflipBaasQuoteEstimatedDurationsSeconds(value) {
23
26
  let isInstance = true;
24
27
  return isInstance;
25
28
  }
26
- exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds = instanceOfChainflipBaasQuoteEstimatedDurationsSeconds;
27
29
  function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON(json) {
28
30
  return ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, false);
29
31
  }
30
- exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON;
31
32
  function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, ignoreDiscriminator) {
32
33
  if ((json === undefined) || (json === null)) {
33
34
  return json;
@@ -38,7 +39,6 @@ function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, ignoreDi
38
39
  'egress': !(0, runtime_1.exists)(json, 'egress') ? undefined : json['egress'],
39
40
  };
40
41
  }
41
- exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped;
42
42
  function ChainflipBaasQuoteEstimatedDurationsSecondsToJSON(value) {
43
43
  if (value === undefined) {
44
44
  return undefined;
@@ -48,4 +48,3 @@ function ChainflipBaasQuoteEstimatedDurationsSecondsToJSON(value) {
48
48
  }
49
49
  return {};
50
50
  }
51
- exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = ChainflipBaasQuoteEstimatedDurationsSecondsToJSON;
@@ -14,7 +14,11 @@
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ChainflipBaasQuoteQuoteToJSON = exports.ChainflipBaasQuoteQuoteFromJSONTyped = exports.ChainflipBaasQuoteQuoteFromJSON = exports.instanceOfChainflipBaasQuoteQuote = exports.ChainflipBaasQuoteQuoteTypeEnum = void 0;
17
+ exports.ChainflipBaasQuoteQuoteTypeEnum = void 0;
18
+ exports.instanceOfChainflipBaasQuoteQuote = instanceOfChainflipBaasQuoteQuote;
19
+ exports.ChainflipBaasQuoteQuoteFromJSON = ChainflipBaasQuoteQuoteFromJSON;
20
+ exports.ChainflipBaasQuoteQuoteFromJSONTyped = ChainflipBaasQuoteQuoteFromJSONTyped;
21
+ exports.ChainflipBaasQuoteQuoteToJSON = ChainflipBaasQuoteQuoteToJSON;
18
22
  const runtime_1 = require("../runtime");
19
23
  const ChainflipBaasQuoteBoostQuote_1 = require("./ChainflipBaasQuoteBoostQuote");
20
24
  const ChainflipBaasQuoteEstimatedDurationsSeconds_1 = require("./ChainflipBaasQuoteEstimatedDurationsSeconds");
@@ -34,11 +38,9 @@ function instanceOfChainflipBaasQuoteQuote(value) {
34
38
  let isInstance = true;
35
39
  return isInstance;
36
40
  }
37
- exports.instanceOfChainflipBaasQuoteQuote = instanceOfChainflipBaasQuoteQuote;
38
41
  function ChainflipBaasQuoteQuoteFromJSON(json) {
39
42
  return ChainflipBaasQuoteQuoteFromJSONTyped(json, false);
40
43
  }
41
- exports.ChainflipBaasQuoteQuoteFromJSON = ChainflipBaasQuoteQuoteFromJSON;
42
44
  function ChainflipBaasQuoteQuoteFromJSONTyped(json, ignoreDiscriminator) {
43
45
  if ((json === undefined) || (json === null)) {
44
46
  return json;
@@ -66,7 +68,6 @@ function ChainflipBaasQuoteQuoteFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'boostQuote': !(0, runtime_1.exists)(json, 'boostQuote') ? undefined : (0, ChainflipBaasQuoteBoostQuote_1.ChainflipBaasQuoteBoostQuoteFromJSON)(json['boostQuote']),
67
69
  };
68
70
  }
69
- exports.ChainflipBaasQuoteQuoteFromJSONTyped = ChainflipBaasQuoteQuoteFromJSONTyped;
70
71
  function ChainflipBaasQuoteQuoteToJSON(value) {
71
72
  if (value === undefined) {
72
73
  return undefined;
@@ -83,4 +84,3 @@ function ChainflipBaasQuoteQuoteToJSON(value) {
83
84
  'boostQuote': (0, ChainflipBaasQuoteBoostQuote_1.ChainflipBaasQuoteBoostQuoteToJSON)(value.boostQuote),
84
85
  };
85
86
  }
86
- exports.ChainflipBaasQuoteQuoteToJSON = ChainflipBaasQuoteQuoteToJSON;
@@ -14,7 +14,11 @@
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ChainflipBaasQuoteQuoteFeeToJSON = exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = exports.ChainflipBaasQuoteQuoteFeeFromJSON = exports.instanceOfChainflipBaasQuoteQuoteFee = exports.ChainflipBaasQuoteQuoteFeeTypeEnum = void 0;
17
+ exports.ChainflipBaasQuoteQuoteFeeTypeEnum = void 0;
18
+ exports.instanceOfChainflipBaasQuoteQuoteFee = instanceOfChainflipBaasQuoteQuoteFee;
19
+ exports.ChainflipBaasQuoteQuoteFeeFromJSON = ChainflipBaasQuoteQuoteFeeFromJSON;
20
+ exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = ChainflipBaasQuoteQuoteFeeFromJSONTyped;
21
+ exports.ChainflipBaasQuoteQuoteFeeToJSON = ChainflipBaasQuoteQuoteFeeToJSON;
18
22
  const runtime_1 = require("../runtime");
19
23
  /**
20
24
  * @export
@@ -34,11 +38,9 @@ function instanceOfChainflipBaasQuoteQuoteFee(value) {
34
38
  let isInstance = true;
35
39
  return isInstance;
36
40
  }
37
- exports.instanceOfChainflipBaasQuoteQuoteFee = instanceOfChainflipBaasQuoteQuoteFee;
38
41
  function ChainflipBaasQuoteQuoteFeeFromJSON(json) {
39
42
  return ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, false);
40
43
  }
41
- exports.ChainflipBaasQuoteQuoteFeeFromJSON = ChainflipBaasQuoteQuoteFeeFromJSON;
42
44
  function ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, ignoreDiscriminator) {
43
45
  if ((json === undefined) || (json === null)) {
44
46
  return json;
@@ -50,7 +52,6 @@ function ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'amountNative': !(0, runtime_1.exists)(json, 'amountNative') ? undefined : json['amountNative'],
51
53
  };
52
54
  }
53
- exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = ChainflipBaasQuoteQuoteFeeFromJSONTyped;
54
55
  function ChainflipBaasQuoteQuoteFeeToJSON(value) {
55
56
  if (value === undefined) {
56
57
  return undefined;
@@ -60,4 +61,3 @@ function ChainflipBaasQuoteQuoteFeeToJSON(value) {
60
61
  }
61
62
  return {};
62
63
  }
63
- exports.ChainflipBaasQuoteQuoteFeeToJSON = ChainflipBaasQuoteQuoteFeeToJSON;
@@ -14,7 +14,10 @@
14
14
  * Do not edit the class manually.
15
15
  */
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ChainflipBaasStatusChunkInfoToJSON = exports.ChainflipBaasStatusChunkInfoFromJSONTyped = exports.ChainflipBaasStatusChunkInfoFromJSON = exports.instanceOfChainflipBaasStatusChunkInfo = void 0;
17
+ exports.instanceOfChainflipBaasStatusChunkInfo = instanceOfChainflipBaasStatusChunkInfo;
18
+ exports.ChainflipBaasStatusChunkInfoFromJSON = ChainflipBaasStatusChunkInfoFromJSON;
19
+ exports.ChainflipBaasStatusChunkInfoFromJSONTyped = ChainflipBaasStatusChunkInfoFromJSONTyped;
20
+ exports.ChainflipBaasStatusChunkInfoToJSON = ChainflipBaasStatusChunkInfoToJSON;
18
21
  const runtime_1 = require("../runtime");
19
22
  /**
20
23
  * Check if a given object implements the ChainflipBaasStatusChunkInfo interface.
@@ -23,11 +26,9 @@ function instanceOfChainflipBaasStatusChunkInfo(value) {
23
26
  let isInstance = true;
24
27
  return isInstance;
25
28
  }
26
- exports.instanceOfChainflipBaasStatusChunkInfo = instanceOfChainflipBaasStatusChunkInfo;
27
29
  function ChainflipBaasStatusChunkInfoFromJSON(json) {
28
30
  return ChainflipBaasStatusChunkInfoFromJSONTyped(json, false);
29
31
  }
30
- exports.ChainflipBaasStatusChunkInfoFromJSON = ChainflipBaasStatusChunkInfoFromJSON;
31
32
  function ChainflipBaasStatusChunkInfoFromJSONTyped(json, ignoreDiscriminator) {
32
33
  if ((json === undefined) || (json === null)) {
33
34
  return json;
@@ -48,7 +49,6 @@ function ChainflipBaasStatusChunkInfoFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'retryCount': !(0, runtime_1.exists)(json, 'retryCount') ? undefined : json['retryCount'],
49
50
  };
50
51
  }
51
- exports.ChainflipBaasStatusChunkInfoFromJSONTyped = ChainflipBaasStatusChunkInfoFromJSONTyped;
52
52
  function ChainflipBaasStatusChunkInfoToJSON(value) {
53
53
  if (value === undefined) {
54
54
  return undefined;
@@ -58,4 +58,3 @@ function ChainflipBaasStatusChunkInfoToJSON(value) {
58
58
  }
59
59
  return {};
60
60
  }
61
- exports.ChainflipBaasStatusChunkInfoToJSON = ChainflipBaasStatusChunkInfoToJSON;