/
sr_publish.go
20 lines (17 loc) · 1.03 KB
/
sr_publish.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package models
// SmartRollupPublish -
type SmartRollupPublish struct {
//nolint
tableName struct{} `pg:"sr_publish"`
MempoolOperation
Fee int64 `json:"fee,string" comment:"Fee to the baker, produced block, in which the operation was included (micro tez)."`
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:"sr_publish_source_idx" comment:"Address of the account who has sent the operation."`
Rollup string `json:"rollup,omitempty" index:"sr_publish_bond_rollup_idx" comment:"Smart rollup to which the operation was sent."`
}
// SetMempoolOperation -
func (i *SmartRollupPublish) SetMempoolOperation(operaiton MempoolOperation) {
i.MempoolOperation = operaiton
}