-
Notifications
You must be signed in to change notification settings - Fork 149
Issues RLT token #646
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
N-010
wants to merge
47
commits into
qubic:develop
Choose a base branch
from
N-010:feature/2025-09-13-RandomLottery
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Issues RLT token #646
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ers, contract state, and balance
…s in lottery contract
…nce state management for lottery epochs
…edule and SetSchedule procedures
…duling logic; update state management for draw hour and schedule
…innerCounter utility function for better clarity and maintainability
…apacity; enhance test expectations for accuracy
…dureCall for consistency
… for improved clarity and maintainability
…improve clarity in usage
…g and revenue calculation to improve clarity and maintainability
…ations for clarity and consistency
… RL_DEFAULT_SCHEDULE for clarity and maintainability
Remove initialize
…ansfers in RandomLottery
# Conflicts: # src/contracts/RandomLottery.h
…d to the current date.
# Conflicts: # test/contract_rl.cpp
# Conflicts: # test/contract_rl.cpp
Issues RLT tokens Gives tokens for every ticket Purchasing a ticket with tokens
Fixes qpi
# Conflicts: # test/contract_rl.cpp
Burns tokens after payment
…ed Add/RemoveAllowedToken, added burning of paid LOTTOs when purchasing tickets, and updated tests to accommodate the new logic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
LOTTOtoken issuanceEnabled purchasing lottery tickets using tokens
Implemented peer-to-peer
LOTTOtoken exchangeAdds random sorting of players before choosing a winner.
With the new update, we only need to run this command prior to network launch:
dd if=/dev/zero bs=16 count=1 >> contract0016.xxxCommand breakdown:
The original size of the contract:
82,040 bytesThe new size of the contract:
82,056 bytesThe size difference is
82,056 - 82,040 = 16 bytesHence, the command will expand the contract to
16 bytes.