Icrc1 block index

Hi dfinity team, I build a canister with icrc1 wasm and candid file, but there is no tip_of_chain interface in the icrc1 ledger(I want to query the newest block).
So how can I add the tip_of_chain to my own ledger? Should I copy the ICP-related “tip_of_chain” ledger code into the icrc1 ledger?