/ packages / interfaces / src / Profile / IInternalProfile.ts
IInternalProfile.ts
 1  import { IBaseProfile } from "./IBaseProfile";
 2  
 3  export interface IInternalProfile extends IBaseProfile {
 4  	type: 'internal';
 5  
 6  	/**
 7  	 * Optional port number for the node to use (default: any available port).
 8  	 */
 9  	port?: number;
10  
11  	/**
12  	 * Swarm key if it is a private network.
13  	 */
14  	swarmKey?: string;
15  
16  	/**
17  	 * List of bootstrap adresses.
18  	 */
19  	bootstrap?: string[];
20  }
21  
22  export function isInternalProfile(profile: any): profile is IInternalProfile {
23  	return profile.type == 'internal';
24  }