Skip to content

Commit

Permalink
chore: add v3 deployment (#389)
Browse files Browse the repository at this point in the history
* chore: add v3 deployment

* fix: pin fork block in deploy test
  • Loading branch information
horsefacts committed Aug 30, 2023
1 parent c2526fa commit 48377a4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
26 changes: 23 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ This repository contains all the contracts deployed by the [Farcaster protocol](
2. **[Storage Registry](./src/StorageRegistry.sol)** - allocates storage to fids and collects rent.
3. **[Key Registry](./src/KeyRegistry.sol)** - allows users with an fid to register key pairs for signing messages.
4. **[Bundler](./src/Bundler.sol)** - allows calling registry and storage in a single transaction.
5. **[Fname Resolver](./src/FnameResolver.sol)** - validates Farcaster ENS names which were issued off-chain.
5. **[Signed Key Request Validator](./src/validators/SignedKeyRequestValidator.sol)** - validates key registry metadata.
6. **[Recovery Proxy](./src/RecoveryProxy.sol)** - proxy for recovery service operators to initiate fid recovery.
7. **[Fname Resolver](./src/FnameResolver.sol)** - validates Farcaster ENS names which were issued off-chain.

Read the [docs](docs/docs.md) for more details on how the contracts work.

Expand All @@ -18,13 +20,31 @@ Please see the [contributing guidelines](CONTRIBUTING.md).

### v3 Contracts

The v3 contracts have not yet been deployed.
The [v3 contracts](https://github.com/farcasterxyz/contracts/releases/tag/v3.0.0) are deployed on both Optimism mainnet and Ethereum mainnet.

The L2 contracts can be found at the following addresses on Optimism mainnet:

| Contract | Address |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| IdRegistry | [0x00000000fcaf86937e41ba038b4fa40baa4b780a](https://optimistic.etherscan.io/address/0x00000000fcaf86937e41ba038b4fa40baa4b780a) |
| StorageRegistry | [0x00000000fcce7f938e7ae6d3c335bd6a1a7c593d](https://optimistic.etherscan.io/address/0x00000000fcce7f938e7ae6d3c335bd6a1a7c593d) |
| KeyRegistry | [0x00000000fc9e66f1c6d86d750b4af47ff0cc343d](https://optimistic.etherscan.io/address/0x00000000fc9e66f1c6d86d750b4af47ff0cc343d) |
| Bundler | [0x00000000fc94856f3967b047325f88d47bc225d0](https://optimistic.etherscan.io/address/0x00000000fc94856f3967b047325f88d47bc225d0) |
| SignedKeyRequestValidator | [0x00000000fc700472606ed4fa22623acf62c60553](https://optimistic.etherscan.io/address/0x00000000fc700472606ed4fa22623acf62c60553) |
| RecoveryProxy | [0x00000000fcd5a8e45785c8a4b9a718c9348e4f18](https://optimistic.etherscan.io/address/0x00000000fcd5a8e45785c8a4b9a718c9348e4f18) |

The L1 contract can be found at the following address on Ethereum mainnet:

| Contract | Address |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| FnameResolver | Not yet deployed |


### v2 Contracts

The [v2 contracts](https://github.com/farcasterxyz/contracts/releases/tag/v2.0.0) can be found at the following addresses on L1 Goerli:

| Network | Address |
| Contract | Address |
| -------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| IdRegistry | [0xda107a1caf36d198b12c16c7b6a1d1c795978c42](https://goerli.etherscan.io/address/0xda107a1caf36d198b12c16c7b6a1d1c795978c42) |
| NameRegistry | [0xe3be01d99baa8db9905b33a3ca391238234b79d1](https://goerli.etherscan.io/address/0xe3be01d99baa8db9905b33a3ca391238234b79d1) |
Expand Down
2 changes: 1 addition & 1 deletion test/Deploy/DeployL2.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ contract DeployL2Test is DeployL2, Test {
address internal deployer = address(0x6D2b70e39C6bc63763098e336323591eb77Cd0C6);

function setUp() public {
vm.createSelectFork("l2_mainnet");
vm.createSelectFork("l2_mainnet", 108869038);

(alice, alicePk) = makeAddrAndKey("alice");
(bob, bobPk) = makeAddrAndKey("bob");
Expand Down

0 comments on commit 48377a4

Please sign in to comment.