Skip to content

Commit

Permalink
chore(filetests): rename filetests to zinkc_filetests
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop committed Oct 26, 2023
1 parent 3db5948 commit 0f2be29
Show file tree
Hide file tree
Showing 17 changed files with 242 additions and 110 deletions.
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.1.5-pre.1"
version = "0.1.5-pre.2"
authors = ["clearloop"]
edition = "2021"
license = "GPL-3.0-only"
Expand Down Expand Up @@ -54,16 +54,16 @@ wasm-opt = "0.113.0"
wasmparser = "0.107.0"
wat = "1.0.75"

elko = { path = "cli/elko", version = "=0.1.5-pre.1" }
elko = { path = "cli/elko", version = "=0.1.5-pre.2" }
opcodes = { package = "evm-opcodes", path = "codegen/opcodes", version = "=0.0.3", features = ["data"] }
zabi = { path = "abi", version = "=0.1.5-pre.1" }
zinkup = { path = "cli", version = "=0.1.5-pre.1" }
zingen = { path = "codegen", version = "=0.1.5-pre.1" }
zinkc = { path = "compiler", version = "=0.1.5-pre.1" }
filetests = { package = "zinkc-filetests", path = "compiler/filetests", version = "=0.1.5-pre.1" }
zink = { path = ".", version = "=0.1.5-pre.1" }
zink-codegen = { path = "zink/codegen", version = "=0.1.5-pre.1" }
zint = { path = "zint", version = "=0.1.5-pre.1" }
zabi = { path = "abi", version = "=0.1.5-pre.2" }
zinkup = { path = "cli", version = "=0.1.5-pre.2" }
zingen = { path = "codegen", version = "=0.1.5-pre.2" }
zinkc = { path = "compiler", version = "=0.1.5-pre.2" }
zinkc-filetests = { path = "compiler/filetests", version = "=0.1.5-pre.2" }
zink = { path = ".", version = "=0.1.5-pre.2" }
zink-codegen = { path = "zink/codegen", version = "=0.1.5-pre.2" }
zint = { path = "zint", version = "=0.1.5-pre.2" }

[profile]
dev = { panic = "abort"}
Expand Down Expand Up @@ -92,6 +92,6 @@ zink-codegen.workspace = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
anyhow.workspace = true
filetests.workspace = true
paste.workspace = true
zinkc-filetests.workspace = true
zint.workspace = true
110 changes: 110 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
## v0.1.5

### Added

- Crate `zabi`
- Function dispatcher
- new `proc-macro` `zink::external`
- `dispatcher` flag for `elko` and `zinkc`
- Jump with offset in jump table
- `Contract` instance in `zint`
- Host function `emit_abi`
- filetests for the compiler

## Changed

- Map functions in codegen for different usages
- Move `zink` to the top level
- Move previous compiler tests to the top level
- Move examples out of crates

---

## v0.1.4

### Added

- `proc-macro` for storage
- `proc-macro` for event logging
- Update documents for storage and events

### Fixed

- Publishing logic of `conta`

---

## v0.1.3

### Added

- Event logging APIs
- Examples for logging
- Data section parser in `codegen`
- Documents for event logging APIs
- Benchmarks for event logging APIs

---

## v0.1.2

### Added

- Storage related built-in functions
- `sstore` and `sload`
- `impl_tests` for generating arithmetic tests
- Project logo
- rust-cache in CI
- Documents for storage APIs
- Benchmarks for event storage APIs

---

## v0.1.1

### Added

- Code section in `codegen`
- Instruction `select`
- Params test for `select`

---

## V0.1.0

The MVP of the zink project, provides various tools for developing
EVM contracts with `rust` and `WASM`.

### Binaries

| name | description |
| ------- | ----------------------------------------------------------- |
| `elko` | Zink's package manager, can create and build zink project. |
| `zinkc` | The zink compiler, can compile simple wasm to EVM bytecode. |

For supporting nearly everything, plz keep tuned for `v0.3.0`.

### Components

| name | description |
| --------- | --------------------------------------------------------- |
| `zinkgen` | Zink code generator |
| `zinkc` | Zink compiler |
| `zink` | Rust library for developing program with zink |
| `zint` | Basic test utils including evm wrapper for testing usages |
| `zinkup` | Zink toolchain installer |

### Added

- provided basic functionalities in `v0.1.0` to verify thoughts, the final target
of it is example `fibonaaci`, which means, everything used in the `fibonacci` example
now works!
- `add`, `sub`, `mul` are available now, plus all comparison operand like `gt`, `lt`,
`ge`, `le`, `bitwise` also have implementations **operators like `shr` require the
order of the stack will have bugs\***.
- The compilation of locals currently works without any hardcode, ideally, we don't
need to refactor it in the future!
- Same as locals, works without any hardcode, but some logic related to the jump table
need to be refactored after introducing `selector`.
- `if`, `else`, `block`, `loop`, `br_if` now works without any hardcode, need to add
`br_table`, `select`... to align wasm MVP in the future releases.~\*
7 changes: 7 additions & 0 deletions abi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## ZABI

EVM ABI for zink contracts.

## LICENSE

GPL-3.0-only
3 changes: 3 additions & 0 deletions compiler/filetests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ quote.workspace = true
syn.workspace = true
wat.workspace = true
wasm-opt.workspace = true

[features]
testing = []
Loading

0 comments on commit 0f2be29

Please sign in to comment.