Skip to content

Commit

Permalink
Add types for event options
Browse files Browse the repository at this point in the history
  • Loading branch information
mattupham committed Sep 10, 2024
1 parent 8079900 commit ef7bb52
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/web/config/analytics-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
* Logged to Amplitude at https://analytics.amplitude.com/osmosis-zone/
*/

import { AllocationOptions } from "~/components/complex/portfolio/types";

// Should be in sync with: https://docs.google.com/spreadsheets/d/18w8VwJmmRdb_E-XkE1UjkqhLxCyhqVVhWlzDgTtbRWo/edit?usp=sharing
// For maintainability - all event logs should be in high level component

Expand Down Expand Up @@ -71,6 +73,18 @@ export type EventProperties = {
walletName: string;
transferDirection: "deposit" | "withdraw";
coinDenom: string;
appName: string;
isFeatured: boolean;
isBanner: boolean;
position: number;
allocationType: AllocationOptions;
section: string;
tokenIn: string;
tokenOut: string;
option: string;
numberOfValidators: number;
validatorNames: string[];
squadSize: number;
};

export type UserProperties = {
Expand Down

0 comments on commit ef7bb52

Please sign in to comment.