2023

ApeWorx Plugins

Jan 10, 2023

In a tweet

Wrote Python plugins to support Avalanche and Aurora EVMs on ApeWorx.

Challenge

Despite foundry being a super fast smart contract development framework, I still use Python for scripting and testing. I've been using ApeWorx ever since Brownie became inactive.

I needed to deploy a couple contracts on Aurora and Avalanche, both of which were not supported by ApeWorx at the time.

Solution

This project was straightforward, I used the existing Apeworx plugin template and then setup an ecosystem.py file with the unique configuration of each chain (eg. chain_id, network_id) and hooked it up to the ApeWorx plugins api were they are now registered.

Results

The code for ape-avalanche and ape-aurora is public on GitHub.

To install use:

ape plugins install avalanche

or use the ape config file:

# ape-config.yaml
plugins:
- name: avalanche

You can also find the package on pypi.org/project/ape-avalanche/.

Alberto Cevallos

Author