@@ -32,7 +32,7 @@ def __init__(self, web3: Web3, registry: Registry, address: str, abi: list, wall
3232 self ._contract = self .web3 .eth .contract (self .address , abi = abi )
3333 self .__wallet = wallet
3434
35- def set_next_commission_update (self , commission : int ) -> str :
35+ def set_next_commission_update (self , commission : int , parameters : dict = None ) -> str :
3636 """
3737 Queues an update to a validator group's commission
3838
@@ -47,9 +47,9 @@ def set_next_commission_update(self, commission: int) -> str:
4747 func_call = self ._contract .functions .setNextCommissionUpdate (
4848 commission )
4949
50- return self .__wallet .send_transaction (func_call )
50+ return self .__wallet .send_transaction (func_call , parameters )
5151
52- def update_commission (self ) -> str :
52+ def update_commission (self , parameters : dict = None ) -> str :
5353 """
5454 Updates a validator group's commission based on the previously queued update
5555
@@ -59,7 +59,7 @@ def update_commission(self) -> str:
5959 """
6060 func_call = self ._contract .functions .updateCommission ()
6161
62- return self .__wallet .send_transaction (func_call )
62+ return self .__wallet .send_transaction (func_call , parameters )
6363
6464 def get_validator_locked_gold_requirements (self ) -> dict :
6565 """
@@ -477,7 +477,7 @@ def deregister_validator(self, validator_address: str) -> str:
477477 raise Exception (
478478 f"{ validator_address } is not a registered validator" )
479479
480- def register_validator_group (self , commission : int ) -> str :
480+ def register_validator_group (self , commission : int , parameters : dict = None ) -> str :
481481 """
482482 Registers a validator group with no member validators
483483 Fails if the account is already a validator or validator group
@@ -492,7 +492,7 @@ def register_validator_group(self, commission: int) -> str:
492492 """
493493 func_call = self ._contract .functions .registerValidatorGroup (commission )
494494
495- return self .__wallet .send_transaction (func_call )
495+ return self .__wallet .send_transaction (func_call , parameters )
496496
497497 def deregister_validator_group (self , validator_group_address : str ) -> str :
498498 """
@@ -515,7 +515,7 @@ def deregister_validator_group(self, validator_group_address: str) -> str:
515515 raise Exception (
516516 f"{ validator_group_address } is not a registered validator" )
517517
518- def affiliate (self , group : str ) -> str :
518+ def affiliate (self , group : str , parameters : dict = None ) -> str :
519519 """
520520 Affiliates a validator with a group, allowing it to be added as a member
521521 De-affiliates with the previously affiliated group if present
@@ -529,7 +529,7 @@ def affiliate(self, group: str) -> str:
529529 """
530530 func_call = self ._contract .functions .affiliate (group )
531531
532- return self .__wallet .send_transaction (func_call )
532+ return self .__wallet .send_transaction (func_call , parameters )
533533
534534 def deaffiliate (self ) -> str :
535535 func_call = self ._contract .functions .deaffiliate ()
@@ -564,7 +564,7 @@ def reset_slashing_multiplier(self) -> str:
564564
565565 return self .__wallet .send_transaction (func_call )
566566
567- def add_member (self , group : str , validator : str ) -> str :
567+ def add_member (self , group : str , validator : str , parameters : dict = None ) -> str :
568568 """
569569 Adds a member to the end of a validator group's list of members
570570 Fails if `validator` has not set their affiliation to this account
@@ -587,11 +587,11 @@ def add_member(self, group: str, validator: str) -> str:
587587 func_call = self ._contract .functions .addFirstMember (
588588 validator , lesser_greater ['lesser' ], lesser_greater ['greater' ])
589589
590- return self .__wallet .send_transaction (func_call )
590+ return self .__wallet .send_transaction (func_call , parameters )
591591 else :
592592 func_call = self ._contract .functions .addMember (validator )
593593
594- return self .__wallet .send_transaction (func_call )
594+ return self .__wallet .send_transaction (func_call , parameters )
595595
596596 def remove_member (self , validator : str ) -> str :
597597 """
@@ -609,7 +609,7 @@ def remove_member(self, validator: str) -> str:
609609
610610 return self .__wallet .send_transaction (func_call )
611611
612- def reorder_member (self , group_addr : str , validator : str , new_index : int ) -> str :
612+ def reorder_member (self , group_addr : str , validator : str , new_index : int , parameters : dict = None ) -> str :
613613 """
614614 Reorders a member within a validator group
615615 Fails if `validator` is not a member of the account's validator group
@@ -648,7 +648,7 @@ def reorder_member(self, group_addr: str, validator: str, new_index: int) -> str
648648 func_call = self ._contract .functions .reorderMember (
649649 validator , next_member , prev_member )
650650
651- return self .__wallet .send_transaction (func_call )
651+ return self .__wallet .send_transaction (func_call , parameters )
652652 except ValueError :
653653 raise Exception (
654654 f"ValidatorGroup { group_addr } does not include ${ validator } " )
0 commit comments