Skip to content

Commit

Permalink
Chore: rm outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Sep 1, 2023
1 parent 04c9733 commit abdcef7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions src/types/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ export enum FEATURES {
EIP1271 = 'EIP1271',
}

// Remain agnostic as possible and reference what is returned in the CGW, i.e.
// https://gnosis.github.io/safe-client-gateway/docs/routes/chains/models/struct.ChainInfo.html
export type ChainInfo = {
transactionService: string
chainId: string // Restricted by what is returned by the CGW
Expand Down
10 changes: 0 additions & 10 deletions src/types/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export enum TransferDirection {
UNKNOWN = 'UNKNOWN',
}

// https://safe.global/safe-client-gateway/docs/routes/transactions/models/enum.TransferInfo.html
export enum TransactionTokenType {
ERC20 = 'ERC20',
ERC721 = 'ERC721',
Expand All @@ -63,30 +62,26 @@ export enum SettingsInfoType {
DELETE_GUARD = 'DELETE_GUARD',
}

// https://safe.global/safe-client-gateway/docs/routes/transactions/models/enum.TransactionInfo.html
export enum TransactionInfoType {
TRANSFER = 'Transfer',
SETTINGS_CHANGE = 'SettingsChange',
CUSTOM = 'Custom',
CREATION = 'Creation',
}

// https://safe.global/safe-client-gateway/docs/routes/transactions/models/summary/enum.ConflictType.html
export enum ConflictType {
NONE = 'None',
HAS_NEXT = 'HasNext',
END = 'End',
}

// https://safe.global/safe-client-gateway/docs/routes/transactions/models/summary/enum.TransactionListItem.html
export enum TransactionListItemType {
TRANSACTION = 'TRANSACTION',
LABEL = 'LABEL',
CONFLICT_HEADER = 'CONFLICT_HEADER',
DATE_LABEL = 'DATE_LABEL',
}

// https://safe.global/safe-client-gateway/docs/routes/transactions/models/details/enum.DetailedExecutionInfo.html
export enum DetailedExecutionInfoType {
MULTISIG = 'MULTISIG',
MODULE = 'MODULE',
Expand Down Expand Up @@ -265,8 +260,6 @@ export type Transaction = {
type: TransactionListItemType.TRANSACTION
}

// WIP types:

export type IncomingTransfer = Omit<Transaction, 'transaction'> & {
transaction: Omit<TransactionSummary, 'txInfo' | 'executionInfo'> & {
txInfo: Omit<Transfer, 'direction'> & { direction: TransferDirection.INCOMING }
Expand All @@ -292,9 +285,6 @@ export type DateLabel = {
type: TransactionListItemType.DATE_LABEL
}

/**
* @see https://gnosis.github.io/safe-client-gateway/docs/routes/transactions/models/summary/enum.Label.html
*/
export enum LabelValue {
Queued = 'Queued',
Next = 'Next',
Expand Down

0 comments on commit abdcef7

Please sign in to comment.