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

✨ (signer-solana) [DSDK-564]: Add solana SignDataTask and utils #459

Merged

Conversation

fAnselmi-Ledger
Copy link
Contributor

@fAnselmi-Ledger fAnselmi-Ledger commented Oct 30, 2024

πŸ“ Description

Add solana SignDataTask and utils

❓ Context

βœ… Checklist

Pull Requests must pass CI checks and undergo code review. Set the PR as Draft if it is not yet ready for review.

  • Covered by automatic tests
  • Changeset is provided
  • Impact of the changes:
    • list of the changes

🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.

@fAnselmi-Ledger fAnselmi-Ledger requested a review from a team as a code owner October 30, 2024 13:17
Copy link

vercel bot commented Oct 30, 2024

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
device-sdk-ts-sample βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Nov 4, 2024 8:45am

Copy link
Contributor

github-actions bot commented Oct 30, 2024

Messages
βœ… Danger: All checks passed successfully! πŸŽ‰

Generated by 🚫 dangerJS against 35706ec

};

export type CommandFactory<T> = <
V extends ChunkableCommandArgs & Record<string, Uint8Array>,
Copy link
Contributor

Choose a reason for hiding this comment

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

[SHOULD] Remove & Record<string, Uint8Array> as it's not needed

commandFactory: CommandFactory<T>;
};

export class SignDataTask<Uint8Array> {
Copy link
Contributor

Choose a reason for hiding this comment

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

[COULD] Use Signature model instead of UInt8Array


return await new SendCommandInChunksTask<Uint8Array>(this.api, {
data: buffer,
commandFactory: (args) => commandFactory(args),
Copy link
Contributor

Choose a reason for hiding this comment

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

[COULD] you can use directly

return await new SendCommandInChunksTask<Uint8Array>(this.api, {
      data: buffer,
      commandFactory,
    }).run();

@fAnselmi-Ledger fAnselmi-Ledger force-pushed the feat/DSDK-564-ts-signer-sol-create-sign-data-task branch from c1c881d to 35706ec Compare November 4, 2024 08:40
@fAnselmi-Ledger fAnselmi-Ledger merged commit ba940af into develop Nov 4, 2024
9 checks passed
@fAnselmi-Ledger fAnselmi-Ledger deleted the feat/DSDK-564-ts-signer-sol-create-sign-data-task branch November 4, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants