Skip to content

Commit

Permalink
feat: add PemCertChainLib to deployments/deploy_l1.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nmjustinchan committed Dec 3, 2024
1 parent de2eedd commit 1ece9e4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/protocol/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ WORKDIR /app

COPY . .

RUN apt-get update && apt-get install -y jq

RUN git init && \
curl -L https://foundry.paradigm.xyz | bash && \
npm install -g pnpm && \
Expand Down
6 changes: 6 additions & 0 deletions packages/protocol/script/layer1/DeploySurgeOnL1.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,12 @@ contract DeploySurgeOnL1 is DeployCapability {
P256Verifier p256Verifier = new P256Verifier();
SigVerifyLib sigVerifyLib = new SigVerifyLib(address(p256Verifier));
PEMCertChainLib pemCertChainLib = new PEMCertChainLib();

addAddress({
name: "PemCertChainLib",
proxy: address(pemCertChainLib)
});

address automateDcapV3AttestationImpl = address(new AutomataDcapV3Attestation());

address automataProxy = deployProxy({
Expand Down
7 changes: 7 additions & 0 deletions packages/protocol/test/shared/DeployCapability.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ import "src/shared/common/AddressManager.sol";
abstract contract DeployCapability is Script {
error ADDRESS_NULL();

function addAddress(string memory name, address proxy) internal {
vm.writeJson(
vm.serializeAddress("deployment", name, proxy),
string.concat(vm.projectRoot(), "/deployments/deploy_l1.json")
);
}

function deployProxy(
string memory name,
address impl,
Expand Down

0 comments on commit 1ece9e4

Please sign in to comment.