2018-03-14 09:36:59 +00:00
|
|
|
package transaction
|
|
|
|
|
|
|
|
import (
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
|
|
|
// ContractTX represents a contract transaction.
|
|
|
|
// This TX has not special attributes.
|
|
|
|
type ContractTX struct{}
|
|
|
|
|
2018-12-21 09:32:18 +00:00
|
|
|
func NewContractTX() *Transaction {
|
|
|
|
return &Transaction{
|
2019-01-25 11:20:35 +00:00
|
|
|
Type: ContractType,
|
2018-12-21 09:32:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-14 09:36:59 +00:00
|
|
|
// DecodeBinary implements the Payload interface.
|
|
|
|
func (tx *ContractTX) DecodeBinary(r io.Reader) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// EncodeBinary implements the Payload interface.
|
|
|
|
func (tx *ContractTX) EncodeBinary(w io.Writer) error {
|
|
|
|
return nil
|
|
|
|
}
|
2019-08-30 08:28:30 +00:00
|
|
|
|
|
|
|
func (tx *ContractTX) Size() int {
|
|
|
|
return 0
|
|
|
|
}
|