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

snapshot #8

Merged
merged 10 commits into from
Aug 7, 2024
Merged

snapshot #8

merged 10 commits into from
Aug 7, 2024

Conversation

notJoon
Copy link
Member

@notJoon notJoon commented Jul 10, 2024

Description

Create snapshot system similar to Cairo's feature:

  • Adds a Snapshot struct to represent system state at a point in time
  • Implements a Manager to create and retrieve snapshots
  • Provides methods to:
    • Create new snapshots with claimed bitmap and remaining tokens
    • Retrieve snapshots by ID
    • Check if a specific claim was made at the time of a given snapshot
  • Uses efficient bitmap operations for claim tracking
  • Includes timestamp for each snapshot

This implementation allows for capturing and querying historical states of the system.

@notJoon notJoon requested review from mconcat and r3v4s July 10, 2024 07:12
@notJoon notJoon marked this pull request as ready for review August 5, 2024 05:56
@notJoon notJoon self-assigned this Aug 6, 2024
@notJoon notJoon requested a review from AkydA August 6, 2024 05:28
@r3v4s
Copy link
Member

r3v4s commented Aug 6, 2024

please leave reference link for this.

Create snapshot system similar to Cairo's feature:

airdrop/airdrop.gno Outdated Show resolved Hide resolved
airdrop/airdrop_test.gno Outdated Show resolved Hide resolved
airdrop/airdrop.gno Outdated Show resolved Hide resolved
Copy link
Member

@r3v4s r3v4s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bit of codes need to be changed I think.

@notJoon notJoon requested a review from r3v4s August 7, 2024 01:13
@notJoon notJoon merged commit abf202e into main Aug 7, 2024
@notJoon notJoon deleted the snapshot branch August 7, 2024 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants