Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/coccoinomane/ape-scripts
- Owner: coccoinomane
- Created: 2023-04-01T18:29:11.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-01-09T12:12:20.000Z (12 months ago)
- Last Synced: 2024-10-13T23:12:14.966Z (3 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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