Skip to content

Commit

Permalink
Merge pull request #42 from Once-Upon/benguyen0214/ou-1206-extract-co…
Browse files Browse the repository at this point in the history
…ntextaction-into-its-own-file-so-i-can-link-to-it
  • Loading branch information
pcowgill authored Dec 1, 2023
2 parents 5ee0c90 + ffb2637 commit b801046
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 53 deletions.
52 changes: 52 additions & 0 deletions src/types/contextAction.ts
Original file line number Diff line number Diff line change
@@ -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';
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './transaction';
export * from './log';
export * from './contextAction';
55 changes: 2 additions & 53 deletions src/types/transaction.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { Log } from './log';
import { ContextAction } from './contextAction';

export interface AssetTransfer {
asset?: string;
from: string;
Expand Down Expand Up @@ -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
| {
Expand Down

0 comments on commit b801046

Please sign in to comment.