Skip to content

feature(sdk): High-level account storage API #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 28 commits into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
80d244f
feature(sdk): introduce `miden-base` with high-level account storage API
greenhat Mar 14, 2025
ce61894
feature(sdk): implement an account instantiation in `component` macro
greenhat Mar 14, 2025
27f9a6c
feature(frontend): store `AccountComponentMetadata` in custom link se…
greenhat Mar 19, 2025
fbb4957
feature(frontend): parse AccountComponentMetadata in the frontend
greenhat Mar 20, 2025
9bd2e88
parse description and implement AccountComponentMetadataBuilder,
greenhat Mar 27, 2025
2dee8eb
feature(sdk): store type attribute name, update `miden-objects` to
greenhat Mar 28, 2025
b710e38
test: add macros generated AccountComponentMetadata test
greenhat Mar 28, 2025
539692d
test: update expected tests
greenhat Mar 31, 2025
eeba449
feature(frontend): update VM and add `AccountComponentMetadata` to `P…
greenhat Mar 31, 2025
2d46110
fix: add tx kernel functions to base-sys MASL stub, fix names to matc…
greenhat Apr 1, 2025
20ed9fc
fix: support Wasm component without account metadata
greenhat Apr 1, 2025
841fcd9
refactor: fix clippy warnings
greenhat Apr 1, 2025
5d4681a
refactor: make `component` macro implement `Default` for the type
greenhat Apr 1, 2025
c7bdc7a
test: add expected TOML test for `component` macro and compiled Miden…
greenhat Apr 1, 2025
e65fd64
feature(sdk): `component` attribute macros parses `name`, `description`
greenhat Apr 2, 2025
29150f2
refactor: make account storage API polymorphic for key and value types
greenhat Apr 2, 2025
6bf3313
test: rewrite `storage_example` and use high-level account storage API
greenhat Apr 2, 2025
278d639
refactor: split `component` attribute macro
greenhat Apr 2, 2025
8a8ba2a
chore: update the VM to latest https://github.com/0xPolygonMiden/mide…
greenhat Apr 2, 2025
b57152f
test: update expected after rebase
greenhat Apr 2, 2025
4f705af
chore: update Miden VM to the latest from https://github.com/0xPolygo…
greenhat Apr 3, 2025
23881e0
refactor: rename `StorageMapAccess::read` and `write` to `get` and `set`
greenhat Apr 3, 2025
03b9265
test: remove the component_macro_test since macro under test
greenhat Apr 18, 2025
23d55a0
chore: update p2id-note Cargo.lock
greenhat Apr 18, 2025
4a2e771
feature: add `package.metadata.miden.supported-types`
greenhat Apr 18, 2025
99b887f
fix: handle empty call site span for `component` macro under
greenhat Apr 18, 2025
117bfe4
chore: update VM to the
greenhat Apr 18, 2025
95d39e5
chore: formatting and cleanup
greenhat Apr 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
428 changes: 284 additions & 144 deletions Cargo.lock

Large diffs are not rendered by default.

39 changes: 32 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,29 @@ smallvec = { version = "1.14", default-features = false, features = [
thiserror = { package = "miden-thiserror", version = "1.0" }
toml = { version = "0.8", features = ["preserve_order"] }
miden-formatting = { version = "0.1", default-features = false }
miden-assembly = { version = "0.13.0", default-features = false }
miden-core = { version = "0.13.0", default-features = false, features = [

# miden-assembly = { version = "0.13.0", default-features = false }
# miden-core = { version = "0.13.0", default-features = false, features = [
# "diagnostics",
# ] }
# miden-processor = { version = "0.13.0", default-features = false }
# miden-stdlib = { version = "0.13.0", default-features = false, features = [
# "with-debug-info",
# ] }
# miden-mast-package = { version = "0.13.0", default-features = false }

# use the VM from the next branch with merged
# https://github.com/0xPolygonMiden/miden-vm/pull/1731
miden-assembly = { version = "0.14.0", default-features = false, git = "https://github.com/0xPolygonMiden/miden-vm", rev = "614cd7f9b52f45238b0ab59c71ebb49325051e5d" }
miden-core = { version = "0.14.0", default-features = false, features = [
"diagnostics",
] }
miden-processor = { version = "0.13.0", default-features = false }
miden-stdlib = { version = "0.13.0", default-features = false, features = [
], git = "https://github.com/0xPolygonMiden/miden-vm", rev = "614cd7f9b52f45238b0ab59c71ebb49325051e5d" }
miden-processor = { version = "0.14.0", default-features = false, git = "https://github.com/0xPolygonMiden/miden-vm", rev = "614cd7f9b52f45238b0ab59c71ebb49325051e5d" }
miden-stdlib = { version = "0.14.0", default-features = false, features = [
"with-debug-info",
] }
miden-mast-package = { version = "0.13.0", default-features = false }
], git = "https://github.com/0xPolygonMiden/miden-vm", rev = "614cd7f9b52f45238b0ab59c71ebb49325051e5d" }
miden-mast-package = { version = "0.14.0", default-features = false, git = "https://github.com/0xPolygonMiden/miden-vm", rev = "614cd7f9b52f45238b0ab59c71ebb49325051e5d" }

# This is here for convenience if we need to quickly use a git ref of the VM crates
#miden-assembly = { version = "0.11.0", git = "https://github.com/0xPolygonMiden/miden-vm", rev = "4d23f948bbf0c8fb7cd7ecba80bb02d37c1724bb" }
midenc-codegen-masm = { version = "0.0.7", path = "codegen/masm" }
Expand All @@ -122,6 +136,17 @@ cargo-miden = { version = "0.0.7", path = "tools/cargo-miden" }
miden-integration-tests = { version = "0.0.0", path = "tests/integration" }
wat = "1.0.69"
tokio = { version = "1.39.2", features = ["rt", "time", "macros"] }
syn = { version = "2.0", features = [
"full",
"parsing",
"derive",
"extra-traits",
"printing",
] }
proc-macro2 = "1.0"
quote = "1.0"

semver = { version = "1.0", default-features = false }

[profile.dev]
lto = false
Expand Down
Loading
Loading