SDP-1614: Update configuration management for embedded wallets - #704
Merged
philipliu merged 5 commits intoJun 13, 2025
Merged
Conversation
philipliu
temporarily deployed
to
Anchor Integration Tests
June 10, 2025 22:59 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 10, 2025 22:59 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-embedded-wallets-config
branch
from
June 10, 2025 23:19
72c36b5 to
fc44398
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
June 10, 2025 23:19 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 10, 2025 23:19 — with
GitHub Actions
Inactive
This comment was marked as duplicate.
This comment was marked as duplicate.
philipliu
force-pushed
the
philip/sdp-1614-embedded-wallets-config
branch
from
June 11, 2025 00:37
fc44398 to
ba3a878
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
June 11, 2025 00:37 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 11, 2025 00:37 — with
GitHub Actions
Inactive
This comment was marked as duplicate.
This comment was marked as duplicate.
philipliu
force-pushed
the
philip/sdp-1614-embedded-wallets-config
branch
from
June 11, 2025 15:33
ba3a878 to
a9a8e43
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
June 11, 2025 15:33 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 11, 2025 15:33 — with
GitHub Actions
Inactive
philipliu
marked this pull request as ready for review
June 11, 2025 15:41
philipliu
temporarily deployed
to
Anchor Integration Tests
June 11, 2025 21:39 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 11, 2025 21:39 — with
GitHub Actions
Inactive
7 tasks
marwen-abid
approved these changes
Jun 13, 2025
marwen-abid
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! Great changes 🎉
Comment on lines
+137
to
+138
| return fmt.Errorf("error creating embedded wallet service: %w", err) | ||
| } |
Collaborator
There was a problem hiding this comment.
Suggested change
| return fmt.Errorf("error creating embedded wallet service: %w", err) | |
| } | |
| return fmt.Errorf("creating embedded wallet service: %w", err) | |
| } |
Contributor
Author
There was a problem hiding this comment.
We have several error logs starting with error in this file, so I added it for consistency; however, we should probably remove them. I can open another PR on develop.
| } | ||
|
|
||
| // Setup Embedded Wallet Service (only if enabled) | ||
| if opts.EnableEmbeddedWallets { |
Collaborator
There was a problem hiding this comment.
💡Maybe we should add an Info/Debug log here to say that Enable Embedded Wallets is enabled for this runtime.
| // Feature specific validation | ||
| if opts.Sep45ContractId != "" && opts.RpcConfig.RPCUrl == "" { | ||
| return fmt.Errorf("RPC URL must be set when SEP-45 contract ID is set") | ||
| // RPC-dependent feature validation |
Collaborator
There was a problem hiding this comment.
👍 Nice! this looks clean.
| EmbeddedWalletService: o.EmbeddedWalletService, | ||
| } | ||
| r.Post("/", walletCreationHandler.CreateWallet) | ||
| r.Get("/status", walletCreationHandler.GetWallet) |
Collaborator
There was a problem hiding this comment.
🧪 Can you add these new endpoints to Test_handleHTTP_authenticatedEndpoints in serve_test.go ?
philipliu
temporarily deployed
to
Anchor Integration Tests
June 13, 2025 15:24 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
June 13, 2025 15:24 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
This updates the configuration management for the RPC-dependent features. It introduces the following flags:
Embedded Wallets
enable-embedded-wallets: Enables wallet creation and transaction sponsorshipRPC_URLandembedded-wallets-wasm-hashembedded-wallets-wasm-hash: Embedded wallet contract Wasm hashContract Account Support
enable-sep45: Enables SEP-45 authentication used by known contract accounts and embedded walletssep45-contract-idandRPC_URLWhy
Previously, features such as SEP-45 or embedded wallets APIs were gated behind the presence of the
RPC_URLflag. These features had their configurations that needed to be set, but the relationship between them and theRPC_URLwas not clear.Known limitations
N/A
Checklist
SDP-1234: Add new featureorChore: Refactor package xyzformat. The Jira ticket code was included if available.CHANGELOG.mdis updated (if applicable)