Skip to content

Commit 2011f55

Browse files
authored
Merge pull request #20 from coinbase/wilson/deploy
Deploy latest 11A61C
2 parents cc312ea + a050ea8 commit 2011f55

9 files changed

Lines changed: 1352 additions & 8 deletions

File tree

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ docs/
1515

1616
crytic-export/
1717
echidna-corpus/
18-
19-
/deploy
20-
/broadcast

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
> [!IMPORTANT]
2-
> The code in this repository is still under audit. It is not yet recommended for production use.
3-
41
# Magic Spend
52

63
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,8 @@ This flow is like "Pay gas only” with the addition of (7.) and (8.). Here, the
7673

7774
| Network | Contract Address |
7875
|-----------|-----------------------------------------|
79-
| Base Sepolia | 0x619CcD22eF045De3b63d3D03224BFF5491cd5D11 |
76+
| Base | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://basescan.org/address/0x011A61C07DbF256A68256B1cB51A5e246730aB92) |
77+
| Base Sepolia | [0x011A61C07DbF256A68256B1cB51A5e246730aB92](https://sepolia.basescan.org/address/0x011a61c07dbf256a68256b1cb51a5e246730ab92) |
8078

8179

8280
## Developing

broadcast/DeployMagicSpend.s.sol/8453/run-1712864857.json

Lines changed: 241 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeployMagicSpend.s.sol/8453/run-latest.json

Lines changed: 241 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeployMagicSpend.s.sol/84532/run-1710257682.json

Lines changed: 209 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeployMagicSpend.s.sol/84532/run-1712158687.json

Lines changed: 173 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeployMagicSpend.s.sol/84532/run-1712865199.json

Lines changed: 241 additions & 0 deletions
Large diffs are not rendered by default.

broadcast/DeployMagicSpend.s.sol/84532/run-latest.json

Lines changed: 241 additions & 0 deletions
Large diffs are not rendered by default.

script/DeployMagicSpend.s.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ contract MagicSpendDeployScript is Script {
99
function setUp() public {}
1010

1111
function run() public {
12+
// console2.logBytes32(keccak256(abi.encodePacked(type(MagicSpend).creationCode, abi.encode(vm.addr(deployerPrivateKey), 20))));
1213
address signerAddress = 0x3E0cd4Dc43811888efa242Ab17118FcE0035EFF7;
1314
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
1415
vm.startBroadcast(deployerPrivateKey);
15-
MagicSpend c = new MagicSpend{salt: "0x1"}(vm.addr(deployerPrivateKey), 20);
16+
MagicSpend c = new MagicSpend{salt: 0x744a3e2dd23e300e9e2a536d0b458f5b6588560faacd6b3726d575bac506c21b}(
17+
vm.addr(deployerPrivateKey), 20
18+
);
1619
console2.log(address(c));
1720
c.entryPointDeposit{value: 0.01 ether}(0.01 ether);
1821
c.entryPointAddStake{value: 0x16345785d8a0000}(0x16345785d8a0000, 0x15180);

0 commit comments

Comments
 (0)