import { SnsConfig } from "../../src/infrastructure/repositories";
import { Config, PlatformConfig } from "../../src/infrastructure/config";
export const configMock = (chains: string[] = []): Config => {
const platformRecord: Record<string, PlatformConfig> = {
solana: {
name: "solana",
network: "devnet",
chainId: 1,
rpcs: ["http://localhost"],
timeout: 10000,
},
ethereum: {
name: "ethereum",
network: "goerli",
chainId: 2,
fantom: {
name: "fantom",
network: "testnet",
chainId: 10,
karura: {
name: "karura",
chainId: 11,
};
const snsConfig: SnsConfig = {
region: "us-east",
topicArn: "123333223232s",
subject: "",
groupId: "1",
credentials: {
accessKeyId: "212312312323",
secretAccessKey: "244122wdsd",
url: "",
const cfg: Config = {
environment: "testnet",
port: 999,
logLevel: "info",
dryRun: false,
sns: snsConfig,
metadata: {
dir: "./metadata-repo/jobs",
jobs: {
platforms: platformRecord,
supportedChains: chains,
return cfg;