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

Protocol 21 SDK Support #742

Closed
psheth9 opened this issue May 6, 2024 · 1 comment
Closed

Protocol 21 SDK Support #742

psheth9 opened this issue May 6, 2024 · 1 comment

Comments

@psheth9
Copy link

psheth9 commented May 6, 2024

Protocol 21 SDK Support

Once voted in, the release of Protocol 21 will introduce following new CAPs:

  • CAP-51: Smart Contract Host Functionality
  • CAP-53: Separate host functions to extend the TTL for contract instance and contract code
  • CAP-54: Soroban refined VM instantiation cost model
  • CAP-55 : Soroban streamlined linking
  • CAP-56: Soroban intra-transaction module caching

XDR changes:

XDR update issue details - stellar/stellar-xdr@1a04392

Reference Implementations:
js-sdk - #738

Soroban API Changes:

Breaking Changes:

Non Breaking changes:

New optional field in SimulateTransactionResponse which indicates how the state (ledger entries) will change as a result of the transaction execution.

StateDiff       []LedgerEntryDiff            `json:"stateDiff,omitempty"`   

type LedgerEntryDiff struct {
	Before string `json:"before,omitempty"` // LedgerEntry XDR in base64
	After  string `json:"after,omitempty"`  // LedgerEntry XDR in base64
}

New Ledger Range and Ledger Retention Window in getHealth Response


type HealthCheckResult struct {
	Status                string `json:"status"`
	LatestLedger          uint32 `json:"latestLedger"` // New
	OldestLedger          uint32 `json:"oldestLedger"` // New
	LedgerRetentionWindow uint32 `json:"ledgerRetentionWindow"` // New
}

Horizon API Changes:

  • There are no changes to Horizon APIs

Reference Implementations

Reference implementation authored by SDF:

You can follow each respective issue to its implementation PRs.

@Shaptic
Copy link
Contributor

Shaptic commented May 7, 2024

Closed by #738

@Shaptic Shaptic closed this as completed May 7, 2024
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

No branches or pull requests

2 participants