-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: new tx history - cache tx details #1371
Merged
Merged
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
be0e9e0
cctp
brtkx 64369cf
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx 2c4ad7b
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx c4a6df9
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx 188be70
infinite scrolling
brtkx e73ba69
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx f2225bf
Merge branch 'new-tx-history-cctp' into new-tx-history-ui-pagination
brtkx 080affe
Merge branch 'new-tx-history-old-ui' of github.com:OffchainLabs/arbit…
brtkx 67f4c5d
fixes
brtkx 6da99ec
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx 8543bef
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx 5278afc
Merge branch 'new-tx-history-old-ui' into new-tx-history-cctp
brtkx 47c0ba9
Merge branch 'new-tx-history-cctp' of github.com:OffchainLabs/arbitru…
brtkx 3228452
clean up
brtkx 43fb44e
fixes
brtkx 6c46790
remove logs
brtkx 2f72b6c
fixes
brtkx f2dc99e
fix
brtkx 99ec664
fix
brtkx 316391b
fetch by ts
brtkx 8ae47c2
Merge branch 'new-tx-history-cctp' of github.com:OffchainLabs/arbitru…
brtkx 52b9d25
clean up
brtkx 070df16
fix
brtkx 4379fa4
space
brtkx 19decb3
add logs
brtkx 08f40da
fix
brtkx 672e31c
fix
brtkx 7ccac83
only show load more if not completed
brtkx b4dbcb2
tx history includer
brtkx d2772c0
unused state
brtkx fdd545b
display dest network if L1 tx pending
brtkx ebe5c86
merge
brtkx cd06852
not needed classname
brtkx 809ddb2
add comments to the pausing logic
brtkx 51a7794
comment typo
brtkx 68a6fba
init
brtkx 5e8bd99
clean up
brtkx 97360ab
updaters
brtkx 785ce95
swr infinite
brtkx 7df1356
naming
brtkx c44f665
clean up
brtkx 58c06c7
Merge branch 'new-tx-history-ui-pagination' of github.com:OffchainLab…
brtkx 95bb24d
fix
brtkx 036fa5a
Merge branch 'new-tx-history-ui-pagination' of github.com:OffchainLab…
brtkx 03047bb
fixes after swr infinite
brtkx 065f498
Merge branch 'new-tx-history-tx-includer' of github.com:OffchainLabs/…
brtkx 71a5416
fixes
brtkx 6b13f36
fix tx list
brtkx 6070b51
fix and clean up
brtkx 2c6244a
based on days
brtkx bd9a7c2
based on days only
brtkx ee0fad1
Merge branch 'new-tx-history-ui-pagination' of github.com:OffchainLab…
brtkx 3c69e43
Merge branch 'new-tx-history-tx-includer' of github.com:OffchainLabs/…
brtkx d4fe7b7
fix
brtkx e2be948
separate swr for new txs
brtkx 952bb2e
remove unused param
brtkx 7809856
address review comments
brtkx ceb555b
address comment
brtkx b350668
nit
brtkx 4133320
fixes and improvements
brtkx 5ca9b1f
fix
brtkx d20fe79
claiming
brtkx e2cec54
claiming clean up
brtkx f6bf775
claiming clean up
brtkx fb93b23
updates
brtkx 237455d
fixes
brtkx 1307f5f
testnet mode
brtkx 40e554e
custom orbit chains
brtkx 3e57e91
token timestamps
brtkx 9d1d5de
custom orbit chains
brtkx 842b5dc
Merge branch 'new-tx-history-testnet-mode' of github.com:OffchainLabs…
brtkx 24fb120
ui fixes
brtkx 589da16
fix
brtkx b254b73
fix
brtkx f910b8c
caching txs
brtkx 162a420
Merge branch 'new-tx-history-old-ui' of github.com:OffchainLabs/arbit…
brtkx 11812a9
fix
brtkx 6fb25d8
comment out sepolia, fixes
brtkx 56de752
fix
brtkx e30ce4d
clean up
brtkx dd28b66
Merge branch 'new-tx-history-ui-fixes' of github.com:OffchainLabs/arb…
brtkx bdb7746
clean up
brtkx 0b6a2cd
Merge branch 'new-tx-history-old-ui' of github.com:OffchainLabs/arbit…
brtkx c95a523
add nonce
brtkx 09e3e80
changes
brtkx 8a2b2e1
fixes
brtkx fb6347e
fix
brtkx 1e5c043
address comments
brtkx 85e745a
testing
brtkx 43ca07a
try
brtkx ffedd37
try
brtkx 3875249
fix
brtkx b8903d2
revert
brtkx 9acba66
fix
brtkx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,10 @@ import { MergedTransaction, WithdrawalStatus } from '../state/app/state' | |
import { isUserRejectedError } from '../util/isUserRejectedError' | ||
import { errorToast } from '../components/common/atoms/Toast' | ||
import { AssetType, L2ToL1EventResultPlus } from './arbTokenBridge.types' | ||
import { getProvider } from '../components/TransactionHistory/helpers' | ||
import { | ||
getProvider, | ||
setParentChainTxDetailsOfWithdrawalClaimTx | ||
} from '../components/TransactionHistory/helpers' | ||
import { L2TransactionReceipt } from '@arbitrum/sdk' | ||
import { ContractReceipt, utils } from 'ethers' | ||
import { useTransactionHistory } from './useTransactionHistory' | ||
|
@@ -109,12 +112,17 @@ export function useClaimWithdrawal(): UseClaimWithdrawalResult { | |
} | ||
|
||
const isSuccess = (res as ContractReceipt).status === 1 | ||
const txHash = (res as ContractReceipt).transactionHash | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Read timestamp from here |
||
|
||
updatePendingTransaction({ | ||
...tx, | ||
status: isSuccess ? WithdrawalStatus.EXECUTED : WithdrawalStatus.FAILURE, | ||
resolvedAt: isSuccess ? dayjs().valueOf() : null | ||
}) | ||
|
||
if (isSuccess) { | ||
setParentChainTxDetailsOfWithdrawalClaimTx(tx, txHash) | ||
} | ||
} | ||
|
||
return { claim, isClaiming } | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested by @fionnachan, adding nonce so that we can fix #986 in the future