pygeek_stellar/geek_stellar_cmd.py
def do_send_donation(self, args):
        """
        Sends a XLM donation as a form of contribution to the development of pygeek-stellar
        Usage: send_donation {amount} {transaction_memo: optional}
        """
        args = shlex.split(args)
        if len(args) < 1:
            print('A XLM amount is mandatory')
            return

        amount = args[0].replace(',', '.')
        memo = '' if len(args) < 2 else args[1]  # memo is optional

        if not is_float_str(amount):
            print('The transfer amount to transfer must but a valid value')
            return

        seed = self.session.fetch_valid_seed()
        if seed is None:
            print("The donation cannot be done without a valid account seed")
            return

        send_payment(self.session.account_address, seed, STELLAR_DONATION_ADDRESS, 'XLM', amount, None, memo)

        Sends a XLM donation as a form of contribution to the development of pygeek-stellar
        Usage: send_donation {amount} {transaction_memo: optional}
        
Sends a XLM donation as a form of contribution to the development of pygeek-stellar
Usage: send_donation {amount} {transaction_memo: optional}
Sends a XLM donation as a form of contribution to the development of pygeek - stellar Usage : send_donation { amount } { transaction_memo : optional }
def do_send_donation(self, args):
        args = shlex.split(args)
        if len(args) < 1:
            print('A XLM amount is mandatory')
            return
        amount = args[0].replace(',', '.')
        memo = '' if len(args) < 2 else args[1]  
        if not is_float_str(amount):
            print('The transfer amount to transfer must but a valid value')
            return
        seed = self.session.fetch_valid_seed()
        if seed is None:
            print("The donation cannot be done without a valid account seed")
            return
        send_payment(self.session.account_address, seed, STELLAR_DONATION_ADDRESS, 'XLM', amount, None, memo)
def do_send_donation ( self , args ) : args = shlex . split ( args ) if len ( args ) < 1 : print ( 'A XLM amount is mandatory' ) return amount = args [ 0 ] . replace ( ',' , '.' ) memo = '' if len ( args ) < 2 else args [ 1 ] if not is_float_str ( amount ) : print ( 'The transfer amount to transfer must but a valid value' ) return seed = self . session . fetch_valid_seed ( ) if seed is None : print ( "The donation cannot be done without a valid account seed" ) return send_payment ( self . session . account_address , seed , STELLAR_DONATION_ADDRESS , 'XLM' , amount , None , memo )
Sends a XLM donation as a form of contribution to the development of pygeek-stellar
Usage: send_donation {amount} {transaction_memo: optional}
Sends a XLM donation as a form of contribution to the development of pygeek - stellar Usage : send_donation { amount } { transaction_memo : optional }
"""
        Sends a XLM donation as a form of contribution to the development of pygeek-stellar
        Usage: send_donation {amount} {transaction_memo: optional}
        """ # memo is optional
self
args