-
Notifications
You must be signed in to change notification settings - Fork 192
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
chore: rename teleporter helpers #1823
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -250,7 +249,7 @@ export const TransactionsTableDetailsSteps = ({ | |||
/> | |||
|
|||
{/* Pending transfer showing the remaining time */} | |||
{!isTeleport(tx) && ( | |||
{!isTeleporterTransaction(tx) && ( |
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.
{!isTeleporterTransaction(tx) && ( | |
{!isTeleportTx && ( |
@@ -272,7 +271,7 @@ export const TransactionsTableDetailsSteps = ({ | |||
/> | |||
)} | |||
|
|||
{isTeleport(tx) && isTeleporterTransaction(tx) && ( | |||
{isTeleporterTransaction(tx) && ( |
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.
{isTeleporterTransaction(tx) && ( | |
{isTeleportTx && ( |
isDeposit, | ||
isNativeCurrencyTransfer, | ||
isSupported, | ||
isValidTeleportChainPair |
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.
maybe this should stay as isTeleport
, because it refers to the transfer type not chain pairs in here I think?
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.
Updated
…e into feat-rename-teleport-utils
There's a confusion between utility methods
isTeleport
vsisTeleporterTransaction
.isTeleport
is a boolean which denotes if the source and destination id's provided to it correspond to teleporter config - it's much more simpler to use in terms of function input - but doesn't help with typescript. - Renamed it toisValidTeleportChainPair
isTeleportTx
was the util method that is being used to assert a transaction (merged tx, tx or any other transaction type we have) is a teleporter transaction - using it wherever we are asserting type of teleport tx.FS-725