Commit Graph
19 Commits
Author SHA1 Message Date
Craig Everett 3677709c89 v2 -> v3 2023-06-15 20:20:33 +09:00
Spivee 80e80f9f9e Complex AACI type coercion (#3)
* build complex and indirected types into AACI

* break up coerce and coerce_step

coerce_step handles the looping and accumulation logic, whereas coerce
just handles one term, and returns {ok, _} or {error, _}. This way
coerce can become recursive, and even without recursion becomes easier
to read, due to fewer nested tuples.

Pretty insignificant change, but it'll be nice to have something to diff
off of more cleanly.

* coerce some more types

Still haven't covered lists or tuples, but these were enough to cover a
real contract that I want to test properly, once I have a node to test
on.

* process types from all contracts in ACI

This includes the contract itself, which is added as an alias for
`contract`. This way the ACI can describe and use contract interfaces,
and `ct_*` contracts can be passed into vanillae.

* coerce lists and tuples
2023-05-09 20:11:31 +09:00
Craig Everett 21040bf4b8 minor 2023-05-07 12:32:19 +09:00
Craig Everett c8d1c8ae60 Version increase 2023-05-01 13:55:18 +09:00
Craig Everett be23f84037 Merge branch 'packaging' 2023-05-01 13:52:43 +09:00
Craig Everett 5a92682c22 Applicationize Vanillae and fix 'ok' assertion 2023-05-01 13:38:34 +09:00
Spivee e8c0242d19 Fix handle_down error message (#2)
* Fix handle_down error message

It was printing a tuple with `~s`, and also tried to pretty print a fat
call stack more than a hundred columns into the first line, which put
together made for some confusing exception-during-error-handling
messages in the erlang console.

* Switch to unicode formatting in handle_down
2023-05-01 13:37:53 +09:00
Craig Everett 1b4b810936 Add zomp.meta and fix key_block typo 2023-04-21 11:51:09 +09:00
Craig Everett ab812e4285 Add zomp.meta, fix "key_block " typo. 2023-04-21 11:49:14 +09:00
Craig Everett 36ddcfc97f Add signature verification 2022-12-01 13:18:31 +09:00
Craig Everett d4cb2b0107 Accept general chardata as input 2022-11-09 19:35:30 +09:00
Craig Everett f803e66ed3 Added contract_create/3,8 2022-11-09 19:24:41 +09:00
Craig Everett 446cf1b58c WIP: Contract create is still broken (type problem) 2022-11-09 18:47:44 +09:00
Craig Everett 7b0e6a9988 Adding contract_create, along with some minor fixes and additions 2022-11-09 16:42:25 +09:00
Craig Everett 212c9dbbd8 Fixes 2022-10-22 20:09:00 +09:00
Craig Everett 9b2aff77d3 Change return type of contract_call/N 2022-10-15 00:06:05 +09:00
Craig Everett 5925b6dedb Fix contract call "Amount" type 2022-10-06 20:30:14 +09:00
Craig Everett ec7f254fd4 Make dry-run Great Again 2022-10-06 20:24:11 +09:00
pharpend cbb117b504 Pharpend/develop (#1)
* move stuff in here

* reorganizing because zx needs to feel special

* add base58/base64 explainer draft
2022-10-05 23:30:49 +09:00