2021-05-12 08:40:21 +02:00
|
|
|
/** Settings class */
|
2021-04-29 19:10:39 +02:00
|
|
|
class Settings {
|
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
|
|
|
/** A resource for searching through blocks on the blockchain network. */
|
2020-11-08 07:31:52 +01:00
|
|
|
scanFilter: any;
|
2021-05-12 09:52:28 +02:00
|
|
|
/** CIC Registry instance */
|
2020-11-08 07:31:52 +01:00
|
|
|
registry: any;
|
2021-05-12 09:52:28 +02:00
|
|
|
/** Transaction Helper instance */
|
2020-11-08 07:31:52 +01:00
|
|
|
txHelper: any;
|
|
|
|
|
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-04-29 19:10:39 +02:00
|
|
|
|
2021-05-12 08:40:21 +02:00
|
|
|
/** @exports */
|
2021-05-10 18:15:25 +02:00
|
|
|
export { Settings, W3 };
|