Skip to content

Commit

Permalink
Merge branch 'allowlist-feature' into ui-allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Corantin committed Sep 15, 2024
2 parents a1565d6 + 286cc76 commit 5b8ed37
Show file tree
Hide file tree
Showing 23 changed files with 1,067 additions and 1,058 deletions.
2 changes: 1 addition & 1 deletion apps/web/configs/chains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type ChainData = {
isTestnet: boolean;
};

const SUBGRAPH_TESTNET_VERSION = "0.1.0";
const SUBGRAPH_TESTNET_VERSION = "0.1.1";
const SUBGRAPH_PRODNET_VERSION = "1.3";

export const chainConfigMap: {
Expand Down
2,060 changes: 1,030 additions & 1,030 deletions broadcast/DeployCVMultiChain.s.sol/421614/run-latest.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/CVStrategyV0_0.sol/CVStrategyV0_0.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/CVStrategyV0_0.sol/IPointStrategy.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/CVStrategyV0_0.sol/StrategyStruct.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/CVStrategyV0_1.sol/CVStrategyV0_1.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/CVStrategyV0_1.sol/StrategyStruct2.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/FAllo.sol/FAllo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/IArbitrator.sol/IArbitrator.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/ISafe.sol/Enum.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/ISafe.sol/ISafe.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/ISafe.sol/SafeProxyFactory.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/PassportScorer.sol/PassportScorer.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/contracts/out/SafeArbitrator.sol/SafeArbitrator.json

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion pkg/contracts/src/CVStrategy/CVStrategyV0_1.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,20 @@ contract CVStrategyV0_1 is CVStrategyV0_0 {
address[] memory membersToRemove
) internal virtual {
super._setPoolParams(_arbitrableConfig, _cvParams);

_addToAllowList(membersToAdd);
_removeFromAllowList(membersToRemove);
}

function setPoolParams(
StrategyStruct.ArbitrableConfig memory _arbitrableConfig,
StrategyStruct.CVParams memory _cvParams,
address[] memory membersToAdd,
address[] memory membersToRemove
) external virtual {
onlyCouncilSafe();
_setPoolParams(_arbitrableConfig, _cvParams, membersToAdd, membersToRemove);
}

function _canExecuteAction(address _user) internal view override returns (bool) {
if (address(sybilScorer) == address(0)) {
bytes32 allowlistRole = keccak256(abi.encodePacked("ALLOWLIST", poolId));
Expand Down
8 changes: 4 additions & 4 deletions pkg/subgraph/config/arbsepolia.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"dataSources": [
{
"name": "RegistryFactoryV0_0",
"startBlock": 79714794,
"address": "0xf7e551e8b815b9ecc3922f833551d6f47a8159ec",
"startBlock": 80895286,
"address": "0x5b1ed8559c26b06b79729e46aee400605f07a109",
"customTemplate": "registryFactory"
},
{
"name": "PassportScorer",
"startBlock": 79714794,
"address": "0xd49884140c6bcf4bda7cce84cc607a7ef2b9b2f1",
"startBlock": 80895286,
"address": "0xbeca1cf897ecd4bb21b835eaa221f1b6a96524f4",
"customTemplate": "passportScorer"
}
]
Expand Down
8 changes: 4 additions & 4 deletions pkg/subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ dataSources:
type: Int
data: 421614
source:
address: "0xf7e551e8b815b9ecc3922f833551d6f47a8159ec"
address: "0x5b1ed8559c26b06b79729e46aee400605f07a109"
abi: RegistryFactoryV0_0
startBlock: 79714794
startBlock: 80895286
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand Down Expand Up @@ -46,9 +46,9 @@ dataSources:
type: Int
data: 421614
source:
address: "0xd49884140c6bcf4bda7cce84cc607a7ef2b9b2f1"
address: "0xbeca1cf897ecd4bb21b835eaa221f1b6a96524f4"
abi: PassportScorer
startBlock: 79714794
startBlock: 80895286
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand Down

0 comments on commit 5b8ed37

Please sign in to comment.