cic-staff-client/src/app/_models/settings.ts

35 lines
785 B
TypeScript
Raw Normal View History

2021-05-12 08:40:21 +02:00
/** Settings class */
class Settings {
/** CIC Registry instance */
registry: any;
/** A resource for searching through blocks on the blockchain network. */
scanFilter: any;
/** Transaction Helper instance */
txHelper: any;
2021-05-12 09:52:28 +02:00
/** Web3 Object */
2020-11-08 07:31:52 +01:00
w3: W3 = {
engine: undefined,
provider: undefined,
};
2021-05-12 09:52:28 +02:00
/**
* Initialize the settings.
*
* @param scanFilter - A resource for searching through blocks on the blockchain network.
*/
2020-11-08 07:31:52 +01:00
constructor(scanFilter: any) {
this.scanFilter = scanFilter;
}
}
2021-05-12 08:40:21 +02:00
/** Web3 object interface */
interface W3 {
2021-05-12 09:52:28 +02:00
/** An active web3 instance connected to the blockchain network. */
2020-11-08 07:31:52 +01:00
engine: any;
2021-05-12 09:52:28 +02:00
/** The connection socket to the blockchain network. */
2020-11-08 07:31:52 +01:00
provider: any;
}
2021-05-12 08:40:21 +02:00
/** @exports */
2021-05-10 18:15:25 +02:00
export { Settings, W3 };