264264#define CONTRACT_STATE2_TYPE VOTTUNBRIDGE2
265265#include " contracts/VottunBridge.h"
266266
267- #ifndef NO_QSURV
267+ #ifndef NO_QUSINO
268268
269269#undef CONTRACT_INDEX
270270#undef CONTRACT_STATE_TYPE
271271#undef CONTRACT_STATE2_TYPE
272272
273- #define QSURV_CONTRACT_INDEX 26
274- #define CONTRACT_INDEX QSURV_CONTRACT_INDEX
275- #define CONTRACT_STATE_TYPE QSURV
276- #define CONTRACT_STATE2_TYPE QSURV2
277- #include " contracts/QSurv .h"
273+ #define QUSINO_CONTRACT_INDEX 26
274+ #define CONTRACT_INDEX QUSINO_CONTRACT_INDEX
275+ #define CONTRACT_STATE_TYPE QUSINO
276+ #define CONTRACT_STATE2_TYPE QUSINO2
277+ #include " contracts/Qusino .h"
278278
279279#endif
280280
@@ -389,10 +389,9 @@ constexpr struct ContractDescription
389389 {" QDUEL" , 199 , 10000 , sizeof (QDUEL::StateData)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
390390 {" PULSE" , 204 , 10000 , sizeof (PULSE::StateData)}, // proposal in epoch 202, IPO in 203, construction and first use in 204
391391 {" VOTTUN" , 206 , 10000 , sizeof (VOTTUNBRIDGE::StateData)}, // proposal in epoch 204, IPO in 205, construction and first use in 206
392- #ifndef NO_QSURV
393- { " QSURV " , 207 , 10000 , sizeof (QSURV ::StateData)}, // proposal in epoch 205 , IPO in 206 , construction and first use in 207
392+ #ifndef NO_QUSINO
393+ { " QUSINO " , 208 , 10000 , sizeof (QUSINO ::StateData)}, // proposal in epoch 206 , IPO in 207 , construction and first use in 208
394394#endif
395-
396395 // new contracts should be added above this line
397396#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
398397 {" TESTEXA" , 138 , 10000 , sizeof (TESTEXA::StateData)},
@@ -514,8 +513,8 @@ static void initializeContracts()
514513 REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES (QDUEL);
515514 REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES (PULSE);
516515 REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES (VOTTUNBRIDGE);
517- #ifndef NO_QSURV
518- REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES (QSURV );
516+ #ifndef NO_QUSINO
517+ REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES (QUSINO );
519518#endif
520519 // new contracts should be added above this line
521520#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
@@ -526,6 +525,15 @@ static void initializeContracts()
526525#endif
527526}
528527
528+ // Automatic Contract Padding
529+ // Contracts whose state struct grew this epoch. Update this list each epoch as needed.
530+ // When enabling, replace both lines below, e.g.:
531+ // constexpr unsigned int paddableContracts[] = { RANDOM_CONTRACT_INDEX };
532+ // constexpr unsigned int paddableCount = sizeof(paddableContracts) / sizeof(paddableContracts[0]);
533+ constexpr const unsigned int * paddableContracts = nullptr ;
534+ constexpr unsigned int paddableCount = 0 ;
535+
536+
529537// Class for registering and looking up user procedures independently of input type, for example for notifications
530538class UserProcedureRegistry
531539{
0 commit comments