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 @@ -48,6 +48,7 @@
<ClInclude Include="contracts\QIP.h" />
<ClInclude Include="contracts\QReservePool.h" />
<ClInclude Include="contracts\QThirtyFour.h" />
<ClInclude Include="contracts\QSurv.h" />
<ClInclude Include="contracts\Pulse.h" />
<ClInclude Include="contracts\TestExampleA.h" />
<ClInclude Include="contracts\TestExampleB.h" />
Expand Down
4 changes: 4 additions & 0 deletions src/Qubic.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@
<ClInclude Include="contracts\QDuel.h">
<Filter>contracts</Filter>
</ClInclude>

<ClInclude Include="contracts\QSurv.h">
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contracts\Pulse.h">
<Filter>contracts</Filter>
</ClInclude>
Expand Down
12 changes: 12 additions & 0 deletions src/contract_core/contract_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@
#define CONTRACT_STATE2_TYPE PULSE2
#include "contracts/Pulse.h"

#undef CONTRACT_INDEX
#undef CONTRACT_STATE_TYPE
#undef CONTRACT_STATE2_TYPE

#define QSURV_CONTRACT_INDEX 25
#define CONTRACT_INDEX QSURV_CONTRACT_INDEX
#define CONTRACT_STATE_TYPE QSURV
#define CONTRACT_STATE2_TYPE QSURV2
#include "contracts/QSurv.h"

// new contracts should be added above this line

#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
Expand Down Expand Up @@ -364,6 +374,7 @@ constexpr struct ContractDescription
{"QTF", 199, 10000, sizeof(QTF::StateData)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
{"QDUEL", 199, 10000, sizeof(QDUEL::StateData)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
{"PULSE", 204, 10000, sizeof(PULSE::StateData)}, // proposal in epoch 202, IPO in 203, construction and first use in 204
{"QSURV", 205, 10000, sizeof(QSURV::StateData)}, // proposal in epoch 203, IPO in 204, construction and first use in 205
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
{"TESTEXA", 138, 10000, sizeof(TESTEXA::StateData)},
Expand Down Expand Up @@ -484,6 +495,7 @@ static void initializeContracts()
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QTF);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(PULSE);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QSURV);
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA);
Expand Down
Loading