@@ -214,6 +214,14 @@ def set_pool_base_price(self, new_base_price: int, transaction_config) -> Any:
214214 self .assert_contract_is_instantiated ()
215215 return self .contract .setPoolBasePrice (new_base_price , transaction_config )
216216
217+ def set_pool_controller (
218+ self , pool_id : int , new_controller : ChecksumAddress , transaction_config
219+ ) -> Any :
220+ self .assert_contract_is_instantiated ()
221+ return self .contract .setPoolController (
222+ pool_id , new_controller , transaction_config
223+ )
224+
217225 def set_uri (self , pool_id : int , pool_uri : str , transaction_config ) -> Any :
218226 self .assert_contract_is_instantiated ()
219227 return self .contract .setURI (pool_id , pool_uri , transaction_config )
@@ -497,6 +505,18 @@ def handle_set_pool_base_price(args: argparse.Namespace) -> None:
497505 print (result )
498506
499507
508+ def handle_set_pool_controller (args : argparse .Namespace ) -> None :
509+ network .connect (args .network )
510+ contract = TerminusFacet (args .address )
511+ transaction_config = get_transaction_config (args )
512+ result = contract .set_pool_controller (
513+ pool_id = args .pool_id ,
514+ new_controller = args .new_controller ,
515+ transaction_config = transaction_config ,
516+ )
517+ print (result )
518+
519+
500520def handle_set_uri (args : argparse .Namespace ) -> None :
501521 network .connect (args .network )
502522 contract = TerminusFacet (args .address )
@@ -762,6 +782,16 @@ def generate_cli() -> argparse.ArgumentParser:
762782 )
763783 set_pool_base_price_parser .set_defaults (func = handle_set_pool_base_price )
764784
785+ set_pool_controller_parser = subcommands .add_parser ("set-pool-controller" )
786+ add_default_arguments (set_pool_controller_parser , True )
787+ set_pool_controller_parser .add_argument (
788+ "--pool-id" , required = True , help = "Type: uint256" , type = int
789+ )
790+ set_pool_controller_parser .add_argument (
791+ "--new-controller" , required = True , help = "Type: address"
792+ )
793+ set_pool_controller_parser .set_defaults (func = handle_set_pool_controller )
794+
765795 set_uri_parser = subcommands .add_parser ("set-uri" )
766796 add_default_arguments (set_uri_parser , True )
767797 set_uri_parser .add_argument (
0 commit comments