Skip to content
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

Implement get_ledger_sequence #16

Merged
merged 6 commits into from
Jul 30, 2024
Merged

Implement get_ledger_sequence #16

merged 6 commits into from
Jul 30, 2024

Conversation

bbyalcinkaya
Copy link
Member

In the Stellar blockchain, what is typically referred to as a "block" in other blockchains is known as a "ledger." The ledger sequence number represents the current block number.

This PR includes the following changes:

  1. Add configuration cell <ledgerSequenceNumber>
  2. Implement get_ledger_sequence host function
    • Allows contracts to access <ledgerSequenceNumber>.
  3. Implement Kasmer cheatcode kasmer_set_ledger_sequence:
    • Enables Kasmer test contracts to set <ledgerSequenceNumber>.
  4. Add an integration test that exercises these functions.

@bbyalcinkaya bbyalcinkaya marked this pull request as ready for review July 29, 2024 15:35
@bbyalcinkaya bbyalcinkaya requested a review from gtrepta July 29, 2024 15:35
@rv-jenkins rv-jenkins merged commit 3f2e792 into master Jul 30, 2024
3 checks passed
@rv-jenkins rv-jenkins deleted the ledger-seq branch July 30, 2024 05:41
@bbyalcinkaya bbyalcinkaya mentioned this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants