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

Upgrade XDR to the final, stable testnet version. #704

Merged
merged 3 commits into from
Oct 23, 2023
Merged

Conversation

Shaptic
Copy link
Contributor

@Shaptic Shaptic commented Oct 16, 2023

Closes #699.

XDR has been upgraded to the latest stable version (stellar/stellar-xdr@6a620d1). This is mostly renames, but it includes the following relevant breaking changes:

  • Operation.bumpFootprintExpiration is now extendFootprintTtl and its ledgersToExpire field is now named extendTo, but it serves the same purpose.
  • xdr.ContractExecutable.contractExecutableToken is now contractExecutableStellarAsset
  • xdr.SorobanTransactionData.refundableFee is now resourceFee
  • In turn, SorobanDataBuilder.setRefundableFee is now setResourceFee
  • 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 (i.e. TransactionBuilder(..., { fee: ... })).
  • In TypeScript, the Operation.BumpFootprintExpiration is now Operation.ExtendFootprintTTL

Note: The diffs to src/generated/*.js and types/*.d.ts should be very readable.

@github-actions
Copy link

github-actions bot commented Oct 16, 2023

Size Change: -2.92 kB (0%)

Total Size: 3.16 MB

Filename Size Change
dist/stellar-base.js 2.31 MB -2.06 kB (0%)
dist/stellar-base.min.js 842 kB -859 B (0%)

compressed-size-action

@Shaptic Shaptic force-pushed the bump-stable-xdr branch 2 times, most recently from 67d7936 to 4d27d93 Compare October 16, 2023 20:30
@Shaptic Shaptic marked this pull request as ready for review October 16, 2023 20:31
@Shaptic Shaptic requested a review from sreuland October 16, 2023 20:31
@Shaptic Shaptic added this to the Soroban Stable P20 Release milestone Oct 16, 2023
@Shaptic Shaptic linked an issue Oct 16, 2023 that may be closed by this pull request
10 tasks
Makefile Show resolved Hide resolved
Copy link
Contributor

@sreuland sreuland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great changelog notes

@Shaptic Shaptic changed the base branch from master to stable October 23, 2023 18:32
@Shaptic Shaptic changed the title Upgrade XDR to the latest (hopefully) stable version Upgrade XDR to the latest stable version Oct 23, 2023
@Shaptic Shaptic changed the title Upgrade XDR to the latest stable version Upgrade XDR to the final, stable testnet version. Oct 23, 2023
@Shaptic Shaptic merged commit 96ba3c0 into stable Oct 23, 2023
4 checks passed
@Shaptic Shaptic deleted the bump-stable-xdr branch October 23, 2023 18:35
Shaptic added a commit that referenced this pull request Dec 5, 2023
…#710)

* Upgrade XDR to the final, stable testnet version. (#704, #715)

XDR has been upgraded to the latest stable version. This is mostly renames, but
it includes the following relevant breaking changes:
  - `Operation.bumpFootprintExpiration` is now `extendFootprintTtl` and its
  `ledgersToExpire` field is now named `extendTo`, but it serves the same
  purpose. - `xdr.ContractExecutable.contractExecutableToken` is now
  `contractExecutableStellarAsset` - `xdr.SorobanTransactionData.refundableFee`
  is now `resourceFee` - In turn, `SorobanDataBuilder.setRefundableFee` is now
  `setResourceFee` - 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 (i.e.
  `TransactionBuilder(..., { fee: ... })`). - In TypeScript, the
  `Operation.BumpFootprintExpiration` is now `Operation.ExtendFootprintTtl`

Commit: stellar/stellar-xdr @ bb54e50

* Add helpful abstractions for common invocation types. (#703)
* Drop incorrect key entry for contract footprint (#709)
* Republish package under @stellar/ scope (#714)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Upgrade all SDKs to the final, stable testnet release
2 participants