@f5i23q999d/cow-sdk
Version:
<p align="center"> <img width="400" src="https://github.com/cowprotocol/cow-sdk/raw/main/docs/images/CoW.png" /> </p>
16 lines • 678 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapAddressToSupportedNetworks = exports.mapSupportedNetworks = void 0;
const const_1 = require("../../chains/const/index.js");
function mapSupportedNetworks(value) {
return const_1.ALL_SUPPORTED_CHAIN_IDS.reduce((acc, chainId) => ({
...acc,
[chainId]: typeof value === 'function' ? value(chainId) : value,
}), {});
}
exports.mapSupportedNetworks = mapSupportedNetworks;
function mapAddressToSupportedNetworks(address) {
return mapSupportedNetworks(address);
}
exports.mapAddressToSupportedNetworks = mapAddressToSupportedNetworks;
//# sourceMappingURL=config.js.map