feat(codegen): support multi-validators

* rename force_wrap to force
* add a bunch of builder methods to Term<Name>
* refactor one tiny location to show off builder methods
* split generate into `generate` and `generate_test`
* create wrap_as_multi_validator function

Co-authored-by: Kasey White <kwhitemsg@gmail.com>
This commit is contained in:
rvcas
2023-03-16 23:58:22 -04:00
parent 87493bbba9
commit c3870e340e
18 changed files with 327 additions and 234 deletions

View File

@@ -1,5 +1,5 @@
validator spend {
fn(_datum: Void, _redeemer: Void, _ctx: Void) -> Bool {
validator {
fn spend(_datum: Void, _redeemer: Void, _ctx: Void) -> Bool {
True
}
}