Skip to content

Commit

Permalink
add new deployments to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Jul 28, 2023
1 parent a60aa67 commit a4352a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,12 @@ The BedrockCCIPVerifier just supports one contract on Optimism. If you want to u

### Goerli

Ccip Resolver: 0x49e0AeC78ec0dF50852E99116E524a43bE91B789
Ccip Resolver: 0x491316b83fDb7dC1370b0815775C8d2D2d0b6428

#### Optimism Verifier

BedrockProofVerifier : 0xFB0b8DA29664F75c01d24655cfA3D8a46A009447
BedrockCcipVerifier : 0x60BfFf5a1Fc8420B911c6015361786e4a2f222c2
BedrockProofVerifier : 0x37c75DaE09e82Cd0211Baf95DE18f069F64Cb069

#### Signature Verifier

SignatureCcipVerifier : 0x97c56E2E0b08fEa62847a3801a3E0Eaf7E61F155
SignatureCcipVerifier : 0x3f6d89De40297945fB7DE6Ce8Ec4A2FC2e908C1E
9 changes: 5 additions & 4 deletions deploy/03_BedrockCcipVerifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ import hre, { ethers } from "hardhat";
async function main() {
const [owner] = await ethers.getSigners();
const graphQlUrl = "http://localhost:8081/graphql";
const bedrockProofVerifierAddress = "0x49FA2e3dc397d6AcA8e2DAe402eB2fD6164EebAC";
const l2ResolverAddress = "0x39Dc8A3A607970FA9F417D284E958D4cA69296C8";
const bedrockProofVerifierAddress = "0x37c75DaE09e82Cd0211Baf95DE18f069F64Cb069";
//TBD add the address you want to resolve on l2
const l2ContractAddress = "";

const BedrockProofVerifierFactory = await ethers.getContractFactory("BedrockCcipVerifier");
const deployTx = await BedrockProofVerifierFactory.deploy(owner.address, graphQlUrl, bedrockProofVerifierAddress, l2ResolverAddress);
const deployTx = await BedrockProofVerifierFactory.deploy(owner.address, graphQlUrl, bedrockProofVerifierAddress, l2ContractAddress);
await deployTx.deployed();

console.log(`BedrockCcipVerifier deployed at ${deployTx.address}`);
console.log(
`Verify the contract using npx hardhat verify --network ${hre.network.name} ${deployTx.address} ${owner.address} ${graphQlUrl} ${bedrockProofVerifierAddress} ${l2ResolverAddress} `
`Verify the contract using npx hardhat verify --network ${hre.network.name} ${deployTx.address} ${owner.address} ${graphQlUrl} ${bedrockProofVerifierAddress} ${l2ContractAddress} `
);
}

Expand Down
2 changes: 1 addition & 1 deletion deploy/04_SignatureCcipVerifier.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import hre, { ethers } from "hardhat";

const CCIP_RESOLVER_ADDRESS = "0x49e0AeC78ec0dF50852E99116E524a43bE91B789";
const CCIP_RESOLVER_ADDRESS = "0x491316b83fDb7dC1370b0815775C8d2D2d0b6428";
const NAME = "SignatureCcipVerifier";
const GraphQlUrl = "http://localhost:8081/graphql";
async function main() {
Expand Down
3 changes: 1 addition & 2 deletions test/gateway/readConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import { expect } from "chai";

import { getConfigReader } from "../../gateway/config/ConfigReader";

// 0x49e0aec78ec0df50852e99116e524a43be91b789
// 0x49e0AeC78ec0dF50852E99116E524a43bE91B789

describe("ReadConfig Test", () => {
it("Reads config for Signiture Resolver", () => {
const configString = JSON.stringify({
Expand Down

0 comments on commit a4352a1

Please sign in to comment.