Skip to content

Commit

Permalink
Raw commands in case bytecode does not match
Browse files Browse the repository at this point in the history
  • Loading branch information
eloi010 committed Nov 29, 2023
1 parent 3c861f6 commit 8bc8030
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions script/RawTXDeployAccFact-0.5.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cast send 0x4e59b44847b379578588920ca78fbf26c0b4956c 0x050000000000000000000000000000000000000000000000000000000000005060806040523480156200001157600080fd5b50604051620019fb380380620019fb83398101604081905262000034916200025f565b878787620000423362000189565b6001600160a01b0383166200006a576040516342bcdf7f60e11b815260040160405180910390fd5b6001600160a01b0382163b15806200008a57506001600160a01b0381163b155b15620000a9576040516309ee12d560e01b815260040160405180910390fd5b620000b48362000189565b600280546001600160a01b039384166001600160a01b031991821617909155600380549290931691161790555084821080620000fa5750620000f78385620002e3565b85105b156200011957604051631a37e0af60e11b815260040160405180910390fd5b60048590556005849055600683905560078290556001600160a01b03811662000155576040516342bcdf7f60e11b815260040160405180910390fd5b600880546001600160a01b0319166001600160a01b0383161790556200017b86620001a7565b50505050505050506200030b565b600180546001600160a01b0319169055620001a481620001f2565b50565b6001600160a01b0381163b620001d0576040516309ee12d560e01b815260040160405180910390fd5b600380546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160a01b03811681146200025a57600080fd5b919050565b600080600080600080600080610100898b0312156200027d57600080fd5b620002888962000242565b97506200029860208a0162000242565b9650620002a860408a0162000242565b9550606089015194506080890151935060a0890151925060c08901519150620002d460e08a0162000242565b90509295985092959890939650565b808201808211156200030557634e487b7160e01b600052601160045260246000fd5b92915050565b6116e0806200031b6000396000f3fe6080604052600436106200015d5760003560e01c80635c60da1b11620000cf5780638da5cb5b116200007d578063c23a5cea1162000060578063c23a5cea14620003a8578063e30c397814620003cd578063f2fde38b14620003fa57600080fd5b80638da5cb5b1462000363578063bb9fe6bf146200039057600080fd5b806379ba509711620000b257806379ba509714620003045780637cc0d906146200031c578063835a4750146200033457600080fd5b80635c60da1b14620002bf578063715018a614620002ec57600080fd5b80632428e6a4116200012d5780633fd8b02f11620001105780633fd8b02f14620002535780634dd01253146200026b5780635b31f150146200029a57600080fd5b80632428e6a414620002095780633659cfe6146200022e57600080fd5b80626fda35146200016257806301295c7a146200018d5780630396cb6014620001d857806316c3e22f14620001f1575b600080fd5b3480156200016f57600080fd5b506200017a60065481565b6040519081526020015b60405180910390f35b3480156200019a57600080fd5b50620001b2620001ac36600462000e2f565b6200041f565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200162000184565b620001ef620001e936600462000e5e565b62000525565b005b348015620001fe57600080fd5b506200017a60045481565b3480156200021657600080fd5b50620001ef6200022836600462000e86565b620005bf565b3480156200023b57600080fd5b50620001ef6200024d36600462000e86565b620006a5565b3480156200026057600080fd5b506200017a60075481565b3480156200027857600080fd5b50600254620001b29073ffffffffffffffffffffffffffffffffffffffff1681565b348015620002a757600080fd5b50620001b2620002b936600462000ea6565b620006fe565b348015620002cc57600080fd5b5060035473ffffffffffffffffffffffffffffffffffffffff16620001b2565b348015620002f957600080fd5b50620001ef62000958565b3480156200031157600080fd5b50620001ef62000970565b3480156200032957600080fd5b506200017a60055481565b3480156200034157600080fd5b50600854620001b29073ffffffffffffffffffffffffffffffffffffffff1681565b3480156200037057600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff16620001b2565b3480156200039d57600080fd5b50620001ef62000a2d565b348015620003b557600080fd5b50620001ef620003c736600462000e86565b62000abd565b348015620003da57600080fd5b5060015473ffffffffffffffffffffffffffffffffffffffff16620001b2565b3480156200040757600080fd5b50620001ef6200041936600462000e86565b62000b51565b6040805173ffffffffffffffffffffffffffffffffffffffff8416602082015290810182905260009081906060016040516020818303038152906040528051906020012090506200051d81604051806020016200047c9062000dfe565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f9091011660408181523060208301528082015260006060820152608001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529082905262000501929160200162000f23565b6040516020818303038152906040528051906020012062000c04565b949350505050565b6200052f62000c13565b6002546040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff90911690630396cb609034906024016000604051808303818588803b158015620005a257600080fd5b505af1158015620005b7573d6000803e3d6000fd5b505050505050565b620005c962000c13565b73ffffffffffffffffffffffffffffffffffffffff811662000617576040517f8579befe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60085460405173ffffffffffffffffffffffffffffffffffffffff8084169216907fa4e16db2b0cb4dfdd6133a9a8fc627c68f371f4550ae3d0701b5b4068415a7da90600090a3600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b620006af62000c13565b620006ba8162000c96565b60405173ffffffffffffffffffffffffffffffffffffffff8216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6040805173ffffffffffffffffffffffffffffffffffffffff8516602082015290810183905260009081906060016040516020818303038152906040528051906020012090506200075085856200041f565b915073ffffffffffffffffffffffffffffffffffffffff82163b1562000777575062000951565b8473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fac631f3001b55ea1509cf3d7e74898f85392a61a76e8149181ae1259622dabc860405160405180910390a38030604051620007e19062000dfe565b73ffffffffffffffffffffffffffffffffffffffff90911681526040602082018190526000908201526060018190604051809103906000f59050801580156200082e573d6000803e3d6000fd5b5091508173ffffffffffffffffffffffffffffffffffffffff166383a5041c86600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff166004546005546006546007548a6200088b576000620008a5565b60085473ffffffffffffffffffffffffffffffffffffffff165b60405160e089901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff9788166004820152958716602487015260448601949094526064850192909252608484015260a483015290911660c482015260e401600060405180830381600087803b1580156200093657600080fd5b505af11580156200094b573d6000803e3d6000fd5b50505050505b9392505050565b6200096262000c13565b6200096e600062000d2c565b565b600154339073ffffffffffffffffffffffffffffffffffffffff16811462000a1f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b62000a2a8162000d2c565b50565b62000a3762000c13565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801562000aa257600080fd5b505af115801562000ab7573d6000803e3d6000fd5b50505050565b62000ac762000c13565b6002546040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff83811660048301529091169063c23a5cea90602401600060405180830381600087803b15801562000b3557600080fd5b505af115801562000b4a573d6000803e3d6000fd5b5050505050565b62000b5b62000c13565b6001805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915562000bbf60005473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60006200095183833062000d5f565b60005473ffffffffffffffffffffffffffffffffffffffff1633146200096e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000a16565b73ffffffffffffffffffffffffffffffffffffffff81163b62000ce5576040517f09ee12d500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600380547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600180547fffffffffffffffffffffffff000000000000000000000000000000000000000016905562000a2a8162000d89565b6000604051836040820152846020820152828152600b8101905060ff815360559020949350505050565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b61076e8062000f3d83390190565b73ffffffffffffffffffffffffffffffffffffffff8116811462000a2a57600080fd5b6000806040838503121562000e4357600080fd5b823562000e508162000e0c565b946020939093013593505050565b60006020828403121562000e7157600080fd5b813563ffffffff811681146200095157600080fd5b60006020828403121562000e9957600080fd5b8135620009518162000e0c565b60008060006060848603121562000ebc57600080fd5b833562000ec98162000e0c565b9250602084013591506040840135801515811462000ee657600080fd5b809150509250925092565b6000815160005b8181101562000f14576020818501810151868301520162000ef8565b50600093019283525090919050565b60006200051d62000f35838662000ef1565b8462000ef156fe608060405234801561001057600080fd5b5060405161076e38038061076e83398101604081905261002f91610431565b818161003d82826000610046565b5050505061055b565b61004f83610107565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a26000825111806100905750805b1561010257610100836001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fa91906104f1565b8361028b565b505b505050565b6001600160a01b0381163b6101715760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b6101e5816001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101b2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d691906104f1565b6001600160a01b03163b151590565b61024a5760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b6064820152608401610168565b7fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392909216919091179055565b60606102b08383604051806060016040528060278152602001610747602791396102b7565b9392505050565b6060600080856001600160a01b0316856040516102d4919061050c565b600060405180830381855af49150503d806000811461030f576040519150601f19603f3d011682016040523d82523d6000602084013e610314565b606091505b50909250905061032686838387610330565b9695505050505050565b6060831561039f578251600003610398576001600160a01b0385163b6103985760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610168565b50816103a9565b6103a983836103b1565b949350505050565b8151156103c15781518083602001fd5b8060405162461bcd60e51b81526004016101689190610528565b80516001600160a01b03811681146103f257600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610428578181015183820152602001610410565b50506000910152565b6000806040838503121561044457600080fd5b61044d836103db565b60208401519092506001600160401b038082111561046a57600080fd5b818501915085601f83011261047e57600080fd5b815181811115610490576104906103f7565b604051601f8201601f19908116603f011681019083821181831017156104b8576104b86103f7565b816040528281528860208487010111156104d157600080fd5b6104e283602083016020880161040d565b80955050505050509250929050565b60006020828403121561050357600080fd5b6102b0826103db565b6000825161051e81846020870161040d565b9190910192915050565b602081526000825180602084015261054781604085016020870161040d565b601f01601f19169190910160400192915050565b6101dd8061056a6000396000f3fe6080604052600436106100225760003560e01c80635c60da1b1461003957610031565b366100315761002f610077565b005b61002f610077565b34801561004557600080fd5b5061004e610089565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b610087610082610098565b610146565b565b6000610093610098565b905090565b60006100d87fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d505473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff16635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610122573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610093919061016a565b3660008037600080366000845af43d6000803e808015610165573d6000f35b3d6000fd5b60006020828403121561017c57600080fd5b815173ffffffffffffffffffffffffffffffffffffffff811681146101a057600080fd5b939250505056fea2646970667358221220c4d4b3a4d980bac705fc7a36107036a2b7ca6b6677991f9e52c1add174f22ae464736f6c63430008130033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212201ad2ce6ded5e31cd8da461adad5d9d3290e5dcb9ce15728a23ae54ca005dc59664736f6c634300081300330000000000000000000000009590ed0c18190a310f4e93caccc4cc17270bed400000000000000000000000005ff137d4b0fdcd49dca30c7cf57e578a026d278900000000000000000000000036604309934a2fc92c3445cf4566b23b5b4bbaad000000000000000000000000000000000000000000000000000000000002a300000000000000000000000000000000000000000000000000000000000001fa40000000000000000000000000000000000000000000000000000000000000a8c000000000000000000000000000000000000000000000000000000000000697800000000000000000000000009590ed0c18190a310f4e93caccc4cc17270bed40 --private-key $PK_PAYMASTER_OWNER_TESTNET
1 change: 1 addition & 0 deletions script/RawTXDeployAccImpl-0.5.0.sh

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions script/RawVerifyAcc-0.5.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
forge verify-contract --chain-id 5 --num-of-optimizations 1000000 --watch --compiler-version v0.8.19+commit.7dd6d404 0x36604309934A2Fc92C3445Cf4566b23b5b4BbAad contracts/core/managed/ManagedOpenfortAccount.sol:ManagedOpenfortAccount -e $ETHERSCAN_API_KEY --verifier etherscan
1 change: 1 addition & 0 deletions script/RawVerifyFact-0.5.0.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
forge verify-contract --chain-id 5 --num-of-optimizations 1000000 --watch --compiler-version v0.8.19+commit.7dd6d404 0x44A7d7B291834442EE3703bD8bB7f91eD6F2577E contracts/core/managed/ManagedOpenfortFactory.sol:ManagedOpenfortFactory -e $ETHERSCAN_API_KEY --verifier etherscan --constructor-args $(cast abi-encode "constructor(address,address,address,uint256,uint256,uint256,uint256,address)" 0x9590Ed0C18190a310f4e93CAccc4CC17270bED40 0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789 0x36604309934A2Fc92C3445Cf4566b23b5b4BbAad 172800 129600 43200 432000 0x9590Ed0C18190a310f4e93CAccc4CC17270bED40)

0 comments on commit 8bc8030

Please sign in to comment.