@masa-finance/analytics-sdk
v0.5.16
Published
yarn `yarn add @masa-finance/analytics-sdk --save`
Downloads
1,490
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,
});
};