UNPKG

@getclave/lifi-sdk

Version:

LI.FI Any-to-Any Cross-Chain-Swap SDK

18 lines (17 loc) 869 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lifiHandlers = void 0; const msw_1 = require("msw"); const config_1 = require("../config"); const fixtures_1 = require("../tests/fixtures"); const execution_unit_mock_1 = require("./execution.unit.mock"); const _config = config_1.config.get(); exports.lifiHandlers = [ msw_1.http.post(`${_config.apiUrl}/advanced/stepTransaction`, async () => msw_1.HttpResponse.json((0, execution_unit_mock_1.mockStepTransactionWithTxRequest)((0, fixtures_1.buildStepObject)({ includingExecution: true, })))), msw_1.http.get(`${_config.apiUrl}/chains`, async () => msw_1.HttpResponse.json({ chains: execution_unit_mock_1.mockChainsResponse, })), msw_1.http.get(`${_config.apiUrl}/status`, async () => msw_1.HttpResponse.json(execution_unit_mock_1.mockStatus)), ];