mirror of
https://github.com/RoboSats/robosats.git
synced 2025-08-15 02:17:15 +00:00
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
import defaultFederation from '../../static/federation.json';
|
|
|
|
export interface Maker {
|
|
advancedOptions: boolean;
|
|
coordinator: string;
|
|
isExplicit: boolean;
|
|
amount: number | null;
|
|
paymentMethods: string[];
|
|
paymentMethodsText: string;
|
|
badPaymentMethod: boolean;
|
|
premium: number | null;
|
|
satoshis: string;
|
|
publicExpiryTime: Date;
|
|
publicDuration: number;
|
|
escrowExpiryTime: Date;
|
|
escrowDuration: number;
|
|
bondSize: number;
|
|
minAmount: number | null;
|
|
maxAmount: number | null;
|
|
badSatoshisText: string;
|
|
badPremiumText: string;
|
|
latitude: number | null;
|
|
longitude: number | null;
|
|
password: string | null;
|
|
}
|
|
|
|
export const defaultMaker: Maker = {
|
|
advancedOptions: false,
|
|
coordinator:
|
|
Object.keys(defaultFederation)[
|
|
Math.floor(Math.random() * Object.keys(defaultFederation).length)
|
|
] ?? '',
|
|
isExplicit: false,
|
|
amount: null,
|
|
paymentMethods: [],
|
|
paymentMethodsText: 'not specified',
|
|
badPaymentMethod: false,
|
|
premium: null,
|
|
satoshis: '',
|
|
publicExpiryTime: new Date(0, 0, 0, 23, 59),
|
|
publicDuration: 86340,
|
|
escrowExpiryTime: new Date(0, 0, 0, 3, 0),
|
|
escrowDuration: 10800,
|
|
bondSize: 3,
|
|
minAmount: null,
|
|
maxAmount: null,
|
|
badPremiumText: '',
|
|
badSatoshisText: '',
|
|
latitude: 0,
|
|
longitude: 0,
|
|
password: null,
|
|
};
|
|
|
|
export default Maker;
|