-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathscDeploy.go
More file actions
22 lines (20 loc) · 822 Bytes
/
scDeploy.go
File metadata and controls
22 lines (20 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package data
// ScDeployInfo is the DTO that holds information about a smart contract deployment
type ScDeployInfo struct {
TxHash string `json:"deployTxHash"`
Creator string `json:"deployer"`
CurrentOwner string `json:"currentOwner"`
CodeHash []byte `json:"initialCodeHash"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs,omitempty"`
Upgrades []*Upgrade `json:"upgrades"`
OwnersHistory []*OwnerData `json:"owners"`
}
// Upgrade is the DTO that holds information about a smart contract upgrade
type Upgrade struct {
TxHash string `json:"upgradeTxHash"`
Upgrader string `json:"upgrader"`
Timestamp uint64 `json:"timestamp"`
TimestampMs uint64 `json:"timestampMs"`
CodeHash []byte `json:"codeHash"`
}