@stellar/stellar-sdk 12.1.0 → 12.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/README.md +1 -1
  3. package/dist/stellar-sdk.js +1336 -1101
  4. package/dist/stellar-sdk.min.js +1 -1
  5. package/lib/browser.d.ts +1 -1
  6. package/lib/browser.js +4 -4
  7. package/lib/config.js +5 -2
  8. package/lib/contract/assembled_transaction.d.ts +26 -30
  9. package/lib/contract/assembled_transaction.js +28 -36
  10. package/lib/contract/client.d.ts +0 -1
  11. package/lib/contract/client.js +2 -2
  12. package/lib/contract/index.d.ts +0 -1
  13. package/lib/contract/index.js +1 -18
  14. package/lib/contract/sent_transaction.d.ts +9 -10
  15. package/lib/contract/sent_transaction.js +2 -1
  16. package/lib/contract/spec.d.ts +1 -1
  17. package/lib/contract/spec.js +921 -956
  18. package/lib/contract/types.d.ts +5 -0
  19. package/lib/contract/types.js +4 -1
  20. package/lib/contract/utils.d.ts +0 -5
  21. package/lib/contract/utils.js +4 -18
  22. package/lib/errors.d.ts +4 -4
  23. package/lib/federation/server.d.ts +1 -1
  24. package/lib/horizon/account_call_builder.d.ts +2 -3
  25. package/lib/horizon/account_response.d.ts +1 -1
  26. package/lib/horizon/assets_call_builder.d.ts +2 -3
  27. package/lib/horizon/call_builder.d.ts +8 -8
  28. package/lib/horizon/call_builder.js +10 -13
  29. package/lib/horizon/claimable_balances_call_builder.d.ts +3 -4
  30. package/lib/horizon/effect_call_builder.d.ts +2 -3
  31. package/lib/horizon/friendbot_builder.d.ts +0 -1
  32. package/lib/horizon/horizon_api.d.ts +5 -1
  33. package/lib/horizon/horizon_axios_client.js +6 -6
  34. package/lib/horizon/ledger_call_builder.d.ts +2 -3
  35. package/lib/horizon/liquidity_pool_call_builder.d.ts +2 -4
  36. package/lib/horizon/offer_call_builder.d.ts +2 -3
  37. package/lib/horizon/operation_call_builder.d.ts +3 -4
  38. package/lib/horizon/orderbook_call_builder.d.ts +0 -1
  39. package/lib/horizon/path_call_builder.d.ts +1 -2
  40. package/lib/horizon/payment_call_builder.d.ts +2 -3
  41. package/lib/horizon/server.d.ts +29 -10
  42. package/lib/horizon/server.js +98 -55
  43. package/lib/horizon/strict_receive_path_call_builder.d.ts +1 -2
  44. package/lib/horizon/strict_send_path_call_builder.d.ts +1 -2
  45. package/lib/horizon/trade_aggregation_call_builder.d.ts +9 -10
  46. package/lib/horizon/trade_aggregation_call_builder.js +3 -7
  47. package/lib/horizon/trades_call_builder.d.ts +2 -3
  48. package/lib/horizon/transaction_call_builder.d.ts +3 -4
  49. package/lib/horizon/types/assets.d.ts +1 -1
  50. package/lib/horizon/types/effects.d.ts +1 -1
  51. package/lib/horizon/types/offer.d.ts +1 -1
  52. package/lib/index.d.ts +0 -1
  53. package/lib/rpc/api.d.ts +89 -11
  54. package/lib/rpc/browser.d.ts +1 -1
  55. package/lib/rpc/browser.js +4 -4
  56. package/lib/rpc/index.d.ts +0 -1
  57. package/lib/rpc/jsonrpc.js +3 -3
  58. package/lib/rpc/parsers.d.ts +5 -3
  59. package/lib/rpc/parsers.js +52 -23
  60. package/lib/rpc/server.d.ts +51 -18
  61. package/lib/rpc/server.js +200 -153
  62. package/lib/rpc/transaction.d.ts +3 -4
  63. package/lib/rpc/transaction.js +23 -25
  64. package/lib/webauth/utils.js +3 -3
  65. package/package.json +24 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/stellar-sdk",
3
- "version": "12.1.0",
3
+ "version": "12.3.0",
4
4
  "description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
5
5
  "keywords": [
6
6
  "stellar"
@@ -53,7 +53,7 @@
53
53
  "test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'",
54
54
  "test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'",
55
55
  "test:browser": "karma start config/karma.conf.js",
56
- "fmt": "yarn eslint -c .eslintrc.js src/ --fix && yarn _prettier",
56
+ "fmt": "yarn _prettier && yarn eslint -c .eslintrc.js src/ --fix",
57
57
  "preversion": "yarn clean && yarn _prettier && yarn build:prod && yarn test",
58
58
  "prepare": "yarn build:prod",
59
59
  "_build": "yarn build:node && yarn build:test && yarn build:browser",
@@ -93,29 +93,29 @@
93
93
  ]
94
94
  },
95
95
  "devDependencies": {
96
- "@babel/cli": "^7.24.7",
97
- "@babel/core": "^7.24.7",
96
+ "@babel/cli": "^7.25.6",
97
+ "@babel/core": "^7.24.9",
98
98
  "@babel/eslint-plugin": "^7.24.7",
99
- "@babel/preset-env": "^7.24.7",
99
+ "@babel/preset-env": "^7.25.4",
100
100
  "@babel/preset-typescript": "^7.24.7",
101
101
  "@babel/register": "^7.24.6",
102
- "@definitelytyped/dtslint": "^0.2.20",
102
+ "@definitelytyped/dtslint": "^0.2.23",
103
103
  "@istanbuljs/nyc-config-babel": "3.0.0",
104
104
  "@stellar/tsconfig": "^1.0.2",
105
- "@types/chai": "^4.3.14",
105
+ "@types/chai": "^4.3.19",
106
106
  "@types/detect-node": "^2.0.0",
107
107
  "@types/eventsource": "^1.1.12",
108
108
  "@types/json-schema": "^7.0.15",
109
- "@types/lodash": "^4.17.5",
110
- "@types/mocha": "^10.0.2",
111
- "@types/node": "^20.14.2",
109
+ "@types/lodash": "^4.17.7",
110
+ "@types/mocha": "^10.0.8",
111
+ "@types/node": "^20.14.11",
112
112
  "@types/randombytes": "^2.0.1",
113
113
  "@types/sinon": "^17.0.2",
114
114
  "@types/urijs": "^1.19.20",
115
- "@typescript-eslint/parser": "^7.13.0",
115
+ "@typescript-eslint/parser": "^7.16.1",
116
116
  "axios-mock-adapter": "^1.22.0",
117
117
  "babel-loader": "^9.1.3",
118
- "babel-plugin-istanbul": "^6.1.1",
118
+ "babel-plugin-istanbul": "^7.0.0",
119
119
  "buffer": "^6.0.3",
120
120
  "chai": "^4.3.10",
121
121
  "chai-as-promised": "^7.1.1",
@@ -126,14 +126,14 @@
126
126
  "eslint-config-airbnb-base": "^15.0.0",
127
127
  "eslint-config-airbnb-typescript": "^18.0.0",
128
128
  "eslint-config-prettier": "^9.0.0",
129
- "eslint-plugin-import": "^2.29.1",
130
- "eslint-plugin-jsdoc": "^48.2.12",
129
+ "eslint-plugin-import": "^2.30.0",
130
+ "eslint-plugin-jsdoc": "^48.8.0",
131
131
  "eslint-plugin-node": "^11.1.0",
132
132
  "eslint-plugin-prefer-import": "^0.0.1",
133
- "eslint-plugin-prettier": "^5.1.2",
133
+ "eslint-plugin-prettier": "^5.2.1",
134
134
  "eslint-webpack-plugin": "^4.2.0",
135
135
  "ghooks": "^2.0.4",
136
- "husky": "^9.0.11",
136
+ "husky": "^9.1.6",
137
137
  "jsdoc": "^4.0.2",
138
138
  "json-schema-faker": "^0.5.6",
139
139
  "karma": "^6.4.3",
@@ -144,26 +144,26 @@
144
144
  "karma-mocha": "^2.0.0",
145
145
  "karma-sinon-chai": "^2.0.2",
146
146
  "karma-webpack": "^5.0.1",
147
- "lint-staged": "^15.2.7",
147
+ "lint-staged": "^15.2.10",
148
148
  "lodash": "^4.17.21",
149
149
  "minami": "^1.1.1",
150
- "mocha": "^10.3.0",
150
+ "mocha": "^10.6.0",
151
151
  "node-polyfill-webpack-plugin": "^3.0.0",
152
- "nyc": "^15.1.0",
153
- "prettier": "^3.3.2",
152
+ "nyc": "^17.0.0",
153
+ "prettier": "^3.3.3",
154
154
  "randombytes": "^2.1.0",
155
155
  "sinon": "^17.0.1",
156
156
  "sinon-chai": "^3.7.0",
157
157
  "taffydb": "^2.7.3",
158
158
  "terser-webpack-plugin": "^5.3.10",
159
159
  "ts-node": "^10.9.2",
160
- "typescript": "^5.4.3",
161
- "webpack": "^5.92.0",
160
+ "typescript": "^5.6.2",
161
+ "webpack": "^5.94.0",
162
162
  "webpack-cli": "^5.0.1"
163
163
  },
164
164
  "dependencies": {
165
- "@stellar/stellar-base": "^12.0.1",
166
- "axios": "^1.7.2",
165
+ "@stellar/stellar-base": "^12.1.1",
166
+ "axios": "^1.7.7",
167
167
  "bignumber.js": "^9.1.2",
168
168
  "eventsource": "^2.0.2",
169
169
  "randombytes": "^2.1.0",