-
Notifications
You must be signed in to change notification settings - Fork 1
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
β¨ (signer-solana) [DSDK-564]: Add solana SignDataTask and utils #459
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
754f2e7
to
c89aaa7
Compare
packages/signer/signer-solana/src/internal/app-binder/task/SendCommandInChunksTask.ts
Outdated
Show resolved
Hide resolved
packages/signer/signer-solana/src/internal/app-binder/task/SignDataTask.ts
Outdated
Show resolved
Hide resolved
c89aaa7
to
1889537
Compare
1889537
to
aeb921d
Compare
}; | ||
|
||
export type CommandFactory<T> = < | ||
V extends ChunkableCommandArgs & Record<string, Uint8Array>, |
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.
[SHOULD] Remove & Record<string, Uint8Array>
as it's not needed
commandFactory: CommandFactory<T>; | ||
}; | ||
|
||
export class SignDataTask<Uint8Array> { |
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.
[COULD] Use Signature
model instead of UInt8Array
|
||
return await new SendCommandInChunksTask<Uint8Array>(this.api, { | ||
data: buffer, | ||
commandFactory: (args) => commandFactory(args), |
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.
[COULD] you can use directly
return await new SendCommandInChunksTask<Uint8Array>(this.api, {
data: buffer,
commandFactory,
}).run();
aeb921d
to
c1c881d
Compare
c1c881d
to
35706ec
Compare
π 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.
π§ Checklist for the PR Reviewers