mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	functional_tests: move extraneous stuff out of the framework
This commit is contained in:
		
							parent
							
								
									2c171a9b02
								
							
						
					
					
						commit
						b9e09378ad
					
				
					 2 changed files with 16 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -37,18 +37,6 @@ class Wallet(object):
 | 
			
		|||
        self.port = port
 | 
			
		||||
        self.rpc = JSONRPC('{protocol}://{host}:{port}'.format(protocol=protocol, host=host, port=port if port else 18090+idx))
 | 
			
		||||
 | 
			
		||||
    def make_uniform_destinations(self, address, transfer_amount, transfer_number_of_destinations=1):
 | 
			
		||||
        destinations = []
 | 
			
		||||
        for i in range(transfer_number_of_destinations):
 | 
			
		||||
            destinations.append({"amount":transfer_amount,"address":address})
 | 
			
		||||
        return destinations
 | 
			
		||||
 | 
			
		||||
    def make_destinations(self, addresses, transfer_amounts):
 | 
			
		||||
        destinations = []
 | 
			
		||||
        for i in range(len(addresses)):
 | 
			
		||||
            destinations.append({'amount':transfer_amounts[i],'address':addresses[i]})
 | 
			
		||||
        return destinations
 | 
			
		||||
 | 
			
		||||
    def transfer(self, destinations, account_index = 0, subaddr_indices = [], priority = 0, ring_size = 0, unlock_time = 0, payment_id = '', get_tx_key = True, do_not_relay = False, get_tx_hex = False, get_tx_metadata = False):
 | 
			
		||||
        transfer = {
 | 
			
		||||
            'method': 'transfer',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue