Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/coccoinomane/ape-scripts

A collection of useful blockchain scripts written with Brownie
https://github.com/coccoinomane/ape-scripts

Last synced: about 1 month ago
JSON representation

A collection of useful blockchain scripts written with Brownie

Awesome Lists containing this project

README

        

# Ape scripts

A collection of useful blockchain scripts written using the Ape Framework

# Install

```bash
python3.10 -m venv .venv
source .venv/bin/activate
pip install -r requirements-dev.txt
```

Then add an account:

```bash
ape accounts import
```

You might need to install ape plugins:

```bash
ape plugins install solidity ape-foundry arbitrum polygon etherscan avalanche bsc optimism
```

# Commands

Then call command, for example deploy token on Arbitrum:

```bash
ape run token --account --network arbitrum:mainnet:https://arb1.arbitrum.io/rpc
```

The token command and other commands have arguments. To see the arguments of a command use the `-h` flag:

```bash
ape run token -h
```

# Custom networks

To use a custom network, just specify it with the `--network` flag:

```bash
ape run token --account --network https://rpc.zkfair.io
```

More details here:

- https://docs.apeworx.io/ape/stable/userguides/networks.html#custom-network-connection

# Local chains

To use a local chain like Foundry's Anvil, Gananche, or Hardhat network, just specify it with the `--network` flag, and specify the test account with TEST::0, TEST::1, etc:

```bash
ape run token --account TEST::0 --network ::foundry
```

# To do

- Find contract creations