Skip to content

Commit 4a2b9a1

Browse files
qiweiiidavxysourabhniyogigreywolve
authored
merge latest updates (#15)
* Log host call has 0 cost * Log host call has 0 cost * Regen * Increase gas per work item * Bump GP version to v0.6.5 * Define accumulate gas cost * Improve READMEs * ASN.1 schema and validation script * README * Notes on SBRK; sbrk+Memory model in Go * Syntax highlight * Add docs to overarching asn.1 schema * nit * JIP-5: new secret key derivation method * Apply JIP-5 to traces * Reported items in assurances are items removed from p† to get p‡ * Update code * Prepare v0.6.5 * Introduce CHANGELOG * Reports L1 * README * Update README.md * Full spec flavor for codec vectors * Move to correct folder and fix validation script * CI file * Codec validate * Test * Test * Test * Test * Test * Test * Improve codec script * Nits * Accumulate vectors * Assurances and authorizations vectors * And the rest * Better jobs organization * Refactory * Refactory * Docs for utils lib * Fix * STF vectors reorg * Libs * Final bits * Codec script * CHANGELOG * CI update * Restore full CI jobs * Fix asn.1 validation scripts * Fix last one * Update test service to include required manifest information --------- Co-authored-by: Davide Galassi <[email protected]> Co-authored-by: Sourabh Niyogi <[email protected]> Co-authored-by: Oliver Powell <[email protected]>
2 parents bb1b685 + ae75023 commit 4a2b9a1

File tree

1,667 files changed

+3956286
-3781590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,667 files changed

+3956286
-3781590
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI Workflow
2+
3+
on:
4+
# Run CI on push only for 'main' branch
5+
push:
6+
branches: [master]
7+
tags:
8+
- "v*"
9+
# Run CI on pull request for all branches
10+
pull_request:
11+
branches: ["**"]
12+
13+
jobs:
14+
validate:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
validator:
19+
- codec
20+
- stf/accumulate
21+
- stf/assurances
22+
- stf/authorizations
23+
- stf/disputes
24+
- stf/history
25+
- stf/preimages
26+
- stf/reports
27+
- stf/safrole
28+
- stf/statistics
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
- name: Set up Python
33+
uses: actions/setup-python@v4
34+
with:
35+
python-version: '3.8'
36+
- name: Install dependencies
37+
run: |
38+
pip install git+https://github.com/davxy/asn1tools.git
39+
- name: Validate ${{ matrix.validator }}
40+
run: ./${{ matrix.validator }}/validate.py
41+

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## v0.6.6 [Unreleased]
2+
3+
- Codebase reorganization
4+
- Binary to JSON conversion scripts and utilities
5+
6+
## v0.6.5 [02-06-2025]
7+
8+
- First Release

README.md

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Test Vectors for the JAM Protocol
22

3-
JAM protocol version 0.6.4
4-
53
## Codec
64

75
- [Codec](./codec/README.md)
@@ -24,6 +22,8 @@ We offer two types of test vectors:
2422
- core assignment rotation period: 10
2523
- ticket attempts: 2
2624

25+
For more information refer to the community [docs](https://docs.jamcha.in/basics/chain-spec).
26+
2727
### STF Output
2828

2929
Technically, the STF execution process does not inherently produce auxiliary
@@ -40,18 +40,24 @@ specific subsystem.
4040

4141
### Vectors
4242

43-
- [Safrole](./safrole/README.md)
44-
- [Disputes](./disputes/README.md)
45-
- [History](./history/README.md)
46-
- [Assurances](./assurances/README.md)
47-
- [Reports](./reports/README.md)
48-
- [Statistics](./statistics/README.md)
49-
- [Authorizations](./authorizations/README.md)
50-
- [Preimages](./preimages/README.md)
51-
- [Accumulate](./accumulate/README.md)
43+
- [Safrole](./stf/safrole/README.md)
44+
- [Disputes](./stf/disputes/README.md)
45+
- [History](./stf/history/README.md)
46+
- [Assurances](./stf/assurances/README.md)
47+
- [Reports](./stf/reports/README.md)
48+
- [Statistics](./stf/statistics/README.md)
49+
- [Authorizations](./stf/authorizations/README.md)
50+
- [Preimages](./stf/preimages/README.md)
51+
- [Accumulate](./stf/accumulate/README.md)
5252

5353
## Block Import Traces
5454

5555
- [Fallback](./traces/fallback): fallback block authoring, no-safrole, no-work-reports
5656
- [Safrole](./traces/safrole): safrole block authoring, no-work-reports
5757
- [Work Reports L0](./traces/reports-l0): basic work reports, no-safrole
58+
59+
## Vectors Validation
60+
61+
Validation scripts are included to verify the JSON files against the expected
62+
ASN.1 syntax provided with the test vectors. These scripts currently rely on my
63+
[asn1tools](https://github.com/davxy/asn1tools) fork.

accumulate/README.md

Lines changed: 0 additions & 94 deletions
This file was deleted.
-77 KB
Binary file not shown.

0 commit comments

Comments
 (0)