Move WatchedContract to repositories

This commit is contained in:
Eric Meyer
2017-12-04 13:42:26 -06:00
parent 3af336a34a
commit 52e3266495
9 changed files with 38 additions and 34 deletions
@@ -1,10 +1,5 @@
package core
type WatchedContract struct {
Hash string
Transactions []Transaction
}
type Contract struct {
Attributes ContractAttributes
Hash string
@@ -20,6 +15,7 @@ type ContractAttributes []ContractAttribute
func (attributes ContractAttributes) Len() int {
return len(attributes)
}
func (attributes ContractAttributes) Swap(i, j int) {
attributes[i], attributes[j] = attributes[j], attributes[i]
}