Skip to content

SPIKE: Protocol 28 (CAP-0084)#2

Closed
sisuresh wants to merge 1 commit into
mainfrom
p28-cap-0084
Closed

SPIKE: Protocol 28 (CAP-0084)#2
sisuresh wants to merge 1 commit into
mainfrom
p28-cap-0084

Conversation

@sisuresh

Copy link
Copy Markdown
Owner

Draft SPIKE — pins lab's JS XDR stack to the CAP-0084 forks so it can decode/render the new SC_ADDRESS_TYPE_MUXED_CONTRACT arm on SCAddress.

Changes

  • Pin @stellar/stellar-sdk + @stellar/stellar-xdr-json to local CAP-0084 tarballs (local-pkgs/); pnpm override on @stellar/stellar-base → CAP-0084 fork so the whole tree shares the patched codec.
  • createStore.ts: NEXT_PUBLIC_CUSTOM_{HORIZON_URL,RPC_URL,PASSPHRASE} fallbacks for the Quickstart-bundled lab.
  • Verified green against CAP-0084: lint:ts, pnpm build, test:unit (92/92).
  • No SCAddress-handling code change needed — lab delegates address/XDR handling to stellar-base/-sdk/-xdr-json.

Deferred

  • Tarballs are SPIKE-only: flip file: pins → semver and drop local-pkgs/ + the base override once the forks publish to npm.
  • @stellar-expert/contract-wasm-interface-parser stays on registry stellar-base@15.0.0 (peer dep the override can't reach) — fine, CAP-0084 doesn't change contract-spec XDR.
  • Live muxed-contract SAC e2e needs the P28 core/RPC stack — out of scope.

Upstream

Pin the JS XDR stack to the CAP-0084 SPIKE forks so lab can decode and render
the new SC_ADDRESS_TYPE_MUXED_CONTRACT arm on SCAddress:

- package.json: @stellar/stellar-sdk + @stellar/stellar-xdr-json → local CAP-0084
  tarballs (local-pkgs/)
- pnpm-workspace.yaml: override @stellar/stellar-base → CAP-0084 fork tarball so
  all transitive consumers (sdk lib/, wallets-kit) share the patched codec
- createStore.ts: NEXT_PUBLIC_CUSTOM_{HORIZON_URL,RPC_URL,PASSPHRASE} fallbacks
  for the Quickstart-bundled lab

Upstream SPIKE PRs (cross-linked):
- js-stellar-base  sisuresh/js-stellar-base#2
- js-stellar-sdk   sisuresh/js-stellar-sdk#2
- js-stellar-xdr-json sisuresh/js-stellar-xdr-json#2
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.

1 participant