wormhole-explorer/blockchain-watcher/src/infrastructure/mappers/contractsMapper.ts

20 lines
434 B
TypeScript

import * as configData from "./contractsMapperConfig.json";
export const contractsMapperConfig: ContractsMapperConfig = configData as ContractsMapperConfig;
export type Protocol = {
method: string;
type: string;
};
export interface ContractsMapperConfig {
contracts: {
chain: string;
protocols: {
addresses: string[];
type: string;
methods: { methodId: string; method: string }[];
}[];
}[];
}