2018-03-17 11:53:21 +00:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import (
|
2020-04-10 10:41:49 +00:00
|
|
|
"math/rand"
|
|
|
|
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/io"
|
2018-03-17 11:53:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// IssueTX represents a issue transaction.
|
|
|
|
// This TX has not special attributes.
|
|
|
|
type IssueTX struct{}
|
|
|
|
|
2020-04-10 10:41:49 +00:00
|
|
|
// NewIssueTX creates Transaction of IssueType type.
|
|
|
|
func NewIssueTX() *Transaction {
|
|
|
|
return &Transaction{
|
|
|
|
Type: IssueType,
|
|
|
|
Version: 0,
|
|
|
|
Nonce: rand.Uint32(),
|
|
|
|
Data: &IssueTX{},
|
|
|
|
Attributes: []Attribute{},
|
2020-04-30 13:00:33 +00:00
|
|
|
Cosigners: []Cosigner{},
|
2020-04-10 10:41:49 +00:00
|
|
|
Inputs: []Input{},
|
|
|
|
Outputs: []Output{},
|
|
|
|
Scripts: []Witness{},
|
|
|
|
Trimmed: false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-16 16:31:49 +00:00
|
|
|
// DecodeBinary implements Serializable interface.
|
|
|
|
func (tx *IssueTX) DecodeBinary(r *io.BinReader) {
|
2018-03-17 11:53:21 +00:00
|
|
|
}
|
|
|
|
|
2019-09-16 16:31:49 +00:00
|
|
|
// EncodeBinary implements Serializable interface.
|
|
|
|
func (tx *IssueTX) EncodeBinary(w *io.BinWriter) {
|
2018-03-17 11:53:21 +00:00
|
|
|
}
|