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

feat: Upgrade to Ape 0.8 #173

Merged
merged 8 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
matrix:
# TODO: Replace with macos-latest when works again.
# https://github.com/actions/setup-python/issues/808
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
python-version: [3.9, "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-12] # eventually add `windows-latest`

steps:
Expand All @@ -80,7 +80,7 @@ jobs:
node-version: '18'

- name: Install Node Dependencies
run: pushd tests && npm install --save-dev hardhat && popd
run: npm install --save-dev hardhat

- name: Run Async Tests
run: pytest -m "not fork and not manual and not fuzzing"
Expand Down
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,16 @@ dmypy.json
version.py

# Ape stuff
tests/hardhat.config.js
hardhat.config.js
hardhat.config.ts

# NPM
package.json
package-lock.json
node_modules/

# Hardhat
tests/**/cache
**/cache

**/.DS_Store
*.swp
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:
rev: 0.7.17
hooks:
- id: mdformat
additional_dependencies: [mdformat-gfm, mdformat-frontmatter]
additional_dependencies: [mdformat-gfm, mdformat-frontmatter, mdformat-pyproject]

default_language_version:
python: python3
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Use this plugin to manage a Hardhat node process or connect to an existing one.

## Dependencies

- [python3](https://www.python.org/downloads) version 3.8 up to 3.12.
- [python3](https://www.python.org/downloads) version 3.9 up to 3.12.
- Node.js, NPM, and Hardhat 2.12.0 or greater. See Hardhat's [Installation](https://hardhat.org/getting-started/#installation%3E) documentation for steps.

## Installation
Expand Down
10 changes: 7 additions & 3 deletions tests/ape-config.yaml → ape-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
contracts_folder: data/contracts/ethereum/local
contracts_folder: tests/data/contracts/ethereum/local

ethereum:
local:
Expand All @@ -7,7 +7,7 @@ ethereum:
polygon:
local:
default_provider: hardhat
mumbai:
amoy:
default_provider: alchemy

hardhat:
Expand All @@ -25,9 +25,13 @@ hardhat:
upstream_provider: alchemy
block_number: 3091950
host: 127.0.0.1:7112
holesky:
upstream_provider: alchemy
block_number: 100
host: 127.0.0.1:7116

polygon:
mumbai:
amoy:
host: 127.0.0.1:7113

test:
Expand Down
Loading
Loading