Skip to content

Commit

Permalink
chore: rename to Transaction.childToParentMsgData (OffchainLabs#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
douglance authored Aug 2, 2024
1 parent 6755468 commit b41bbfe
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,6 @@ export function getDestinationNetworkTxId(tx: MergedTransaction) {
}

return tx.isWithdrawal
? tx.l2ToL1MsgData?.uniqueId.toString()
? tx.childToParentMsgData?.uniqueId.toString()
: tx.parentToChildMsgData?.childTxId
}
4 changes: 2 additions & 2 deletions packages/arb-token-bridge-ui/src/hooks/useTransactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface L2ToL3MessageData {
l2ChainId: number
}

export type L2ToL1MessageData = {
export type ChildToParentMessageData = {
uniqueId: BigNumber
}

Expand All @@ -101,7 +101,7 @@ type TransactionBase = {
timestampResolved?: string // time when its status was changed
timestampCreated?: string //time when this transaction is first added to the list
parentToChildMsgData?: ParentToChildMessageData
l2ToL1MsgData?: L2ToL1MessageData
childToParentMsgData?: ChildToParentMessageData
isClassic?: boolean
}

Expand Down
4 changes: 2 additions & 2 deletions packages/arb-token-bridge-ui/src/state/app/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '../../hooks/arbTokenBridge.types'
import {
ParentToChildMessageData,
L2ToL1MessageData,
ChildToParentMessageData,
L2ToL3MessageData,
TxnType
} from '../../hooks/useTransactions'
Expand Down Expand Up @@ -60,7 +60,7 @@ export interface MergedTransaction {
isCctp?: boolean
nodeBlockDeadline?: NodeBlockDeadlineStatus
parentToChildMsgData?: ParentToChildMessageData
l2ToL1MsgData?: L2ToL1MessageData
childToParentMsgData?: ChildToParentMessageData
depositStatus?: DepositStatus
childChainId: number
parentChainId: number
Expand Down
2 changes: 1 addition & 1 deletion packages/arb-token-bridge-ui/src/state/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export const transformDeposit = (
blockNum: tx.blockNumber || null,
tokenAddress: tx.tokenAddress || null,
parentToChildMsgData: tx.parentToChildMsgData,
l2ToL1MsgData: tx.l2ToL1MsgData,
childToParentMsgData: tx.childToParentMsgData,
depositStatus: getDepositStatus(tx),
parentChainId: Number(tx.l1NetworkID),
childChainId: Number(tx.l2NetworkID),
Expand Down

0 comments on commit b41bbfe

Please sign in to comment.