To link CoastDAO with the DssCdpManager and listen to its NewCdp and LogNote events, you can create event listeners in your contract.
Listen to the NewCdp Event:
To capture the NewCdp event from the DssCdpManager contract, which provides information about newly created CDPs, set up an event listener like this:
event NewCdp(
address indexed usr,
address indexed own,
uint indexed cdp
);
usr:user address
own:proxy address
cdp:vault id
The ilk type is provided by the following event and needs to be parsed to obtain it: