forked from TrueCloudLab/neoneo-go
ec17654986
add dao which takes care about all CRUD operations on storage remove blockchain state since everything is stored on change remove storage operations from structs(entities) move structs to entities package
12 lines
277 B
Go
12 lines
277 B
Go
package entities
|
|
|
|
// CoinState represents the state of a coin.
|
|
type CoinState uint8
|
|
|
|
// Viable CoinState constants.
|
|
const (
|
|
CoinStateConfirmed CoinState = 0
|
|
CoinStateSpent CoinState = 1 << 1
|
|
CoinStateClaimed CoinState = 1 << 2
|
|
CoinStateFrozen CoinState = 1 << 5
|
|
)
|