@dxdao/aqua-sc
Version:
Utility pack from aqua-smartcontracts
22 lines (21 loc) • 725 B
TypeScript
export * from './typechain/index';
export * from './encoders';
export interface ContractAddresses {
aquaFactory: string;
participantListLauncher: string;
saleLauncher: string;
templateLauncher: string;
}
export declare enum ChainId {
rinkeby = 4,
xdai = 100
}
/**
* Used to get addresses of contracts that have been deployed to either the
* Ethereum mainnet or a supported testnet. Throws if there are no known
* contracts deployed on the corresponding chain.
* @param chainId The desired chainId.
* @returns The set of addresses for contracts which have been deployed on the
* given chainId.
*/
export declare function getContractAddressesForChainOrThrow(chainId: ChainId): ContractAddresses;