@hipsterelectron I don't follow. I think you need a declarative meta language defining contracts, not the language of the code, to do this. Unless the language itself has a type system that fully represents contracts (afaik no real world ones do) but even in that case it should be a separate subset of the language I'd think).