Skip to content

Commit f6afa69

Browse files
mmagicianclaudeMirko-von-Leipzig
authored
chore: prepare release v0.14.0-alpha.1 (#1743)
* chore: bump workspace version to 0.14.0-alpha.1 Pin protocol dependencies to published crate versions and update all workspace crate versions to =0.14.0-alpha.1. https://claude.ai/code/session_017j1F8cwRXFnWyjzzwN9d4k * ci: support publishing from non-main branches Use github.event.release.target_commitish to dynamically determine which branch to checkout and verify against, instead of hardcoding main. This enables releasing alpha versions from the next branch. https://claude.ai/code/session_017j1F8cwRXFnWyjzzwN9d4k * feat: use StorageMapEntry instead of Word * feat: use StorageMapEntry in tests * chore: simplify Digest<>StorageMapEntry conv * chore: rename key -> key_hash * Apply suggestions from code review Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com> * chore: simplify crate publishing step * chore: bring msvr check from main --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Mirko <48352201+Mirko-von-Leipzig@users.noreply.github.com>
1 parent 4a4bfa5 commit f6afa69

File tree

21 files changed

+347
-157
lines changed

21 files changed

+347
-157
lines changed
Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish (main)
1+
name: Publish crates
22

33
permissions:
44
contents: read
@@ -17,25 +17,13 @@ jobs:
1717
uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
ref: main
20+
ref: ${{ github.event.release.tag_name }}
2121
- uses: ./.github/actions/install-rocksdb
2222
- uses: ./.github/actions/install-protobuf-compiler
23-
# Ensure the release tag refers to the latest commit on main.
24-
# Compare the commit SHA that triggered the workflow with the HEAD of the branch we just
25-
# checked out (main).
26-
- name: Verify release was triggered from main HEAD
23+
- name: Log release info
2724
run: |
28-
tag_sha="${{ github.sha }}"
29-
main_sha="$(git rev-parse HEAD)"
30-
31-
echo "Tag points to: $tag_sha"
32-
echo "Current main HEAD is: $main_sha"
33-
34-
if [ "$tag_sha" != "$main_sha" ]; then
35-
echo "::error::The release tag was not created from the latest commit on main. Aborting."
36-
exit 1
37-
fi
38-
echo "Release tag matches main HEAD — continuing."
25+
echo "Publishing release ${{ github.event.release.tag_name }}"
26+
echo "Commit: $(git rev-parse HEAD)"
3927
- name: Cleanup large tools for build space
4028
uses: ./.github/actions/cleanup-runner
4129
- name: Install dependencies

Cargo.lock

Lines changed: 41 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ license = "MIT"
3131
readme = "README.md"
3232
repository = "https://github.com/0xMiden/node"
3333
rust-version = "1.91"
34-
version = "0.14.0"
34+
version = "0.14.0-alpha.1"
3535

3636
# Optimize the cryptography for faster tests involving account creation.
3737
[profile.test.package.miden-crypto]
@@ -46,31 +46,30 @@ debug = true
4646

4747
[workspace.dependencies]
4848
# Workspace crates.
49-
miden-large-smt-backend-rocksdb = { path = "crates/large-smt-backend-rocksdb", version = "0.14" }
50-
miden-node-block-producer = { path = "crates/block-producer", version = "0.14" }
51-
miden-node-db = { path = "crates/db", version = "0.14" }
52-
miden-node-grpc-error-macro = { path = "crates/grpc-error-macro", version = "0.14" }
53-
miden-node-ntx-builder = { path = "crates/ntx-builder", version = "0.14" }
54-
miden-node-proto = { path = "crates/proto", version = "0.14" }
55-
miden-node-proto-build = { path = "proto", version = "0.14" }
56-
miden-node-rpc = { path = "crates/rpc", version = "0.14" }
57-
miden-node-store = { path = "crates/store", version = "0.14" }
49+
miden-large-smt-backend-rocksdb = { path = "crates/large-smt-backend-rocksdb", version = "=0.14.0-alpha.1" }
50+
miden-node-block-producer = { path = "crates/block-producer", version = "=0.14.0-alpha.1" }
51+
miden-node-db = { path = "crates/db", version = "=0.14.0-alpha.1" }
52+
miden-node-grpc-error-macro = { path = "crates/grpc-error-macro", version = "=0.14.0-alpha.1" }
53+
miden-node-ntx-builder = { path = "crates/ntx-builder", version = "=0.14.0-alpha.1" }
54+
miden-node-proto = { path = "crates/proto", version = "=0.14.0-alpha.1" }
55+
miden-node-proto-build = { path = "proto", version = "=0.14.0-alpha.1" }
56+
miden-node-rpc = { path = "crates/rpc", version = "=0.14.0-alpha.1" }
57+
miden-node-store = { path = "crates/store", version = "=0.14.0-alpha.1" }
5858
miden-node-test-macro = { path = "crates/test-macro" }
59-
miden-node-utils = { path = "crates/utils", version = "0.14" }
60-
miden-node-validator = { path = "crates/validator", version = "0.14" }
61-
miden-remote-prover-client = { path = "crates/remote-prover-client", version = "0.14" }
62-
59+
miden-node-utils = { path = "crates/utils", version = "=0.14.0-alpha.1" }
60+
miden-node-validator = { path = "crates/validator", version = "=0.14.0-alpha.1" }
61+
miden-remote-prover-client = { path = "crates/remote-prover-client", version = "=0.14.0-alpha.1" }
6362
# Temporary workaround until <https://github.com/rust-rocksdb/rust-rocksdb/pull/1029>
6463
# is part of `rocksdb-rust` release
65-
miden-node-rocksdb-cxx-linkage-fix = { path = "crates/rocksdb-cxx-linkage-fix", version = "0.14" }
64+
miden-node-rocksdb-cxx-linkage-fix = { path = "crates/rocksdb-cxx-linkage-fix", version = "=0.14.0-alpha.1" }
6665

6766
# miden-base aka protocol dependencies. These should be updated in sync.
68-
miden-block-prover = { branch = "next", git = "https://github.com/0xMiden/miden-base.git" }
69-
miden-protocol = { branch = "next", default-features = false, git = "https://github.com/0xMiden/miden-base.git" }
70-
miden-standards = { branch = "next", git = "https://github.com/0xMiden/miden-base.git" }
71-
miden-testing = { branch = "next", git = "https://github.com/0xMiden/miden-base.git" }
72-
miden-tx = { branch = "next", default-features = false, git = "https://github.com/0xMiden/miden-base.git" }
73-
miden-tx-batch-prover = { branch = "next", git = "https://github.com/0xMiden/miden-base.git" }
67+
miden-block-prover = { version = "=0.14.0-alpha.1" }
68+
miden-protocol = { default-features = false, version = "=0.14.0-alpha.1" }
69+
miden-standards = { version = "=0.14.0-alpha.1" }
70+
miden-testing = { version = "=0.14.0-alpha.1" }
71+
miden-tx = { default-features = false, version = "=0.14.0-alpha.1" }
72+
miden-tx-batch-prover = { version = "=0.14.0-alpha.1" }
7473

7574
# Other miden dependencies. These should align with those expected by miden-base.
7675
miden-air = { features = ["std", "testing"], version = "0.20" }

bin/network-monitor/src/deploy/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use anyhow::{Context, Result};
1111
use miden_node_proto::clients::{Builder, RpcClient};
1212
use miden_node_proto::generated::rpc::BlockHeaderByNumberRequest;
1313
use miden_node_proto::generated::transaction::ProvenTransaction;
14-
use miden_protocol::account::{Account, AccountId, PartialAccount, PartialStorage};
14+
use miden_protocol::account::{Account, AccountId, PartialAccount, PartialStorage, StorageMapKey};
1515
use miden_protocol::assembly::{
1616
DefaultSourceManager,
1717
Library,
@@ -308,7 +308,7 @@ impl DataStore for MonitorDataStore {
308308
&self,
309309
_account_id: AccountId,
310310
_map_root: Word,
311-
_map_key: Word,
311+
_map_key: StorageMapKey,
312312
) -> Result<miden_protocol::account::StorageMapWitness, DataStoreError> {
313313
unimplemented!("Not needed")
314314
}

crates/ntx-builder/src/actor/execute.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use miden_protocol::account::{
1111
AccountId,
1212
AccountStorageHeader,
1313
PartialAccount,
14+
StorageMapKey,
1415
StorageMapWitness,
1516
StorageSlotName,
1617
StorageSlotType,
@@ -508,7 +509,7 @@ impl DataStore for NtxDataStore {
508509
&self,
509510
account_id: AccountId,
510511
map_root: Word,
511-
map_key: Word,
512+
map_key: StorageMapKey,
512513
) -> impl FutureMaybeSend<Result<StorageMapWitness, DataStoreError>> {
513514
async move {
514515
// The slot name that corresponds to the given account ID and map root must have been

crates/ntx-builder/src/store.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use miden_protocol::account::{
1616
AccountId,
1717
PartialAccount,
1818
PartialStorage,
19+
StorageMapKey,
1920
StorageMapWitness,
2021
StorageSlotName,
2122
};
@@ -421,7 +422,7 @@ impl StoreClient {
421422
&self,
422423
account_id: AccountId,
423424
slot_name: StorageSlotName,
424-
map_key: Word,
425+
map_key: StorageMapKey,
425426
block_num: Option<BlockNumber>,
426427
) -> Result<StorageMapWitness, StoreError> {
427428
// Construct proto request.

0 commit comments

Comments
 (0)