@masa-finance/analytics-sdk
v0.5.16
Published
yarn `yarn add @masa-finance/analytics-sdk --save`
Downloads
948
Keywords
Readme
Installation
yarnyarn add @masa-finance/analytics-sdk --save
npmnpm i @masa-finance/analytics-sdk --save
Usage
import { BaseEventData, EventType } from "@masa-finance/analytics-sdk";
const logEvent = async ({
type,
user_address,
client_id,
event_data,
endpoint,
}: {
type: EventType;
user_address?: string;
event_data: BaseEventData;
endpoint: string;
client_id?: string;
}): Promise<Event | undefined> => {
return logEvent({
type,
user_address,
client_id,
event_data,
endpoint,
});
};