44from typing import Any , DefaultDict , Dict , List , Optional , Union
55
66from graphenecommon .chain import AbstractGrapheneChain
7- from graphenecommon .exceptions import KeyAlreadyInStoreException ,AccountDoesNotExistsException
7+ from graphenecommon .exceptions import KeyAlreadyInStoreException , AccountDoesNotExistsException
88
99from vizapi .noderpc import NodeRPC
1010from vizbase import operations
@@ -265,7 +265,7 @@ def award(
265265 )
266266
267267 return self .finalizeOp (op , account , "regular" )
268-
268+
269269 def fixed_award (
270270 self ,
271271 receiver : str ,
@@ -669,13 +669,13 @@ def create_account(
669669 op = operations .Account_create (** op )
670670
671671 return self .finalizeOp (op , creator , "active" )
672-
672+
673673 def update_account_profile (
674674 self ,
675675 account_name : str ,
676676 memo_key : str ,
677677 json_meta : Optional [Dict [str , Any ]] = None ,
678- ) -> dict :
678+ ) -> dict :
679679 """
680680 Update account profile.
681681
@@ -685,7 +685,7 @@ def update_account_profile(
685685
686686 :param str account_name: (**required**) new account name
687687 :param dict json_meta: Optional meta data for the account
688-
688+
689689 :raises AccountDoesNotExistsException: if the account does not exist
690690 """
691691
@@ -704,19 +704,16 @@ def update_account_profile(
704704 op = operations .Account_update (** op )
705705
706706 return self .finalizeOp (ops = op , account = account_name , permission = "active" )
707-
708- def delegate_vesting_shares (
709- self ,
710- delegator : str ,
711- delegatee : str ,
712- amount : float
713- ) -> dict :
707+
708+ def delegate_vesting_shares (self , delegator : str , delegatee : str , amount : float ) -> dict :
714709 """
715710 Delegate vesting SHARES to account.
716711
717712 :param str delegator: account that delegates
718713 :param str delegatee: account to which is delegated
719714 :param float amount: number of SHARES to be delegated
715+
716+ :raises AccountDoesNotExistsException: if the account does not exist
720717 """
721718
722719 # check if the account does not exist
@@ -729,10 +726,10 @@ def delegate_vesting_shares(
729726 "delegator" : delegator ,
730727 "delegatee" : delegatee ,
731728 "vesting_shares" : "{:.{prec}f} {asset}" .format (
732- float (amount ),
733- prec = PRECISIONS .get (self .rpc .chain_params ["shares_symbol" ]),
734- asset = self .rpc .chain_params ["shares_symbol" ],
735- ),
729+ float (amount ),
730+ prec = PRECISIONS .get (self .rpc .chain_params ["shares_symbol" ]),
731+ asset = self .rpc .chain_params ["shares_symbol" ],
732+ ),
736733 }
737734
738735 op = operations .Delegate_vesting_shares (** op )
0 commit comments