Skip to content

Commit

Permalink
feat: name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduma-ledger committed Nov 29, 2024
1 parent 27874c2 commit 450cd0d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions libs/ledger-live-common/src/wallet-api/Exchange/tracking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ export default function trackingWrapper(trackCall: TrackExchange) {
return {
// Generate Exchange nonce modal open
startExchangeRequested: ({ provider, exchangeType }: TrackEventPayload) => {
track("WalletAPI start Exchange Nonce request", { provider, exchangeType });
track(`Starts Exchange ${exchangeType} Nonce request`, { provider, exchangeType });
},

// Successfully generated an Exchange app nonce
startExchangeSuccess: ({ provider, exchangeType }: TrackEventPayload) => {
track("WalletAPI start Exchange Nonce success", { provider, exchangeType });
track(`Starts Exchange ${exchangeType} Nonce success`, { provider, exchangeType });
},

// Failed to generate an Exchange app nonce
startExchangeFail: ({ provider, exchangeType }: TrackEventPayload) => {
track("WalletAPI start Exchange Nonce fail", { provider, exchangeType });
track(`Starts Exchange ${exchangeType} Nonce fail`, { provider, exchangeType });
},

// No Params to generate an Exchange app nonce
startExchangeNoParams: (manifest: AppManifest) => {
track("WalletAPI start Exchange no params", getEventData(manifest));
track("Start Exchange no params", getEventData(manifest));
},

completeExchangeRequested: ({ provider, exchangeType }: TrackEventPayload) => {
track("WalletAPI complete Exchange requested", { provider, exchangeType });
track(`Completes Exchange ${exchangeType} requested`, { provider, exchangeType });
},

// Successfully completed an Exchange
Expand All @@ -64,17 +64,17 @@ export default function trackingWrapper(trackCall: TrackExchange) {
exchangeType,
currency,
}: TrackEventPayload & { currency: string }) => {
track("WalletAPI complete Exchange success", { provider, exchangeType, currency });
track(`Completes Exchange ${exchangeType} success`, { provider, exchangeType, currency });
},

// Failed to complete an Exchange
completeExchangeFail: ({ provider, exchangeType }: TrackEventPayload) => {
track("WalletAPI complete Exchange Nonce fail", { provider, exchangeType });
track(`Completes Exchange ${exchangeType} Nonce fail`, { provider, exchangeType });
},

// No Params to complete an Exchange
completeExchangeNoParams: (manifest: AppManifest) => {
track("WalletAPI complete Exchange no params", getEventData(manifest));
track("Completes Exchange no params", getEventData(manifest));
},
} as const;
}
Expand Down

0 comments on commit 450cd0d

Please sign in to comment.