Skip to content

Commit 45be72f

Browse files
authored
feat: specs update (#41)
* feat: add events and interfaces and refactor type * feat: updated PA to match SRM * refactor: simplify DeltaProof * fix: deterministic deployment test
1 parent b55882a commit 45be72f

24 files changed

+297
-329
lines changed

script/Deploy.s.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ contract Deploy is BaseScript {
1212

1313
IRiscZeroVerifier trustedSepoliaVerifier = IRiscZeroVerifier(vm.parseAddress(vm.readLine(path)));
1414

15-
bytes32 logicCircuitID = vm.parseBytes32(vm.readLine(path));
16-
1715
bytes32 complianceCircuitID = vm.parseBytes32(vm.readLine(path));
1816

19-
uint8 treeDepth = uint8(vm.parseUint(vm.readLine(path)));
17+
uint8 commitmentTreeDepth = uint8(vm.parseUint(vm.readLine(path)));
18+
19+
uint8 actionTreeDepth = uint8(vm.parseUint(vm.readLine(path)));
2020

2121
protocolAdapter = address(
2222
new ProtocolAdapter{salt: sha256("ProtocolAdapter")}({
2323
riscZeroVerifier: trustedSepoliaVerifier,
24-
logicCircuitID: logicCircuitID,
2524
complianceCircuitID: complianceCircuitID,
26-
treeDepth: treeDepth
25+
commitmentTreeDepth: commitmentTreeDepth,
26+
actionTreeDepth: actionTreeDepth
2727
})
2828
);
2929
}

script/constructor-args.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
0x925d8331ddc0a1F0d96E68CF073DFE1d92b69187
22
0x0000000000000000000000000000000000000000000000000000000000000000
3-
0x0000000000000000000000000000000000000000000000000000000000000000
4-
32
3+
32
4+
4

src/ERC20Forwarder.sol

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ contract ERC20Forwarder is ForwarderBase {
1919
_ERC20_CONTRACT = erc20;
2020
}
2121

22-
// TODO make generic proxy, allow native ETH transfers
2322
function _forwardCall(bytes calldata input) internal override returns (bytes memory output) {
2423
output = _ERC20_CONTRACT.functionCall(input);
2524
}
26-
27-
// Native ETH transfer
28-
// TODO! The msg.sender must call directly, but the protocol adapter is the caller. This won't work.
29-
//receive() external payable {
30-
// emit NativeTokenDeposited(msg.sender, msg.value);
31-
//}
3225
}

0 commit comments

Comments
 (0)