remove some more

This commit is contained in:
D-Stacks 2022-10-16 11:40:35 +02:00
parent 231633f31a
commit f820acd7df
9 changed files with 0 additions and 384 deletions

View File

@ -1,43 +0,0 @@
package appmessage
// GetAcceptingBlockOfTxRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlockOfTxRequestMessage struct {
baseMessage
TxID string
IncludeTransactions bool
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlockOfTxRequestMessage) Command() MessageCommand {
return CmdGetAcceptingBlockOfTxRequestMessage
}
// NewGetAcceptingBlockOfTxRequest returns a instance of the message
func NewGetAcceptingBlockOfTxRequest(txID string, includeTransactions bool) *GetAcceptingBlockOfTxRequestMessage {
return &GetAcceptingBlockOfTxRequestMessage{
TxID: txID,
IncludeTransactions: includeTransactions,
}
}
// GetAcceptingBlockOfTxResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlockOfTxResponseMessage struct {
baseMessage
Block *RPCBlock
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlockOfTxResponseMessage) Command() MessageCommand {
return CmdGetAcceptingBlockOfTxResponseMessage
}
// NewGetAcceptingBlockOfTxResponse returns an instance of the message
func NewGetAcceptingBlockOfTxResponse(block *RPCBlock) *GetAcceptingBlockOfTxResponseMessage {
return &GetAcceptingBlockOfTxResponseMessage{
Block: block,
}
}

View File

@ -1,41 +0,0 @@
package appmessage
// GetAcceptingBlockHashOfTxRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlockHashOfTxRequestMessage struct {
baseMessage
TxID string
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlockHashOfTxRequestMessage) Command() MessageCommand {
return CmdGetAcceptingBlockHashOfTxRequestMessage
}
// NewGetAcceptingBlockHashOfTxRequest returns a instance of the message
func NewGetAcceptingBlockHashOfTxRequest(txID string) *GetAcceptingBlockHashOfTxRequestMessage {
return &GetAcceptingBlockHashOfTxRequestMessage{
TxID: txID,
}
}
// GetAcceptingBlockHashOfTxResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlockHashOfTxResponseMessage struct {
baseMessage
Hash string
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlockHashOfTxResponseMessage) Command() MessageCommand {
return CmdGetAcceptingBlockHashOfTxResponseMessage
}
// NewGetAcceptingBlockHashOfTxResponse returns an instance of the message
func NewGetAcceptingBlockHashOfTxResponse(hash string) *GetAcceptingBlockHashOfTxResponseMessage {
return &GetAcceptingBlockHashOfTxResponseMessage{
Hash: hash,
}
}

View File

@ -1,50 +0,0 @@
package appmessage
// TxIDBlockPair is an appmessage corresponding to
// its respective RPC message
type TxIDBlockPair struct {
TxID string
Block *RPCBlock
}
// GetAcceptingBlocksOfTxsRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlocksOfTxsRequestMessage struct {
baseMessage
TxIDs []string
IncludeTransactions bool
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlocksOfTxsRequestMessage) Command() MessageCommand {
return CmdGetAcceptingBlocksOfTxsRequestMessage
}
// NewGetAcceptingBlocksOfTxsRequest returns a instance of the message
func NewGetAcceptingBlocksOfTxsRequest(txIDs []string, includeTransactions bool) *GetAcceptingBlocksOfTxsRequestMessage {
return &GetAcceptingBlocksOfTxsRequestMessage{
TxIDs: txIDs,
IncludeTransactions: includeTransactions,
}
}
// GetAcceptingBlocksOfTxsResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetAcceptingBlocksOfTxsResponseMessage struct {
baseMessage
TxIDBlockPairs []*TxIDBlockPair
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetAcceptingBlocksOfTxsResponseMessage) Command() MessageCommand {
return CmdGetAcceptingBlocksOfTxsResponseMessage
}
// NewGetAcceptingBlocksOfTxsResponse returns an instance of the message
func NewGetAcceptingBlocksOfTxsResponse(txIDBlockPairs []*TxIDBlockPair) *GetAcceptingBlocksOfTxsResponseMessage {
return &GetAcceptingBlocksOfTxsResponseMessage{
TxIDBlockPairs: txIDBlockPairs,
}
}

View File

@ -1,43 +0,0 @@
package appmessage
// GetIncludingBlockOfTxRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockOfTxRequestMessage struct {
baseMessage
TxID string
IncludeTransactions bool
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockOfTxRequestMessage) Command() MessageCommand {
return CmdGetIncludingBlockOfTxRequestMessage
}
// NewGetIncludingBlockOfTxRequest returns a instance of the message
func NewGetIncludingBlockOfTxRequest(txID string, includeTransactions bool) *GetIncludingBlockOfTxRequestMessage {
return &GetIncludingBlockOfTxRequestMessage{
TxID: txID,
IncludeTransactions: includeTransactions,
}
}
// GetIncludingBlockOfTxResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockOfTxResponseMessage struct {
baseMessage
Block *RPCBlock
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockOfTxResponseMessage) Command() MessageCommand {
return CmdGetIncludingBlockOfTxResponseMessage
}
// NewGetIncludingBlockOfTxResponse returns an instance of the message
func NewGetIncludingBlockOfTxResponse(block *RPCBlock) *GetIncludingBlockOfTxResponseMessage {
return &GetIncludingBlockOfTxResponseMessage{
Block: block,
}
}

View File

@ -1,41 +0,0 @@
package appmessage
// GetIncludingBlockHashOfTxRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockHashOfTxRequestMessage struct {
baseMessage
TxID string
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockHashOfTxRequestMessage) Command() MessageCommand {
return CmdGetIncludingBlockHashOfTxRequestMessage
}
// NewGetIncludingBlockHashOfTxRequest returns a instance of the message
func NewGetIncludingBlockHashOfTxRequest(txID string) *GetIncludingBlockHashOfTxRequestMessage {
return &GetIncludingBlockHashOfTxRequestMessage{
TxID: txID,
}
}
// GetIncludingBlockHashOfTxResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockHashOfTxResponseMessage struct {
baseMessage
Hash string
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockHashOfTxResponseMessage) Command() MessageCommand {
return CmdGetIncludingBlockHashOfTxResponseMessage
}
// NewGetIncludingBlockHashOfTxResponse returns an instance of the message
func NewGetIncludingBlockHashOfTxResponse(hash string) *GetIncludingBlockHashOfTxResponseMessage {
return &GetIncludingBlockHashOfTxResponseMessage{
Hash: hash,
}
}

View File

@ -1,41 +0,0 @@
package appmessage
// GetIncludingBlockHashesOfTxsRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockHashesOfTxsRequestMessage struct {
baseMessage
TxIDs []string
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockHashesOfTxsRequestMessage) Command() MessageCommand {
return CmdGetIncludingBlockHashesOfTxsRequestMessage
}
// NewGetIncludingBlockHashesOfTxsRequest returns a instance of the message
func NewGetIncludingBlockHashesOfTxsRequest(txIDs []string) *GetIncludingBlockHashesOfTxsRequestMessage {
return &GetIncludingBlockHashesOfTxsRequestMessage{
TxIDs: txIDs,
}
}
// GetIncludingBlockHashesOfTxsResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlockHashesOfTxsResponseMessage struct {
baseMessage
TxIDBlockHashPairs []*TxIDBlockHashPair
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlockHashesOfTxsResponseMessage) Command() MessageCommand {
return CmdGetIncludingBlockHashesOfTxsResponseMessage
}
// NewGetIncludingBlockHashesOfTxsResponse returns an instance of the message
func NewGetIncludingBlockHashesOfTxsResponse(txIDBlockHashPairs []*TxIDBlockHashPair) *GetIncludingBlockHashesOfTxsResponseMessage {
return &GetIncludingBlockHashesOfTxsResponseMessage{
TxIDBlockHashPairs: txIDBlockHashPairs,
}
}

View File

@ -1,43 +0,0 @@
package appmessage
// GetIncludingBlocksOfTxsRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlocksOfTxsRequestMessage struct {
baseMessage
TxIDs []string
IncludeTransactions bool
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlocksOfTxsRequestMessage) Command() MessageCommand {
return CmdGetIncludingBlocksOfTxsRequestMessage
}
// NewGetIncludingBlocksOfTxsRequest returns a instance of the message
func NewGetIncludingBlocksOfTxsRequest(txIDs []string, includeTransactions bool) *GetIncludingBlocksOfTxsRequestMessage {
return &GetIncludingBlocksOfTxsRequestMessage{
TxIDs: txIDs,
IncludeTransactions: includeTransactions,
}
}
// GetIncludingBlocksOfTxsResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetIncludingBlocksOfTxsResponseMessage struct {
baseMessage
TxIDBlockPairs []*TxIDBlockPair
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetIncludingBlocksOfTxsResponseMessage) Command() MessageCommand {
return CmdGetIncludingBlocksOfTxsResponseMessage
}
// NewGetIncludingBlocksOfTxsResponse returns an instance of the message
func NewGetIncludingBlocksOfTxsResponse(txIDBlockPairs []*TxIDBlockPair) *GetIncludingBlocksOfTxsResponseMessage {
return &GetIncludingBlocksOfTxsResponseMessage{
TxIDBlockPairs: txIDBlockPairs,
}
}

View File

@ -1,41 +0,0 @@
package appmessage
// GetTxRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetTxRequestMessage struct {
baseMessage
TxID string
}
// Command returns the protocol command string for the message
func (msg *GetTxRequestMessage) Command() MessageCommand {
return CmdGetTxRequestMessage
}
// NewGetTxRequest returns a instance of the message
func NewGetTxRequest(txID string) *GetTxRequestMessage {
return &GetTxRequestMessage{
TxID: txID,
}
}
// GetTxResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetTxResponseMessage struct {
baseMessage
Transaction *RPCTransaction
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetTxResponseMessage) Command() MessageCommand {
return CmdGetTxResponseMessage
}
// NewGetTxResponse returns an instance of the message
func NewGetTxResponse(transaction *RPCTransaction) *GetTxResponseMessage {
return &GetTxResponseMessage{
Transaction: transaction,
}
}

View File

@ -1,41 +0,0 @@
package appmessage
// GetTxConfirmationsRequestMessage is an appmessage corresponding to
// its respective RPC message
type GetTxConfirmationsRequestMessage struct {
baseMessage
TxID string
}
// Command returns the protocol command string for the message
func (msg *GetTxConfirmationsRequestMessage) Command() MessageCommand {
return CmdGetTxConfirmationsRequestMessage
}
// NewGetTxConfirmationsRequest returns a instance of the message
func NewGetTxConfirmationsRequest(txID string) *GetTxConfirmationsRequestMessage {
return &GetTxConfirmationsRequestMessage{
TxID: txID,
}
}
// GetTxConfirmationsResponseMessage is an appmessage corresponding to
// its respective RPC message
type GetTxConfirmationsResponseMessage struct {
baseMessage
Confirmations int64
Error *RPCError
}
// Command returns the protocol command string for the message
func (msg *GetTxConfirmationsResponseMessage) Command() MessageCommand {
return CmdGetTxConfirmationsResponseMessage
}
// NewGetTxConfirmationsResponse returns an instance of the message
func NewGetTxConfirmationsResponse(confirmations int64) *GetTxConfirmationsResponseMessage {
return &GetTxConfirmationsResponseMessage{
Confirmations: confirmations,
}
}