Sitelet https://github.com/fullyallocated/Default/commit/8246be56610dcc01a8178e2f4a8f87975294a351
Skip to content

Commit 8246be5

Browse files
author
fully
committed
test: initial governance draft
1 parent 4d5993d commit 8246be5

7 files changed

Lines changed: 313 additions & 301 deletions

File tree

‎lib/forge-std‎

‎lib/solmate‎

Submodule solmate updated 64 files

‎lib/test-utils‎

‎src/policies/Governance.sol‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
// The Governance Policy submits & activates instructions in a INSTR module
44

5+
// TODO:
6+
// Add governance bounty reward
7+
// Add governance participation reward
8+
// Add minimum vote threshold for activation
9+
510
pragma solidity ^0.8.15;
611

712
import {

‎test/lib/quabi/Quabi.sol‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ library Quabi {
1414
string[] memory inputs = new string[](3);
1515
inputs[0] = "sh";
1616
inputs[1] = "-c";
17-
inputs[2] = string(bytes.concat("./src/test/lib/quabi/jq.sh ", bytes(query), " ", bytes(path), ""));
17+
inputs[2] = string(bytes.concat("./test/lib/quabi/jq.sh ", bytes(query), " ", bytes(path), ""));
1818
bytes memory res = vm.ffi(inputs);
1919

2020
response = abi.decode(res, (bytes[]));
@@ -24,7 +24,7 @@ library Quabi {
2424
string[] memory inputs = new string[](3);
2525
inputs[0] = "sh";
2626
inputs[1] = "-c";
27-
inputs[2] = string(bytes.concat("./src/test/lib/quabi/path.sh ", bytes(contractName), ".json", ""));
27+
inputs[2] = string(bytes.concat("./test/lib/quabi/path.sh ", bytes(contractName), ".json", ""));
2828
bytes memory res = vm.ffi(inputs);
2929

3030
path = abi.decode(res, (string));

‎test/policies/Bond.t.sol‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ contract BondTest is Test, IBond {
5656
// set up kernel
5757
kernel.executeAction(Actions.InstallModule, address(VOTES));
5858
kernel.executeAction(Actions.InstallModule, address(TRSRY));
59-
kernel.executeAction(Actions.ApprovePolicy, address(bond));
59+
kernel.executeAction(Actions.ActivatePolicy, address(bond));
6060
}
6161

6262
function testCorrectness_Initialize() public {

0 commit comments

Comments
 (0)