2022-10-20 17:24:53 +00:00
|
|
|
export interface Info {
|
|
|
|
num_public_buy_orders: number;
|
|
|
|
num_public_sell_orders: number;
|
|
|
|
book_liquidity: number;
|
|
|
|
active_robots_today: number;
|
|
|
|
last_day_nonkyc_btc_premium: number;
|
|
|
|
last_day_volume: number;
|
|
|
|
lifetime_volume: number;
|
|
|
|
lnd_version: string;
|
|
|
|
robosats_running_commit_hash: string;
|
|
|
|
alternative_site: string;
|
|
|
|
alternative_name: string;
|
|
|
|
node_alias: string;
|
|
|
|
node_id: string;
|
|
|
|
version: { major: number | null; minor: number | null; patch: number | null };
|
|
|
|
maker_fee: number;
|
|
|
|
taker_fee: number;
|
|
|
|
bond_size: number;
|
|
|
|
current_swap_fee_rate: number;
|
2022-10-30 19:13:01 +00:00
|
|
|
network: 'mainnet' | 'testnet' | undefined;
|
2022-10-20 17:24:53 +00:00
|
|
|
coordinatorVersion: string;
|
|
|
|
clientVersion: string;
|
|
|
|
openUpdateClient: boolean;
|
|
|
|
}
|
|
|
|
|
2022-10-30 19:13:01 +00:00
|
|
|
import packageJson from '../../package.json';
|
|
|
|
const semver = packageJson.version.split('.');
|
|
|
|
|
2022-10-20 17:24:53 +00:00
|
|
|
export const defaultInfo: Info = {
|
|
|
|
num_public_buy_orders: 0,
|
|
|
|
num_public_sell_orders: 0,
|
|
|
|
book_liquidity: 0,
|
|
|
|
active_robots_today: 0,
|
|
|
|
last_day_nonkyc_btc_premium: 0,
|
|
|
|
last_day_volume: 0,
|
|
|
|
lifetime_volume: 0,
|
|
|
|
lnd_version: 'v0.0.0-beta',
|
|
|
|
robosats_running_commit_hash: '000000000000000',
|
|
|
|
alternative_site: 'RoboSats6tkf3eva7x2voqso3a5wcorsnw34jveyxfqi2fu7oyheasid.onion',
|
|
|
|
alternative_name: 'RoboSats Mainnet',
|
|
|
|
node_alias: '🤖RoboSats⚡(RoboDevs)',
|
|
|
|
node_id: '033b58d7681fe5dd2fb21fd741996cda5449616f77317dd1156b80128d6a71b807',
|
|
|
|
version: { major: null, minor: null, patch: null },
|
|
|
|
maker_fee: 0,
|
|
|
|
taker_fee: 0,
|
|
|
|
bond_size: 0,
|
|
|
|
current_swap_fee_rate: 0,
|
2022-10-30 19:13:01 +00:00
|
|
|
network: undefined,
|
2022-10-20 17:24:53 +00:00
|
|
|
coordinatorVersion: 'v?.?.?',
|
2022-10-30 19:13:01 +00:00
|
|
|
clientVersion: `v${semver[0]}.${semver[1]}.${semver[2]}`,
|
2022-10-20 17:24:53 +00:00
|
|
|
openUpdateClient: false,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Info;
|