Skip to content

Commit

Permalink
tx: split out tx sections into dedicated mod
Browse files Browse the repository at this point in the history
  • Loading branch information
tzemanovic committed Sep 20, 2024
1 parent bbf2d34 commit 17725ea
Show file tree
Hide file tree
Showing 4 changed files with 900 additions and 872 deletions.
2 changes: 1 addition & 1 deletion crates/tx/src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use sha2::{Digest, Sha256};
pub use wrapper::*;

use crate::data::protocol::ProtocolTx;
use crate::types::TxCommitments;
use crate::TxCommitments;

/// The different result codes that the ledger may send back to a client
/// indicating the status of their submitted tx.
Expand Down
9 changes: 6 additions & 3 deletions crates/tx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,24 @@ pub mod action;
pub mod data;
pub mod event;
pub mod proto;
mod section;
mod sign;
mod types;

use data::TxType;
pub use either;
pub use event::new_tx_event;
pub use namada_core::key::SignableEthMessage;
pub use section::{
Authorization, Code, Commitment, CompressedAuthorization, Data, Header,
MaspBuilder, Memo, Section, Signer, TxCommitments,
};
pub use sign::{
standalone_signature, verify_standalone_sig, SignatureIndex, Signed,
VerifySigError,
};
pub use types::{
Authorization, BatchedTx, BatchedTxRef, Code, Commitment,
CompressedAuthorization, Data, DecodeError, Header, IndexedTx,
IndexedTxRange, MaspBuilder, Memo, Section, Signer, Tx, TxCommitments,
BatchedTx, BatchedTxRef, DecodeError, IndexedTx, IndexedTxRange, Tx,
TxError,
};

Expand Down
Loading

0 comments on commit 17725ea

Please sign in to comment.