MyCrypto/common/libs/ens/contracts/index.ts

27 lines
1.1 KiB
TypeScript

import Contract from 'libs/contracts';
const auctionABI = require('./auction/auction.json');
import auctionOutputMappings from './auction/outputMappings';
import { IAuction } from './auction/auction';
const deedABI = require('./deed/deed.json');
import deedOutputMappings from './deed/outputMappings';
import { IDeed } from './deed/deed';
const registryABI = require('./registry/registry.json');
import registryOutputMappings from './registry/outputMappings';
import { IRegistry } from './registry/registry';
const resolverABI = require('./resolver/resolver.json');
import resolverOutputMappings from './resolver/outputMappings';
import { IResolver } from './resolver/resolver';
const auction: IAuction & Contract = new Contract(auctionABI, auctionOutputMappings) as any;
const deed: IDeed & Contract = new Contract(deedABI, deedOutputMappings) as any;
const registry: IRegistry & Contract = new Contract(registryABI, registryOutputMappings) as any;
const resolver: IResolver & Contract = new Contract(resolverABI, resolverOutputMappings) as any;
export default { auction, deed, registry, resolver };