forked from hyperledger-iroha/iroha-dco
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d8c9f06
commit 893897c
Showing
5 changed files
with
54 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
add_subdirectory(instance) | ||
add_subdirectory(instance) | ||
add_subdirectory(transactions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
set(CMAKE_BUILD_TYPE Debug) | ||
|
||
SET(CMAKE_CXX_FLAGS_RELEASE "-Wall -O3 -std=c++14") | ||
SET(CMAKE_CXX_FLAGS_DEBUG "-Wall -Wextra -O0 -std=c++14") | ||
# This is infra knowledge | ||
SET(MESSAGE_PACK_PATH ${PROJECT_SOURCE_DIR}/core/vendor/msgpack-c) | ||
include_directories(${MESSAGE_PACK_PATH}/include) | ||
|
||
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/domain/transactions) | ||
ADD_LIBRARY(transfer_transaction STATIC | ||
transfer_transaction.cpp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,27 @@ | ||
#include "transfer_transaction.hpp" | ||
#include "abstract_transfer_transaction.hpp" | ||
#include <string> | ||
|
||
namespace transfer_transaction { | ||
class TransferTransaction : public AbstractTransaction { | ||
std::string hash; | ||
AbstractTransaction::TransactionType type; | ||
namespace transaction { | ||
|
||
std::string getHash() { | ||
std::string TransferTransaction::getHash() { | ||
return hash; | ||
} | ||
|
||
std::string getRawData() { | ||
std::string TransferTransaction::getRawData() { | ||
//TODO | ||
} | ||
std::string getAsText() { | ||
|
||
std::string TransferTransaction::getAsText() { | ||
//TODO | ||
} | ||
unsigned long long getTimestamp() { | ||
|
||
unsigned long long TransferTransaction::getTimestamp() { | ||
return timestamp; | ||
} | ||
TransactionType getType() { | ||
|
||
abstract_transaction::TransactionType TransferTransaction::getType() { | ||
return type; | ||
} | ||
}; | ||
|
||
}; // namespace transfer_transaction | ||
|
||
}; // namespace transaction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters