Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy latest 11A61C #20

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,3 @@ docs/

crytic-export/
echidna-corpus/

/deploy
/broadcast
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -76,7 +73,8 @@ 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) |
| Base Sepolia | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://sepolia.basescan.org/address/0x011a61c07dbf256a68256b1cb51a5e246730ab92) |


## Developing
Expand Down
241 changes: 241 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/8453/run-latest.json

Large diffs are not rendered by default.

209 changes: 209 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json

Large diffs are not rendered by default.

173 changes: 173 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json

Large diffs are not rendered by default.

241 changes: 241 additions & 0 deletions broadcast/DeployMagicSpend.s.sol/84532/run-latest.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion script/DeployMagicSpend.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ contract MagicSpendDeployScript is Script {
function setUp() public {}

function run() public {
// console2.logBytes32(keccak256(abi.encodePacked(type(MagicSpend).creationCode, abi.encode(vm.addr(deployerPrivateKey), 20))));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

keeping incase useful in future :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is for mining create2 vanity addresses

Copy link
Contributor

Choose a reason for hiding this comment

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

nice vanity found with 11A61C!!!

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);
Expand Down
Loading