Skip to content

Commit

Permalink
fix: update guides
Browse files Browse the repository at this point in the history
  • Loading branch information
wellitongervickas committed Nov 28, 2023
1 parent 95ebd25 commit 4b99588
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 26 deletions.
32 changes: 6 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@

## Contracts

#### AccessManagement
### Avalanche Fuji (43113)

- Avalanche Fuji: 0x091BEbE42637D6c283f88ceF478Cab8581293f73 (❌ pending)
- Optimism Goerli: 0xd9b59f89A8FEF69d2Dbc028C9f00087432589F72 (✅verified)
- AccessManagement: 0x091BEbE42637D6c283f88ceF478Cab8581293f73 (❌ pending)
- Hub: 0xA5fBbb4B142A8062b37A2f2CbeBe8c67F65C9978 (❌ pending)

#### Hub
### Optimism Goerli (420)

- Avalanche Fuji: 0xA5fBbb4B142A8062b37A2f2CbeBe8c67F65C9978 (❌ pending)
- Optimism Goerli: 0x78a321E00Be5bf8Df399FCE76D92fd5C900638c9 (✅verified)
- AccessManagement: 0xd9b59f89A8FEF69d2Dbc028C9f00087432589F72 (✅verified)
- Hub: 0x78a321E00Be5bf8Df399FCE76D92fd5C900638c9 (✅verified)

## Getting Started

Expand Down Expand Up @@ -57,24 +57,4 @@ pnpm release --network 43113
pnpm verify:hub --network [networkid] [hubAddress] ["AccessManagementAddress"]
```

## Adding new app

```shell
pnpm hardhat add-new-app --hub-address [hubAddress] --app-address [appAddress] --name ["appName"] --description ["appDescription"] --network [networkId]
```

## Grating role

Please, read [extra guides here](guides-examples.md).

```shell
pnpm hardhat grant-role --network 420 --access-management-address 0xd9b59f89A8FEF69d2Dbc028C9f00087432589F72 --target-address 0xeb52e9ae4a9fb37172978642d4c141ef53876f26 --role 3
```

## Granting function role

Please, read [extra guides here](guides-examples.md).

```shell
pnpm hardhat set-function-role --network 420 --access-management-address 0xd9b59f89A8FEF69d2Dbc028C9f00087432589F72 --target-address 0xA5fBbb4B142A8062b37A2f2CbeBe8c67F65C9978 --role 2 --bytes4-selector 0x31b85566
```
14 changes: 14 additions & 0 deletions guides-examples.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## Example adding new app

### 43113 (fuji)

```shell
pnpm hardhat add-new-app --network 43113 --hub-address [hubAddress] --app-address [appAddress] --name ["appName"] --description ["appDescription"]
```

### 420 (goerli)

```shell
pnpm hardhat add-new-app --network 420 --hub-address [hubAddress] --app-address [appAddress] --name ["appName"] --description ["appDescription"]
```

## Examples to setting contract roles

### 43113 (fuji)
Expand Down

0 comments on commit 4b99588

Please sign in to comment.