import { Address , Log } from 'set-protocol-utils' ; interface NewCollateralArgs { _hash : Address ; _collateralAddress : Address ; } /********** Other Log Utilities **********/ export function extractNewCollateralFromLogs ( logs ) { const createLog = logs [ logs . length - 1 ] ; const args = createLog . args ; return [ args . _hash , args . _collateralAddress ] ; } export function LogNewCollateralTracked ( _hash , _collateralAddress , _contractAddress ) { return [ { event : 'NewCollateralTracked' , address : _contractAddress , args : { _hash , _collateralAddress , } , } ] ; }