Skip to content

Commit 2e8eae1

Browse files
committed
add SuiConsensusCommitPrologueV3 definition
1 parent 6359ddb commit 2e8eae1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

types/transactions.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ type TransactionBlockKind struct {
123123
/// A system transaction marking the start of a series of transactions scheduled as part of a
124124
/// checkpoint
125125
ConsensusCommitPrologue *SuiConsensusCommitPrologue `json:"ConsensusCommitPrologue,omitempty"`
126+
/// A system transaction marking the start of a series of transactions scheduled as part of a
127+
/// checkpoint (v3)
128+
ConsensusCommitPrologueV3 *SuiConsensusCommitPrologueV3 `json:"ConsensusCommitPrologueV3,omitempty"`
126129
/// A series of transactions where the results of one transaction can be used in future
127130
/// transactions
128131
ProgrammableTransaction *SuiProgrammableTransactionBlock `json:"ProgrammableTransaction,omitempty"`
@@ -155,6 +158,14 @@ type SuiConsensusCommitPrologue struct {
155158
CommitTimestampMs uint64 `json:"commit_timestamp_ms"`
156159
}
157160

161+
type SuiConsensusCommitPrologueV3 struct {
162+
Epoch *SafeSuiBigInt[uint64] `json:"epoch"`
163+
Round *SafeSuiBigInt[uint64] `json:"round"`
164+
CommitTimestampMs *SafeSuiBigInt[uint64] `json:"commit_timestamp_ms"`
165+
SubDagIndex *SafeSuiBigInt[uint64] `json:"sub_dag_index"`
166+
ConsensusCommitDigest sui_types.ObjectDigest `json:"consensus_commit_digest"`
167+
}
168+
158169
type SuiProgrammableTransactionBlock struct {
159170
Inputs []interface{} `json:"inputs"`
160171
/// The transactions to be executed sequentially. A failure in any transaction will

0 commit comments

Comments
 (0)