contracts library