2018-03-14 10:36:59 +01:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import (
|
2019-09-16 12:18:13 +03:00
|
|
|
"github.com/CityOfZion/neo-go/pkg/io"
|
2018-03-14 10:36:59 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// ContractTX represents a contract transaction.
|
|
|
|
// This TX has not special attributes.
|
|
|
|
type ContractTX struct{}
|
|
|
|
|
2019-09-03 17:51:37 +03:00
|
|
|
// NewContractTX creates Transaction of ContractType type.
|
2018-12-21 12:32:18 +03:00
|
|
|
func NewContractTX() *Transaction {
|
|
|
|
return &Transaction{
|
2019-01-25 14:20:35 +03:00
|
|
|
Type: ContractType,
|
2018-12-21 12:32:18 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-09-16 19:31:49 +03:00
|
|
|
// DecodeBinary implements Serializable interface.
|
|
|
|
func (tx *ContractTX) DecodeBinary(r *io.BinReader) {
|
2018-03-14 10:36:59 +01:00
|
|
|
}
|
|
|
|
|
2019-09-16 19:31:49 +03:00
|
|
|
// EncodeBinary implements Serializable interface.
|
|
|
|
func (tx *ContractTX) EncodeBinary(w *io.BinWriter) {
|
2018-03-14 10:36:59 +01:00
|
|
|
}
|