2020-01-28 16:11:22 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								use crate::{account::Account, hash::Hash};
							 | 
						
					
						
							
								
									
										
										
										
											2018-12-03 13:31:11 -08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-11-21 16:34:40 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								crate::declare_id!("NativeLoader1111111111111111111111111111111");
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 20:43:56 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 21:16:26 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								/// Create an executable account with the given shared object name.
							 | 
						
					
						
							
								
									
										
										
										
											2019-04-02 08:29:28 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pub fn create_loadable_account(name: &str) -> Account {
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 20:43:56 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    Account {
							 | 
						
					
						
							
								
									
										
										
										
											2019-03-05 16:28:14 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        lamports: 1,
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 21:16:26 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        owner: id(),
							 | 
						
					
						
							
								
									
										
										
										
											2019-03-14 10:48:27 -06:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        data: name.as_bytes().to_vec(),
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 20:43:56 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        executable: true,
							 | 
						
					
						
							
								
									
										
										
										
											2019-08-23 14:04:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        rent_epoch: 0,
							 | 
						
					
						
							
								
									
										
										
										
											2019-09-20 13:21:12 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        hash: Hash::default(),
							 | 
						
					
						
							
								
									
										
										
										
											2019-02-13 20:43:56 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    }
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |