Skip to content

Commit

Permalink
fix: ape build
Browse files Browse the repository at this point in the history
  • Loading branch information
fp-crypto committed Mar 6, 2024
1 parent 354620f commit 812947c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
9 changes: 1 addition & 8 deletions ape-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
name: yearn-v3-vault-periphery

plugins:
- name: solidity
- name: vyper
- name: etherscan
- name: hardhat
- name: infura

default_ecosystem: ethereum

dependencies:
Expand Down Expand Up @@ -43,4 +36,4 @@ solidity:

ethereum:
local:
default_provider: hardhat
default_provider: hardhat
8 changes: 7 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
black==22.3.0
eth-ape==0.7.9
pysha3==1.0.2
pysha3==1.0.2
ape-solidity
ape-vyper
ape-etherscan
ape-hardhat
ape-infura
ape-foundry
30 changes: 15 additions & 15 deletions tests/manager/test_role_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def test_setters_with_zeros(
tx = role_manager.newVault(asset, int(1), sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

assert vault != ZERO_ADDRESS

Expand Down Expand Up @@ -323,7 +323,7 @@ def test_deploy_new_vault(

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]

vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(role_manager.AddedNewVault))[0]

Expand Down Expand Up @@ -418,7 +418,7 @@ def test_deploy_new_vault__duplicate_reverts(

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]

vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]

Expand Down Expand Up @@ -506,7 +506,7 @@ def test_deploy_new_vault__default_values(

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]

vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(role_manager.AddedNewVault))[0]

Expand Down Expand Up @@ -613,7 +613,7 @@ def test_add_new_vault__endorsed(
tx = registry.newEndorsedVault(asset, name, symbol, daddy, 100, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

assert registry.numAssets() == 1
assert registry.numEndorsedVaults(asset) == 1
Expand Down Expand Up @@ -713,7 +713,7 @@ def test_add_new_vault__not_endorsed(
tx = vault_factory.deploy_new_vault(asset, name, symbol, daddy, 100, sender=daddy)

event = list(tx.decode_logs(vault_factory.NewVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(
event.vault_address
)

Expand Down Expand Up @@ -822,7 +822,7 @@ def test_add_new_vault__with_debt_allocator(
tx = vault_factory.deploy_new_vault(asset, name, symbol, daddy, 100, sender=daddy)

event = list(tx.decode_logs(vault_factory.NewVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(
event.vault_address
)

Expand Down Expand Up @@ -931,7 +931,7 @@ def test_add_new_vault__with_accountant(
tx = vault_factory.deploy_new_vault(asset, name, symbol, daddy, 100, sender=daddy)

event = list(tx.decode_logs(vault_factory.NewVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(
event.vault_address
)

Expand Down Expand Up @@ -1051,7 +1051,7 @@ def test_add_new_vault__duplicate_reverts(

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]

vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]

Expand Down Expand Up @@ -1083,7 +1083,7 @@ def test_add_new_vault__duplicate_reverts(
tx = vault_factory.deploy_new_vault(asset, name, symbol, daddy, 100, sender=daddy)

event = list(tx.decode_logs(vault_factory.NewVault))[0]
new_vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(
new_vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(
event.vault_address
)

Expand Down Expand Up @@ -1128,7 +1128,7 @@ def test_new_debt_allocator__deploys_one(
tx = role_manager.newVault(asset, category, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]
debt_allocator = project.DebtAllocator.at(event.allocator)
Expand Down Expand Up @@ -1253,7 +1253,7 @@ def test_new_debt_allocator__already_deployed(
tx = role_manager.newVault(asset, category, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]
debt_allocator = project.DebtAllocator.at(event.allocator)
Expand Down Expand Up @@ -1378,7 +1378,7 @@ def test_new_keeper(
tx = role_manager.newVault(asset, category, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]
debt_allocator = project.DebtAllocator.at(event.allocator)
Expand Down Expand Up @@ -1495,7 +1495,7 @@ def test_remove_vault(
tx = role_manager.newVault(asset, category, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]
debt_allocator = project.DebtAllocator.at(event.allocator)
Expand Down Expand Up @@ -1626,7 +1626,7 @@ def test_remove_role(
tx = role_manager.newVault(asset, category, sender=daddy)

event = list(tx.decode_logs(registry.NewEndorsedVault))[0]
vault = project.dependencies["yearn-vaults"]["master"].VaultV3.at(event.vault)
vault = project.dependencies["yearn-vaults"]["v3.0.2"].VaultV3.at(event.vault)

event = list(tx.decode_logs(debt_allocator_factory.NewDebtAllocator))[0]
debt_allocator = project.DebtAllocator.at(event.allocator)
Expand Down

0 comments on commit 812947c

Please sign in to comment.