import rinkebyAddresses from '../addresses/rinkeby.json' ; export type Address = string ; export interface Deployment { ACE : Address ; NoteStream : Address ; } param networkId returns const getContractAddressesForNetwork = ( networkId ) : Deployment => { switch ( networkId ) { case 4 : return rinkebyAddresses ; default : throw new Error ( `Unknown network id (${ networkId }). No known NoteStream contracts have been deployed on this network.` ) ; } } ; export default getContractAddressesForNetwork ;