a67728628e
* Created test_data folder with block json files for testing + create separate file for block base. * Fixed bug in WriteVarUint + Trim logic + unit tests * Refactored store and add more tests for it. * restore headerList from chain file * Fix tx decode bug + lots of housekeeping. * Implemented Node restore state from chain file. * Created standalone package for storage. Added couple more methods to Batch and Store interfaces. * Block persisting + tests * bumped version -> 0.31.0
16 lines
414 B
Go
16 lines
414 B
Go
package transaction
|
|
|
|
// AssetType represent a NEO asset type
|
|
type AssetType uint8
|
|
|
|
// Valid asset types.
|
|
const (
|
|
CreditFlag AssetType = 0x40
|
|
DutyFlag AssetType = 0x80
|
|
GoverningToken AssetType = 0x00
|
|
UtilityToken AssetType = 0x01
|
|
Currency AssetType = 0x08
|
|
Share AssetType = DutyFlag | 0x10
|
|
Invoice AssetType = DutyFlag | 0x18
|
|
Token AssetType = CreditFlag | 0x20
|
|
)
|