Skip to content

Commit

Permalink
Merge pull request #15 from curvefi/update/readme
Browse files Browse the repository at this point in the history
some readme fixes
  • Loading branch information
bout3fiddy authored Dec 12, 2023
2 parents 86a1314 + c2a482b commit 2128cd1
Showing 1 changed file with 11 additions and 32 deletions.
43 changes: 11 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,46 +401,18 @@ To run tests in interactive mode, please do the following:

```
> ape test -I -s
> python -m pytest
```

# Deployment
# Deployment and Adding Registries

First, set up your account in Ape. If you're using an EOA that is a cold wallet, please do:

```
> ape accounts import <alias>
```

This will prompt you for a private key. If your account is a ledger account, then follow:

```
> ape ledger add <alias>
```

To deploy, please use the following command (example deployment in mainnet-fork):

```
> ape run scripts/deploy.py main --network ethereum:mainnet-fork --account <your_account>
```

## Adding Registries

The following command simulates metaregistry setup. For Prod transactions, set network to anything that is not
`ethereum:mainnet-fork` (so: `ethereum:mainnet:geth` or `ethereum:mainnet:alchemy` is fine.)

```
> ape run scripts/setup_metaregistry.py main --network ethereum:mainnet-fork --account <your_account>
```
Various deployment scripts are provided in the [scripts](./scripts/) folder.

#### Deployments

Ethereum Mainnet:

- `base_pool_registry`: [0xDE3eAD9B2145bBA2EB74007e58ED07308716B725](https://etherscan.io/address/0xDE3eAD9B2145bBA2EB74007e58ED07308716B725#code)
- `crypto_registry`: [0x9a32aF1A11D9c937aEa61A3790C2983257eA8Bc0](https://etherscan.io/address/0x9a32aF1A11D9c937aEa61A3790C2983257eA8Bc0#code)
- `stable_registry_handler`: [0x46a8a9CF4Fc8e99EC3A14558ACABC1D93A27de68](https://etherscan.io/address/0x46a8a9CF4Fc8e99EC3A14558ACABC1D93A27de68#code)
Expand All @@ -449,6 +421,13 @@ Ethereum Mainnet:
- `crypto_factory_handler`: [0xC4F389020002396143B863F6325aA6ae481D19CE](https://etherscan.io/address/0xC4F389020002396143B863F6325aA6ae481D19CE#code)
- `metaregistry`: [0xF98B45FA17DE75FB1aD0e7aFD971b0ca00e379fC](https://etherscan.io/address/0xF98B45FA17DE75FB1aD0e7aFD971b0ca00e379fC#code)

### Roadmap

1. StableSwap-ng Factory Handler
2. Twocrypto-ng Factory Handler
3. Tricrypto-ng Factory Handler
4. Deployments of Metaregistry with the above handlers across multiple chains.

### License

(c) Curve.Fi, 2023 - [All rights reserved](LICENSE).

0 comments on commit 2128cd1

Please sign in to comment.