Skip to content
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

Merged
merged 9 commits into from
Sep 3, 2024
Merged

Conversation

dewanshparashar
Copy link
Contributor

@dewanshparashar dewanshparashar commented Aug 5, 2024

There's a confusion between utility methods isTeleport vs isTeleporterTransaction.

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 to isValidTeleportChainPair

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

@cla-bot cla-bot bot added the cla-signed label Aug 5, 2024
Copy link

vercel bot commented Aug 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-token-bridge ✅ Ready (Inspect) Visit Preview Sep 3, 2024 0:15am

@dewanshparashar dewanshparashar changed the title chore: rename teleporter helpers chore: update teleporter helpers Aug 5, 2024
douglance
douglance previously approved these changes Aug 5, 2024
@@ -250,7 +249,7 @@ export const TransactionsTableDetailsSteps = ({
/>

{/* Pending transfer showing the remaining time */}
{!isTeleport(tx) && (
{!isTeleporterTransaction(tx) && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{!isTeleporterTransaction(tx) && (
{!isTeleportTx && (

@@ -272,7 +271,7 @@ export const TransactionsTableDetailsSteps = ({
/>
)}

{isTeleport(tx) && isTeleporterTransaction(tx) && (
{isTeleporterTransaction(tx) && (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{isTeleporterTransaction(tx) && (
{isTeleportTx && (

isDeposit,
isNativeCurrencyTransfer,
isSupported,
isValidTeleportChainPair
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

@dewanshparashar dewanshparashar changed the title chore: update teleporter helpers chore: rename teleporter helpers Aug 5, 2024
brtkx
brtkx previously approved these changes Aug 6, 2024
@dewanshparashar dewanshparashar merged commit 59756ff into master Sep 3, 2024
34 checks passed
@dewanshparashar dewanshparashar deleted the feat-rename-teleport-utils branch September 3, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants