feat: add sda module type and template#14
Draft
AlonzoRicardo wants to merge 3 commits into
Draft
Conversation
Add scaffolding support for `wdk-protocol-sda-*` modules via the CLI. - New `sda` choice in the interactive prompts, the `[type]` argument help, and module-type validation. - Package name `wdk-protocol-sda-<provider>` and a matching description. - `templates/sda/`: protocol skeleton extending `SdaProtocol` (with a capability descriptor and stubs for every interface method), README, package.json, bare runtime, tests and types. Part 3 of 3. Targets the `SdaProtocol` interface in tetherto/wdk-wallet.
This was referenced Jun 24, 2026
Add custodyModel / clientDerivableAddress / historyByRecipient to the getCapabilities() skeleton, a getTransfersByRecipient stub, and the SdaCustodyModel type re-export, keeping scaffolded modules in step with the updated SdaProtocol interface.
Add `activation` to the getCapabilities() skeleton, `deriveDepositAddress` and `renewDepositAddress` stubs, and the SdaActivationModel type re-export.
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.
Summary
Adds CLI scaffolding for
wdk-protocol-sda-*modules. Part 3 of 3.What's in it
sdamodule type: interactive prompt choice,[type]argument help, andvalidateModuleType.wdk-protocol-sda-<provider>and a matching description.templates/sda/— protocol skeleton extendingSdaProtocol(agetCapabilities()descriptor + stubs for every interface method), README,package.json, bare runtime, tests, and types.Validation
create-wdk-module sda <provider>scaffolds a module that lints andbuild:types-compiles against theSdaProtocolinterface, and the full CLI test suite passes. The template was used to scaffold the three reference providers (Rhino, Orchestra/Flashnet, Relay) used to validate the interface.Notes
SdaProtocolinterface in tetherto/wdk-wallet.Related PRs
This is one of a 3-PR set:
SdaProtocolinterface: feat(protocols): add SDA (Smart Deposit Address) protocol interface wdk-wallet#46getSdaProtocolsupport: feat: add SDA protocol support (getSdaProtocol) wdk#73sdamodule type + template (this PR)