Skip to content

Commit

Permalink
Update deployment readme
Browse files Browse the repository at this point in the history
  • Loading branch information
makoto committed Nov 10, 2023
1 parent 738bedc commit 3f9587d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crosschain-resolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,9 @@ bun run hardhat deploy --network goerli
- DelegatableResolver = [0xE00739Fc93e27aBf44343fD5FAA151c67C0A0Aa3](https://goerli-optimism.etherscan.io/address/0xE00739Fc93e27aBf44343fD5FAA151c67C0A0Aa3)
- DelegatableResolverFactory = [0xacB9771923873614d77C914D716d8E25dAF09b8d](https://goerli-optimism.etherscan.io/address/0xacB9771923873614d77C914D716d8E25dAF09b8d)
#### L1
- L1Resolver = [0x65a0963A2941A13a96FcDCfE36c94c6a341f26E5](https://goerli.etherscan.io/address/0x65a0963A2941A13a96FcDCfE36c94c6a341f26E5)
- L1Resolver = [0x65a0963A2941A13a96FcDCfE36c94c6a341f26E5](https://goerli.etherscan.io/address/0x65a0963A2941A13a96FcDCfE36c94c6a341f26E5) = Currently `op.evmgateway.eth` is set to the resolver


## Usage

TODO
21 changes: 20 additions & 1 deletion crosschain-reverse-resolver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,29 @@ Followed by the L1 contract:
bun run hardhat deploy --network goerli
```

After deployment is complete, set the rersolver of $REVERSE_NAMESPACE to L1ReverseResolver contract address

## Deployments

### OP
#### L2
- L2ReverseRegistrar = [0x7D006EFd21eb282C8B0a425BAB546517bfEC2cc2](https://goerli-optimism.etherscan.io/address/0x7D006EFd21eb282C8B0a425BAB546517bfEC2cc2)
#### L1
- L1ReverseResolver = [0xeEB5832Ea8732f7EF06d468E40F562c9D7347795](https://goerli.etherscan.io/address/0xeEB5832Ea8732f7EF06d468E40F562c9D7347795)
- L1ReverseResolver = [0xeEB5832Ea8732f7EF06d468E40F562c9D7347795](https://goerli.etherscan.io/address/0xeEB5832Ea8732f7EF06d468E40F562c9D7347795) = Currently `op.reverse.evmgateway.eth` is set to the resolver

## Usage

### Set Primary name on L2
```
const name = 'vitalik.eth'
const registrar = registrar.setName(name)
```
### Query Primary name on L1

The current goerli primary namespace is set at 'op.reverse.evmgateway.eth'. Once the ENS DAO approves it, it will be put under `${cointype}.ververse`

```
const namespace = 'op.reverse.evmgateway.eth'
const reverseResolver = ens.resolver(namespace)
const primaryName = resolver.name(namehash(`${namehash(YOURADDRESS).${NAMESPACE}}`), { enableCcipRead: true })
```

0 comments on commit 3f9587d

Please sign in to comment.