Skip to content

Commit

Permalink
docs: list Sepolia deployment in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Dec 5, 2023
1 parent c3abc60 commit 3baa0b6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ off-chain usage.
> Join the discussion as to how to adopt these new changes [on our discord](https://discord.gg/MTeTAwSYe7)
| Network Name | name | chainId | hexChainId | Registry Address | Registry version |
| --------------- | --------------- | ---------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|-----------------|-----------------|------------|------------|----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|
| Mainnet | mainnet | 1 | 0x1 | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b) | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0) |
| Ropsten | ropsten | 3 | 0x3 | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://ropsten.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b) | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0) |
| Rinkeby | rinkeby | 4 | 0x4 | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://rinkeby.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b) | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0) |
Expand All @@ -50,6 +50,7 @@ off-chain usage.
| Aurora | aurora | 1313161554 | 0x4E454152 | [0x63ed58b671eed12bc1652845ba5b2cdfbff198e0](https://explorer.mainnet.aurora.dev/address/0x63eD58B671EeD12Bc1652845ba5b2CDfBff198e0) | [0ab4f151](https://github.com/uport-project/ethr-did-registry/commit/0ab4f151ddde5b7739b97827c4fb901289f57892) |
| Arbitrum Goerli | arbitrum:goerli | 421613 | 0x66eed | [0x8FFfcD6a85D29E9C33517aaf60b16FE4548f517E](https://goerli.arbiscan.io/address/0x8FFfcD6a85D29E9C33517aaf60b16FE4548f517E) | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee) |
| Linea Goerli | linea:goerli | 59140 | 0xe704 | [0x03d5003bf0e79c5f5223588f347eba39afbc3818](https://goerli.lineascan.build/address/0x03d5003bf0e79c5f5223588f347eba39afbc3818) | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee) |
| Sepolia | sepolia | 11155111 | 0xaa36a7 | [0x03d5003bf0e79c5f5223588f347eba39afbc3818](https://sepolia.etherscan.io/address/0x03d5003bf0e79c5f5223588f347eba39afbc3818#code) | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee) |

## Using the Registry

Expand All @@ -59,13 +60,13 @@ To use the contract, we provide hardhat artifacts. Once you require the `ethr-di
object containing the JSON.

```javascript
const { EthereumDIDRegistry } = require('ethr-did-registry')
const {EthereumDIDRegistry} = require('ethr-did-registry')
```

You can use [`ethers.js`](https://github.com/ethers-io/ethers.js/) to utilize these artifacts.

```javascript
const { ethers } = require('ethers')
const {ethers} = require('ethers')
const DidReg = new ethers.Contract(registryAddress, EthereumDIDRegistry.abi)
DidReg.connect(yourSignerOrProvider)
```
Expand Down Expand Up @@ -195,7 +196,7 @@ event DIDDelegateChanged(
address delegate,
uint validTo,
uint previousChange
);
);
```

## Adding Off-chain Attributes
Expand Down Expand Up @@ -245,7 +246,7 @@ event DIDAttributeChanged(
bytes value,
uint validTo,
uint previousChange
);
);
```

### Delegate types and attribute names encoding
Expand Down

0 comments on commit 3baa0b6

Please sign in to comment.