Skip to content

Commit

Permalink
protos: move the transaction fee out of the transaction body and into…
Browse files Browse the repository at this point in the history
… the transaction parameters, add TransactionParamsView
  • Loading branch information
aubrika committed Dec 6, 2023
1 parent ab12795 commit 888f773
Showing 1 changed file with 19 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,10 @@ message TransactionBody {
repeated Action actions = 1;
// Parameters determining if a transaction should be accepted by this chain.
TransactionParameters transaction_parameters = 2;
// The transaction fee.
component.fee.v1alpha1.Fee fee = 3;
// Detection data for use with Fuzzy Message Detection
DetectionData detection_data = 4;
DetectionData detection_data = 3;
// Sub-message containing memo ciphertext if a memo was added to the transaction.
MemoData memo_data = 5;
MemoData memo_data = 4;
}

// Represents the encrypted memo data.
Expand All @@ -59,6 +57,20 @@ message TransactionParameters {
// The chain this transaction is intended for. Including this prevents
// replaying a transaction on one chain onto a different chain.
string chain_id = 2;
// The transaction fee.
component.fee.v1alpha1.Value fee = 3;
}

message TransactionParamsView {
// The maximum height that this transaction can be included in the chain.
//
// If zero, there is no maximum.
uint64 expiry_height = 1;
// The chain this transaction is intended for. Including this prevents
// replaying a transaction on one chain onto a different chain.
string chain_id = 2;
// The transaction fee.
component.fee.v1alpha1.ValueView fee = 3;
}

// Detection data used by a detection server performing Fuzzy Message Detection.
Expand Down Expand Up @@ -146,12 +158,10 @@ message TransactionView {
}

message TransactionBodyView {
// A list views into of actions (state changes) performed by this transaction.
// A list of views into of actions (state changes) performed by this transaction.
repeated ActionView action_views = 1;
// Transaction parameters.
TransactionParameters transaction_parameters = 2;
// The transaction fee.
component.fee.v1alpha1.Fee fee = 3;
// View of the transaction parameters.
TransactionParamsView transaction_params_view = 2;
// The detection data in this transaction, only populated if
// there are outputs in the actions of this transaction.
DetectionData detection_data = 4;
Expand Down

0 comments on commit 888f773

Please sign in to comment.