diff --git a/src/index.ts b/src/index.ts index 187df8d..fd6a994 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,8 @@ export { SmartTransactionCancellationReason, SmartTransactionStatuses, ClientId, + Feature, + Kind, } from './types'; export { MetaMetricsEventName, MetaMetricsEventCategory } from './constants'; export { diff --git a/src/types.ts b/src/types.ts index 38c9411..5f3085b 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,8 +6,32 @@ import type { SmartTransactionsNetworkConfig } from './featureFlags'; export type SentinelMeta = { txType?: TransactionType; + feature?: Feature; + kind?: Kind; + client?: ClientId; + wallet?: string; }; +// This list does not belong here, but as these are reported to tx-sentinel, it is ok to have it here for now. +export enum Feature { + Swap = 'Swap', + Staking = 'Staking', + Ramp = 'Ramp', + Prediction = 'Prediction', + Perp = 'Perp', + Earn = 'Earn', + Card = 'Card', + Bridge = 'Bridge', + dAppTransaction = 'dAppTransaction', +} + +export enum Kind { + Regular = 'Regular', + STX = 'STX', + GaslessSendBundle = 'GaslessSendBundle', + GaslessEIP7702 = 'GaslessEIP7702', +} + /** API */ export enum APIType { 'GET_FEES',