mirror of https://github.com/nucypher/nucypher.git
setStakes -> authorizationIncreased
parent
56486f74df
commit
92278352f3
|
@ -48,8 +48,8 @@ def test_ursula_operator_confirmation(
|
|||
# make an staking_providers and some stakes
|
||||
tx = threshold_staking.functions.setRoles(staking_provider).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(
|
||||
staking_provider, min_authorization, 0, 0
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
staking_provider, 0, min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
|
@ -112,8 +112,8 @@ def test_ursula_operator_confirmation_autopilot(
|
|||
# make an staking_providers and some stakes
|
||||
tx = threshold_staking.functions.setRoles(staking_provider2).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(
|
||||
staking_provider2, min_authorization, 0, 0
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
staking_provider2, 0, min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
|
@ -212,8 +212,8 @@ def test_work_tracker(
|
|||
# make an staking_providers and some stakes
|
||||
tx = threshold_staking.functions.setRoles(staking_provider3).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(
|
||||
staking_provider3, min_authorization, 0, 0
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
staking_provider3, 0, min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
|
|
|
@ -58,7 +58,9 @@ def test_staking_providers_and_operators_relationships(
|
|||
staking_provider_account, operator_account, *other = testerchain.unassigned_accounts
|
||||
tx = threshold_staking.functions.setRoles(staking_provider_account).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(staking_provider_account, application_economics.min_authorization, 0, 0).transact()
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
staking_provider_account, 0, application_economics.min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
# The staking provider hasn't bond an operator yet
|
||||
|
|
|
@ -33,7 +33,9 @@ def test_sampling_distribution(testerchain, test_registry, threshold_staking, ap
|
|||
# initialize threshold stake
|
||||
tx = threshold_staking.functions.setRoles(provider_address).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(provider_address, amount, 0, 0).transact()
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
provider_address, 0, amount
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
power = TransactingPower(account=provider_address, signer=Web3Signer(testerchain.client))
|
||||
|
|
|
@ -112,8 +112,8 @@ def test_invalid_operators_tolerance(
|
|||
min_authorization = application_economics.min_authorization
|
||||
tx = threshold_staking.functions.setRoles(_staking_provider).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(
|
||||
_staking_provider, min_authorization, 0, 0
|
||||
tx = threshold_staking.functions.authorizationIncreased(
|
||||
_staking_provider, 0, min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ def mock_funded_account_password_keystore(
|
|||
tx = threshold_staking.functions.setRoles(provider_address).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
tx = threshold_staking.functions.setStakes(
|
||||
provider_address, application_economics.min_authorization, 0, 0
|
||||
provider_address, 0, application_economics.min_authorization
|
||||
).transact()
|
||||
testerchain.wait_for_receipt(tx)
|
||||
|
||||
|
|
Loading…
Reference in New Issue