@getclave/lifi-sdk
Version:
LI.FI Any-to-Any Cross-Chain-Swap SDK
27 lines (26 loc) • 1.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.handlers = void 0;
const data_types_1 = require("@lifi/data-types");
const types_1 = require("@lifi/types");
const msw_1 = require("msw");
const config_1 = require("../config");
const _config = config_1.config.get();
exports.handlers = [
msw_1.http.post(`${_config.apiUrl}/advanced/routes`, async () => {
return msw_1.HttpResponse.json({});
}),
msw_1.http.post(`${_config.apiUrl}/advanced/possibilities`, async () => msw_1.HttpResponse.json({})),
msw_1.http.get(`${_config.apiUrl}/token`, async () => msw_1.HttpResponse.json({})),
msw_1.http.get(`${_config.apiUrl}/quote`, async () => msw_1.HttpResponse.json({})),
msw_1.http.get(`${_config.apiUrl}/status`, async () => msw_1.HttpResponse.json({})),
msw_1.http.get(`${_config.apiUrl}/chains`, async () => msw_1.HttpResponse.json({ chains: [{ id: 1 }] })),
msw_1.http.get(`${_config.apiUrl}/tools`, async () => msw_1.HttpResponse.json({ bridges: [], exchanges: [] })),
msw_1.http.get(`${_config.apiUrl}/tokens`, async () => msw_1.HttpResponse.json({
tokens: {
[types_1.ChainId.ETH]: [(0, data_types_1.findDefaultToken)(types_1.CoinKey.ETH, types_1.ChainId.ETH)],
},
})),
msw_1.http.post(`${_config.apiUrl}/advanced/stepTransaction`, async () => msw_1.HttpResponse.json({})),
msw_1.http.get(`${_config.apiUrl}/gas/suggestion/${types_1.ChainId.OPT}`, async () => msw_1.HttpResponse.json({})),
];