Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
script
Browse files Browse the repository at this point in the history
  • Loading branch information
0xrajath committed Apr 2, 2024
1 parent 96d5701 commit 36d9cc0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions script/DeployLlamaFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {Script, stdJson} from "forge-std/Script.sol";

import {LlamaAccount} from "src/accounts/LlamaAccount.sol";
import {LlamaAccountWithDelegation} from "src/accounts/LlamaAccountWithDelegation.sol";
import {LlamaAccountExecuteGuard} from "src/guards/LlamaAccountExecuteGuard.sol";
import {LlamaActionGuardFactory} from "src/guards/LlamaActionGuardFactory.sol";
import {LlamaCore} from "src/LlamaCore.sol";
import {LlamaFactory} from "src/LlamaFactory.sol";
import {LlamaLens} from "src/LlamaLens.sol";
Expand Down Expand Up @@ -33,9 +35,11 @@ contract DeployLlamaFactory is Script {
LlamaAccountWithDelegation accountWithDelegationLogic;
LlamaPolicy policyLogic;
LlamaPolicyMetadata policyMetadataLogic;
LlamaAccountExecuteGuard accountExecuteGuardLogic;

// Factory and lens contracts.
LlamaFactory factory;
LlamaActionGuardFactory actionGuardFactory;
LlamaLens lens;

// Llama scripts
Expand Down Expand Up @@ -141,5 +145,17 @@ contract DeployLlamaFactory is Script {
DeployUtils.print(
string.concat(" LlamaAccountTokenDelegationScript:", vm.toString(address(accountTokenDelegationScript)))
);

vm.broadcast();
(success,) = msg.sender.call("");
DeployUtils.print(string.concat(" Self call succeeded? ", vm.toString(success)));

vm.broadcast();
actionGuardFactory = new LlamaActionGuardFactory();
DeployUtils.print(string.concat(" LlamaActionGuardFactory:", vm.toString(address(actionGuardFactory))));

vm.broadcast();
accountExecuteGuardLogic = new LlamaAccountExecuteGuard();
DeployUtils.print(string.concat(" LlamaAccountExecuteGuardLogic:", vm.toString(address(accountExecuteGuardLogic))));
}
}

0 comments on commit 36d9cc0

Please sign in to comment.