-
Notifications
You must be signed in to change notification settings - Fork 40
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
On-chain accounts protobuf & domain objects #287
Conversation
70b3098
to
530ac6e
Compare
aa83463
to
28d44fb
Compare
# Conflicts: # .gitignore # Cargo.toml
proto/src/domain/notes.rs
Outdated
@@ -25,7 +25,7 @@ impl From<(u64, NoteEnvelope)> for note::NoteCreated { | |||
Self { | |||
note_id: Some(note.note_id().into()), | |||
sender: Some(note.metadata().sender().into()), | |||
tag: note.metadata().tag().into(), | |||
tag: u32::from(note.metadata().tag()).into(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add the missing conversions to miden-base
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hackaugusto nice idea, done: 0xPolygonMiden/miden-base#559
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually (in a different PR), tag here would be u32
as well, right
# Conflicts: # Cargo.lock # Cargo.toml # block-producer/src/block.rs # block-producer/src/block_builder/mod.rs # block-producer/src/test_utils/block.rs # block-producer/src/test_utils/proven_tx.rs # faucet/Cargo.toml # proto/src/errors.rs # store/src/state.rs
26f1756
to
6eafe6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you! Let's fix the rustfmt error and merge.
* feat: add `account_details` table to the DB * refactor: rename `block_number` column in nullifiers table to `block_num` * refactor: use `BETWEEN` in interval comparison checks * feat: implement account details protobuf messages, domain objects and conversions * feat: (WIP) implement account details support * feat: (WIP) implement account details support * feat: (WIP) implement account details support * feat: (WIP) implement account details support * fix: db creation * docs: remove TODO * refactor: apply formatting * feat: implement endpoint for getting public account details * tests: add test for storage * feat: add rpc endpoint for getting account details * refactor: keep only domain object changes * fix: compilation errors * fix: use note tag conversion from `u64` * refactor: remove account details protobuf messages * fix: remove unused error invariants * refactor: introduce `UpdatedAccount` struct * fix: rollback details conversion * fix: compilation error * format: reformat using rustfmt
This PR is intended to be 1 of 3 PRs regarding support of on-chain (public) accounts in Miden node. This PR includes only implementation of protobuf and domain objects for on-chain accounts.