@stellar/stellar-sdk 11.2.2 → 11.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 (60) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/stellar-sdk.js +1276 -1202
  3. package/dist/stellar-sdk.min.js +1 -1
  4. package/lib/browser.js +1 -1
  5. package/lib/config.js +2 -3
  6. package/lib/contract_client/assembled_transaction.d.ts +456 -0
  7. package/lib/contract_client/assembled_transaction.js +502 -0
  8. package/lib/contract_client/basic_node_signer.d.ts +12 -0
  9. package/lib/contract_client/basic_node_signer.js +52 -0
  10. package/lib/contract_client/client.d.ts +17 -0
  11. package/lib/contract_client/client.js +89 -0
  12. package/lib/contract_client/index.d.ts +6 -0
  13. package/lib/contract_client/index.js +71 -0
  14. package/lib/contract_client/sent_transaction.d.ts +72 -0
  15. package/lib/contract_client/sent_transaction.js +147 -0
  16. package/lib/contract_client/types.d.ts +100 -0
  17. package/lib/contract_client/types.js +3 -0
  18. package/lib/contract_client/utils.d.ts +23 -0
  19. package/lib/contract_client/utils.js +95 -0
  20. package/lib/contract_spec.d.ts +7 -0
  21. package/lib/contract_spec.js +13 -4
  22. package/lib/errors.js +7 -8
  23. package/lib/federation/index.js +1 -1
  24. package/lib/federation/server.js +3 -4
  25. package/lib/horizon/account_call_builder.js +3 -4
  26. package/lib/horizon/account_response.js +2 -3
  27. package/lib/horizon/assets_call_builder.js +3 -4
  28. package/lib/horizon/call_builder.js +3 -4
  29. package/lib/horizon/claimable_balances_call_builder.js +3 -4
  30. package/lib/horizon/effect_call_builder.js +3 -4
  31. package/lib/horizon/friendbot_builder.js +2 -2
  32. package/lib/horizon/index.js +1 -1
  33. package/lib/horizon/ledger_call_builder.js +3 -4
  34. package/lib/horizon/liquidity_pool_call_builder.js +3 -4
  35. package/lib/horizon/offer_call_builder.js +3 -4
  36. package/lib/horizon/operation_call_builder.js +3 -4
  37. package/lib/horizon/orderbook_call_builder.js +2 -2
  38. package/lib/horizon/path_call_builder.js +2 -2
  39. package/lib/horizon/payment_call_builder.js +3 -4
  40. package/lib/horizon/server.js +4 -5
  41. package/lib/horizon/strict_receive_path_call_builder.js +2 -2
  42. package/lib/horizon/strict_send_path_call_builder.js +2 -2
  43. package/lib/horizon/trade_aggregation_call_builder.js +3 -4
  44. package/lib/horizon/trades_call_builder.js +3 -4
  45. package/lib/horizon/transaction_call_builder.js +3 -4
  46. package/lib/index.d.ts +1 -1
  47. package/lib/index.js +13 -9
  48. package/lib/rust_types/index.d.ts +1 -0
  49. package/lib/rust_types/index.js +16 -0
  50. package/lib/rust_types/result.d.ts +71 -0
  51. package/lib/rust_types/result.js +66 -0
  52. package/lib/soroban/browser.js +1 -1
  53. package/lib/soroban/jsonrpc.d.ts +2 -8
  54. package/lib/soroban/jsonrpc.js +13 -54
  55. package/lib/soroban/parsers.js +1 -1
  56. package/lib/soroban/server.js +18 -13
  57. package/lib/stellartoml/index.js +3 -4
  58. package/lib/utils.js +2 -3
  59. package/lib/webauth/errors.js +2 -2
  60. package/package.json +32 -20
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar/stellar-sdk",
3
- "version": "11.2.2",
3
+ "version": "11.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"
@@ -28,12 +28,13 @@
28
28
  "build:prod": "cross-env NODE_ENV=production yarn _build",
29
29
  "build:node": "yarn _babel && yarn build:ts",
30
30
  "build:ts": "tsc -p ./config/tsconfig.json",
31
- "build:test": "tsc -p ./test/tsconfig.json",
31
+ "build:test": "tsc -p ./test/unit/tsconfig.json",
32
32
  "build:browser": "webpack -c config/webpack.config.browser.js",
33
33
  "build:docs": "cross-env NODE_ENV=docs yarn _babel",
34
- "clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/",
34
+ "clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/ test/e2e/.soroban",
35
35
  "docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json --verbose",
36
36
  "test": "yarn build:test && yarn test:node && yarn test:integration && yarn test:browser",
37
+ "test:e2e": "./test/e2e/initialize.sh && ava",
37
38
  "test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'",
38
39
  "test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'",
39
40
  "test:browser": "karma start config/karma.conf.js",
@@ -76,27 +77,28 @@
76
77
  ]
77
78
  },
78
79
  "devDependencies": {
79
- "@babel/cli": "^7.23.9",
80
- "@babel/core": "^7.23.9",
81
- "@babel/eslint-parser": "^7.23.10",
80
+ "@babel/cli": "^7.24.1",
81
+ "@babel/core": "^7.24.3",
82
+ "@babel/eslint-parser": "^7.24.1",
82
83
  "@babel/eslint-plugin": "^7.22.10",
83
- "@babel/preset-env": "^7.23.9",
84
- "@babel/preset-typescript": "^7.23.0",
84
+ "@babel/preset-env": "^7.24.3",
85
+ "@babel/preset-typescript": "^7.24.1",
85
86
  "@babel/register": "^7.23.7",
86
87
  "@definitelytyped/dtslint": "^0.1.2",
87
88
  "@istanbuljs/nyc-config-babel": "3.0.0",
88
89
  "@stellar/tsconfig": "^1.0.2",
89
- "@types/chai": "^4.3.6",
90
+ "@types/chai": "^4.3.14",
90
91
  "@types/detect-node": "^2.0.0",
91
92
  "@types/eventsource": "^1.1.12",
92
93
  "@types/json-schema": "^7.0.15",
93
- "@types/lodash": "^4.14.199",
94
+ "@types/lodash": "^4.17.0",
94
95
  "@types/mocha": "^10.0.2",
95
- "@types/node": "^20.11.17",
96
+ "@types/node": "^20.11.30",
96
97
  "@types/randombytes": "^2.0.1",
97
98
  "@types/sinon": "^17.0.2",
98
99
  "@types/urijs": "^1.19.20",
99
100
  "@typescript-eslint/parser": "^6.20.0",
101
+ "ava": "^5.3.1",
100
102
  "axios-mock-adapter": "^1.22.0",
101
103
  "babel-loader": "^9.1.3",
102
104
  "babel-plugin-istanbul": "^6.1.1",
@@ -105,23 +107,24 @@
105
107
  "chai-as-promised": "^7.1.1",
106
108
  "chai-http": "^4.3.0",
107
109
  "cross-env": "^7.0.3",
108
- "eslint": "^8.56.0",
110
+ "dotenv": "^16.4.5",
111
+ "eslint": "^8.57.0",
109
112
  "eslint-config-airbnb-base": "^15.0.0",
110
113
  "eslint-config-prettier": "^9.0.0",
111
114
  "eslint-plugin-import": "^2.29.1",
112
115
  "eslint-plugin-node": "^11.1.0",
113
116
  "eslint-plugin-prefer-import": "^0.0.1",
114
117
  "eslint-plugin-prettier": "^5.1.2",
115
- "eslint-webpack-plugin": "^4.0.1",
118
+ "eslint-webpack-plugin": "^4.1.0",
116
119
  "ghooks": "^2.0.4",
117
120
  "husky": "^8.0.3",
118
121
  "jsdoc": "^4.0.2",
119
- "json-schema-faker": "^0.5.5",
120
- "karma": "^6.4.1",
122
+ "json-schema-faker": "^0.5.6",
123
+ "karma": "^6.4.3",
121
124
  "karma-chai": "^0.1.0",
122
125
  "karma-chrome-launcher": "^3.1.0",
123
126
  "karma-coverage": "^2.2.1",
124
- "karma-firefox-launcher": "^2.1.1",
127
+ "karma-firefox-launcher": "^2.1.3",
125
128
  "karma-mocha": "^2.0.0",
126
129
  "karma-sinon-chai": "^2.0.2",
127
130
  "karma-webpack": "^5.0.1",
@@ -138,17 +141,26 @@
138
141
  "taffydb": "^2.7.3",
139
142
  "terser-webpack-plugin": "^5.3.10",
140
143
  "ts-node": "^10.9.2",
141
- "webpack": "^5.90.1",
144
+ "typescript": "^5.4.3",
145
+ "webpack": "^5.91.0",
142
146
  "webpack-cli": "^5.0.1"
143
147
  },
144
148
  "dependencies": {
145
- "@stellar/stellar-base": "^11.0.0",
146
- "axios": "^1.6.7",
149
+ "@stellar/stellar-base": "^11.0.1",
150
+ "axios": "^1.6.8",
147
151
  "bignumber.js": "^9.1.2",
148
152
  "eventsource": "^2.0.2",
149
153
  "randombytes": "^2.1.0",
150
154
  "toml": "^3.0.0",
151
- "typescript": "^5.3.3",
152
155
  "urijs": "^1.19.1"
156
+ },
157
+ "ava": {
158
+ "files": [
159
+ "./test/e2e/src/test-*"
160
+ ],
161
+ "require": [
162
+ "dotenv/config"
163
+ ],
164
+ "timeout": "2m"
153
165
  }
154
166
  }