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

RAM minter #1319

Merged
merged 180 commits into from
Apr 1, 2024
Merged

RAM minter #1319

merged 180 commits into from
Apr 1, 2024

Conversation

ryley-o
Copy link
Contributor

@ryley-o ryley-o commented Jan 11, 2024

Description of the change

Add a new RAM minter.

Please see internal design document for minter implementation details.

Gas Performance

The following are a summary of the gas tests added in /test/minter-suite-minters/RAM/MinterRAM/gas.test.ts, which are intended to represent typical operations performed on the minter.

note: all gas performance scales infinitely with project size

Operation Avg Gas Used Comment
Initial bids 85k first bid uses ~175k gas due to initialization of pointers
bids after max bids reached 107k first bid uses ~150k due to initialization of pointers
gas per admin/artist minted token ~53k assumes bulk-minting chunks of tokens at a time

TODO:

  • Add tests for full coverage of new libraries and contracts

…s to the projectMaxHasBeenInvokedSafe function
e projectMaxHasBeenInvokedSafe to call getInvocationsAvailable
Copy link
Contributor Author

@ryley-o ryley-o left a comment

Choose a reason for hiding this comment

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

✅ Consider this my approval (I can't approve since I opened this PR)
just minor coverage nits is all 🍾 really excited about this!

@ryley-o ryley-o removed the do not merge Not auto-merge-able label Mar 26, 2024
@ryley-o ryley-o enabled auto-merge April 1, 2024 20:20
@ryley-o ryley-o merged commit 0b6473b into main Apr 1, 2024
10 of 11 checks passed
@ryley-o ryley-o deleted the ram-minter branch April 1, 2024 20:34
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.

3 participants