Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Updating the SDKs to the stable Protocol 20 release #397

Open
Shaptic opened this issue Oct 23, 2023 · 1 comment
Open

Updating the SDKs to the stable Protocol 20 release #397

Shaptic opened this issue Oct 23, 2023 · 1 comment

Comments

@Shaptic
Copy link

Shaptic commented Oct 23, 2023

SDKs need to be updated to adapt to breaking changes that have occurred since Preview 11 (i.e. the current testnet release candidate) coming to Protocol 20.

Summary of Breaking Changes

This is likely irrelevant to SDK maintainers, but do note sandbox mode has been removed from the Soroban CLI (stellar/stellar-cli#983).

XDR

The XDR needs to be updated to stellar/stellar-xdr@6a620d1. This includes a non-trivial list of breaking changes (mostly renames):

  • The BumpFootprintExpirationOp is now ExtendFootprintTTLOp and its ledgersToExpire field is now named extendTo, but it serves the same purpose.
  • ContractExecutable.contractExecutableToken is now contractExecutableStellarAsset
  • SorobanTransactionData.refundableFee is now resourceFee
  • This new fee encompasses the entirety of the Soroban-related resource fees. Note that this is distinct from the "network-inclusion" fee that you would set on your transaction
  • see Upgrade XDR to the final, stable testnet version. stellar/js-stellar-base#704 for an example migration

RPC

@Shaptic
Copy link
Author

Shaptic commented Oct 25, 2023

There is an additional schema change: the getLedgerEntries RPC response will use liveUntilLedgerSeq rather than expirationLedgerSeq in the final build (ref: stellar/stellar-cli#1029)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant