Skip to content

Implement deposits#8

Merged
GCdePaula merged 5 commits intomainfrom
feature/deposits-2
Mar 23, 2026
Merged

Implement deposits#8
GCdePaula merged 5 commits intomainfrom
feature/deposits-2

Conversation

@GCdePaula
Copy link
Collaborator

No description provided.

@GCdePaula GCdePaula requested a review from stephenctw March 21, 2026 23:23
@GCdePaula GCdePaula self-assigned this Mar 21, 2026
testsi = { version = "0.1", git = "https://github.com/GCdePaula/cartesi-tools-rs", rev = "27b457994546ea4a8345ed078031782f155d3013" }
types = { version = "0.1", git = "https://github.com/GCdePaula/cartesi-tools-rs", rev = "27b457994546ea4a8345ed078031782f155d3013" }
cartesi-machine = { version = "2", git = "https://github.com/cartesi/dave", rev = "5d0560a04f623318af9ef5b7f193170b618b6ced", default-features = false, features = ["download_uarch"] }
libcmt-sys = { version = "0.1", git = "https://github.com/GCdePaula/cartesi-tools-rs", rev = "c2b2f65bc6a3d4ddf80b3a0c5a1673fbf22e9f86" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Workspace deps still pin GCdePaula/cartesi-tools-rs (and related git SHAs). Before merging to cartesi/sequencer, consider whether those should live under cartesi/ (or crates.io) so the org does not rely on a personal fork long term.

self.nonces.insert(user_op.sender, next_nonce);
self.executed_input_count = self.executed_input_count.saturating_add(1);
Ok(())
Ok(Vec::new())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On success, we return an empty vector, and the AppOutputs is also not processed by the caller. Is it intentional because we are working on a toy app for now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This array is being used in other parts of the code. It's not being used in the inclusion lane.

The wallet returns non-empty arrays.

}

fn execute_direct_input(&mut self, _input: &DirectInput) -> Result<(), AppError> {
fn execute_direct_input(&mut self, _input: &DirectInput) -> Result<AppOutputs, AppError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.


fn execute_valid_user_op(&mut self, _user_op: &ValidUserOp) -> Result<(), AppError> {
Ok(())
fn execute_valid_user_op(&mut self, _user_op: &ValidUserOp) -> Result<AppOutputs, AppError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

}

fn execute_direct_input(&mut self, _input: &DirectInput) -> Result<(), AppError> {
fn execute_direct_input(&mut self, _input: &DirectInput) -> Result<AppOutputs, AppError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

}

fn execute_valid_user_op(&mut self, user_op: &ValidUserOp) -> Result<(), AppError> {
fn execute_valid_user_op(&mut self, user_op: &ValidUserOp) -> Result<AppOutputs, AppError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

}

fn execute_direct_input(&mut self, input: &DirectInput) -> Result<(), AppError> {
fn execute_direct_input(&mut self, input: &DirectInput) -> Result<AppOutputs, AppError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

@stephenctw
Copy link
Collaborator

Looks great! I left a few minor comments.

@stephenctw stephenctw self-requested a review March 23, 2026 04:43
@GCdePaula GCdePaula merged commit cf16579 into main Mar 23, 2026
6 checks passed
@GCdePaula GCdePaula deleted the feature/deposits-2 branch March 23, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants