@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
20 lines (19 loc) • 668 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getConfig = getConfig;
const wagmi_1 = require("wagmi");
const chains_1 = require("wagmi/chains");
// Create and export the Wagmi config
function getConfig() {
return (0, wagmi_1.createConfig)({
chains: [chains_1.mainnet, chains_1.baseSepolia],
storage: (0, wagmi_1.createStorage)({
storage: wagmi_1.cookieStorage,
}),
ssr: true,
transports: {
[chains_1.mainnet.id]: (0, wagmi_1.http)("http://localhost:8545"),
[chains_1.baseSepolia.id]: (0, wagmi_1.http)("http://localhost:8545"),
},
});
}