Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
3fd5e34
Implement QThirtyFour contract with ticket purchasing and winner sele…
N-010 Nov 8, 2025
d7f0bf3
Add QReservePool and QTF contract definitions with related functional…
N-010 Nov 9, 2025
33ac4cb
Refactor QThirtyFour.h: reposition QTF2 struct definition for clarity
N-010 Nov 10, 2025
47852f8
Test version for QThirtyFour
N-010 Dec 4, 2025
d3c4f53
CalcReserveTopUp
N-010 Dec 7, 2025
edaaf0b
New structs
N-010 Dec 7, 2025
f9bd84d
Fees
N-010 Dec 7, 2025
466fd5a
Refactoring
N-010 Dec 8, 2025
93c76a6
Remove profit transfer from k3 to k2 with FR enabled
N-010 Dec 9, 2025
569f7a8
Adds tests
N-010 Dec 10, 2025
bf67be4
Updates testes
N-010 Dec 11, 2025
be509dd
Does not block the purchase of a ticket at a higher price
N-010 Dec 11, 2025
d05e7dd
- src/contracts/QThirtyFour.h: ensure k4 reseed uses up-to-date QRP…
N-010 Dec 16, 2025
4b0c229
Removes SettlementLocals and aligned_storage_t
N-010 Dec 16, 2025
6aaa82d
Updates tests
N-010 Dec 16, 2025
f94e5a6
Update tests
N-010 Dec 16, 2025
c5d31f9
Update tests
N-010 Dec 16, 2025
2de4c87
Updates index
N-010 Dec 16, 2025
706cbb0
Updates inde• Fix k=4 settlement: protect jackpot reseed from k2/k3 r…
N-010 Dec 19, 2025
c2ec805
Fixes ContractVerify
N-010 Dec 19, 2025
edfe234
Use RL::max
N-010 Dec 19, 2025
7be394d
Fixes ContractVerify
N-010 Dec 19, 2025
981d2f3
Renames Available to Allowed for SC
N-010 Jan 8, 2026
1a82614
Pulse prototype
N-010 Jan 12, 2026
5d6efe4
Tests
N-010 Jan 12, 2026
2c86c4a
Tests
N-010 Jan 12, 2026
ceafdf4
Adds Pulse.h
N-010 Jan 12, 2026
ac91da7
Fixes build
N-010 Jan 12, 2026
09a37f0
Removes POST_INCOMING_TRANSFER
N-010 Jan 12, 2026
c621a90
Adds test
N-010 Jan 13, 2026
cea7068
Fixes reward
N-010 Jan 13, 2026
4b559b3
Fixes for contractverify
N-010 Jan 13, 2026
2b592df
Proportional rule (pro-rata scaling)
N-010 Jan 13, 2026
eb3240e
Removes qrp and qtf
N-010 Jan 13, 2026
86e2764
Change contract index
N-010 Jan 13, 2026
9c964f8
Removes QTF and QRP
N-010 Jan 13, 2026
c8f2220
Fixes contractverify, contract index
N-010 Jan 13, 2026
3871bf2
Fixes build
N-010 Jan 14, 2026
2d295b6
Update GameMechanics
N-010 Jan 14, 2026
272b960
Fixes tests
N-010 Jan 14, 2026
fc7ae70
Merge branch 'develop' into feature/2026-01-12-Pulse
N-010 Jan 14, 2026
642e6ca
Rename test
N-010 Jan 14, 2026
336d82a
Update GameMechanics
N-010 Jan 14, 2026
062b0f9
GetWinners
N-010 Jan 14, 2026
c3ea379
BuyRandomTickets
N-010 Jan 14, 2026
5414f2b
Update BuyRandomTicketsSucceedsAndMovesQHeart
N-010 Jan 14, 2026
c326cd6
Adds comments
N-010 Jan 14, 2026
b9f73e2
Rooms
N-010 Jan 19, 2026
3e54880
Fixes: availableBalance, save data in DepositAutoParticipation
N-010 Jan 21, 2026
870cd35
Adds tests
N-010 Jan 21, 2026
b459859
Fixes for Contract Verify
N-010 Jan 21, 2026
1c27edb
Delete account if deposit is empty
N-010 Jan 21, 2026
9601141
Refactor SetAutoConfig to reject zero desiredTickets and update tests…
N-010 Jan 21, 2026
7b01bfe
Merge branch 'develop' into feature/2026-01-12-Pulse
N-010 Jan 28, 2026
178bcb0
Fixes after review
N-010 Jan 28, 2026
deb7b03
Refactor SetAutoConfig and SetAutoLimits to enforce positive ticket l…
N-010 Jan 30, 2026
760b783
Add ticketCounter to randomData structure for tracking ticket counts
N-010 Jan 30, 2026
a2ed4d4
Refactor ticket handling in Pulse: change data types for ticket count…
N-010 Jan 30, 2026
bc2af79
Add unit tests for prize computation and ticket validation; refactor …
N-010 Jan 30, 2026
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\Pulse.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 @@ -312,6 +312,9 @@
<ClInclude Include="contracts\QDuel.h">
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contracts\Pulse.h">
<Filter>contracts</Filter>
</ClInclude>
<ClInclude Include="contract_core\pre_qpi_def.h">
<Filter>contract_core</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 @@ -241,6 +241,16 @@
#define CONTRACT_STATE2_TYPE QDUEL2
#include "contracts/QDuel.h"

#undef CONTRACT_INDEX
#undef CONTRACT_STATE_TYPE
#undef CONTRACT_STATE2_TYPE

#define PULSE_CONTRACT_INDEX 24
#define CONTRACT_INDEX PULSE_CONTRACT_INDEX
#define CONTRACT_STATE_TYPE PULSE
#define CONTRACT_STATE2_TYPE PULSE2
#include "contracts/Pulse.h"

// new contracts should be added above this line

#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
Expand Down Expand Up @@ -352,6 +362,7 @@ constexpr struct ContractDescription
{"QRP", 199, 10000, sizeof(IPO)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
{"QTF", 199, 10000, sizeof(QTF)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
{"QDUEL", 199, 10000, sizeof(QDUEL)}, // proposal in epoch 197, IPO in 198, construction and first use in 199
{"PULSE", 200, 10000, sizeof(PULSE)}, // proposal in epoch 198, IPO in 199, construction and first use in 200
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
{"TESTEXA", 138, 10000, sizeof(TESTEXA)},
Expand Down Expand Up @@ -471,6 +482,7 @@ static void initializeContracts()
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QRP);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QTF);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(QDUEL);
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(PULSE);
// new contracts should be added above this line
#ifdef INCLUDE_CONTRACT_TEST_EXAMPLES
REGISTER_CONTRACT_FUNCTIONS_AND_PROCEDURES(TESTEXA);
Expand Down
Loading
Loading