-
Notifications
You must be signed in to change notification settings - Fork 580
refactor!: StakingAssetHandler is a normal faucet #19136
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
base: next
Are you sure you want to change the base?
refactor!: StakingAssetHandler is a normal faucet #19136
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
50af28c to
d341d96
Compare
5fe09a7 to
f272c2b
Compare
698e95e to
48379c3
Compare
Flakey Tests🤖 says: This CI run detected 1 tests that failed, but were tolerated due to a .test_patterns.yml entry. |
48379c3 to
4984525
Compare
LHerskind
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
took a very quick look mainly on the staking asset handler.
| validityPeriodInSeconds: 604_800, domain: "testnet.aztec.network", scope: "personhood", devMode: false | ||
| }) | ||
| }); | ||
| // vm.prank(0x3c2D61cC98DED634E8bbbFC1fA071fE4b92E1250); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
| _triggerDeposit(rollup, activationThreshold, _attester, _publicKeyG1, _publicKeyG2, _signature); | ||
| } | ||
| // Validate passport proof for sybil resistance | ||
| bytes32 nullifier = _validatePassportProof(msg.sender, _params); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it on purpose that the nullifier is not used in any state updates but just used for the event?
Got misled by the naming 😂 Thought the validate meant that it just validated but it also stores the nullifier.

Refactors the StakingAssetHandler to function like a "normal" faucet. That is, the user submits a zkpassport proof and gets a lump sum of tokens (1M by default).
To do so, it bumps the zkpassport version to 0.15.0, and so needs to bump solc version to 0.8.30.
Contract deployed to https://sepolia.etherscan.io/address/0xD966ce81B6E6eD5A96219DDF896258CBd04eaa69
It also demonstrates use of the new "updating-changelog" claude skill. I asked claude code to "update the changelogs".