From 0d0cdf5c2c9c6d65433f501283c90e705e4b7d46 Mon Sep 17 00:00:00 2001 From: antazoey Date: Tue, 7 Jan 2025 16:34:28 -0600 Subject: [PATCH] test: use boa provider --- .github/workflows/test.yaml | 1 - .gitignore | 1 + ape-config.yaml | 6 +++--- bots/example.py | 4 ++-- pyproject.toml | 2 +- sdk/py/apepay/exceptions.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5de2604..eb01fe3 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -52,7 +52,6 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: foundry-rs/foundry-toolchain@v1 - uses: ApeWorX/github-action@v3 with: python-version: "3.11" diff --git a/.gitignore b/.gitignore index 89c2c95..3c59a92 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ sdk/py/apepay/version.py __pycache__ .hypothesis dist/ +*.egg-info # Javascript node_modules/ diff --git a/ape-config.yaml b/ape-config.yaml index 875fb12..5472804 100644 --- a/ape-config.yaml +++ b/ape-config.yaml @@ -3,16 +3,16 @@ name: ApePay plugins: - name: arbitrum - name: optimism - - name: foundry + - name: titanoboa - name: vyper compile: output_extra: - - ABI # Output individial ABIs for the frontend. + - ABI # Output individual ABIs for the frontend. ethereum: local: - default_provider: foundry + default_provider: boa deployments: ethereum: diff --git a/bots/example.py b/bots/example.py index dd33469..bd4c79b 100644 --- a/bots/example.py +++ b/bots/example.py @@ -23,7 +23,7 @@ async def load_db(_): @sm.on_stream_created(app) async def grant_product(stream): db[stream.id] = stream - print(f"provisioning products: {stream.products}") + print(f"provisioning products: {stream.products}") # noqa: T001 return stream.time_left @@ -37,6 +37,6 @@ async def update_product_funding(stream): @sm.on_stream_cancelled(app) async def revoke_product(stream): - print(f"unprovisioning product for {stream.creator}") + print(f"unprovisioning product for {stream.creator}") # noqa: T001 db[stream.id] = None return stream.time_left diff --git a/pyproject.toml b/pyproject.toml index 986e8b9..dd03172 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ lint = [ "apepay[bot]" ] test = [ - "ape-foundry", + "ape-titanoboa", ] dev = [ "apepay[bot,lint,test]" diff --git a/sdk/py/apepay/exceptions.py b/sdk/py/apepay/exceptions.py index b91c4ff..937a8b7 100644 --- a/sdk/py/apepay/exceptions.py +++ b/sdk/py/apepay/exceptions.py @@ -33,7 +33,7 @@ def __init__(self): class NotEnoughAllowance(ApePayException, ValueError): def __init__(self, manager: AddressType): - super().__init__(f"Not enough allownace, please approve {manager}") + super().__init__(f"Not enough allowance, please approve {manager}") class StreamLifeInsufficient(ApePayException, ValueError):