Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aquiladev committed Jun 16, 2021
1 parent 90bfa5b commit 3cc265f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
17 changes: 1 addition & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,30 +204,15 @@ Variables [`RINKEBY_INFURA_KEY`, `RINKEBY_UNS_PRIVATE_KEY`] are required for ope
Deployment UNS includes CNS registry. In order to deploy UNS you need to prepare `.env` config file
```
CNS_ADMIN_PRIVATE_KEY=
CNS_REGISTRY=
CNS_MINTING_CONTROLLER=
CNS_URI_CONTROLLER=
CNS_RESOLVER=
```

- `CNS_ADMIN_PRIVATE_KEY` - Private key of account which has rights for:
- Adding minters to CNS MintingController
- Adding whitelisted accounts to CNS URIPrefixController
- `CNS_REGISTRY` - Address of CNS Registry
- `CNS_MINTING_CONTROLLER` - Address of CNS MintingController
- `CNS_URI_CONTROLLER` - Address of CNS URIPrefixController
- `CNS_RESOLVER` - Address of CNS Default Resolver

## Upgrade

The operation is possible when you deployed smart contracts through Proxy Upgradable pattern. It requires `.env` config file
```
UNS_REGISTRY_PROXY=
UNS_MINTING_MANAGERE_PROXY=
```

- `UNS_REGISTRY_PROXY` - Address of UNS Registry Proxy
- `UNS_MINTING_MANAGERE_PROXY` - Address of UNS MintingController Proxy
The operation is possible when you deployed smart contracts through Proxy Upgradable pattern.

## Upgradeable proxy

Expand Down
12 changes: 12 additions & 0 deletions test/Registry.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,4 +497,16 @@ describe('Registry', () => {
assert.equal(await registry.get('key_16', tok), 'value_23');
})
});

it.only('should', async () => {
console.log('crypto', namehash.hash('crypto'))
console.log('wallet', namehash.hash('wallet'))
console.log('x', namehash.hash('x'))
console.log('nft', namehash.hash('nft'))
console.log('blockchain', namehash.hash('blockchain'))
console.log('bitcoin', namehash.hash('bitcoin'))
console.log('888', namehash.hash('888'))
console.log('dao', namehash.hash('dao'))
console.log('coin', namehash.hash('coin'))
})
})

0 comments on commit 3cc265f

Please sign in to comment.