mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-11 15:30:07 +00:00
ddd1d92ff1
The idea here is to preserve the history of `dev` branch development and its code when merging with the `master`. Later this code could be moved into the masters code where appropriate.
24 lines
419 B
Go
24 lines
419 B
Go
package version
|
|
|
|
import (
|
|
"github.com/CityOfZion/neo-go/pkg/wire/util"
|
|
)
|
|
|
|
// TX represents a tx version
|
|
type TX uint8
|
|
|
|
// List of latest tx version
|
|
const (
|
|
Contract TX = 0
|
|
Invocation TX = 1
|
|
)
|
|
|
|
// Encode encodes the tx version into the binary writer
|
|
func (v *TX) Encode(bw *util.BinWriter) {
|
|
bw.Write(v)
|
|
}
|
|
|
|
// Decode decodes the binary reader into a tx type
|
|
func (v *TX) Decode(br *util.BinReader) {
|
|
br.Read(v)
|
|
}
|