Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Qubic.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
<ClInclude Include="contracts\Pulse.h" />
<ClInclude Include="contracts\Escrow.h" />
<ClInclude Include="contracts\GGWP.h" />
<ClInclude Include="contracts\QLoan.h" />
<ClInclude Include="contracts\TestExampleA.h" />
<ClInclude Include="contracts\TestExampleB.h" />
<ClInclude Include="contracts\TestExampleC.h" />
Expand Down
3 changes: 3 additions & 0 deletions src/Qubic.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
<ClInclude Include="contracts\GGWP.h">
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contracts\QLoan.h">
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contract_core\contract_def.h">
<Filter>contract_core</Filter>
</ClInclude>
Expand Down
20 changes: 20 additions & 0 deletions src/contract_core/contract_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,20 @@
#define CONTRACT_STATE2_TYPE WOLFPACK2
#include "contracts/GGWP.h"

#ifndef NO_QLOAN

#undef CONTRACT_INDEX
#undef CONTRACT_STATE_TYPE
#undef CONTRACT_STATE2_TYPE

#define QLOAN_CONTRACT_INDEX 29
#define CONTRACT_INDEX QLOAN_CONTRACT_INDEX
#define CONTRACT_STATE_TYPE QLOAN
#define CONTRACT_STATE2_TYPE QLOAN2
#include "contracts/Qloan.h"

#endif

// new contracts should be added above this line

#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
Expand Down Expand Up @@ -416,6 +430,9 @@ constexpr struct ContractDescription
{"QUSINO", 208, 10000, sizeof(QUSINO::StateData)}, // proposal in epoch 206, IPO in 207, construction and first use in 208
{"ESCROW", 210, 10000, sizeof(ESCROW::StateData)}, // proposal in epoch 208, IPO in 209, construction and first use in 210
{"GGWP", 218, 10000, sizeof(WOLFPACK::StateData)}, // proposal in epoch 216, IPO in 217, construction and first use in 218
#ifndef NO_QLOAN
{"QLOAN", 228, 10000, sizeof(QLOAN::StateData)}, // proposal in epoch 226, IPO in 227, construction and first use in 228
#endif
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
{"TESTEXA", 138, 10000, sizeof(TESTEXA::StateData)},
Expand Down Expand Up @@ -548,6 +565,9 @@ static void initializeContracts()
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QUSINO);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(ESCROW);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(WOLFPACK);
#ifndef NO_QLOAN
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QLOAN);
#endif
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA);
Expand Down
Loading
Loading