export interface MultisigConfig { networkChainId : number ; gnosisSafeAddress : string ; gnosisServiceUri : string ; } param config export function ensureMultisigConfig ( config ) { const intendedToBeEnabled = ! ! ( config . gnosisSafeAddress || config . gnosisServiceUri ) ; const fullyConfigured = ! ! ( config . gnosisSafeAddress && config . gnosisServiceUri ) ; if ( ! intendedToBeEnabled ) return undefined ; if ( ! fullyConfigured ) throw new Error ( 'Invalid multisig configuration. ' + `Chain ID=${ config . networkChainId }, Safe=${ config . gnosisSafeAddress }, Service=${ config . gnosisServiceUri }` ) ; return config as MultisigConfig ; }