diff --git a/src/types/contextAction.ts b/src/types/contextAction.ts new file mode 100644 index 00000000..38c8e314 --- /dev/null +++ b/src/types/contextAction.ts @@ -0,0 +1,52 @@ +export type ContextAction = + | 'bought' + | 'bridged' + | 'deployed' + | 'minted' + | 'swapped' + | 'sent' + | 'received' + | 'committed to' + | 'received airdrop' + | 'gave access to' + | 'interacted with' + | 'sent message' + // WETH + | 'wrapped' + | 'unwrapped' + // ENS + | 'registered' + | 'renewed' + | 'set reverse ens to' + // CryptoPunks + | 'minted punk' + | 'listed punk' + | 'withdrew bid for' + | 'bid on punk' + | 'withdrew from contract' + | 'bought punk' + | 'transferred punk' + | 'unlisted punk' + // Leeroy + | 'tipped' + | 'updated user details' + | 'replied to' + | 'reposted' + | 'registered username' + | 'followed' + | 'unfollowed' + | 'posted' + // fren.pet + | 'set pet name' + | 'bought accessory' + | 'attacked' + | 'redeemed' + | 'bonk revealed' + | 'wheel revealed' + | 'wheel committed' + | 'killed' + | 'minted' + | 'redeemed' + | 'sold item' + | 'joined dice game' + | 'dice game settled'; diff --git a/src/types/index.ts b/src/types/index.ts index f861bad5..384a9b87 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,2 +1,3 @@ export * from './transaction'; export * from './log'; +export * from './contextAction'; diff --git a/src/types/transaction.ts b/src/types/transaction.ts index 3f143f00..0095f9f0 100644 --- a/src/types/transaction.ts +++ b/src/types/transaction.ts @@ -1,4 +1,6 @@ import { Log } from './log'; +import { ContextAction } from './contextAction'; + export interface AssetTransfer { asset?: string; from: string; @@ -104,59 +106,6 @@ export type TransactionContextType = { crossChainTx?: Transaction[]; }; -export type ContextAction = - | 'bought' - | 'bridged' - | 'deployed' - | 'minted' - | 'swapped' - | 'sent' - | 'received' - | 'committed to' - | 'received airdrop' - | 'gave access to' - | 'interacted with' - | 'sent message' - // WETH - | 'wrapped' - | 'unwrapped' - // ENS - | 'registered' - | 'renewed' - | 'set reverse ens to' - // CryptoPunks - | 'minted punk' - | 'listed punk' - | 'withdrew bid for' - | 'bid on punk' - | 'withdrew from contract' - | 'bought punk' - | 'transferred punk' - | 'unlisted punk' - // Leeroy - | 'tipped' - | 'updated user details' - | 'replied to' - | 'reposted' - | 'registered username' - | 'followed' - | 'unfollowed' - | 'posted' - // fren.pet - | 'set pet name' - | 'bought accessory' - | 'attacked' - | 'redeemed' - | 'bonk revealed' - | 'wheel revealed' - | 'wheel committed' - | 'killed' - | 'minted' - | 'redeemed' - | 'sold item' - | 'joined dice game' - | 'dice game settled'; - export type ContextSummaryVariableType = | string | {