New abstract structure

Events for invoices get emitted in rooms
This commit is contained in:
2020-12-28 19:04:13 +01:00
parent 7f8ae69e2e
commit 0b3502d81f
14 changed files with 467 additions and 229 deletions

View File

@@ -1,3 +1,4 @@
import { CryptoUnits } from './src/helper/types';
/**
* Here you can change various settings like database credentials, http settings and more.
*
@@ -18,6 +19,14 @@ export const config: IConfig = {
transcations: {
// If a payment has been made and its value is this amount less, it would be still accepted.
acceptMargin: 0.00000001
},
payment: {
// This is a list of cryptocurrencies that you want to accpet.
methods: [
CryptoUnits.BITCOIN,
CryptoUnits.DOGECOIN,
CryptoUnits.ETHEREUM
]
}
}
/**
@@ -40,5 +49,8 @@ export interface IConfig {
},
transcations: {
acceptMargin: number
},
payment: {
methods: CryptoUnits[];
}
}