@shapeshiftoss/swapper 17.7.2 → 17.7.3
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/index.js +7 -17
- package/dist/cjs/swappers/AcrossSwapper/utils/acrossService.d.ts +3 -3
- package/dist/cjs/swappers/AcrossSwapper/utils/getTrade.js +2 -1
- package/dist/cjs/swappers/ArbitrumBridgeSwapper/endpoints.d.ts +3 -3
- package/dist/cjs/swappers/ArbitrumBridgeSwapper/getTradeQuote/getTradeQuote.js +2 -2
- package/dist/cjs/swappers/ArbitrumBridgeSwapper/getTradeRate/getTradeRate.js +2 -1
- package/dist/cjs/swappers/ArbitrumBridgeSwapper/utils/fetchArbitrumBridgeSwap.d.ts +2 -2
- package/dist/cjs/swappers/AvnuSwapper/endpoints.js +2 -2
- package/dist/cjs/swappers/AvnuSwapper/utils/constants.d.ts +1 -1
- package/dist/cjs/swappers/BebopSwapper/getBebopSolanaTradeQuote/getBebopSolanaTradeQuote.js +2 -1
- package/dist/cjs/swappers/BebopSwapper/getBebopSolanaTradeRate/getBebopSolanaTradeRate.js +2 -1
- package/dist/cjs/swappers/BebopSwapper/getBebopTradeQuote/getBebopTradeQuote.js +3 -2
- package/dist/cjs/swappers/BebopSwapper/getBebopTradeRate/getBebopTradeRate.js +3 -2
- package/dist/cjs/swappers/BebopSwapper/types.d.ts +1 -1
- package/dist/cjs/swappers/BebopSwapper/utils/bebopService.d.ts +1 -1
- package/dist/cjs/swappers/BebopSwapper/utils/fetchFromBebop.d.ts +4 -4
- package/dist/cjs/swappers/BebopSwapper/utils/helpers/helpers.d.ts +1 -2
- package/dist/cjs/swappers/ButterSwap/swapperApi/checkTradeStatus.test.js +9 -19
- package/dist/cjs/swappers/ButterSwap/swapperApi/getTradeQuote.js +1 -1
- package/dist/cjs/swappers/ButterSwap/test-data/routeQuote.js +4 -4
- package/dist/cjs/swappers/ButterSwap/utils/butterSwapHistoryService.d.ts +3 -3
- package/dist/cjs/swappers/ButterSwap/utils/butterSwapService.d.ts +3 -3
- package/dist/cjs/swappers/ButterSwap/xhr.js +4 -4
- package/dist/cjs/swappers/CetusSwapper/utils/constants.d.ts +1 -1
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteBoostQuote.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteEstimatedDurationsSeconds.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteQuote.js +5 -5
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteQuoteFee.js +5 -5
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusChunkInfo.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusDca.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusEgress.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasStatusSwap.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasSwapDepositAddress.js +5 -4
- package/dist/cjs/swappers/ChainflipSwapper/utils/chainflipService.d.ts +3 -3
- package/dist/cjs/swappers/ChainflipSwapper/utils/getQuoteOrRate.js +2 -2
- package/dist/cjs/swappers/ChainflipSwapper/utils/getUtxoTxFees.d.ts +1 -1
- package/dist/cjs/swappers/ChainflipSwapper/utils/helpers.d.ts +2 -3
- package/dist/cjs/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.js +3 -2
- package/dist/cjs/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.test.js +8 -8
- package/dist/cjs/swappers/CowSwapper/getCowSwapTradeRate/getCowSwapTradeRate.js +3 -2
- package/dist/cjs/swappers/CowSwapper/utils/cowService.d.ts +3 -3
- package/dist/cjs/swappers/DebridgeSwapper/utils/debridgeService.d.ts +3 -3
- package/dist/cjs/swappers/DebridgeSwapper/utils/getTrade.js +2 -1
- package/dist/cjs/swappers/NearIntentsSwapper/constants.d.ts +1 -0
- package/dist/cjs/swappers/NearIntentsSwapper/constants.js +2 -1
- package/dist/cjs/swappers/NearIntentsSwapper/swapperApi/getTradeQuote.js +5 -2
- package/dist/cjs/swappers/NearIntentsSwapper/utils/helpers/helpers.d.ts +2 -2
- package/dist/cjs/swappers/NearIntentsSwapper/utils/helpers/helpers.js +5 -1
- package/dist/cjs/swappers/PortalsSwapper/getPortalsTradeQuote/getPortalsTradeQuote.js +2 -1
- package/dist/cjs/swappers/PortalsSwapper/getPortalsTradeRate/getPortalsTradeRate.js +4 -3
- package/dist/cjs/swappers/PortalsSwapper/utils/helpers.d.ts +1 -1
- package/dist/cjs/swappers/RelaySwapper/constant.d.ts +1 -39
- package/dist/cjs/swappers/RelaySwapper/utils/fetchRelayTrade.d.ts +1 -1
- package/dist/cjs/swappers/RelaySwapper/utils/getRelayPsbtRelayer.js +7 -17
- package/dist/cjs/swappers/RelaySwapper/utils/getTrade.js +2 -1
- package/dist/cjs/swappers/RelaySwapper/utils/relayService.d.ts +3 -3
- package/dist/cjs/swappers/SunioSwapper/utils/getQuoteOrRate.js +2 -1
- package/dist/cjs/swappers/SunioSwapper/utils/helpers/helpers.d.ts +1 -2
- package/dist/cjs/swappers/SunioSwapper/utils/sunioService.d.ts +3 -3
- package/dist/cjs/swappers/ThorchainSwapper/getTradeQuote/getTradeQuote.test.js +10 -0
- package/dist/cjs/swappers/ThorchainSwapper/utils/getL1ToLongtailQuote.js +8 -18
- package/dist/cjs/swappers/ThorchainSwapper/utils/getL1ToLongtailRate.js +8 -18
- package/dist/cjs/swappers/ThorchainSwapper/utils/getLongtailQuote.js +1 -1
- package/dist/cjs/swappers/ThorchainSwapper/utils/getLongtailRate.js +1 -1
- package/dist/cjs/swappers/ThorchainSwapper/utils/longTailHelpers.js +2 -2
- package/dist/cjs/swappers/ZrxSwapper/getZrxTradeQuote/getZrxTradeQuote.js +2 -1
- package/dist/cjs/swappers/ZrxSwapper/getZrxTradeQuote/getZrxTradeQuote.test.js +7 -17
- package/dist/cjs/swappers/ZrxSwapper/getZrxTradeRate/getZrxTradeRate.js +2 -1
- package/dist/cjs/swappers/ZrxSwapper/utils/fetchFromZrx.js +2 -2
- package/dist/cjs/swappers/ZrxSwapper/utils/helpers/helpers.d.ts +3 -2
- package/dist/cjs/swappers/ZrxSwapper/utils/zrxService.d.ts +1 -1
- package/dist/cjs/swappers/utils/test-data/cryptoMarketDataById.d.ts +1 -35
- package/dist/cjs/thorchain-utils/checkTradeStatus.js +8 -1
- package/dist/cjs/thorchain-utils/cosmossdk/getThorTxData.d.ts +12 -0
- package/dist/cjs/thorchain-utils/cosmossdk/getThorTxData.js +19 -0
- package/dist/cjs/thorchain-utils/cosmossdk/index.d.ts +1 -0
- package/dist/cjs/thorchain-utils/cosmossdk/index.js +1 -0
- package/dist/cjs/thorchain-utils/getCallDataFromQuote.d.ts +1 -1
- package/dist/cjs/thorchain-utils/getL1RateOrQuote.js +46 -31
- package/dist/cjs/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.d.ts +3 -2
- package/dist/cjs/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.js +21 -14
- package/dist/cjs/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.test.js +11 -5
- package/dist/cjs/thorchain-utils/index.d.ts +1 -0
- package/dist/cjs/thorchain-utils/index.js +19 -18
- package/dist/cjs/thorchain-utils/parseBuyTxHash.d.ts +1 -1
- package/dist/cjs/thorchain-utils/service.d.ts +3 -3
- package/dist/cjs/tron-utils/getTronTransactionFees.d.ts +1 -1
- package/dist/cjs/types.d.ts +6 -0
- package/dist/cjs/utils/tenderly/storageSlots.js +20 -20
- package/dist/cjs/utils.d.ts +4 -4
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/swappers/AcrossSwapper/utils/acrossService.d.ts +3 -3
- package/dist/esm/swappers/ArbitrumBridgeSwapper/endpoints.d.ts +3 -3
- package/dist/esm/swappers/ArbitrumBridgeSwapper/utils/fetchArbitrumBridgeSwap.d.ts +2 -2
- package/dist/esm/swappers/AvnuSwapper/endpoints.js +2 -2
- package/dist/esm/swappers/AvnuSwapper/utils/constants.d.ts +1 -1
- package/dist/esm/swappers/BebopSwapper/getBebopTradeQuote/getBebopTradeQuote.js +1 -1
- package/dist/esm/swappers/BebopSwapper/getBebopTradeRate/getBebopTradeRate.js +1 -1
- package/dist/esm/swappers/BebopSwapper/types.d.ts +1 -1
- package/dist/esm/swappers/BebopSwapper/utils/bebopService.d.ts +1 -1
- package/dist/esm/swappers/BebopSwapper/utils/fetchFromBebop.d.ts +4 -4
- package/dist/esm/swappers/BebopSwapper/utils/helpers/helpers.d.ts +1 -2
- package/dist/esm/swappers/ButterSwap/swapperApi/checkTradeStatus.test.js +2 -2
- package/dist/esm/swappers/ButterSwap/swapperApi/getTradeQuote.js +1 -1
- package/dist/esm/swappers/ButterSwap/test-data/routeQuote.js +4 -4
- package/dist/esm/swappers/ButterSwap/utils/butterSwapHistoryService.d.ts +3 -3
- package/dist/esm/swappers/ButterSwap/utils/butterSwapService.d.ts +3 -3
- package/dist/esm/swappers/CetusSwapper/utils/constants.d.ts +1 -1
- package/dist/esm/swappers/ChainflipSwapper/utils/chainflipService.d.ts +3 -3
- package/dist/esm/swappers/ChainflipSwapper/utils/getQuoteOrRate.js +2 -2
- package/dist/esm/swappers/ChainflipSwapper/utils/getUtxoTxFees.d.ts +1 -1
- package/dist/esm/swappers/ChainflipSwapper/utils/helpers.d.ts +2 -3
- package/dist/esm/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.js +1 -1
- package/dist/esm/swappers/CowSwapper/getCowSwapTradeQuote/getCowSwapTradeQuote.test.js +8 -8
- package/dist/esm/swappers/CowSwapper/getCowSwapTradeRate/getCowSwapTradeRate.js +1 -1
- package/dist/esm/swappers/CowSwapper/utils/cowService.d.ts +3 -3
- package/dist/esm/swappers/DebridgeSwapper/utils/debridgeService.d.ts +3 -3
- package/dist/esm/swappers/NearIntentsSwapper/constants.d.ts +1 -0
- package/dist/esm/swappers/NearIntentsSwapper/constants.js +1 -0
- package/dist/esm/swappers/NearIntentsSwapper/swapperApi/getTradeQuote.js +7 -4
- package/dist/esm/swappers/NearIntentsSwapper/utils/helpers/helpers.d.ts +2 -2
- package/dist/esm/swappers/NearIntentsSwapper/utils/helpers/helpers.js +5 -1
- package/dist/esm/swappers/PortalsSwapper/getPortalsTradeRate/getPortalsTradeRate.js +2 -2
- package/dist/esm/swappers/PortalsSwapper/utils/helpers.d.ts +1 -1
- package/dist/esm/swappers/RelaySwapper/constant.d.ts +1 -39
- package/dist/esm/swappers/RelaySwapper/utils/fetchRelayTrade.d.ts +1 -1
- package/dist/esm/swappers/RelaySwapper/utils/relayService.d.ts +3 -3
- package/dist/esm/swappers/SunioSwapper/utils/helpers/helpers.d.ts +1 -2
- package/dist/esm/swappers/SunioSwapper/utils/sunioService.d.ts +3 -3
- package/dist/esm/swappers/ThorchainSwapper/getTradeQuote/getTradeQuote.test.js +10 -0
- package/dist/esm/swappers/ThorchainSwapper/utils/getL1ToLongtailQuote.js +1 -1
- package/dist/esm/swappers/ThorchainSwapper/utils/getL1ToLongtailRate.js +1 -1
- package/dist/esm/swappers/ThorchainSwapper/utils/getLongtailQuote.js +1 -1
- package/dist/esm/swappers/ThorchainSwapper/utils/getLongtailRate.js +1 -1
- package/dist/esm/swappers/ZrxSwapper/utils/fetchFromZrx.js +2 -2
- package/dist/esm/swappers/ZrxSwapper/utils/helpers/helpers.d.ts +3 -2
- package/dist/esm/swappers/ZrxSwapper/utils/zrxService.d.ts +1 -1
- package/dist/esm/swappers/utils/test-data/cryptoMarketDataById.d.ts +1 -35
- package/dist/esm/thorchain-utils/checkTradeStatus.js +8 -1
- package/dist/esm/thorchain-utils/cosmossdk/getThorTxData.d.ts +12 -0
- package/dist/esm/thorchain-utils/cosmossdk/getThorTxData.js +15 -0
- package/dist/esm/thorchain-utils/cosmossdk/index.d.ts +1 -0
- package/dist/esm/thorchain-utils/cosmossdk/index.js +1 -0
- package/dist/esm/thorchain-utils/getCallDataFromQuote.d.ts +1 -1
- package/dist/esm/thorchain-utils/getL1RateOrQuote.js +39 -14
- package/dist/esm/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.d.ts +3 -2
- package/dist/esm/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.js +20 -13
- package/dist/esm/thorchain-utils/getThresholdedAffiliateBps/getThresholdedAffiliateBps.test.js +12 -6
- package/dist/esm/thorchain-utils/index.d.ts +1 -0
- package/dist/esm/thorchain-utils/index.js +11 -1
- package/dist/esm/thorchain-utils/parseBuyTxHash.d.ts +1 -1
- package/dist/esm/thorchain-utils/service.d.ts +3 -3
- package/dist/esm/tron-utils/getTronTransactionFees.d.ts +1 -1
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/utils/tenderly/storageSlots.js +20 -20
- package/dist/esm/utils.d.ts +4 -4
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -18,23 +18,13 @@ 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) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
})();
|
|
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
|
+
};
|
|
38
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.testData = void 0;
|
|
40
30
|
__exportStar(require("./constants"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const acrossService: {
|
|
2
|
-
get: <T = any>(url: string, config?: import("axios").AxiosRequestConfig<any>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
|
|
3
|
-
post: <
|
|
4
|
-
delete: <
|
|
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>>;
|
|
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 =
|
|
6
|
+
exports.getTrade = void 0;
|
|
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,3 +346,4 @@ 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;
|
|
8
|
+
isClassic?: boolean | undefined;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
isClassic?: boolean;
|
|
11
|
-
parentToChildMsg?: ParentToChildMessageReaderClassic | ParentToChildMessageReader;
|
|
10
|
+
isClassic?: boolean | undefined;
|
|
11
|
+
parentToChildMsg?: ParentToChildMessageReaderClassic | ParentToChildMessageReader | undefined;
|
|
12
12
|
} | undefined>;
|
|
13
13
|
export declare const arbitrumBridgeApi: SwapperApi;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTradeQuoteWithWallet = exports.isArbitrumBridgeTradeQuoteOrRate = void 0;
|
|
4
|
-
exports.getTradeQuote = getTradeQuote;
|
|
3
|
+
exports.getTradeQuote = exports.getTradeQuoteWithWallet = exports.isArbitrumBridgeTradeQuoteOrRate = void 0;
|
|
5
4
|
const caip_1 = require("@shapeshiftoss/caip");
|
|
6
5
|
const hdwallet_core_1 = require("@shapeshiftoss/hdwallet-core");
|
|
7
6
|
const monads_1 = require("@sniptt/monads");
|
|
@@ -84,3 +83,4 @@ async function getTradeQuote(input, { assertGetEvmChainAdapter }) {
|
|
|
84
83
|
}));
|
|
85
84
|
}
|
|
86
85
|
}
|
|
86
|
+
exports.getTradeQuote = getTradeQuote;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getTradeRate =
|
|
3
|
+
exports.getTradeRate = void 0;
|
|
4
4
|
const caip_1 = require("@shapeshiftoss/caip");
|
|
5
5
|
const monads_1 = require("@sniptt/monads");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
@@ -72,3 +72,4 @@ 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,
|
|
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,
|
|
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,
|
|
152
|
+
feeDataAvailabilityMode: 0,
|
|
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
|
|
3
|
+
export declare const isSupportedChainId: (chainId: ChainId) => chainId is ChainId;
|
|
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 =
|
|
3
|
+
exports.getBebopSolanaTradeQuote = void 0;
|
|
4
4
|
const monads_1 = require("@sniptt/monads");
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
@@ -88,3 +88,4 @@ 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 =
|
|
3
|
+
exports.getBebopSolanaTradeRate = void 0;
|
|
4
4
|
const monads_1 = require("@sniptt/monads");
|
|
5
5
|
const uuid_1 = require("uuid");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
@@ -85,3 +85,4 @@ 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 =
|
|
3
|
+
exports.getBebopTradeQuote = void 0;
|
|
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: {},
|
|
99
99
|
networkFeeCryptoBaseUnit,
|
|
100
100
|
},
|
|
101
101
|
buyAmountBeforeFeesCryptoBaseUnit,
|
|
@@ -124,3 +124,4 @@ 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 =
|
|
3
|
+
exports.getBebopTradeRate = void 0;
|
|
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: {},
|
|
83
83
|
networkFeeCryptoBaseUnit,
|
|
84
84
|
},
|
|
85
85
|
buyAmountBeforeFeesCryptoBaseUnit,
|
|
@@ -99,3 +99,4 @@ 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:
|
|
90
|
+
export declare const BEBOP_DUMMY_ADDRESS: `0x${string}`;
|
|
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;
|
|
7
|
+
wrapper?: AxiosInstanceHoF | undefined;
|
|
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;
|
|
13
|
+
affiliateBps?: string | undefined;
|
|
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;
|
|
21
|
+
affiliateBps?: string | undefined;
|
|
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;
|
|
31
|
+
affiliateBps?: string | undefined;
|
|
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;
|
|
39
|
+
affiliateBps?: string | undefined;
|
|
40
40
|
apiKey: string;
|
|
41
41
|
}) => Promise<Result<BebopSolanaQuoteResponse, SwapErrorRight>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { AssetId, ChainId } from '@shapeshiftoss/caip';
|
|
2
2
|
import type { Asset } from '@shapeshiftoss/types';
|
|
3
|
-
import type { BebopSupportedChainId } from '../../types';
|
|
4
3
|
export declare const isSolanaChainId: (chainId: ChainId) => boolean;
|
|
5
4
|
export declare const assetIdToBebopToken: (assetId: AssetId) => string;
|
|
6
5
|
export declare const assetIdToBebopSolanaToken: (assetId: AssetId) => string;
|
|
7
|
-
export declare const isSupportedChainId: (chainId: ChainId) => chainId is
|
|
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;
|
|
8
7
|
export declare const assertValidTrade: ({ buyAsset, sellAsset, }: {
|
|
9
8
|
buyAsset: Asset;
|
|
10
9
|
sellAsset: Asset;
|
|
@@ -15,23 +15,13 @@ 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) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
})();
|
|
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
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
const caip_1 = require("@shapeshiftoss/caip");
|
|
37
27
|
const unchained_client_1 = require("@shapeshiftoss/unchained-client");
|
|
@@ -155,7 +145,7 @@ vitest_1.vi.mock('../xhr', () => ({
|
|
|
155
145
|
(0, vitest_1.it)('should proceed to bridge polling for cross-chain swaps', async () => {
|
|
156
146
|
const mockBridgeInfo = {
|
|
157
147
|
id: 12345,
|
|
158
|
-
state: 1,
|
|
148
|
+
state: 1,
|
|
159
149
|
toHash: 'dest-tx',
|
|
160
150
|
relayerHash: 'relayer-tx',
|
|
161
151
|
relayerChain: { scanUrl: 'https://scan.url' },
|
|
@@ -199,7 +189,7 @@ vitest_1.vi.mock('../xhr', () => ({
|
|
|
199
189
|
txHash: mockTxHash,
|
|
200
190
|
chainId: mockEvmChainId,
|
|
201
191
|
address: mockAddress,
|
|
202
|
-
swap: undefined,
|
|
192
|
+
swap: undefined,
|
|
203
193
|
assertGetEvmChainAdapter: mockAssertGetEvmChainAdapter,
|
|
204
194
|
assertGetSolanaChainAdapter: mockAssertGetSolanaChainAdapter,
|
|
205
195
|
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,
|
|
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',
|
|
21
21
|
symbol: 'ETH',
|
|
22
22
|
inUSD: '3.0629382849310107',
|
|
23
23
|
},
|
|
24
24
|
swapFee: {
|
|
25
|
-
nativeFee: '0.0',
|
|
25
|
+
nativeFee: '0.0',
|
|
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',
|
|
57
|
+
totalAmountOut: '2296.409699',
|
|
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>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
|
|
4
|
-
post: <
|
|
5
|
-
delete: <
|
|
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>>;
|
|
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>) => Promise<import("@sniptt/monads").Result<import("axios").AxiosResponse<T>, import("../../..").SwapErrorRight>>;
|
|
4
|
-
post: <
|
|
5
|
-
delete: <
|
|
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>>;
|
|
6
6
|
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBridgeInfoBySourceHash = exports.fetchTxData = exports.getButterRoute = exports.ButterSwapErrorCode = void 0;
|
|
4
|
-
exports.isRouteSuccess = isRouteSuccess;
|
|
5
|
-
exports.isBuildTxSuccess = isBuildTxSuccess;
|
|
6
|
-
exports.butterSwapErrorToTradeQuoteError = butterSwapErrorToTradeQuoteError;
|
|
3
|
+
exports.butterSwapErrorToTradeQuoteError = exports.getBridgeInfoBySourceHash = exports.isBuildTxSuccess = exports.isRouteSuccess = exports.fetchTxData = exports.getButterRoute = exports.ButterSwapErrorCode = void 0;
|
|
7
4
|
const caip_1 = require("@shapeshiftoss/caip");
|
|
8
5
|
const utils_1 = require("@shapeshiftoss/utils");
|
|
9
6
|
const monads_1 = require("@sniptt/monads");
|
|
@@ -93,9 +90,11 @@ exports.fetchTxData = fetchTxData;
|
|
|
93
90
|
function isRouteSuccess(response) {
|
|
94
91
|
return response.errno === 0;
|
|
95
92
|
}
|
|
93
|
+
exports.isRouteSuccess = isRouteSuccess;
|
|
96
94
|
function isBuildTxSuccess(response) {
|
|
97
95
|
return response.errno === 0;
|
|
98
96
|
}
|
|
97
|
+
exports.isBuildTxSuccess = isBuildTxSuccess;
|
|
99
98
|
/**
|
|
100
99
|
* @see https://docs.butternetwork.io/butter-swap-integration/butter-api-for-swap-data/get-swap-history-by-source-hash
|
|
101
100
|
*/
|
|
@@ -144,3 +143,4 @@ function butterSwapErrorToTradeQuoteError(errno) {
|
|
|
144
143
|
return types_1.TradeQuoteError.QueryFailed;
|
|
145
144
|
}
|
|
146
145
|
}
|
|
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
|
|
3
|
+
export declare const isSupportedChainId: (chainId: ChainId) => chainId is ChainId;
|
|
4
4
|
export declare const PYTH_DEPENDENT_PROVIDERS: string[];
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.instanceOfChainflipBaasQuoteBoostQuote =
|
|
18
|
-
exports.ChainflipBaasQuoteBoostQuoteFromJSON = ChainflipBaasQuoteBoostQuoteFromJSON;
|
|
19
|
-
exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = ChainflipBaasQuoteBoostQuoteFromJSONTyped;
|
|
20
|
-
exports.ChainflipBaasQuoteBoostQuoteToJSON = ChainflipBaasQuoteBoostQuoteToJSON;
|
|
17
|
+
exports.ChainflipBaasQuoteBoostQuoteToJSON = exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = exports.ChainflipBaasQuoteBoostQuoteFromJSON = exports.instanceOfChainflipBaasQuoteBoostQuote = void 0;
|
|
21
18
|
const runtime_1 = require("../runtime");
|
|
22
19
|
const ChainflipBaasQuoteEstimatedDurationsSeconds_1 = require("./ChainflipBaasQuoteEstimatedDurationsSeconds");
|
|
23
20
|
const ChainflipBaasQuotePoolInfo_1 = require("./ChainflipBaasQuotePoolInfo");
|
|
@@ -29,9 +26,11 @@ function instanceOfChainflipBaasQuoteBoostQuote(value) {
|
|
|
29
26
|
let isInstance = true;
|
|
30
27
|
return isInstance;
|
|
31
28
|
}
|
|
29
|
+
exports.instanceOfChainflipBaasQuoteBoostQuote = instanceOfChainflipBaasQuoteBoostQuote;
|
|
32
30
|
function ChainflipBaasQuoteBoostQuoteFromJSON(json) {
|
|
33
31
|
return ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, false);
|
|
34
32
|
}
|
|
33
|
+
exports.ChainflipBaasQuoteBoostQuoteFromJSON = ChainflipBaasQuoteBoostQuoteFromJSON;
|
|
35
34
|
function ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
35
|
if ((json === undefined) || (json === null)) {
|
|
37
36
|
return json;
|
|
@@ -56,6 +55,7 @@ function ChainflipBaasQuoteBoostQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
56
55
|
'numberOfChunks': !(0, runtime_1.exists)(json, 'numberOfChunks') ? undefined : json['numberOfChunks'],
|
|
57
56
|
};
|
|
58
57
|
}
|
|
58
|
+
exports.ChainflipBaasQuoteBoostQuoteFromJSONTyped = ChainflipBaasQuoteBoostQuoteFromJSONTyped;
|
|
59
59
|
function ChainflipBaasQuoteBoostQuoteToJSON(value) {
|
|
60
60
|
if (value === undefined) {
|
|
61
61
|
return undefined;
|
|
@@ -71,3 +71,4 @@ function ChainflipBaasQuoteBoostQuoteToJSON(value) {
|
|
|
71
71
|
'estimatedDurationsSeconds': (0, ChainflipBaasQuoteEstimatedDurationsSeconds_1.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON)(value.estimatedDurationsSeconds),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
+
exports.ChainflipBaasQuoteBoostQuoteToJSON = ChainflipBaasQuoteBoostQuoteToJSON;
|
package/dist/cjs/swappers/ChainflipSwapper/models/ChainflipBaasQuoteEstimatedDurationsSeconds.js
CHANGED
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds =
|
|
18
|
-
exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON;
|
|
19
|
-
exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped;
|
|
20
|
-
exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = ChainflipBaasQuoteEstimatedDurationsSecondsToJSON;
|
|
17
|
+
exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds = void 0;
|
|
21
18
|
const runtime_1 = require("../runtime");
|
|
22
19
|
/**
|
|
23
20
|
* Check if a given object implements the ChainflipBaasQuoteEstimatedDurationsSeconds interface.
|
|
@@ -26,9 +23,11 @@ function instanceOfChainflipBaasQuoteEstimatedDurationsSeconds(value) {
|
|
|
26
23
|
let isInstance = true;
|
|
27
24
|
return isInstance;
|
|
28
25
|
}
|
|
26
|
+
exports.instanceOfChainflipBaasQuoteEstimatedDurationsSeconds = instanceOfChainflipBaasQuoteEstimatedDurationsSeconds;
|
|
29
27
|
function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON(json) {
|
|
30
28
|
return ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, false);
|
|
31
29
|
}
|
|
30
|
+
exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSON;
|
|
32
31
|
function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
32
|
if ((json === undefined) || (json === null)) {
|
|
34
33
|
return json;
|
|
@@ -39,6 +38,7 @@ function ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped(json, ignoreDi
|
|
|
39
38
|
'egress': !(0, runtime_1.exists)(json, 'egress') ? undefined : json['egress'],
|
|
40
39
|
};
|
|
41
40
|
}
|
|
41
|
+
exports.ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped = ChainflipBaasQuoteEstimatedDurationsSecondsFromJSONTyped;
|
|
42
42
|
function ChainflipBaasQuoteEstimatedDurationsSecondsToJSON(value) {
|
|
43
43
|
if (value === undefined) {
|
|
44
44
|
return undefined;
|
|
@@ -48,3 +48,4 @@ function ChainflipBaasQuoteEstimatedDurationsSecondsToJSON(value) {
|
|
|
48
48
|
}
|
|
49
49
|
return {};
|
|
50
50
|
}
|
|
51
|
+
exports.ChainflipBaasQuoteEstimatedDurationsSecondsToJSON = ChainflipBaasQuoteEstimatedDurationsSecondsToJSON;
|
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ChainflipBaasQuoteQuoteTypeEnum = void 0;
|
|
18
|
-
exports.instanceOfChainflipBaasQuoteQuote = instanceOfChainflipBaasQuoteQuote;
|
|
19
|
-
exports.ChainflipBaasQuoteQuoteFromJSON = ChainflipBaasQuoteQuoteFromJSON;
|
|
20
|
-
exports.ChainflipBaasQuoteQuoteFromJSONTyped = ChainflipBaasQuoteQuoteFromJSONTyped;
|
|
21
|
-
exports.ChainflipBaasQuoteQuoteToJSON = ChainflipBaasQuoteQuoteToJSON;
|
|
17
|
+
exports.ChainflipBaasQuoteQuoteToJSON = exports.ChainflipBaasQuoteQuoteFromJSONTyped = exports.ChainflipBaasQuoteQuoteFromJSON = exports.instanceOfChainflipBaasQuoteQuote = exports.ChainflipBaasQuoteQuoteTypeEnum = void 0;
|
|
22
18
|
const runtime_1 = require("../runtime");
|
|
23
19
|
const ChainflipBaasQuoteBoostQuote_1 = require("./ChainflipBaasQuoteBoostQuote");
|
|
24
20
|
const ChainflipBaasQuoteEstimatedDurationsSeconds_1 = require("./ChainflipBaasQuoteEstimatedDurationsSeconds");
|
|
@@ -38,9 +34,11 @@ function instanceOfChainflipBaasQuoteQuote(value) {
|
|
|
38
34
|
let isInstance = true;
|
|
39
35
|
return isInstance;
|
|
40
36
|
}
|
|
37
|
+
exports.instanceOfChainflipBaasQuoteQuote = instanceOfChainflipBaasQuoteQuote;
|
|
41
38
|
function ChainflipBaasQuoteQuoteFromJSON(json) {
|
|
42
39
|
return ChainflipBaasQuoteQuoteFromJSONTyped(json, false);
|
|
43
40
|
}
|
|
41
|
+
exports.ChainflipBaasQuoteQuoteFromJSON = ChainflipBaasQuoteQuoteFromJSON;
|
|
44
42
|
function ChainflipBaasQuoteQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
43
|
if ((json === undefined) || (json === null)) {
|
|
46
44
|
return json;
|
|
@@ -68,6 +66,7 @@ function ChainflipBaasQuoteQuoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
66
|
'boostQuote': !(0, runtime_1.exists)(json, 'boostQuote') ? undefined : (0, ChainflipBaasQuoteBoostQuote_1.ChainflipBaasQuoteBoostQuoteFromJSON)(json['boostQuote']),
|
|
69
67
|
};
|
|
70
68
|
}
|
|
69
|
+
exports.ChainflipBaasQuoteQuoteFromJSONTyped = ChainflipBaasQuoteQuoteFromJSONTyped;
|
|
71
70
|
function ChainflipBaasQuoteQuoteToJSON(value) {
|
|
72
71
|
if (value === undefined) {
|
|
73
72
|
return undefined;
|
|
@@ -84,3 +83,4 @@ function ChainflipBaasQuoteQuoteToJSON(value) {
|
|
|
84
83
|
'boostQuote': (0, ChainflipBaasQuoteBoostQuote_1.ChainflipBaasQuoteBoostQuoteToJSON)(value.boostQuote),
|
|
85
84
|
};
|
|
86
85
|
}
|
|
86
|
+
exports.ChainflipBaasQuoteQuoteToJSON = ChainflipBaasQuoteQuoteToJSON;
|
|
@@ -14,11 +14,7 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.ChainflipBaasQuoteQuoteFeeTypeEnum = void 0;
|
|
18
|
-
exports.instanceOfChainflipBaasQuoteQuoteFee = instanceOfChainflipBaasQuoteQuoteFee;
|
|
19
|
-
exports.ChainflipBaasQuoteQuoteFeeFromJSON = ChainflipBaasQuoteQuoteFeeFromJSON;
|
|
20
|
-
exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = ChainflipBaasQuoteQuoteFeeFromJSONTyped;
|
|
21
|
-
exports.ChainflipBaasQuoteQuoteFeeToJSON = ChainflipBaasQuoteQuoteFeeToJSON;
|
|
17
|
+
exports.ChainflipBaasQuoteQuoteFeeToJSON = exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = exports.ChainflipBaasQuoteQuoteFeeFromJSON = exports.instanceOfChainflipBaasQuoteQuoteFee = exports.ChainflipBaasQuoteQuoteFeeTypeEnum = void 0;
|
|
22
18
|
const runtime_1 = require("../runtime");
|
|
23
19
|
/**
|
|
24
20
|
* @export
|
|
@@ -38,9 +34,11 @@ function instanceOfChainflipBaasQuoteQuoteFee(value) {
|
|
|
38
34
|
let isInstance = true;
|
|
39
35
|
return isInstance;
|
|
40
36
|
}
|
|
37
|
+
exports.instanceOfChainflipBaasQuoteQuoteFee = instanceOfChainflipBaasQuoteQuoteFee;
|
|
41
38
|
function ChainflipBaasQuoteQuoteFeeFromJSON(json) {
|
|
42
39
|
return ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, false);
|
|
43
40
|
}
|
|
41
|
+
exports.ChainflipBaasQuoteQuoteFeeFromJSON = ChainflipBaasQuoteQuoteFeeFromJSON;
|
|
44
42
|
function ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
43
|
if ((json === undefined) || (json === null)) {
|
|
46
44
|
return json;
|
|
@@ -52,6 +50,7 @@ function ChainflipBaasQuoteQuoteFeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
50
|
'amountNative': !(0, runtime_1.exists)(json, 'amountNative') ? undefined : json['amountNative'],
|
|
53
51
|
};
|
|
54
52
|
}
|
|
53
|
+
exports.ChainflipBaasQuoteQuoteFeeFromJSONTyped = ChainflipBaasQuoteQuoteFeeFromJSONTyped;
|
|
55
54
|
function ChainflipBaasQuoteQuoteFeeToJSON(value) {
|
|
56
55
|
if (value === undefined) {
|
|
57
56
|
return undefined;
|
|
@@ -61,3 +60,4 @@ function ChainflipBaasQuoteQuoteFeeToJSON(value) {
|
|
|
61
60
|
}
|
|
62
61
|
return {};
|
|
63
62
|
}
|
|
63
|
+
exports.ChainflipBaasQuoteQuoteFeeToJSON = ChainflipBaasQuoteQuoteFeeToJSON;
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
* Do not edit the class manually.
|
|
15
15
|
*/
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.instanceOfChainflipBaasStatusChunkInfo =
|
|
18
|
-
exports.ChainflipBaasStatusChunkInfoFromJSON = ChainflipBaasStatusChunkInfoFromJSON;
|
|
19
|
-
exports.ChainflipBaasStatusChunkInfoFromJSONTyped = ChainflipBaasStatusChunkInfoFromJSONTyped;
|
|
20
|
-
exports.ChainflipBaasStatusChunkInfoToJSON = ChainflipBaasStatusChunkInfoToJSON;
|
|
17
|
+
exports.ChainflipBaasStatusChunkInfoToJSON = exports.ChainflipBaasStatusChunkInfoFromJSONTyped = exports.ChainflipBaasStatusChunkInfoFromJSON = exports.instanceOfChainflipBaasStatusChunkInfo = void 0;
|
|
21
18
|
const runtime_1 = require("../runtime");
|
|
22
19
|
/**
|
|
23
20
|
* Check if a given object implements the ChainflipBaasStatusChunkInfo interface.
|
|
@@ -26,9 +23,11 @@ function instanceOfChainflipBaasStatusChunkInfo(value) {
|
|
|
26
23
|
let isInstance = true;
|
|
27
24
|
return isInstance;
|
|
28
25
|
}
|
|
26
|
+
exports.instanceOfChainflipBaasStatusChunkInfo = instanceOfChainflipBaasStatusChunkInfo;
|
|
29
27
|
function ChainflipBaasStatusChunkInfoFromJSON(json) {
|
|
30
28
|
return ChainflipBaasStatusChunkInfoFromJSONTyped(json, false);
|
|
31
29
|
}
|
|
30
|
+
exports.ChainflipBaasStatusChunkInfoFromJSON = ChainflipBaasStatusChunkInfoFromJSON;
|
|
32
31
|
function ChainflipBaasStatusChunkInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
32
|
if ((json === undefined) || (json === null)) {
|
|
34
33
|
return json;
|
|
@@ -49,6 +48,7 @@ function ChainflipBaasStatusChunkInfoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
48
|
'retryCount': !(0, runtime_1.exists)(json, 'retryCount') ? undefined : json['retryCount'],
|
|
50
49
|
};
|
|
51
50
|
}
|
|
51
|
+
exports.ChainflipBaasStatusChunkInfoFromJSONTyped = ChainflipBaasStatusChunkInfoFromJSONTyped;
|
|
52
52
|
function ChainflipBaasStatusChunkInfoToJSON(value) {
|
|
53
53
|
if (value === undefined) {
|
|
54
54
|
return undefined;
|
|
@@ -58,3 +58,4 @@ function ChainflipBaasStatusChunkInfoToJSON(value) {
|
|
|
58
58
|
}
|
|
59
59
|
return {};
|
|
60
60
|
}
|
|
61
|
+
exports.ChainflipBaasStatusChunkInfoToJSON = ChainflipBaasStatusChunkInfoToJSON;
|