Skip to content

Commit

Permalink
Added doc-comments for TxRollupCommit.
Browse files Browse the repository at this point in the history
  • Loading branch information
vvuwei committed Jun 28, 2023
1 parent 80b8e54 commit 24ab684
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmd/mempool/models/reveal.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ type Reveal struct {
// comment:"A cap on the amount of gas a given operation can consume."`
// comment:"A cap on the amount of storage a given operation can consume."`
// comment:"Address of the account who has sent the operation."` // DISCUSS
// comment:"Smart rollup to which the operation was sent."`
// comment:"Address of the rollup to which the operation was sent."`
12 changes: 6 additions & 6 deletions cmd/mempool/models/tx_rollup_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ type TxRollupCommit struct {
tableName struct{} `pg:"tx_rollup_commit"`

MempoolOperation
Fee int64 `json:"fee,string"`
Counter int64 `pg:",pk" json:"counter,string"`
GasLimit int64 `json:"gas_limit,string"`
StorageLimit int64 `json:"storage_limit,string"`
Source string `json:"source,omitempty" index:"tx_rollup_commit_source_idx"`
Rollup string `json:"rollup,omitempty" index:"tx_rollup_commit_rollup_idx"`
Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."` // DISCUSS
Counter int64 `pg:",pk" json:"counter,string" comment:"An account nonce which is used to prevent operation replay."`
GasLimit int64 `json:"gas_limit,string" comment:"A cap on the amount of gas a given operation can consume."`
StorageLimit int64 `json:"storage_limit,string" comment:"A cap on the amount of storage a given operation can consume."`
Source string `json:"source,omitempty" index:"tx_rollup_commit_source_idx" comment:"Address of the account who has sent the operation."` // DISCUSS
Rollup string `json:"rollup,omitempty" index:"tx_rollup_commit_rollup_idx" comment:"Address of the rollup to which the operation was sent."`
}

// SetMempoolOperation -
Expand Down

0 comments on commit 24ab684

Please sign in to comment.