Skip to content

Commit

Permalink
Release v12.0.0, compatible with Protocol 21 (#949)
Browse files Browse the repository at this point in the history
* Do a major version upgrade for clarity
* Upgrade stellar-base to be Protocol 21 compatible
* Fixup test to use updated soroban meta structure
  • Loading branch information
Shaptic authored Apr 30, 2024
1 parent 34ccf20 commit dedacda
Show file tree
Hide file tree
Showing 4 changed files with 581 additions and 423 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ A breaking change will get clearly marked in this log.

## Unreleased


## [v12.0.0](https://github.com/stellar/js-stellar-sdk/compare/v11.3.0...v12.0.0)

### Breaking Changes
* **This update supports Protocol 21** ([#949](https://github.com/stellar/js-stellar-sdk/pull/949)).

### Fixed
* Each item in the `GetEventsResponse.events` list will now have a `txHash` item corresponding to the transaction hash that triggered a particular event ([#939](https://github.com/stellar/js-stellar-sdk/pull/939)).
* ContractClient now properly handles methods that take no arguments. While most methods take two arguments (arguments for the function, `args`, as well as various `MethodOptions`), if there are no arguments for the functions, then we can omit the first. This brings the ContractClient inline with the types generated by Soroban CLI's `soroban contract bindings typescript`. Full details: [#940](https://github.com/stellar/js-stellar-sdk/pull/940)
* `ContractClient` new allows `publicKey` to be undefined, returning functionality that had been in the bindings previously generated by `soroban contract bindings typescript`. More details: [#941](https://github.com/stellar/js-stellar-sdk/pull/941)
* `ContractClient` now properly handles methods that take no arguments by making `MethodOptions` the only parameter, bringing it inline with the types generated by Soroban CLI's `soroban contract bindings typescript` ([#940](https://github.com/stellar/js-stellar-sdk/pull/940)).
* `ContractClient` now allows `publicKey` to be undefined ([#941](https://github.com/stellar/js-stellar-sdk/pull/941)).


## [v11.3.0](https://github.com/stellar/js-stellar-sdk/compare/v11.2.2...v11.3.0)

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/stellar-sdk",
"version": "11.3.0",
"version": "12.0.0",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
Expand Down Expand Up @@ -83,7 +83,7 @@
"@babel/preset-env": "^7.24.3",
"@babel/preset-typescript": "^7.24.1",
"@babel/register": "^7.23.7",
"@definitelytyped/dtslint": "^0.1.2",
"@definitelytyped/dtslint": "^0.2.20",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.14",
Expand Down Expand Up @@ -116,7 +116,7 @@
"eslint-plugin-prettier": "^5.1.2",
"eslint-webpack-plugin": "^4.1.0",
"ghooks": "^2.0.4",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jsdoc": "^4.0.2",
"json-schema-faker": "^0.5.6",
"karma": "^6.4.3",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/server/soroban/get_transaction_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function makeTxResult(status, addSoroban = true) {
operations: [],
txChangesAfter: [],
sorobanMeta: new xdr.SorobanTransactionMeta({
ext: new xdr.ExtensionPoint(0),
ext: new xdr.SorobanTransactionMetaExt(0),
events: [],
diagnosticEvents: [],
returnValue: nativeToScVal(1234),
Expand Down
Loading

0 comments on commit dedacda

Please sign in to comment.