Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some readme fixes #15

Merged
merged 1 commit into from
Dec 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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).