|
215 | 215 | #define CONTRACT_STATE2_TYPE QRWA2 |
216 | 216 | #include "contracts/qRWA.h" |
217 | 217 |
|
| 218 | +#ifndef NO_QDUEL |
| 219 | + |
218 | 220 | #undef CONTRACT_INDEX |
219 | 221 | #undef CONTRACT_STATE_TYPE |
220 | 222 | #undef CONTRACT_STATE2_TYPE |
|
225 | 227 | #define CONTRACT_STATE2_TYPE QDUEL2 |
226 | 228 | #include "contracts/QDuel.h" |
227 | 229 |
|
| 230 | +#endif |
| 231 | + |
228 | 232 | // new contracts should be added above this line |
229 | 233 |
|
230 | 234 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
@@ -333,7 +337,9 @@ constexpr struct ContractDescription |
333 | 337 | {"QIP", 189, 10000, sizeof(QIP)}, // proposal in epoch 187, IPO in 188, construction and first use in 189 |
334 | 338 | {"QRAFFLE", 192, 10000, sizeof(QRAFFLE)}, // proposal in epoch 190, IPO in 191, construction and first use in 192 |
335 | 339 | {"QRWA", 197, 10000, sizeof(QRWA)}, // proposal in epoch 195, IPO in 196, construction and first use in 197 |
| 340 | +#ifndef NO_QDUEL |
336 | 341 | {"QDUEL", 199, 10000, sizeof(QDUEL)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
| 342 | +#endif |
337 | 343 | // new contracts should be added above this line |
338 | 344 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
339 | 345 | {"TESTEXA", 138, 10000, sizeof(TESTEXA)}, |
@@ -450,7 +456,9 @@ static void initializeContracts() |
450 | 456 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QIP); |
451 | 457 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRAFFLE); |
452 | 458 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRWA); |
| 459 | +#ifndef NO_QDUEL |
453 | 460 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL); |
| 461 | +#endif |
454 | 462 | // new contracts should be added above this line |
455 | 463 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
456 | 464 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA); |
|
0 commit comments