-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use analyzeTx() from UnifiedBridge SDK
- Loading branch information
Showing
21 changed files
with
150 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 0 additions & 93 deletions
93
src/background/services/history/HistoryServiceBridgeHelper.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,7 @@ | ||
import { | ||
NetworkVMType, | ||
Transaction, | ||
TransactionType, | ||
} from '@avalabs/vm-module-types'; | ||
import { AnalyzeTxResult } from '@avalabs/bridge-unified'; | ||
import { NetworkVMType, Transaction } from '@avalabs/vm-module-types'; | ||
|
||
export interface TxHistoryItem extends Transaction { | ||
isBridge: boolean; | ||
bridgeAnalysis: AnalyzeTxResult; | ||
vmType?: NetworkVMType; | ||
} | ||
|
||
export const NonContractCallTypes = [ | ||
TransactionType.BRIDGE, | ||
TransactionType.SEND, | ||
TransactionType.RECEIVE, | ||
TransactionType.TRANSFER, | ||
]; | ||
|
||
export interface HistoryItemCategories { | ||
isBridge: boolean; | ||
isSwap: boolean; | ||
isNativeSend: boolean; | ||
isNativeReceive: boolean; | ||
isNFTPurchase: boolean; | ||
isApprove: boolean; | ||
isTransfer: boolean; | ||
isAirdrop: boolean; | ||
isUnwrap: boolean; | ||
isFillOrder: boolean; | ||
isContractCall: boolean; | ||
method: string; | ||
type: TransactionType; | ||
} | ||
|
||
export interface SubnetHistoryItem { | ||
hash: string; | ||
status: number; | ||
gasPrice: number; | ||
gasUsed: number; | ||
timestamp: number; | ||
from: string; | ||
to: string; | ||
value: string; | ||
method: string; | ||
type: number; | ||
block: number; | ||
toContract?: { | ||
name: string; | ||
symbol: string; | ||
decimals: number; | ||
}; | ||
} |
Oops, something went wrong.