From 08bfe32b89b2c2c93c1d773507dd628018aec0b1 Mon Sep 17 00:00:00 2001 From: Wilson Cusack Date: Thu, 11 Apr 2024 15:54:54 -0400 Subject: [PATCH 1/2] deploy latest --- .gitignore | 3 - README.md | 5 +- .../8453/run-1712864857.json | 241 ++++++++++++++++++ .../8453/run-latest.json | 241 ++++++++++++++++++ .../84532/run-1710257682.json | 209 +++++++++++++++ .../84532/run-1712158687.json | 173 +++++++++++++ .../84532/run-1712865199.json | 241 ++++++++++++++++++ .../84532/run-latest.json | 241 ++++++++++++++++++ script/DeployMagicSpend.s.sol | 3 +- 9 files changed, 1349 insertions(+), 8 deletions(-) create mode 100644 broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json create mode 100644 broadcast/DeployMagicSpend.s.sol/8453/run-latest.json create mode 100644 broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json create mode 100644 broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json create mode 100644 broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json create mode 100644 broadcast/DeployMagicSpend.s.sol/84532/run-latest.json diff --git a/.gitignore b/.gitignore index 0bceef3..5f50b74 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,3 @@ docs/ crytic-export/ echidna-corpus/ - -/deploy -/broadcast diff --git a/README.md b/README.md index 7149675..0032ba7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -> [!IMPORTANT] -> The code in this repository is still under audit. It is not yet recommended for production use. - # Magic Spend Magic Spend is a contract that allows onchain accounts to present valid Withdraw Requests and receive funds. A Withdraw Request is defined as @@ -76,7 +73,7 @@ This flow is like "Pay gas only” with the addition of (7.) and (8.). Here, the | Network | Contract Address | |-----------|-----------------------------------------| -| Base Sepolia | 0x619CcD22eF045De3b63d3D03224BFF5491cd5D11 | +| Base | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://basescan.org/address/0x011A61C07DbF256A68256B1cB51A5e246730aB92) | ## Developing diff --git a/broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json b/broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json new file mode 100644 index 0000000..9209e84 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json @@ -0,0 +1,241 @@ +{ + "transactions": [ + { + "hash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": null, + "arguments": [ + "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "20" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x20f4f0", + "value": "0x0", + "data": "0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b60806040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000c9565b6200003f8262000052565b6200004a816200008e565b505062000105565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b60008060408385031215620000dd57600080fd5b82516001600160a01b0381168114620000f557600080fd5b6020939093015192949293505050565b6118e180620001156000396000f3fe6080604052600436106101845760003560e01c806388202489116100d6578063ebdbc6781161007f578063f2fde38b11610059578063f2fde38b14610414578063f465c77e14610427578063fee81cf41461045557600080fd5b8063ebdbc678146103c1578063edceadb6146103e1578063f04e283e1461040157600080fd5b8063b0d691fe116100b0578063b0d691fe14610365578063b175512b1461038c578063d833caee146103a157600080fd5b806388202489146102d05780638da5cb5b146102f0578063a9a234091461034557600080fd5b806334b5a077116101385780635b34b272116101125780635b34b272146102a2578063715018a6146102b55780637c8d4949146102bd57600080fd5b806334b5a077146102565780634d2b3f061461028457806354d1f13d1461029a57600080fd5b80631647795e116101695780631647795e146101dc578063256929621461022e5780632bcaa0e21461023657600080fd5b8063056819be146101905780630acf2ac8146101c557600080fd5b3661018b57005b600080fd5b34801561019c57600080fd5b506101b06101ab366004611472565b610488565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6104cf565b005b3480156101e857600080fd5b506101b06101f73660046114c2565b600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101da610538565b34801561024257600080fd5b506101da6102513660046114ee565b610588565b34801561026257600080fd5b50610276610271366004611472565b6105a0565b6040519081526020016101bc565b34801561029057600080fd5b5061027660005481565b6101da61062d565b6101da6102b036600461152f565b610669565b6101da610713565b6101da6102cb366004611568565b610727565b3480156102dc57600080fd5b506101da6102eb3660046114c2565b61074d565b3480156102fc57600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bc565b34801561035157600080fd5b506101da610360366004611581565b6107f8565b34801561037157600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d2789610320565b34801561039857600080fd5b506101da61091b565b3480156103ad57600080fd5b506101da6103bc366004611610565b610999565b3480156103cd57600080fd5b506101da6103dc366004611568565b610a3c565b3480156103ed57600080fd5b506101da6103fc36600461164d565b610a4d565b6101da61040f36600461164d565b610af0565b6101da61042236600461164d565b610b2d565b34801561043357600080fd5b5061044761044236600461166a565b610b54565b6040516101bc9291906116be565b34801561046157600080fd5b5061027661047036600461164d565b63389a75e1600c908152600091909152602090205490565b60006104c66104b57fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104bf85856105a0565b8451610dac565b90505b92915050565b3360009081526001602052604081205490819003610519576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526001602052604081208190556105359183610ebf565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610590610eef565b61059b838383610ebf565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e08201526000906104c69061010001604051602081830303815290604052610f25565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610671610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b50505050505050565b61071b610eef565b6107256000610f91565b565b61072f610eef565b610535735ff137d4b0fdcd49dca30c7cf57e578a026d278982610ff7565b610755610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d278914610845576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561085957610859611731565b03610890576040517fef88ac6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089f84860186611760565b909250905060006108b084846117b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546108e091906117c7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120559050801561070a5761070a82826108fc611017565b610923610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561097f57600080fd5b505af1158015610993573d6000803e3d6000fd5b50505050565b806080015165ffffffffffff164211156109df576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e93382610488565b610a1f576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a293382611057565b6105358160200151338360400151610ebf565b610a44610eef565b61053581611206565b610a55610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b5050505050565b610af8610eef565b63389a75e1600c52806000526020600c208054421115610b2057636f5e88186000526004601cfd5b6000905561053581610f91565b610b35610eef565b8060601b610b4b57637448fbae6000526004601cfd5b61053581610f91565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610ba5576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bb56101208701876117da565b610bc3916014908290611846565b810190610bd09190611610565b604081015190915084811015610c21576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c915760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610c18565b610ca7610ca1602089018961164d565b83611057565b6000610cbf610cb960208a018a61164d565b84610488565b15905060a0836080015165ffffffffffff16901b81610cdf576000610ce2565b60015b60ff16179350610cf286836117b4565b60016000610d0360208c018c61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d4c91906117c7565b90915550869050610d6060208a018a61164d565b604051602001610d9092919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6040516020818303038152906040529450505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610eb8576040518360005260208301516040526040835103610e29576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e2757506000606052604052506001610eb8565b505b6041835103610e6f57606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610e6d57506000606052604052506001610eb8565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610ee45761059b8282610ff7565b61059b838383611241565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610725576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f545750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af16110135763b12d13eb6000526004601cfd5b5050565b8147101561102d5763b12d13eb6000526004601cfd5b600038600038858786f161059b57826000526073600b5360ff6020536016600b83f061059b573838fd5b6060810151600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156110ce5780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610c1891815260200190565b600080546110dc9047611870565b602083015190915073ffffffffffffffffffffffffffffffffffffffff1615801561110a5750808260400151115b15611152578160400151816040517f4c362064000000000000000000000000000000000000000000000000000000008152600401610c18929190918252602082015260400190565b606082018051600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8089168086529184529382902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905591860151818701519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d926111f992908252602082015260400190565b60405180910390a3505050565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d156001600051141716611286576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461053557600080fd5b80356112bd81611290565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715611314576113146112c2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611361576113616112c2565b604052919050565b803565ffffffffffff811681146112bd57600080fd5b600060a0828403121561139157600080fd5b6113996112f1565b9050813567ffffffffffffffff808211156113b357600080fd5b818401915084601f8301126113c757600080fd5b81356020828211156113db576113db6112c2565b61140b817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161131a565b9250818352868183860101111561142157600080fd5b8181850182850137600081838501015282855261143f8187016112b2565b8186015250505050604082013560408201526060820135606082015261146760808301611369565b608082015292915050565b6000806040838503121561148557600080fd5b823561149081611290565b9150602083013567ffffffffffffffff8111156114ac57600080fd5b6114b88582860161137f565b9150509250929050565b600080604083850312156114d557600080fd5b82356114e081611290565b946020939093013593505050565b60008060006060848603121561150357600080fd5b833561150e81611290565b9250602084013561151e81611290565b929592945050506040919091013590565b6000806040838503121561154257600080fd5b82359150602083013563ffffffff8116811461155d57600080fd5b809150509250929050565b60006020828403121561157a57600080fd5b5035919050565b6000806000806060858703121561159757600080fd5b8435600381106115a657600080fd5b9350602085013567ffffffffffffffff808211156115c357600080fd5b818701915087601f8301126115d757600080fd5b8135818111156115e657600080fd5b8860208285010111156115f857600080fd5b95986020929092019750949560400135945092505050565b60006020828403121561162257600080fd5b813567ffffffffffffffff81111561163957600080fd5b6116458482850161137f565b949350505050565b60006020828403121561165f57600080fd5b8135610eb881611290565b60008060006060848603121561167f57600080fd5b833567ffffffffffffffff81111561169657600080fd5b840161016081870312156116a957600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116ec57602081870181015160608684010152016116cf565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000806040838503121561177357600080fd5b82359150602083013561155d81611290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156104c9576104c9611785565b808201808211156104c9576104c9611785565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261180f57600080fd5b83018035915067ffffffffffffffff82111561182a57600080fd5b60200191503681900382131561183f57600080fd5b9250929050565b6000808585111561185657600080fd5b8386111561186357600080fd5b5050820193919092039150565b6000826118a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212204fa94ce5f4c31e9c2da66a7702fb8b6452d7b422c884b862aae2e9bdada0515364736f6c63430008170033000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b0000000000000000000000000000000000000000000000000000000000000014", + "nonce": "0x2c", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x2d", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x2e", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "transferOwnership(address)", + "arguments": [ + "0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0xa293", + "value": "0x0", + "data": "0xf2fde38b0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7", + "nonce": "0x2f", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0xab554f", + "gasUsed": "0x168a7d", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b" + ], + "data": "0x", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "logIndex": "0x104", + "removed": false + }, + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e1" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000014", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "logIndex": "0x105", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000020004000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionIndex": "0x4d", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xac3493", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionIndex": "0x4d", + "logIndex": "0x106", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000880000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionIndex": "0x4e", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xad2f43", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionIndex": "0x4e", + "logIndex": "0x107", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000001000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionIndex": "0x4f", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xad9e6d", + "gasUsed": "0x6f2a", + "contractAddress": null, + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b", + "0x0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7" + ], + "data": "0x", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionIndex": "0x4f", + "logIndex": "0x108", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000020800008000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000004000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1712864857, + "chain": 8453, + "commit": "cc312ea" +} \ No newline at end of file diff --git a/broadcast/DeployMagicSpend.s.sol/8453/run-latest.json b/broadcast/DeployMagicSpend.s.sol/8453/run-latest.json new file mode 100644 index 0000000..9209e84 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/8453/run-latest.json @@ -0,0 +1,241 @@ +{ + "transactions": [ + { + "hash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": null, + "arguments": [ + "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "20" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x20f4f0", + "value": "0x0", + "data": "0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b60806040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000c9565b6200003f8262000052565b6200004a816200008e565b505062000105565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b60008060408385031215620000dd57600080fd5b82516001600160a01b0381168114620000f557600080fd5b6020939093015192949293505050565b6118e180620001156000396000f3fe6080604052600436106101845760003560e01c806388202489116100d6578063ebdbc6781161007f578063f2fde38b11610059578063f2fde38b14610414578063f465c77e14610427578063fee81cf41461045557600080fd5b8063ebdbc678146103c1578063edceadb6146103e1578063f04e283e1461040157600080fd5b8063b0d691fe116100b0578063b0d691fe14610365578063b175512b1461038c578063d833caee146103a157600080fd5b806388202489146102d05780638da5cb5b146102f0578063a9a234091461034557600080fd5b806334b5a077116101385780635b34b272116101125780635b34b272146102a2578063715018a6146102b55780637c8d4949146102bd57600080fd5b806334b5a077146102565780634d2b3f061461028457806354d1f13d1461029a57600080fd5b80631647795e116101695780631647795e146101dc578063256929621461022e5780632bcaa0e21461023657600080fd5b8063056819be146101905780630acf2ac8146101c557600080fd5b3661018b57005b600080fd5b34801561019c57600080fd5b506101b06101ab366004611472565b610488565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6104cf565b005b3480156101e857600080fd5b506101b06101f73660046114c2565b600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101da610538565b34801561024257600080fd5b506101da6102513660046114ee565b610588565b34801561026257600080fd5b50610276610271366004611472565b6105a0565b6040519081526020016101bc565b34801561029057600080fd5b5061027660005481565b6101da61062d565b6101da6102b036600461152f565b610669565b6101da610713565b6101da6102cb366004611568565b610727565b3480156102dc57600080fd5b506101da6102eb3660046114c2565b61074d565b3480156102fc57600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bc565b34801561035157600080fd5b506101da610360366004611581565b6107f8565b34801561037157600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d2789610320565b34801561039857600080fd5b506101da61091b565b3480156103ad57600080fd5b506101da6103bc366004611610565b610999565b3480156103cd57600080fd5b506101da6103dc366004611568565b610a3c565b3480156103ed57600080fd5b506101da6103fc36600461164d565b610a4d565b6101da61040f36600461164d565b610af0565b6101da61042236600461164d565b610b2d565b34801561043357600080fd5b5061044761044236600461166a565b610b54565b6040516101bc9291906116be565b34801561046157600080fd5b5061027661047036600461164d565b63389a75e1600c908152600091909152602090205490565b60006104c66104b57fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104bf85856105a0565b8451610dac565b90505b92915050565b3360009081526001602052604081205490819003610519576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526001602052604081208190556105359183610ebf565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610590610eef565b61059b838383610ebf565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e08201526000906104c69061010001604051602081830303815290604052610f25565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610671610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b50505050505050565b61071b610eef565b6107256000610f91565b565b61072f610eef565b610535735ff137d4b0fdcd49dca30c7cf57e578a026d278982610ff7565b610755610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d278914610845576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561085957610859611731565b03610890576040517fef88ac6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089f84860186611760565b909250905060006108b084846117b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546108e091906117c7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120559050801561070a5761070a82826108fc611017565b610923610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561097f57600080fd5b505af1158015610993573d6000803e3d6000fd5b50505050565b806080015165ffffffffffff164211156109df576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e93382610488565b610a1f576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a293382611057565b6105358160200151338360400151610ebf565b610a44610eef565b61053581611206565b610a55610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b5050505050565b610af8610eef565b63389a75e1600c52806000526020600c208054421115610b2057636f5e88186000526004601cfd5b6000905561053581610f91565b610b35610eef565b8060601b610b4b57637448fbae6000526004601cfd5b61053581610f91565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610ba5576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bb56101208701876117da565b610bc3916014908290611846565b810190610bd09190611610565b604081015190915084811015610c21576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c915760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610c18565b610ca7610ca1602089018961164d565b83611057565b6000610cbf610cb960208a018a61164d565b84610488565b15905060a0836080015165ffffffffffff16901b81610cdf576000610ce2565b60015b60ff16179350610cf286836117b4565b60016000610d0360208c018c61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d4c91906117c7565b90915550869050610d6060208a018a61164d565b604051602001610d9092919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6040516020818303038152906040529450505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610eb8576040518360005260208301516040526040835103610e29576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e2757506000606052604052506001610eb8565b505b6041835103610e6f57606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610e6d57506000606052604052506001610eb8565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610ee45761059b8282610ff7565b61059b838383611241565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610725576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f545750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af16110135763b12d13eb6000526004601cfd5b5050565b8147101561102d5763b12d13eb6000526004601cfd5b600038600038858786f161059b57826000526073600b5360ff6020536016600b83f061059b573838fd5b6060810151600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156110ce5780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610c1891815260200190565b600080546110dc9047611870565b602083015190915073ffffffffffffffffffffffffffffffffffffffff1615801561110a5750808260400151115b15611152578160400151816040517f4c362064000000000000000000000000000000000000000000000000000000008152600401610c18929190918252602082015260400190565b606082018051600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8089168086529184529382902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905591860151818701519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d926111f992908252602082015260400190565b60405180910390a3505050565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d156001600051141716611286576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461053557600080fd5b80356112bd81611290565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715611314576113146112c2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611361576113616112c2565b604052919050565b803565ffffffffffff811681146112bd57600080fd5b600060a0828403121561139157600080fd5b6113996112f1565b9050813567ffffffffffffffff808211156113b357600080fd5b818401915084601f8301126113c757600080fd5b81356020828211156113db576113db6112c2565b61140b817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161131a565b9250818352868183860101111561142157600080fd5b8181850182850137600081838501015282855261143f8187016112b2565b8186015250505050604082013560408201526060820135606082015261146760808301611369565b608082015292915050565b6000806040838503121561148557600080fd5b823561149081611290565b9150602083013567ffffffffffffffff8111156114ac57600080fd5b6114b88582860161137f565b9150509250929050565b600080604083850312156114d557600080fd5b82356114e081611290565b946020939093013593505050565b60008060006060848603121561150357600080fd5b833561150e81611290565b9250602084013561151e81611290565b929592945050506040919091013590565b6000806040838503121561154257600080fd5b82359150602083013563ffffffff8116811461155d57600080fd5b809150509250929050565b60006020828403121561157a57600080fd5b5035919050565b6000806000806060858703121561159757600080fd5b8435600381106115a657600080fd5b9350602085013567ffffffffffffffff808211156115c357600080fd5b818701915087601f8301126115d757600080fd5b8135818111156115e657600080fd5b8860208285010111156115f857600080fd5b95986020929092019750949560400135945092505050565b60006020828403121561162257600080fd5b813567ffffffffffffffff81111561163957600080fd5b6116458482850161137f565b949350505050565b60006020828403121561165f57600080fd5b8135610eb881611290565b60008060006060848603121561167f57600080fd5b833567ffffffffffffffff81111561169657600080fd5b840161016081870312156116a957600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116ec57602081870181015160608684010152016116cf565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000806040838503121561177357600080fd5b82359150602083013561155d81611290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156104c9576104c9611785565b808201808211156104c9576104c9611785565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261180f57600080fd5b83018035915067ffffffffffffffff82111561182a57600080fd5b60200191503681900382131561183f57600080fd5b9250929050565b6000808585111561185657600080fd5b8386111561186357600080fd5b5050820193919092039150565b6000826118a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212204fa94ce5f4c31e9c2da66a7702fb8b6452d7b422c884b862aae2e9bdada0515364736f6c63430008170033000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b0000000000000000000000000000000000000000000000000000000000000014", + "nonce": "0x2c", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x2d", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x2e", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "transferOwnership(address)", + "arguments": [ + "0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0xa293", + "value": "0x0", + "data": "0xf2fde38b0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7", + "nonce": "0x2f", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0xab554f", + "gasUsed": "0x168a7d", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b" + ], + "data": "0x", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "logIndex": "0x104", + "removed": false + }, + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e1" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000014", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x08dfc82179cc2434655cfcb5be0631552f43d7282939a565fd52401397a9f50f", + "transactionIndex": "0x4c", + "logIndex": "0x105", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000020004000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionIndex": "0x4d", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xac3493", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x68a1b4cbe6f20671e31725d5065982a809adccab7644a0323d0c01225c9859c9", + "transactionIndex": "0x4d", + "logIndex": "0x106", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000880000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionIndex": "0x4e", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xad2f43", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0xd4fbca6da564d5fdde52cc1564b19a1880f981f49db785674dfd9e0a0dcf4b76", + "transactionIndex": "0x4e", + "logIndex": "0x107", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000001000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + }, + { + "transactionHash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionIndex": "0x4f", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0xad9e6d", + "gasUsed": "0x6f2a", + "contractAddress": null, + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b", + "0x0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7" + ], + "data": "0x", + "blockHash": "0x80d2840039068aab81917862fd23f7b347fe62bb4ee43465524f0c3dff84df6f", + "blockNumber": "0xc6f089", + "transactionHash": "0x7f8a8129ae2e291fbe7cfe1d9eb86c841f4594fe4c85dc645671d3375526e80f", + "transactionIndex": "0x4f", + "logIndex": "0x108", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000020800008000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000004000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xaa3356d" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1712864857, + "chain": 8453, + "commit": "cc312ea" +} \ No newline at end of file diff --git a/broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json b/broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json new file mode 100644 index 0000000..8ef9218 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json @@ -0,0 +1,209 @@ +{ + "transactions": [ + { + "hash": "0x03e23313f30e20fc6264e282a25d72eb2546421909e7c935f0f7582b2f5fed56", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "function": null, + "arguments": [ + "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x1d9e95", + "value": "0x0", + "data": "0x3078310000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b506040516118c23803806118c283398101604081905261002f9161007a565b6100388161003e565b506100aa565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60006020828403121561008c57600080fd5b81516001600160a01b03811681146100a357600080fd5b9392505050565b611809806100b96000396000f3fe6080604052600436106101795760003560e01c806388202489116100cb578063d833caee1161007f578063f2fde38b11610059578063f2fde38b14610400578063f465c77e14610413578063fee81cf41461044157600080fd5b8063d833caee146103ad578063edceadb6146103cd578063f04e283e146103ed57600080fd5b8063a9a23409116100b0578063a9a2340914610351578063b0d691fe14610371578063b175512b1461039857600080fd5b806388202489146102dc5780638da5cb5b146102fc57600080fd5b80632f30cabd1161012d5780635b34b272116101075780635b34b272146102ae578063715018a6146102c15780637c8d4949146102c957600080fd5b80632f30cabd1461024b57806334b5a0771461028657806354d1f13d146102a657600080fd5b80631647795e1161015e5780631647795e146101d157806325692962146102235780632bcaa0e21461022b57600080fd5b8063056819be146101855780630acf2ac8146101ba57600080fd5b3661018057005b600080fd5b34801561019157600080fd5b506101a56101a03660046113a6565b610474565b60405190151581526020015b60405180910390f35b3480156101c657600080fd5b506101cf6104bb565b005b3480156101dd57600080fd5b506101a56101ec3660046113f6565b600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101cf610524565b34801561023757600080fd5b506101cf610246366004611422565b610574565b34801561025757600080fd5b50610278610266366004611463565b60006020819052908152604090205481565b6040519081526020016101b1565b34801561029257600080fd5b506102786102a13660046113a6565b61058c565b6101cf610619565b6101cf6102bc366004611480565b610655565b6101cf6106ff565b6101cf6102d73660046114b9565b610713565b3480156102e857600080fd5b506101cf6102f73660046113f6565b610739565b34801561030857600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101b1565b34801561035d57600080fd5b506101cf61036c3660046114d2565b6107e4565b34801561037d57600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d278961032c565b3480156103a457600080fd5b506101cf6108dd565b3480156103b957600080fd5b506101cf6103c8366004611561565b61095b565b3480156103d957600080fd5b506101cf6103e8366004611463565b6109fe565b6101cf6103fb366004611463565b610aa1565b6101cf61040e366004611463565b610ade565b34801561041f57600080fd5b5061043361042e36600461159e565b610b05565b6040516101b19291906115f2565b34801561044d57600080fd5b5061027861045c366004611463565b63389a75e1600c908152600091909152602090205490565b60006104b26104a17fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104ab858561058c565b8451610d9f565b90505b92915050565b3360009081526020819052604081205490819003610505576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526020819052604081208190556105219183610eb2565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b61057c610ee2565b610587838383610eb2565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e08201526000906104b29061010001604051602081830303815290604052610f18565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b61065d610ee2565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106e257600080fd5b505af11580156106f6573d6000803e3d6000fd5b50505050505050565b610707610ee2565b6107116000610f84565b565b61071b610ee2565b610521735ff137d4b0fdcd49dca30c7cf57e578a026d278982610fea565b610741610ee2565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b1580156107c857600080fd5b505af11580156107dc573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d278914610831576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561084557610845611665565b0361085257610852611694565b600080610861848601866116c3565b909250905060006108728484611717565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260409020546108a2919061172a565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040812055905080156106f6576106f682826108fc61100a565b6108e5610ee2565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561094157600080fd5b505af1158015610955573d6000803e3d6000fd5b50505050565b610965338261104a565b61096f3382610474565b6109a5576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b806080015165ffffffffffff164211156109eb576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6105218160200151338360400151610eb2565b610a06610ee2565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610a8657600080fd5b505af1158015610a9a573d6000803e3d6000fd5b5050505050565b610aa9610ee2565b63389a75e1600c52806000526020600c208054421115610ad157636f5e88186000526004601cfd5b6000905561052181610f84565b610ae6610ee2565b8060601b610afc57637448fbae6000526004601cfd5b61052181610f84565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610b56576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b6661012087018761173d565b610b749160149082906117a9565b810190610b819190611561565b604081015190915084811015610bd2576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c425760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610bc9565b610c58610c526020890189611463565b8361104a565b6000610c70610c6a60208a018a611463565b84610474565b15905060a0836080015165ffffffffffff16901b81610c90576000610c93565b60015b60ff1617935081471015610cdc576040517fcf47918100000000000000000000000000000000000000000000000000000000815260048101839052476024820152604401610bc9565b610ce68683611717565b600080610cf660208c018c611463565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d3f919061172a565b90915550869050610d5360208a018a611463565b604051602001610d8392919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6040516020818303038152906040529450505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610eab576040518360005260208301516040526040835103610e1c576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e1a57506000606052604052506001610eab565b505b6041835103610e6257606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610e6057506000606052604052506001610eab565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610ed7576105878282610fea565b610587838383611175565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610711576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f475750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af16110065763b12d13eb6000526004601cfd5b5050565b814710156110205763b12d13eb6000526004601cfd5b600038600038858786f161058757826000526073600b5360ff6020536016600b83f0610587573838fd5b6060810151600090815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156110c15780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610bc991815260200190565b606081018051600090815260016020818152604080842073ffffffffffffffffffffffffffffffffffffffff8089168087529184529482902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690941790935590850151818601519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d9261116992908252602082015260400190565b60405180910390a35050565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d1560016000511417166111ba576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461052157600080fd5b80356111f1816111c4565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715611248576112486111f6565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611295576112956111f6565b604052919050565b803565ffffffffffff811681146111f157600080fd5b600060a082840312156112c557600080fd5b6112cd611225565b9050813567ffffffffffffffff808211156112e757600080fd5b818401915084601f8301126112fb57600080fd5b813560208282111561130f5761130f6111f6565b61133f817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161124e565b9250818352868183860101111561135557600080fd5b818185018285013760008183850101528285526113738187016111e6565b8186015250505050604082013560408201526060820135606082015261139b6080830161129d565b608082015292915050565b600080604083850312156113b957600080fd5b82356113c4816111c4565b9150602083013567ffffffffffffffff8111156113e057600080fd5b6113ec858286016112b3565b9150509250929050565b6000806040838503121561140957600080fd5b8235611414816111c4565b946020939093013593505050565b60008060006060848603121561143757600080fd5b8335611442816111c4565b92506020840135611452816111c4565b929592945050506040919091013590565b60006020828403121561147557600080fd5b8135610eab816111c4565b6000806040838503121561149357600080fd5b82359150602083013563ffffffff811681146114ae57600080fd5b809150509250929050565b6000602082840312156114cb57600080fd5b5035919050565b600080600080606085870312156114e857600080fd5b8435600381106114f757600080fd5b9350602085013567ffffffffffffffff8082111561151457600080fd5b818701915087601f83011261152857600080fd5b81358181111561153757600080fd5b88602082850101111561154957600080fd5b95986020929092019750949560400135945092505050565b60006020828403121561157357600080fd5b813567ffffffffffffffff81111561158a57600080fd5b611596848285016112b3565b949350505050565b6000806000606084860312156115b357600080fd5b833567ffffffffffffffff8111156115ca57600080fd5b840161016081870312156115dd57600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116205760208187018101516060868401015201611603565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b600080604083850312156116d657600080fd5b8235915060208301356114ae816111c4565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156104b5576104b56116e8565b808201808211156104b5576104b56116e8565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261177257600080fd5b83018035915067ffffffffffffffff82111561178d57600080fd5b6020019150368190038213156117a257600080fd5b9250929050565b600080858511156117b957600080fd5b838611156117c657600080fd5b505082019391909203915056fea2646970667358221220dd5d5a7b1f87e085173908106183cb459e405b9adbea6387f2fc3e516f1629ff64736f6c63430008170033000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b", + "nonce": "0x47", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x5b50a310210230dc4f008d751b027fa7f803e2d4a90d9cb982d064688fd4bc55", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0xc521470f6ba58cac0bc752fc25c46fc811605f2c", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x48", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x6bb1dcdaf4edbc21eb7a1f29e25edc9c97b0f49a5d753bd46c4b8bb7c626ba46", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0xc521470f6ba58cac0bc752fc25c46fc811605f2c", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x49", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xa08f6d2a0ef33af1779bd3bb1b0885d2f6e5c05adb6c6b5fe9006f78efa2b8c8", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "function": null, + "arguments": null, + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0xc521470f6ba58cac0bc752fc25c46fc811605f2c", + "gas": "0x7199", + "value": "0x2386f26fc10000", + "data": "0x", + "nonce": "0x4a", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x03e23313f30e20fc6264e282a25d72eb2546421909e7c935f0f7582b2f5fed56", + "transactionIndex": "0x1", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0x161e8f", + "gasUsed": "0x157338", + "contractAddress": null, + "logs": [ + { + "address": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b" + ], + "data": "0x", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "transactionHash": "0x03e23313f30e20fc6264e282a25d72eb2546421909e7c935f0f7582b2f5fed56", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000004000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000024000000000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f7c" + }, + { + "transactionHash": "0x5b50a310210230dc4f008d751b027fa7f803e2d4a90d9cb982d064688fd4bc55", + "transactionIndex": "0x2", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "cumulativeGasUsed": "0x16fdd3", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000c521470f6ba58cac0bc752fc25c46fc811605f2c" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "transactionHash": "0x5b50a310210230dc4f008d751b027fa7f803e2d4a90d9cb982d064688fd4bc55", + "transactionIndex": "0x2", + "logIndex": "0x1", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000020200000000000080000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f7c" + }, + { + "transactionHash": "0x6bb1dcdaf4edbc21eb7a1f29e25edc9c97b0f49a5d753bd46c4b8bb7c626ba46", + "transactionIndex": "0x3", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "cumulativeGasUsed": "0x17f883", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000c521470f6ba58cac0bc752fc25c46fc811605f2c" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "transactionHash": "0x6bb1dcdaf4edbc21eb7a1f29e25edc9c97b0f49a5d753bd46c4b8bb7c626ba46", + "transactionIndex": "0x3", + "logIndex": "0x2", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000840000000000000000000000000000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f7c" + }, + { + "transactionHash": "0xa08f6d2a0ef33af1779bd3bb1b0885d2f6e5c05adb6c6b5fe9006f78efa2b8c8", + "transactionIndex": "0x4", + "blockHash": "0xb49c567580f82ef88e37c3c2533258d5c6958a270a4ba35d6ade00873920eb16", + "blockNumber": "0x6e8b97", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0xC521470f6bA58cac0bc752FC25C46fc811605F2C", + "cumulativeGasUsed": "0x184ac2", + "gasUsed": "0x523f", + "contractAddress": null, + "logs": [], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f7c" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1710257682, + "chain": 84532, + "commit": "567630f" +} \ No newline at end of file diff --git a/broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json b/broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json new file mode 100644 index 0000000..29be233 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json @@ -0,0 +1,173 @@ +{ + "transactions": [ + { + "hash": "0x4cec08a62c8209429e39f5b4b09b3c453cbecd6ce7ffd478c8b21db395b1b6e1", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "function": null, + "arguments": [ + "0x870d622416c83bF522891db41d7619577E6fD024" + ], + "transaction": { + "type": "0x02", + "from": "0x870d622416c83bf522891db41d7619577e6fd024", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x200884", + "value": "0x0", + "data": "0x3078310000000000000000000000000000000000000000000000000000000000608060405234801561001057600080fd5b506040516118ec3803806118ec83398101604081905261002f9161007f565b61003881610043565b5060016000556100af565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60006020828403121561009157600080fd5b81516001600160a01b03811681146100a857600080fd5b9392505050565b61182e806100be6000396000f3fe60806040526004361061016e5760003560e01c806388202489116100cb578063d833caee1161007f578063f2fde38b11610059578063f2fde38b146103c8578063f465c77e146103db578063fee81cf41461040957600080fd5b8063d833caee14610375578063edceadb614610395578063f04e283e146103b557600080fd5b8063a9a23409116100b0578063a9a2340914610319578063b0d691fe14610339578063b175512b1461036057600080fd5b806388202489146102a45780638da5cb5b146102c457600080fd5b806334b5a077116101225780635b34b272116101075780635b34b27214610276578063715018a6146102895780637c8d49491461029157600080fd5b806334b5a0771461024057806354d1f13d1461026e57600080fd5b80631647795e116101535780631647795e146101c657806325692962146102185780632bcaa0e21461022057600080fd5b8063056819be1461017a5780630acf2ac8146101af57600080fd5b3661017557005b600080fd5b34801561018657600080fd5b5061019a6101953660046113fa565b61043c565b60405190151581526020015b60405180910390f35b3480156101bb57600080fd5b506101c4610483565b005b3480156101d257600080fd5b5061019a6101e136600461144a565b600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101c46104ec565b34801561022c57600080fd5b506101c461023b366004611476565b61053c565b34801561024c57600080fd5b5061026061025b3660046113fa565b610554565b6040519081526020016101a6565b6101c46105e1565b6101c46102843660046114b7565b61061d565b6101c46106c7565b6101c461029f3660046114f0565b6106db565b3480156102b057600080fd5b506101c46102bf36600461144a565b610701565b3480156102d057600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101a6565b34801561032557600080fd5b506101c4610334366004611509565b6107ac565b34801561034557600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d27896102f4565b34801561036c57600080fd5b506101c46108e0565b34801561038157600080fd5b506101c4610390366004611598565b61095e565b3480156103a157600080fd5b506101c46103b03660046115d5565b610a01565b6101c46103c33660046115d5565b610aa4565b6101c46103d63660046115d5565b610ae1565b3480156103e757600080fd5b506103fb6103f63660046115f2565b610b08565b6040516101a6929190611646565b34801561041557600080fd5b506102606104243660046115d5565b63389a75e1600c908152600091909152602090205490565b600061047a6104697fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104738585610554565b8451610df4565b90505b92915050565b33600090815260016020526040812054908190036104cd576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526001602052604081208190556104e99183610f07565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610544610f37565b61054f838383610f07565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e082015260009061047a9061010001604051602081830303815290604052610f6d565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610625610f37565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106aa57600080fd5b505af11580156106be573d6000803e3d6000fd5b50505050505050565b6106cf610f37565b6106d96000610fd9565b565b6106e3610f37565b6104e9735ff137d4b0fdcd49dca30c7cf57e578a026d27898261103f565b610709610f37565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b15801561079057600080fd5b505af11580156107a4573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d2789146107f9576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561080d5761080d6116b9565b03610844576040517fef88ac6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610853848601866116e8565b90925090506000610864848461173c565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902054610894919061174f565b9050600160005411156108a75760016000555b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604081205580156106be576106be82826108fc61105f565b6108e8610f37565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561094457600080fd5b505af1158015610958573d6000803e3d6000fd5b50505050565b806080015165ffffffffffff164211156109a4576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ae338261043c565b6109e4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109ee338261109f565b6104e98160200151338360400151610f07565b610a09610f37565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610a8957600080fd5b505af1158015610a9d573d6000803e3d6000fd5b5050505050565b610aac610f37565b63389a75e1600c52806000526020600c208054421115610ad457636f5e88186000526004601cfd5b600090556104e981610fd9565b610ae9610f37565b8060601b610aff57637448fbae6000526004601cfd5b6104e981610fd9565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610b59576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610b69610120870187611762565b610b779160149082906117ce565b810190610b849190611598565b604081015190915084811015610bd5576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c455760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610bcc565b600081600054610c55919061174f565b905047610c6360018361173c565b1115610cc35760006001600054610c7a919061173c565b610c84904761173c565b6040517fadb9e0430000000000000000000000000000000000000000000000000000000081526004810185905260248101829052909150604401610bcc565b610cd9610cd360208a018a6115d5565b8461109f565b6000610cf1610ceb60208b018b6115d5565b8561043c565b15905060a0846080015165ffffffffffff16901b81610d11576000610d14565b60015b60ff161794508160008190555060008784610d2f919061173c565b90508015610d98578060016000610d4960208e018e6115d5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d92919061174f565b90915550505b87610da660208c018c6115d5565b604051602001610dd692919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b60405160208183030381529060405296505050505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610f00576040518360005260208301516040526040835103610e71576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e6f57506000606052604052506001610f00565b505b6041835103610eb757606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610eb557506000606052604052506001610f00565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610f2c5761054f828261103f565b61054f8383836111c9565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275433146106d9576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f9c5750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af161105b5763b12d13eb6000526004601cfd5b5050565b814710156110755763b12d13eb6000526004601cfd5b600038600038858786f161054f57826000526073600b5360ff6020536016600b83f061054f573838fd5b6060810151600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156111165780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610bcc91815260200190565b606081018051600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8088168086529184529382902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905591850151818601519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d926111bd92908252602082015260400190565b60405180910390a35050565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d15600160005114171661120e576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff811681146104e957600080fd5b803561124581611218565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561129c5761129c61124a565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156112e9576112e961124a565b604052919050565b803565ffffffffffff8116811461124557600080fd5b600060a0828403121561131957600080fd5b611321611279565b9050813567ffffffffffffffff8082111561133b57600080fd5b818401915084601f83011261134f57600080fd5b81356020828211156113635761136361124a565b611393817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f850116016112a2565b925081835286818386010111156113a957600080fd5b818185018285013760008183850101528285526113c781870161123a565b818601525050505060408201356040820152606082013560608201526113ef608083016112f1565b608082015292915050565b6000806040838503121561140d57600080fd5b823561141881611218565b9150602083013567ffffffffffffffff81111561143457600080fd5b61144085828601611307565b9150509250929050565b6000806040838503121561145d57600080fd5b823561146881611218565b946020939093013593505050565b60008060006060848603121561148b57600080fd5b833561149681611218565b925060208401356114a681611218565b929592945050506040919091013590565b600080604083850312156114ca57600080fd5b82359150602083013563ffffffff811681146114e557600080fd5b809150509250929050565b60006020828403121561150257600080fd5b5035919050565b6000806000806060858703121561151f57600080fd5b84356003811061152e57600080fd5b9350602085013567ffffffffffffffff8082111561154b57600080fd5b818701915087601f83011261155f57600080fd5b81358181111561156e57600080fd5b88602082850101111561158057600080fd5b95986020929092019750949560400135945092505050565b6000602082840312156115aa57600080fd5b813567ffffffffffffffff8111156115c157600080fd5b6115cd84828501611307565b949350505050565b6000602082840312156115e757600080fd5b8135610f0081611218565b60008060006060848603121561160757600080fd5b833567ffffffffffffffff81111561161e57600080fd5b8401610160818703121561163157600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116745760208187018101516060868401015201611657565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b600080604083850312156116fb57600080fd5b8235915060208301356114e581611218565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561047d5761047d61170d565b8082018082111561047d5761047d61170d565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261179757600080fd5b83018035915067ffffffffffffffff8211156117b257600080fd5b6020019150368190038213156117c757600080fd5b9250929050565b600080858511156117de57600080fd5b838611156117eb57600080fd5b505082019391909203915056fea264697066735822122000038b093d0f2b8051f876e41ac979553edb81cc6d756c5799c5c0847ffc151f64736f6c63430008170033000000000000000000000000870d622416c83bf522891db41d7619577e6fd024", + "nonce": "0x0", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xec3d29739fa6bf1181a32024ba76e91c05b20c7ddfcfd777865569309eb831d3", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0x870d622416c83bf522891db41d7619577e6fd024", + "to": "0x298e08d29bea28aa0f840eaf17b7c07345407308", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x1", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xcf4714dc245fa991861de6d4b9753eac82aac91b1294ea6101cd91163cb583d0", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0x870d622416c83bf522891db41d7619577e6fd024", + "to": "0x298e08d29bea28aa0f840eaf17b7c07345407308", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x2", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0x4cec08a62c8209429e39f5b4b09b3c453cbecd6ce7ffd478c8b21db395b1b6e1", + "transactionIndex": "0x1", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "from": "0x870d622416c83bF522891db41d7619577E6fD024", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0x169426", + "gasUsed": "0x15e8c3", + "contractAddress": null, + "logs": [ + { + "address": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000870d622416c83bf522891db41d7619577e6fd024" + ], + "data": "0x", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "transactionHash": "0x4cec08a62c8209429e39f5b4b09b3c453cbecd6ce7ffd478c8b21db395b1b6e1", + "transactionIndex": "0x1", + "logIndex": "0x0", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000200000000000000000000000000800002008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000022000000000000000000800000000000000000000000000000000400000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f28" + }, + { + "transactionHash": "0xec3d29739fa6bf1181a32024ba76e91c05b20c7ddfcfd777865569309eb831d3", + "transactionIndex": "0x2", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "from": "0x870d622416c83bF522891db41d7619577E6fD024", + "to": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "cumulativeGasUsed": "0x17736a", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000298e08d29bea28aa0f840eaf17b7c07345407308" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "transactionHash": "0xec3d29739fa6bf1181a32024ba76e91c05b20c7ddfcfd777865569309eb831d3", + "transactionIndex": "0x2", + "logIndex": "0x1", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000040200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000080000000000000000000000000000000000000000000000000200000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f28" + }, + { + "transactionHash": "0xcf4714dc245fa991861de6d4b9753eac82aac91b1294ea6101cd91163cb583d0", + "transactionIndex": "0x3", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "from": "0x870d622416c83bF522891db41d7619577E6fD024", + "to": "0x298e08d29BEA28aa0f840EAF17b7c07345407308", + "cumulativeGasUsed": "0x186e1a", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000298e08d29bea28aa0f840eaf17b7c07345407308" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0x382c8b32476009b5f71fb98c6a92aa1dfa494956caf89e9062ccbef2c4ddcecf", + "blockNumber": "0x7d0c7d", + "transactionHash": "0xcf4714dc245fa991861de6d4b9753eac82aac91b1294ea6101cd91163cb583d0", + "transactionIndex": "0x3", + "logIndex": "0x2", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000040200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000040000000000000000000000000000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0xb2d05f28" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1712158687, + "chain": 84532, + "commit": "3821093" +} \ No newline at end of file diff --git a/broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json b/broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json new file mode 100644 index 0000000..9683b67 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json @@ -0,0 +1,241 @@ +{ + "transactions": [ + { + "hash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": null, + "arguments": [ + "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "20" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x20f4f0", + "value": "0x0", + "data": "0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b60806040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000c9565b6200003f8262000052565b6200004a816200008e565b505062000105565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b60008060408385031215620000dd57600080fd5b82516001600160a01b0381168114620000f557600080fd5b6020939093015192949293505050565b6118e180620001156000396000f3fe6080604052600436106101845760003560e01c806388202489116100d6578063ebdbc6781161007f578063f2fde38b11610059578063f2fde38b14610414578063f465c77e14610427578063fee81cf41461045557600080fd5b8063ebdbc678146103c1578063edceadb6146103e1578063f04e283e1461040157600080fd5b8063b0d691fe116100b0578063b0d691fe14610365578063b175512b1461038c578063d833caee146103a157600080fd5b806388202489146102d05780638da5cb5b146102f0578063a9a234091461034557600080fd5b806334b5a077116101385780635b34b272116101125780635b34b272146102a2578063715018a6146102b55780637c8d4949146102bd57600080fd5b806334b5a077146102565780634d2b3f061461028457806354d1f13d1461029a57600080fd5b80631647795e116101695780631647795e146101dc578063256929621461022e5780632bcaa0e21461023657600080fd5b8063056819be146101905780630acf2ac8146101c557600080fd5b3661018b57005b600080fd5b34801561019c57600080fd5b506101b06101ab366004611472565b610488565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6104cf565b005b3480156101e857600080fd5b506101b06101f73660046114c2565b600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101da610538565b34801561024257600080fd5b506101da6102513660046114ee565b610588565b34801561026257600080fd5b50610276610271366004611472565b6105a0565b6040519081526020016101bc565b34801561029057600080fd5b5061027660005481565b6101da61062d565b6101da6102b036600461152f565b610669565b6101da610713565b6101da6102cb366004611568565b610727565b3480156102dc57600080fd5b506101da6102eb3660046114c2565b61074d565b3480156102fc57600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bc565b34801561035157600080fd5b506101da610360366004611581565b6107f8565b34801561037157600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d2789610320565b34801561039857600080fd5b506101da61091b565b3480156103ad57600080fd5b506101da6103bc366004611610565b610999565b3480156103cd57600080fd5b506101da6103dc366004611568565b610a3c565b3480156103ed57600080fd5b506101da6103fc36600461164d565b610a4d565b6101da61040f36600461164d565b610af0565b6101da61042236600461164d565b610b2d565b34801561043357600080fd5b5061044761044236600461166a565b610b54565b6040516101bc9291906116be565b34801561046157600080fd5b5061027661047036600461164d565b63389a75e1600c908152600091909152602090205490565b60006104c66104b57fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104bf85856105a0565b8451610dac565b90505b92915050565b3360009081526001602052604081205490819003610519576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526001602052604081208190556105359183610ebf565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610590610eef565b61059b838383610ebf565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e08201526000906104c69061010001604051602081830303815290604052610f25565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610671610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b50505050505050565b61071b610eef565b6107256000610f91565b565b61072f610eef565b610535735ff137d4b0fdcd49dca30c7cf57e578a026d278982610ff7565b610755610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d278914610845576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561085957610859611731565b03610890576040517fef88ac6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089f84860186611760565b909250905060006108b084846117b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546108e091906117c7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120559050801561070a5761070a82826108fc611017565b610923610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561097f57600080fd5b505af1158015610993573d6000803e3d6000fd5b50505050565b806080015165ffffffffffff164211156109df576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e93382610488565b610a1f576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a293382611057565b6105358160200151338360400151610ebf565b610a44610eef565b61053581611206565b610a55610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b5050505050565b610af8610eef565b63389a75e1600c52806000526020600c208054421115610b2057636f5e88186000526004601cfd5b6000905561053581610f91565b610b35610eef565b8060601b610b4b57637448fbae6000526004601cfd5b61053581610f91565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610ba5576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bb56101208701876117da565b610bc3916014908290611846565b810190610bd09190611610565b604081015190915084811015610c21576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c915760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610c18565b610ca7610ca1602089018961164d565b83611057565b6000610cbf610cb960208a018a61164d565b84610488565b15905060a0836080015165ffffffffffff16901b81610cdf576000610ce2565b60015b60ff16179350610cf286836117b4565b60016000610d0360208c018c61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d4c91906117c7565b90915550869050610d6060208a018a61164d565b604051602001610d9092919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6040516020818303038152906040529450505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610eb8576040518360005260208301516040526040835103610e29576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e2757506000606052604052506001610eb8565b505b6041835103610e6f57606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610e6d57506000606052604052506001610eb8565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610ee45761059b8282610ff7565b61059b838383611241565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610725576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f545750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af16110135763b12d13eb6000526004601cfd5b5050565b8147101561102d5763b12d13eb6000526004601cfd5b600038600038858786f161059b57826000526073600b5360ff6020536016600b83f061059b573838fd5b6060810151600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156110ce5780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610c1891815260200190565b600080546110dc9047611870565b602083015190915073ffffffffffffffffffffffffffffffffffffffff1615801561110a5750808260400151115b15611152578160400151816040517f4c362064000000000000000000000000000000000000000000000000000000008152600401610c18929190918252602082015260400190565b606082018051600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8089168086529184529382902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905591860151818701519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d926111f992908252602082015260400190565b60405180910390a3505050565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d156001600051141716611286576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461053557600080fd5b80356112bd81611290565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715611314576113146112c2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611361576113616112c2565b604052919050565b803565ffffffffffff811681146112bd57600080fd5b600060a0828403121561139157600080fd5b6113996112f1565b9050813567ffffffffffffffff808211156113b357600080fd5b818401915084601f8301126113c757600080fd5b81356020828211156113db576113db6112c2565b61140b817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161131a565b9250818352868183860101111561142157600080fd5b8181850182850137600081838501015282855261143f8187016112b2565b8186015250505050604082013560408201526060820135606082015261146760808301611369565b608082015292915050565b6000806040838503121561148557600080fd5b823561149081611290565b9150602083013567ffffffffffffffff8111156114ac57600080fd5b6114b88582860161137f565b9150509250929050565b600080604083850312156114d557600080fd5b82356114e081611290565b946020939093013593505050565b60008060006060848603121561150357600080fd5b833561150e81611290565b9250602084013561151e81611290565b929592945050506040919091013590565b6000806040838503121561154257600080fd5b82359150602083013563ffffffff8116811461155d57600080fd5b809150509250929050565b60006020828403121561157a57600080fd5b5035919050565b6000806000806060858703121561159757600080fd5b8435600381106115a657600080fd5b9350602085013567ffffffffffffffff808211156115c357600080fd5b818701915087601f8301126115d757600080fd5b8135818111156115e657600080fd5b8860208285010111156115f857600080fd5b95986020929092019750949560400135945092505050565b60006020828403121561162257600080fd5b813567ffffffffffffffff81111561163957600080fd5b6116458482850161137f565b949350505050565b60006020828403121561165f57600080fd5b8135610eb881611290565b60008060006060848603121561167f57600080fd5b833567ffffffffffffffff81111561169657600080fd5b840161016081870312156116a957600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116ec57602081870181015160608684010152016116cf565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000806040838503121561177357600080fd5b82359150602083013561155d81611290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156104c9576104c9611785565b808201808211156104c9576104c9611785565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261180f57600080fd5b83018035915067ffffffffffffffff82111561182a57600080fd5b60200191503681900382131561183f57600080fd5b9250929050565b6000808585111561185657600080fd5b8386111561186357600080fd5b5050820193919092039150565b6000826118a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212204fa94ce5f4c31e9c2da66a7702fb8b6452d7b422c884b862aae2e9bdada0515364736f6c63430008170033000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b0000000000000000000000000000000000000000000000000000000000000014", + "nonce": "0x5c", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x5d", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x5e", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "transferOwnership(address)", + "arguments": [ + "0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0xa293", + "value": "0x0", + "data": "0xf2fde38b0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7", + "nonce": "0x5f", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0x1dbd75", + "gasUsed": "0x168a7d", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b" + ], + "data": "0x", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "logIndex": "0x3", + "removed": false + }, + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e1" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000014", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "logIndex": "0x4", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000020004000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionIndex": "0x7", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x1e9cb9", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionIndex": "0x7", + "logIndex": "0x5", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000880000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionIndex": "0x8", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x1f9769", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionIndex": "0x8", + "logIndex": "0x6", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000001000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionIndex": "0x9", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x200693", + "gasUsed": "0x6f2a", + "contractAddress": null, + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b", + "0x0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7" + ], + "data": "0x", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionIndex": "0x9", + "logIndex": "0x7", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000020800008000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000004000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1712865199, + "chain": 84532, + "commit": "cc312ea" +} \ No newline at end of file diff --git a/broadcast/DeployMagicSpend.s.sol/84532/run-latest.json b/broadcast/DeployMagicSpend.s.sol/84532/run-latest.json new file mode 100644 index 0000000..9683b67 --- /dev/null +++ b/broadcast/DeployMagicSpend.s.sol/84532/run-latest.json @@ -0,0 +1,241 @@ +{ + "transactions": [ + { + "hash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionType": "CREATE2", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": null, + "arguments": [ + "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "20" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x4e59b44847b379578588920ca78fbf26c0b4956c", + "gas": "0x20f4f0", + "value": "0x0", + "data": "0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b60806040523480156200001157600080fd5b50604051620019f6380380620019f68339810160408190526200003491620000c9565b6200003f8262000052565b6200004a816200008e565b505062000105565b6001600160a01b0316638b78c6d8198190558060007f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08180a350565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b60008060408385031215620000dd57600080fd5b82516001600160a01b0381168114620000f557600080fd5b6020939093015192949293505050565b6118e180620001156000396000f3fe6080604052600436106101845760003560e01c806388202489116100d6578063ebdbc6781161007f578063f2fde38b11610059578063f2fde38b14610414578063f465c77e14610427578063fee81cf41461045557600080fd5b8063ebdbc678146103c1578063edceadb6146103e1578063f04e283e1461040157600080fd5b8063b0d691fe116100b0578063b0d691fe14610365578063b175512b1461038c578063d833caee146103a157600080fd5b806388202489146102d05780638da5cb5b146102f0578063a9a234091461034557600080fd5b806334b5a077116101385780635b34b272116101125780635b34b272146102a2578063715018a6146102b55780637c8d4949146102bd57600080fd5b806334b5a077146102565780634d2b3f061461028457806354d1f13d1461029a57600080fd5b80631647795e116101695780631647795e146101dc578063256929621461022e5780632bcaa0e21461023657600080fd5b8063056819be146101905780630acf2ac8146101c557600080fd5b3661018b57005b600080fd5b34801561019c57600080fd5b506101b06101ab366004611472565b610488565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6104cf565b005b3480156101e857600080fd5b506101b06101f73660046114c2565b600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff949094168352929052205460ff1690565b6101da610538565b34801561024257600080fd5b506101da6102513660046114ee565b610588565b34801561026257600080fd5b50610276610271366004611472565b6105a0565b6040519081526020016101bc565b34801561029057600080fd5b5061027660005481565b6101da61062d565b6101da6102b036600461152f565b610669565b6101da610713565b6101da6102cb366004611568565b610727565b3480156102dc57600080fd5b506101da6102eb3660046114c2565b61074d565b3480156102fc57600080fd5b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927545b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101bc565b34801561035157600080fd5b506101da610360366004611581565b6107f8565b34801561037157600080fd5b50735ff137d4b0fdcd49dca30c7cf57e578a026d2789610320565b34801561039857600080fd5b506101da61091b565b3480156103ad57600080fd5b506101da6103bc366004611610565b610999565b3480156103cd57600080fd5b506101da6103dc366004611568565b610a3c565b3480156103ed57600080fd5b506101da6103fc36600461164d565b610a4d565b6101da61040f36600461164d565b610af0565b6101da61042236600461164d565b610b2d565b34801561043357600080fd5b5061044761044236600461166a565b610b54565b6040516101bc9291906116be565b34801561046157600080fd5b5061027661047036600461164d565b63389a75e1600c908152600091909152602090205490565b60006104c66104b57fffffffffffffffffffffffffffffffffffffffffffffffffffffffff748739275490565b6104bf85856105a0565b8451610dac565b90505b92915050565b3360009081526001602052604081205490819003610519576040517f6c163b7e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526001602052604081208190556105359183610ebf565b50565b60006202a30067ffffffffffffffff164201905063389a75e1600c5233600052806020600c2055337fdbf36a107da19e49527a7176a1babf963b4b0ff8cde35ee35d6cd8f1f9ac7e1d600080a250565b610590610eef565b61059b838383610ebf565b505050565b6020808201516040808401516060808601516080808801518551309881019890985273ffffffffffffffffffffffffffffffffffffffff808b16968901969096524693880193909352939094169285019290925260a084015260c083019190915265ffffffffffff1660e08201526000906104c69061010001604051602081830303815290604052610f25565b63389a75e1600c523360005260006020600c2055337ffa7b8eab7da67f412cc9575ed43464468f9bfbae89d1675917346ca6d8fe3c92600080a2565b610671610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f0396cb6000000000000000000000000000000000000000000000000000000000815263ffffffff8316600482015273ffffffffffffffffffffffffffffffffffffffff9190911690630396cb609084906024016000604051808303818588803b1580156106f657600080fd5b505af115801561070a573d6000803e3d6000fd5b50505050505050565b61071b610eef565b6107256000610f91565b565b61072f610eef565b610535735ff137d4b0fdcd49dca30c7cf57e578a026d278982610ff7565b610755610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517f205c287800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260248201849052919091169063205c287890604401600060405180830381600087803b1580156107dc57600080fd5b505af11580156107f0573d6000803e3d6000fd5b505050505050565b33735ff137d4b0fdcd49dca30c7cf57e578a026d278914610845576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600284600281111561085957610859611731565b03610890576040517fef88ac6000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061089f84860186611760565b909250905060006108b084846117b4565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260409020546108e091906117c7565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600160205260408120559050801561070a5761070a82826108fc611017565b610923610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d278973ffffffffffffffffffffffffffffffffffffffff1663bb9fe6bf6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561097f57600080fd5b505af1158015610993573d6000803e3d6000fd5b50505050565b806080015165ffffffffffff164211156109df576040517f203d82d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6109e93382610488565b610a1f576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610a293382611057565b6105358160200151338360400151610ebf565b610a44610eef565b61053581611206565b610a55610eef565b735ff137d4b0fdcd49dca30c7cf57e578a026d27896040517fc23a5cea00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8381166004830152919091169063c23a5cea90602401600060405180830381600087803b158015610ad557600080fd5b505af1158015610ae9573d6000803e3d6000fd5b5050505050565b610af8610eef565b63389a75e1600c52806000526020600c208054421115610b2057636f5e88186000526004601cfd5b6000905561053581610f91565b610b35610eef565b8060601b610b4b57637448fbae6000526004601cfd5b61053581610f91565b6060600033735ff137d4b0fdcd49dca30c7cf57e578a026d278914610ba5576040517f82b4290000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610bb56101208701876117da565b610bc3916014908290611846565b810190610bd09190611610565b604081015190915084811015610c21576040517f7582f47200000000000000000000000000000000000000000000000000000000815260048101829052602481018690526044015b60405180910390fd5b602082015173ffffffffffffffffffffffffffffffffffffffff1615610c915760208201516040517f140e116500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9091166004820152602401610c18565b610ca7610ca1602089018961164d565b83611057565b6000610cbf610cb960208a018a61164d565b84610488565b15905060a0836080015165ffffffffffff16901b81610cdf576000610ce2565b60015b60ff16179350610cf286836117b4565b60016000610d0360208c018c61164d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254610d4c91906117c7565b90915550869050610d6060208a018a61164d565b604051602001610d9092919091825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b6040516020818303038152906040529450505050935093915050565b73ffffffffffffffffffffffffffffffffffffffff9092169160008315610eb8576040518360005260208301516040526040835103610e29576040830151601b8160ff1c016020528060011b60011c60605250602060016080600060015afa805186183d1517610e2757506000606052604052506001610eb8565b505b6041835103610e6f57606083015160001a6020526040830151606052602060016080600060015afa805186183d1517610e6d57506000606052604052506001610eb8565b505b600060605280604052631626ba7e60e01b808252846004830152602482016040815284516020018060448501828860045afa505060208160443d01858a5afa9051909114169150505b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8316610ee45761059b8282610ff7565b61059b838383611241565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927543314610725576382b429006000526004601cfd5b6000815160207f19457468657265756d205369676e6564204d6573736167653a0a000000000000815260008052815b600182039150600a81066030018253600a900480610f545750603a03602081113d3d3e805160005117845281810160209190910384012092525090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffff74873927805473ffffffffffffffffffffffffffffffffffffffff9092169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a355565b60003860003884865af16110135763b12d13eb6000526004601cfd5b5050565b8147101561102d5763b12d13eb6000526004601cfd5b600038600038858786f161059b57826000526073600b5360ff6020536016600b83f061059b573838fd5b6060810151600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16156110ce5780606001516040517fb1373a6c000000000000000000000000000000000000000000000000000000008152600401610c1891815260200190565b600080546110dc9047611870565b602083015190915073ffffffffffffffffffffffffffffffffffffffff1615801561110a5750808260400151115b15611152578160400151816040517f4c362064000000000000000000000000000000000000000000000000000000008152600401610c18929190918252602082015260400190565b606082018051600090815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8089168086529184529382902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905591860151818701519451915193169391927f8e7cffd3059dabab9850e8d5537f8a291f7c5ed69254d02609751c9afdaaeb1d926111f992908252602082015260400190565b60405180910390a3505050565b60008190556040518181527f8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e19060200160405180910390a150565b81601452806034526fa9059cbb00000000000000000000000060005260206000604460106000875af13d156001600051141716611286576390b8ec186000526004601cfd5b6000603452505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461053557600080fd5b80356112bd81611290565b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715611314576113146112c2565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611361576113616112c2565b604052919050565b803565ffffffffffff811681146112bd57600080fd5b600060a0828403121561139157600080fd5b6113996112f1565b9050813567ffffffffffffffff808211156113b357600080fd5b818401915084601f8301126113c757600080fd5b81356020828211156113db576113db6112c2565b61140b817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8501160161131a565b9250818352868183860101111561142157600080fd5b8181850182850137600081838501015282855261143f8187016112b2565b8186015250505050604082013560408201526060820135606082015261146760808301611369565b608082015292915050565b6000806040838503121561148557600080fd5b823561149081611290565b9150602083013567ffffffffffffffff8111156114ac57600080fd5b6114b88582860161137f565b9150509250929050565b600080604083850312156114d557600080fd5b82356114e081611290565b946020939093013593505050565b60008060006060848603121561150357600080fd5b833561150e81611290565b9250602084013561151e81611290565b929592945050506040919091013590565b6000806040838503121561154257600080fd5b82359150602083013563ffffffff8116811461155d57600080fd5b809150509250929050565b60006020828403121561157a57600080fd5b5035919050565b6000806000806060858703121561159757600080fd5b8435600381106115a657600080fd5b9350602085013567ffffffffffffffff808211156115c357600080fd5b818701915087601f8301126115d757600080fd5b8135818111156115e657600080fd5b8860208285010111156115f857600080fd5b95986020929092019750949560400135945092505050565b60006020828403121561162257600080fd5b813567ffffffffffffffff81111561163957600080fd5b6116458482850161137f565b949350505050565b60006020828403121561165f57600080fd5b8135610eb881611290565b60008060006060848603121561167f57600080fd5b833567ffffffffffffffff81111561169657600080fd5b840161016081870312156116a957600080fd5b95602085013595506040909401359392505050565b604081526000835180604084015260005b818110156116ec57602081870181015160608684010152016116cf565b5060006060828501015260607fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168401019150508260208301529392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000806040838503121561177357600080fd5b82359150602083013561155d81611290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b818103818111156104c9576104c9611785565b808201808211156104c9576104c9611785565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261180f57600080fd5b83018035915067ffffffffffffffff82111561182a57600080fd5b60200191503681900382131561183f57600080fd5b9250929050565b6000808585111561185657600080fd5b8386111561186357600080fd5b5050820193919092039150565b6000826118a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b50049056fea26469706673582212204fa94ce5f4c31e9c2da66a7702fb8b6452d7b422c884b862aae2e9bdada0515364736f6c63430008170033000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b0000000000000000000000000000000000000000000000000000000000000014", + "nonce": "0x5c", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointDeposit(uint256)", + "arguments": [ + "10000000000000000" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x13462", + "value": "0x2386f26fc10000", + "data": "0x7c8d4949000000000000000000000000000000000000000000000000002386f26fc10000", + "nonce": "0x5d", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "entryPointAddStake(uint256,uint32)", + "arguments": [ + "100000000000000000", + "86400" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0x15a43", + "value": "0x16345785d8a0000", + "data": "0x5b34b272000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "nonce": "0x5e", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionType": "CALL", + "contractName": "MagicSpend", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "function": "transferOwnership(address)", + "arguments": [ + "0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7" + ], + "transaction": { + "type": "0x02", + "from": "0xfd896bf5eba7e1b9843b91ef6182de16b547273b", + "to": "0x011a61c07dbf256a68256b1cb51a5e246730ab92", + "gas": "0xa293", + "value": "0x0", + "data": "0xf2fde38b0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7", + "nonce": "0x5f", + "accessList": [] + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "cumulativeGasUsed": "0x1dbd75", + "gasUsed": "0x168a7d", + "contractAddress": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x0000000000000000000000000000000000000000000000000000000000000000", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b" + ], + "data": "0x", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "logIndex": "0x3", + "removed": false + }, + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8e50f7d01ef1d2915d3115fc0152c6a85cb0c84de7e57611c0b0f8063bb858e1" + ], + "data": "0x0000000000000000000000000000000000000000000000000000000000000014", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xaef5737bf08be8cdc48725ce04016e5ac93716633e8ef257ed6b1e8aceaa25de", + "transactionIndex": "0x6", + "logIndex": "0x4", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000020004000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionIndex": "0x7", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x1e9cb9", + "gasUsed": "0xdf44", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0x2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000002386f26fc10000", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0xec5453246a7fa7a44ef888b3e69ffce63f8416a734cf1b65839870ac2a493631", + "transactionIndex": "0x7", + "logIndex": "0x5", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000880000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000040000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionIndex": "0x8", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x1f9769", + "gasUsed": "0xfab0", + "contractAddress": null, + "logs": [ + { + "address": "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789", + "topics": [ + "0xa5ae833d0bb1dcd632d98a8b70973e8516812898e19bf27b70071ebc8dc52c01", + "0x000000000000000000000000011a61c07dbf256a68256b1cb51a5e246730ab92" + ], + "data": "0x000000000000000000000000000000000000000000000000016345785d8a00000000000000000000000000000000000000000000000000000000000000015180", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0x4e5396af7730c859295cce8722068efd5f1f863e571d68753bc69665a44878c8", + "transactionIndex": "0x8", + "logIndex": "0x6", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000004000000000000000000000000000000000000000000000200000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000880000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000001000100000000000000000000000000000000000200000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + }, + { + "transactionHash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionIndex": "0x9", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "from": "0xfd896Bf5Eba7E1B9843B91ef6182DE16B547273B", + "to": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "cumulativeGasUsed": "0x200693", + "gasUsed": "0x6f2a", + "contractAddress": null, + "logs": [ + { + "address": "0x011A61C07DbF256A68256B1cB51A5e246730aB92", + "topics": [ + "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", + "0x000000000000000000000000fd896bf5eba7e1b9843b91ef6182de16b547273b", + "0x0000000000000000000000003e0cd4dc43811888efa242ab17118fce0035eff7" + ], + "data": "0x", + "blockHash": "0x9a07e93bb2f47f802d4d1df60ded5885aa4cd94d54cc9940321b1a6b2eebe484", + "blockNumber": "0x82705d", + "transactionHash": "0x13e479ab96faccb2da4834bf604de6593441117168d1860c7baa3bfee9b2897e", + "transactionIndex": "0x9", + "logIndex": "0x7", + "removed": false + } + ], + "status": "0x1", + "logsBloom": "0x00000000000000000000000000000000000000000000000020800008000000000000000000000000000000000000000000000000000000000000020000000000000000001000000000000000000000000001000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000004000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "type": "0x2", + "effectiveGasPrice": "0x61b82" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1712865199, + "chain": 84532, + "commit": "cc312ea" +} \ No newline at end of file diff --git a/script/DeployMagicSpend.s.sol b/script/DeployMagicSpend.s.sol index b00418c..247de09 100644 --- a/script/DeployMagicSpend.s.sol +++ b/script/DeployMagicSpend.s.sol @@ -9,10 +9,11 @@ contract MagicSpendDeployScript is Script { function setUp() public {} function run() public { + // console2.logBytes32(keccak256(abi.encodePacked(type(MagicSpend).creationCode, abi.encode(vm.addr(deployerPrivateKey), 20)))); address signerAddress = 0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7; uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); vm.startBroadcast(deployerPrivateKey); - MagicSpend c = new MagicSpend{salt: "0x1"}(vm.addr(deployerPrivateKey), 20); + MagicSpend c = new MagicSpend{salt: 0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b}(vm.addr(deployerPrivateKey), 20); console2.log(address(c)); c.entryPointDeposit{value: 0.01 ether}(0.01 ether); c.entryPointAddStake{value: 0x16345785d8a0000}(0x16345785d8a0000, 0x15180); From a050ea8b04c3c4efde77c3a80310bb386ed3956f Mon Sep 17 00:00:00 2001 From: Wilson Cusack Date: Thu, 11 Apr 2024 15:55:37 -0400 Subject: [PATCH 2/2] update readme and fmt --- README.md | 1 + script/DeployMagicSpend.s.sol | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0032ba7..80cef9d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ This flow is like "Pay gas only” with the addition of (7.) and (8.). Here, the | Network | Contract Address | |-----------|-----------------------------------------| | Base | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://basescan.org/address/0x011A61C07DbF256A68256B1cB51A5e246730aB92) | +| Base Sepolia | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://sepolia.basescan.org/address/0x011a61c07dbf256a68256b1cb51a5e246730ab92) | ## Developing diff --git a/script/DeployMagicSpend.s.sol b/script/DeployMagicSpend.s.sol index 247de09..ce014e5 100644 --- a/script/DeployMagicSpend.s.sol +++ b/script/DeployMagicSpend.s.sol @@ -13,7 +13,9 @@ contract MagicSpendDeployScript is Script { address signerAddress = 0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7; uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); vm.startBroadcast(deployerPrivateKey); - MagicSpend c = new MagicSpend{salt: 0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b}(vm.addr(deployerPrivateKey), 20); + MagicSpend c = new MagicSpend{salt: 0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b}( + vm.addr(deployerPrivateKey), 20 + ); console2.log(address(c)); c.entryPointDeposit{value: 0.01 ether}(0.01 ether); c.entryPointAddStake{value: 0x16345785d8a0000}(0x16345785d8a0000, 0x15180);