Quick Start
Ecosystem Plugin for Optimism support in Ape.
Dependencies
- python3 version 3.9 up to 3.12.
Installation
via ape
You can install this plugin using ape:
ape plugins install optimism
or via config file:
# ape-config.yaml
plugins:
- name: optimism
via pip
You can install the latest release via pip:
pip install ape-optimism
via setuptools
You can clone the repository and use setuptools for the most up-to-date version:
git clone https://github.com/ApeWorX/ape-optimism.git
cd ape-optimism
python3 setup.py install
Quick Usage
Installing this plugin adds support for the Optimism ecosystem:
ape console --network optimism:sepolia
OP Stack
Use the optimism base-class in any custom networks using the OP stack.
For example, to configure a custom network for Fraxtal network, add the following to your pyproject.toml
[[tool.ape.networks.custom]]
name = "mainnet"
ecosystem = "fraxtal"
# Tell Ape to use optimism as the base plugin, instead of ethereum.
base_ecosystem_plugin = "optimism"
chain_id = 252
# (optional): Configure an RPC. Else, Ape will select a random one automatically.
[tool.ape.node.fraxtal.mainnet]
uri = "https://rpc.frax.com"
Or equivalent ape-config.yaml:
networks:
custom:
- name: mainnet
ecosystem: fraxtal
base_ecosystem_plugin: optimism
node:
fraxtal:
mainnet:
uri: https://rpc.frax.com
There are two main benefits of using Optimism as the base-class instead of Ethereum for networks using the OP stack:
- Closer defaults: The block time default is
2for Optimism networks, which may be a better default value than Ethereum's higher block time parameters. - Existence of System Transactions: The Optimism base-class is aware of system transactions, which are transactions invoked by the sequencer.
Development
Comments, questions, criticisms and pull requests are welcomed.
Metadata
Release files for ape-optimism 0.8.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ape_optimism-0.8.3.tar.gz | 17.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ape_optimism-0.8.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / ape_optimism-0.8.3.tar.gz
| Download URL | ape_optimism-0.8.3.tar.gz |
|---|---|
| Size | 17.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb48e34923759761a9c27b9d314c61530dbea1c4627be48fc4ca8fed623d7f72
|
|
BLAKE2b-256 checksum How to use checksums |
72ff6c0e186cde8c565343bb6a376ccec25ff111780c461640d98d9328aa6d15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.16
|
Release files / ape_optimism-0.8.3-py3-none-any.whl
| Download URL | ape_optimism-0.8.3-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d263764922096debbd061eae8e5a3bb520573923958c1512fe518b894d8ac5d
|
|
BLAKE2b-256 checksum How to use checksums |
fe1a8c9444e555756dd13879c5d8eba8b085569dd49bd17aec6539cd4b3e2987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.16
|