add tracking protocol
This commit is contained in:
@@ -40,7 +40,10 @@ export type AbacusFileSystemProtocol = Omit<
|
||||
Abacus.exchange.dydx.abacus.protocols.FileSystemProtocol,
|
||||
'__doNotUseOrImplementIt'
|
||||
>;
|
||||
|
||||
export type AbacusTrackingProtocol = Omit<
|
||||
Abacus.exchange.dydx.abacus.protocols.TrackingProtocol,
|
||||
'__doNotUseOrImplementIt'
|
||||
>;
|
||||
export type FileLocation = Abacus.exchange.dydx.abacus.protocols.FileLocation;
|
||||
export type ThreadingType = Abacus.exchange.dydx.abacus.protocols.ThreadingType;
|
||||
export const CoroutineTimer = Abacus.exchange.dydx.abacus.utils.CoroutineTimer;
|
||||
|
||||
@@ -36,6 +36,7 @@ import AbacusStateNotifier from './stateNotification';
|
||||
import AbacusLocalizer from './localizer';
|
||||
import AbacusFormatter from './formatter';
|
||||
import AbacusThreading from './threading';
|
||||
import AbacusTracking from './tracking';
|
||||
import AbacusFileSystem, { ENDPOINTS_PATH } from './filesystem';
|
||||
import { LocaleSeparators } from '../numbers';
|
||||
class AbacusStateManager {
|
||||
@@ -59,7 +60,7 @@ class AbacusStateManager {
|
||||
new AbacusRest(),
|
||||
this.websocket,
|
||||
new AbacusChainTransaction(),
|
||||
null,
|
||||
new AbacusTracking(),
|
||||
new AbacusThreading(),
|
||||
new CoroutineTimer(),
|
||||
new AbacusFileSystem()
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { AbacusTrackingProtocol, Nullable } from '@/constants/abacus';
|
||||
|
||||
class AbacusTracking implements AbacusTrackingProtocol {
|
||||
log(event: string, data: Nullable<string>) {
|
||||
console.log({ event, data });
|
||||
}
|
||||
}
|
||||
|
||||
export default AbacusTracking;
|
||||
Reference in New Issue
Block a user