Skip to content

Commit

Permalink
Merge pull request #20 from coinbase/wilson/deploy
Browse files Browse the repository at this point in the history
Deploy latest 11A61C
  • Loading branch information
wilsoncusack authored Apr 11, 2024
2 parents cc312ea + a050ea8 commit 2011f55
Show file tree
Hide file tree
Showing 9 changed files with 1,352 additions and 8 deletions.
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))));
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

0 comments on commit 2011f55

Please sign in to comment.