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

feat: PerOpInflator #3

Merged
merged 12 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/Openzeppelin/openzeppelin-contracts
[submodule "lib/p256-verifier"]
path = lib/p256-verifier
url = https://github.com/daimo-eth/p256-verifier
157 changes: 157 additions & 0 deletions broadcast/Deploy.s.sol/8453/deployDaimoOpInflator-latest.json

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions broadcast/Deploy.s.sol/8453/deployPerOpInflator-latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"transactions": [
{
"hash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
"transactionType": "CREATE2",
"contractName": "PerOpInflator",
"contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"function": null,
"arguments": [
"0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
],
"transaction": {
"type": "0x02",
"from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
"to": "0x4e59b44847b379578588920ca78fbf26c0b4956c",
"gas": "0x1303cd",
"value": "0x0",
"data": "0x0000000000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b5060405162000f8938038062000f8983398101604081905261003191610173565b61003a33610049565b61004381610099565b506101a3565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100a1610117565b6001600160a01b03811661010b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61011481610049565b50565b6000546001600160a01b031633146101715760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610102565b565b60006020828403121561018557600080fd5b81516001600160a01b038116811461019c57600080fd5b9392505050565b610dd680620001b36000396000f3fe608060405234801561001057600080fd5b50600436106100935760003560e01c806345c706581161006657806345c7065814610115578063715018a61461013e5780638da5cb5b14610146578063e5f7e72f14610157578063f2fde38b1461019257600080fd5b806303a353bd146100985780630636ef61146100c25780631c31f710146100d757806338af3eed146100ea575b600080fd5b6100ab6100a63660046107cb565b6101a5565b6040516100b992919061088d565b60405180910390f35b6100d56100d03660046109e5565b610495565b005b6100d56100e5366004610a1c565b61066a565b6001546100fd906001600160a01b031681565b6040516001600160a01b0390911681526020016100b9565b6100fd610123366004610a40565b6002602052600090815260409020546001600160a01b031681565b6100d5610694565b6000546001600160a01b03166100fd565b61017d610165366004610a1c565b60036020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016100b9565b6100d56101a0366004610a1c565b6106a8565b60606000806101b76001828688610a5b565b6101c091610a85565b60f81c905060008167ffffffffffffffff8111156101e0576101e0610ab5565b60405190808252806020026020018201604052801561027757816020015b61026460405180610160016040528060006001600160a01b03168152602001600081526020016060815260200160608152602001600081526020016000815260200160008152602001600081526020016000815260200160608152602001606081525090565b8152602001906001900390816101fe5790505b509050600160005b8381101561042b576000888389610297826004610ae1565b926102a493929190610a5b565b6102ad91610afa565b60e01c9050600089896102c1866004610ae1565b906102cd876006610ae1565b926102da93929190610a5b565b6102e391610b28565b60f01c90506102f3600685610ae1565b63ffffffff83166000908152600260205260409020549094506001600160a01b0316806103595760405162461bcd60e51b815260206004820152600f60248201526e109859081a5b999b185d1bdc881251608a1b60448201526064015b60405180910390fd5b6001600160a01b0381166303a353bd8c878d61037961ffff881683610ae1565b9261038693929190610a5b565b6040518363ffffffff1660e01b81526004016103a3929190610b56565b600060405180830381865afa1580156103c0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526103e89190810190610c42565b8685815181106103fa576103fa610d71565b602090810291909101015261041361ffff831686610ae1565b9450505050808061042390610d87565b91505061027f565b5080861461047b5760405162461bcd60e51b815260206004820152601760248201527f57726f6e6720636f6d70726573736564206c656e6774680000000000000000006044820152606401610350565b506001549093506001600160a01b03169150509250929050565b8163ffffffff166000036104eb5760405162461bcd60e51b815260206004820152601760248201527f496e666c61746f722049442063616e6e6f7420626520300000000000000000006044820152606401610350565b6001600160a01b0381166105415760405162461bcd60e51b815260206004820152601c60248201527f496e666c61746f7220616464726573732063616e6e6f742062652030000000006044820152606401610350565b63ffffffff82166000908152600260205260409020546001600160a01b0316156105ad5760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b6001600160a01b03811660009081526003602052604090205463ffffffff16156106195760405162461bcd60e51b815260206004820152601b60248201527f496e666c61746f7220616c7265616479207265676973746572656400000000006044820152606401610350565b63ffffffff909116600081815260026020908152604080832080546001600160a01b039096166001600160a01b0319909616861790559382526003905291909120805463ffffffff19169091179055565b610672610721565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b61069c610721565b6106a6600061077b565b565b6106b0610721565b6001600160a01b0381166107155760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610350565b61071e8161077b565b50565b6000546001600160a01b031633146106a65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610350565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600080602083850312156107de57600080fd5b823567ffffffffffffffff808211156107f657600080fd5b818501915085601f83011261080a57600080fd5b81358181111561081957600080fd5b86602082850101111561082b57600080fd5b60209290920196919550909350505050565b60005b83811015610858578181015183820152602001610840565b50506000910152565b6000815180845261087981602086016020860161083d565b601f01601f19169290920160200192915050565b60006040808301818452808651808352606092508286019150828160051b8701016020808a0160005b8481101561099157898403605f19018652815180516001600160a01b03168552610160848201518587015289820151818b8801526108f682880182610861565b915050888201518682038a88015261090e8282610861565b6080848101519089015260a0808501519089015260c0808501519089015260e08085015190890152610100808501519089015261012080850151898303828b0152919350915061095e8382610861565b92505050610140808301519250868203818801525061097d8183610861565b9785019795505050908201906001016108b6565b50508196506109aa8189018a6001600160a01b03169052565b5050505050509392505050565b803563ffffffff811681146109cb57600080fd5b919050565b6001600160a01b038116811461071e57600080fd5b600080604083850312156109f857600080fd5b610a01836109b7565b91506020830135610a11816109d0565b809150509250929050565b600060208284031215610a2e57600080fd5b8135610a39816109d0565b9392505050565b600060208284031215610a5257600080fd5b610a39826109b7565b60008085851115610a6b57600080fd5b83861115610a7857600080fd5b5050820193919092039150565b6001600160f81b03198135818116916001851015610aad5780818660010360031b1b83161692505b505092915050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b80820180821115610af457610af4610acb565b92915050565b6001600160e01b03198135818116916004851015610aad5760049490940360031b84901b1690921692915050565b6001600160f01b03198135818116916002851015610aad5760029490940360031b84901b1690921692915050565b60208152816020820152818360408301376000818301604090810191909152601f909201601f19160101919050565b604051610160810167ffffffffffffffff81118282101715610ba957610ba9610ab5565b60405290565b80516109cb816109d0565b600082601f830112610bcb57600080fd5b815167ffffffffffffffff80821115610be657610be6610ab5565b604051601f8301601f19908116603f01168101908282118183101715610c0e57610c0e610ab5565b81604052838152866020858801011115610c2757600080fd5b610c3884602083016020890161083d565b9695505050505050565b600060208284031215610c5457600080fd5b815167ffffffffffffffff80821115610c6c57600080fd5b908301906101608286031215610c8157600080fd5b610c89610b85565b610c9283610baf565b815260208301516020820152604083015182811115610cb057600080fd5b610cbc87828601610bba565b604083015250606083015182811115610cd457600080fd5b610ce087828601610bba565b6060830152506080830151608082015260a083015160a082015260c083015160c082015260e083015160e08201526101008084015181830152506101208084015183811115610d2e57600080fd5b610d3a88828701610bba565b8284015250506101408084015183811115610d5457600080fd5b610d6088828701610bba565b918301919091525095945050505050565b634e487b7160e01b600052603260045260246000fd5b600060018201610d9957610d99610acb565b506001019056fea2646970667358221220d3d0ac0b332cc9eda0f463ceeb3551dd051f6c8a18560ff7acde6f1d56269e3364736f6c634300081500330000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
"nonce": "0x75b",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0xa8efc39f3b8eb08b506ba403229588f645fbccb9f6775444671f072a8319c4d6",
"transactionType": "CALL",
"contractName": "PerOpInflator",
"contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"function": "setBeneficiary(address)",
"arguments": [
"0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7"
],
"transaction": {
"type": "0x02",
"from": "0x2a6d311394184eeb6df8fbbf58626b085374ffe7",
"to": "0x24aa17a5a5d14bd3f5144a4a963ee8cdfae6b511",
"gas": "0x10765",
"value": "0x0",
"data": "0x1c31f7100000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7",
"nonce": "0x75c",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
"transactionIndex": "0x1",
"blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
"blockNumber": "0x816974",
"from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"cumulativeGasUsed": "0xdb79f",
"gasUsed": "0xd006a",
"contractAddress": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"logs": [
{
"address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c"
],
"data": "0x",
"blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
"blockNumber": "0x816974",
"transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
"transactionIndex": "0x1",
"logIndex": "0x0",
"removed": false
},
{
"address": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000004e59b44847b379578588920ca78fbf26c0b4956c",
"0x0000000000000000000000002a6d311394184eeb6df8fbbf58626b085374ffe7"
],
"data": "0x",
"blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
"blockNumber": "0x816974",
"transactionHash": "0x7d0b8d983eba848e2b3a22e846773750e733f59ebdeeae087c73b12b53e4bed5",
"transactionIndex": "0x1",
"logIndex": "0x1",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000003000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000080000000000000000020000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000000000000020000000000000000000000000000000000080000000000000000000000000000000",
"type": "0x2",
"effectiveGasPrice": "0xb2d05e3c"
},
{
"transactionHash": "0xa8efc39f3b8eb08b506ba403229588f645fbccb9f6775444671f072a8319c4d6",
"transactionIndex": "0x2",
"blockHash": "0xfaf87d09295b86be7b8a0b1c4f01fda21b0cda1133d8c0455a73c660419b7aae",
"blockNumber": "0x816974",
"from": "0x2A6d311394184EeB6Df8FBBF58626B085374Ffe7",
"to": "0x24aA17a5A5D14Bd3f5144a4a963ee8CDfAe6B511",
"cumulativeGasUsed": "0xe6bb9",
"gasUsed": "0xb41a",
"contractAddress": null,
"logs": [],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"type": "0x2",
"effectiveGasPrice": "0xb2d05e3c"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1703751647,
"chain": 8453,
"multi": false,
"commit": "dd015c0"
}
Loading