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

first pass at adding wallet interface and soroban signing #94

Closed
wants to merge 1 commit into from

Conversation

piyalbasu
Copy link
Contributor

No description provided.

@piyalbasu piyalbasu marked this pull request as draft January 18, 2024 19:12
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@stellar/freighter-api 1.7.1 None +0 56.5 kB piyalbasu

@@ -0,0 +1,37 @@
import FreighterApi from "@stellar/freighter-api";
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps it's best if we flipped this. This way the frieghter API package could provide the Wallet implementation.

Copy link
Contributor Author

@piyalbasu piyalbasu Jan 18, 2024

Choose a reason for hiding this comment

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

Ah yeah, that makes sense. The idea being that the freighter-api becomes the default interface that we expect from a wallet.

For added context: We're also talking about creating some helper methods in this lib to allow other browser extensions to quickly implement this expected interface in their own codebase so they can quickly make use of signAndSend and signAuthEntries

@@ -41,7 +41,8 @@
"webpack-cli": "^5.1.1"
},
"dependencies": {
"@stellar/stellar-sdk": "^11.1.0",
"@stellar/freighter-api": "^1.7.1",
"@stellar/stellar-sdk": "stellar/js-stellar-sdk#bindings",
Copy link
Contributor

Choose a reason for hiding this comment

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

@piyalbasu just out of curiosity, what's the reason behind this "#bindings" change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was targeted at a branch of stellar-sdk that had the TS bindings update for dev purposes. This work may be merged already. I'll follow up

@JakeUrban JakeUrban closed this Oct 10, 2024
@JakeUrban JakeUrban deleted the feature/ts-bindings branch October 10, 2024 20:58
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.

4 participants