|
244 | 244 | #define CONTRACT_STATE2_TYPE QDUEL2 |
245 | 245 | #include "contracts/QDuel.h" |
246 | 246 |
|
| 247 | +#ifndef NO_PULSE |
| 248 | + |
| 249 | +#undef CONTRACT_INDEX |
| 250 | +#undef CONTRACT_STATE_TYPE |
| 251 | +#undef CONTRACT_STATE2_TYPE |
| 252 | + |
| 253 | +#define PULSE_CONTRACT_INDEX 24 |
| 254 | +#define CONTRACT_INDEX PULSE_CONTRACT_INDEX |
| 255 | +#define CONTRACT_STATE_TYPE PULSE |
| 256 | +#define CONTRACT_STATE2_TYPE PULSE2 |
| 257 | +#include "contracts/Pulse.h" |
| 258 | + |
| 259 | +#endif |
| 260 | + |
247 | 261 | // new contracts should be added above this line |
248 | 262 |
|
249 | 263 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
@@ -355,6 +369,9 @@ constexpr struct ContractDescription |
355 | 369 | {"QRP", 199, 10000, sizeof(IPO)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
356 | 370 | {"QTF", 199, 10000, sizeof(QTF)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
357 | 371 | {"QDUEL", 199, 10000, sizeof(QDUEL)}, // proposal in epoch 197, IPO in 198, construction and first use in 199 |
| 372 | +#ifndef NO_PULSE |
| 373 | + {"PULSE", 204, 10000, sizeof(PULSE)}, // proposal in epoch 202, IPO in 203, construction and first use in 204 |
| 374 | +#endif |
358 | 375 | // new contracts should be added above this line |
359 | 376 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
360 | 377 | {"TESTEXA", 138, 10000, sizeof(TESTEXA)}, |
@@ -474,6 +491,9 @@ static void initializeContracts() |
474 | 491 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRP); |
475 | 492 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QTF); |
476 | 493 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL); |
| 494 | +#ifndef NO_PULSE |
| 495 | + REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(PULSE); |
| 496 | +#endif |
477 | 497 | // new contracts should be added above this line |
478 | 498 | #ifdef INCLUDE_CONTRACT_TEST_EXAMPLES |
479 | 499 | REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA); |
|
0 commit comments