Skip to content

SPIKE: Protocol 28 (CAP-0084) - #305

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

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

Conversation

@sisuresh

Copy link
Copy Markdown
Contributor

SPIKE: root of the Protocol 28 / CAP-0084 (muxed contract addresses) stack. This repo is the canonical .x source — no upstream to cross-link.

Changes

  • Stellar-contract.x: add SC_ADDRESS_TYPE_MUXED_CONTRACT arm + MuxedContract { uint64 id; ContractID contractId; } struct + SCAddress union case, all gated behind #ifdef CAP_0084 (mirrors MuxedEd25519Account).
  • Lands in next only; curr unchanged until core bumps max protocol. cap_0083 retained — no CAPs dropped this protocol.

Deferred

  • curr/next regen: handled by the Generate workflow on merge to main (not committed here).

Verification

  • make preprocess with both features → next exits 0, emits the 2 + 2 tokens; bare make preprocesscurr exits 0, 0 tokens.

Upstream: none (canonical source).
Downstream (re-pin to this branch head, each opened by its own pass): rs-stellar-xdr → rs-soroban-env → rs-soroban-sdk → stellar-core → go-stellar-sdk → stellar-horizon → stellar-rpc → js-stellar-base → js-stellar-sdk → js-stellar-xdr-json → stellar-laboratory → docker-stellar-core-horizon.

Adds the SC_ADDRESS_TYPE_MUXED_CONTRACT arm to SCAddress with a new
MuxedContract { uint64 id; ContractID contractId; } struct, mirroring
MuxedEd25519Account. Gated behind #ifdef CAP_0084 so it lands in `next`
only until core bumps the max supported protocol.

CAP-0084: stellar/stellar-protocol#1968
@sisuresh

Copy link
Copy Markdown
Contributor Author

Downstream: regenerated rs-stellar-xdr bindings for this CAP-0084 .x delta — stellar/rs-stellar-xdr#548 (draft, pinned to this PR's head 2769fed).

@sisuresh

Copy link
Copy Markdown
Contributor Author

Downstream (Rust): stellar/rs-stellar-xdr#548stellar/rs-soroban-env#1695 (SPIKE: Protocol 28 / CAP-0084).

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