-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Protobuf] Support validator transaction type in protobuf #13897
Conversation
⏱️ 3h 9m total CI duration on this PR
|
@@ -690,9 +697,9 @@ impl From<QuorumCertifiedUpdate> for ExportedQuorumCertifiedUpdate { | |||
/// A more API-friendly representation of the on-chain `aptos_types::aggregate_signature::AggregateSignature`. | |||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Object)] | |||
pub struct ExportedAggregateSignature { | |||
signer_indices: Vec<usize>, |
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.
only the visibility change below in this file.
@@ -10,7 +10,7 @@ import "aptos/transaction/v1/transaction.proto"; | |||
// This is for storage only. |
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.
Proto format
@@ -1,6 +1,5 @@ | |||
/* eslint-disable */ | |||
|
|||
export * as bigquery_schema from "./index.aptos.bigquery_schema"; |
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.
remove this; we have parquet effort going on.
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.
How do you plan to test this change?
@@ -621,6 +621,13 @@ impl ValidatorTransaction { | |||
ValidatorTransaction::DkgResult(t) => t.timestamp, | |||
} | |||
} | |||
|
|||
pub fn events(&self) -> &[Event] { |
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.
To future proof, we should include the write sets too. There's nothing to index in it now, but there could be in the future.
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.
this is handled in TransactionInfo parsing, which is shared among all transaction types.
message DkgTranscript { | ||
uint64 epoch = 1; | ||
string author = 2; | ||
bytes payload = 3; | ||
} | ||
DkgTranscript dkg_transcript = 1; |
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.
qq: how do you know these are the only fields needed for DkgUpdate?
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.
copied from exported dkg output.
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Object)]
pub struct ExportedDKGTranscript {
epoch: U64,
author: Address,
payload: HexEncodedBytes,
}
https://gist.github.com/larry-aptos/bfb876716dc617c5717c312d2f7c8255 tested locally and it looks good and can see all the events. example
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f9fc727
to
9662384
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
* format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction.
…14019) * format and add new transaction type. * format + cleanup + new transaciton type. * update. * fix the validator transaction. * upgrade protobuf. * grpc support validator transaction. Co-authored-by: larry-aptos <112209412+larry-aptos@users.noreply.github.com>
Description
More context: #13718
Type of Change
Which Components or Systems Does This Change Impact?
How Has This Been Tested?
Lint + ut
dkgUpdate
proto transaction example: https://gist.github.com/larry-aptos/bfb876716dc617c5717c312d2f7c8255ObservedJwkUpdate
needs devnet to verify.more to add
Key Areas to Review
Checklist