Skip to content

Commit

Permalink
test: use boa provider
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jan 7, 2025
1 parent 0647ffe commit 0d0cdf5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sdk/py/apepay/version.py
__pycache__
.hypothesis
dist/
*.egg-info

# Javascript
node_modules/
Expand Down
6 changes: 3 additions & 3 deletions ape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions bots/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ lint = [
"apepay[bot]"
]
test = [
"ape-foundry",
"ape-titanoboa",
]
dev = [
"apepay[bot,lint,test]"
Expand Down
2 changes: 1 addition & 1 deletion sdk/py/apepay/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0d0cdf5

Please sign in to comment.