Skip to content

Conversation

@0xfirefist
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Mar 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Mar 11, 2024 8:22pm
xc-admin-frontend ⬜️ Ignored (Inspect) Visit Preview Mar 11, 2024 8:22pm

@0xfirefist 0xfirefist marked this pull request as ready for review March 7, 2024 09:04
@0xfirefist 0xfirefist force-pushed the entropy-v2/contract branch from b908cf3 to c5a9ec1 Compare March 7, 2024 09:07
Copy link
Contributor

@m30m m30m left a comment

Choose a reason for hiding this comment

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

Please fix the comments before merge.
Can you attach a gas benchmark too? Just to make sure the additional helper functions we added are not increasing the gas usage too much.

Copy link
Contributor

@jayantk jayantk left a comment

Choose a reason for hiding this comment

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

thanks this looks good to me. I see amin had a comment about tests, but feel free to merge without another look from me.

@0xfirefist 0xfirefist merged commit e7bf47a into main Mar 11, 2024
@0xfirefist 0xfirefist deleted the entropy-v2/contract branch March 11, 2024 20:28
@0xfirefist
Copy link
Contributor Author

Relevant gas usage changes:

testSetProviderUriByUnregistered() (gas: 0 (0.000%)) 
testGetFee() (gas: 22 (0.017%)) 
testOverflow() (gas: 50 (0.039%)) 
testGetProviderInfo() (gas: -43 (-0.094%)) 
testSetProviderUri() (gas: -130 (-0.197%)) 
testSetProviderFee() (gas: -119 (-0.229%)) 
testNoSuchProvider() (gas: 55 (0.236%)) 
testSetProviderFeeByUnregistered() (gas: 44 (0.242%)) 
testFees() (gas: 3456 (0.375%)) 
testConcurrentRequests() (gas: 6601 (0.854%)) 
testProviderCommitmentRotation() (gas: 6366 (0.955%)) 
testOutOfRandomness() (gas: 90026 (1.003%)) 
testCheckOnBlockNumberWhenBlockHashUsed() (gas: 2310 (1.300%)) 
testNoCheckOnBlockNumberWhenNoBlockHashUsed() (gas: 4956 (1.332%)) 
testAuthorization() (gas: 2357 (1.339%)) 
testBlockhash() (gas: 2504 (1.461%)) 
testDefaultProvider() (gas: 2880 (1.518%)) 
testAdversarialReveal() (gas: 17808 (1.960%)) 
testBasicFlow() (gas: 11466 (6.361%)) 
Overall gas change: 150609 (1.077%)

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.

4 participants