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

New Daimo Pay contracts to support bridging with across #1353

Open
wants to merge 7 commits into
base: internal
Choose a base branch
from
Open
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
222 changes: 146 additions & 76 deletions packages/contract/script/Constants.s.sol

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions packages/contract/script/DeployCrepeBotLP.s.sol

This file was deleted.

38 changes: 0 additions & 38 deletions packages/contract/script/DeployCrepeFastCCTP.s.sol

This file was deleted.

31 changes: 0 additions & 31 deletions packages/contract/script/DeployCrepeHandoffFactory.s.sol

This file was deleted.

39 changes: 39 additions & 0 deletions packages/contract/script/pay/DeployDaimoPay.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.13;

import "forge-std/Script.sol";

import "../../src/pay/DaimoPay.sol";
import "../Constants.s.sol";

contract DeployDaimoPay is Script {
function run() public {
vm.startBroadcast();

address handoffFactory = CREATE3.getDeployed(
msg.sender,
keccak256("PayIntentFactory-test1")
);
address bridger = CREATE3.getDeployed(
msg.sender,
keccak256("DaimoPayBridger-test1")
);

console.log("using handoff factory at", handoffFactory);

address daimoPay = CREATE3.deploy(
keccak256("DaimoPay-test1"),
abi.encodePacked(
type(DaimoPay).creationCode,
abi.encode(handoffFactory, bridger)
)
);

vm.stopBroadcast();

console.log("daimo pay deployed at address:", daimoPay);
}

// Exclude from forge coverage
function test() public {}
}
Loading
Loading