diff --git a/app/appmessage/rpc_get_accepting_block_of_tx.go b/app/appmessage/rpc_get_accepting_block_of_tx.go deleted file mode 100644 index 85c0e4f23..000000000 --- a/app/appmessage/rpc_get_accepting_block_of_tx.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_accepting_blockhash_of_tx.go b/app/appmessage/rpc_get_accepting_blockhash_of_tx.go deleted file mode 100644 index 4996befaf..000000000 --- a/app/appmessage/rpc_get_accepting_blockhash_of_tx.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_accepting_blocks_of_txs.go b/app/appmessage/rpc_get_accepting_blocks_of_txs.go deleted file mode 100644 index 09b181cb8..000000000 --- a/app/appmessage/rpc_get_accepting_blocks_of_txs.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_including_block_of_tx.go b/app/appmessage/rpc_get_including_block_of_tx.go deleted file mode 100644 index 69399a00b..000000000 --- a/app/appmessage/rpc_get_including_block_of_tx.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_including_blockhash_of_tx.go b/app/appmessage/rpc_get_including_blockhash_of_tx.go deleted file mode 100644 index 71a86cf78..000000000 --- a/app/appmessage/rpc_get_including_blockhash_of_tx.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_including_blockhashes_of_txs.go b/app/appmessage/rpc_get_including_blockhashes_of_txs.go deleted file mode 100644 index 0315458d0..000000000 --- a/app/appmessage/rpc_get_including_blockhashes_of_txs.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_including_blocks_of_txs.go b/app/appmessage/rpc_get_including_blocks_of_txs.go deleted file mode 100644 index 8e285edee..000000000 --- a/app/appmessage/rpc_get_including_blocks_of_txs.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_tx.go b/app/appmessage/rpc_get_tx.go deleted file mode 100644 index 190916875..000000000 --- a/app/appmessage/rpc_get_tx.go +++ /dev/null @@ -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, - } -} diff --git a/app/appmessage/rpc_get_tx_confirmations.go b/app/appmessage/rpc_get_tx_confirmations.go deleted file mode 100644 index 44ddc9064..000000000 --- a/app/appmessage/rpc_get_tx_confirmations.go +++ /dev/null @@ -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, - } -}