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

refactor: hide mainsail not supported transactions #439

Conversation

alfonsobries
Copy link
Contributor

Summary

Closes https://app.clickup.com/t/86dt7cxy1

Checklist

  • My changes look good in both light AND dark mode
  • The change is not hardcoded to a single network, but has multi-asset in mind
  • I checked my changes for obvious issues, debug statements and commented code
  • Documentation (if necessary)
  • Tests (if necessary)
  • Ready to be merged

Copy link

vercel bot commented Apr 9, 2024

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

Name Status Preview Updated (UTC)
arkvault ❌ Failed (Inspect) Apr 9, 2024 10:50pm

@alfonsobries alfonsobries changed the base branch from develop to feat/mainsail April 9, 2024 22:53
@@ -85,10 +85,14 @@ export const useTransactionTypes = ({ wallets = [] }: TransactionTypeProperties
},
};

const mainsailUnsupportedTypes = new Set(["htlcClaim", "htlcLock", "htlcRefund", "ipfs", "secondSignature", "magistrate"]);
Copy link
Contributor

Choose a reason for hiding this comment

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

this shouldn't be necessary. The wallet.transactionTypes() should instead only list supported types. For example for Mainsail it currently lists these when you log it:

["delegateRegistration","usernameRegistration","usernameResignation","delegateResignation","ipfs","multiPayment","multiSignature","secondSignature","transfer","vote"]

This still includes IPFS and secondSignature, but that means you need to adjust this on the PSDK side to not return unsupported transaction types

@ItsANameToo ItsANameToo marked this pull request as draft April 10, 2024 07:50
@ItsANameToo
Copy link
Contributor

closing in favour of ArdentHQ/platform-sdk#65 as that will hide these values in the UI automatically

@ItsANameToo ItsANameToo deleted the refactor/hide-mainsail-not-supported-transactions branch April 10, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants