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 transfer proxy factory #337

Merged
merged 1 commit into from
Jul 1, 2024
Merged
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: 3 additions & 0 deletions script/Deployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {InvestmentManager} from "src/InvestmentManager.sol";
import {TrancheTokenFactory} from "src/factories/TrancheTokenFactory.sol";
import {ERC7540VaultFactory} from "src/factories/ERC7540VaultFactory.sol";
import {RestrictionManagerFactory} from "src/factories/RestrictionManagerFactory.sol";
import {TransferProxyFactory} from "src/factories/TransferProxyFactory.sol";
import {PoolManager} from "src/PoolManager.sol";
import {Escrow} from "src/Escrow.sol";
import {CentrifugeRouter} from "src/CentrifugeRouter.sol";
Expand Down Expand Up @@ -42,6 +43,7 @@ contract Deployer is Script {
address public vaultFactory;
address public restrictionManagerFactory;
address public trancheTokenFactory;
address public transferProxyFactory;

function deploy(address deployer) public {
// If no salt is provided, a pseudo-random salt is generated,
Expand All @@ -57,6 +59,7 @@ contract Deployer is Script {
trancheTokenFactory = address(new TrancheTokenFactory{salt: salt}(address(root), deployer));
investmentManager = new InvestmentManager(address(root), address(escrow));
poolManager = new PoolManager(address(escrow), vaultFactory, restrictionManagerFactory, trancheTokenFactory);
transferProxyFactory = address(new TransferProxyFactory{salt: salt}(address(poolManager)));

routerEscrow = new Escrow(deployer);
centrifugeRouter = new CentrifugeRouter(address(routerEscrow), address(poolManager));
Expand Down
Loading