@stellar/stellar-sdk 11.2.2 → 12.0.0-rc.1
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.
- package/CHANGELOG.md +28 -0
- package/README.md +1 -1
- package/dist/stellar-sdk.js +1566 -1253
- package/dist/stellar-sdk.min.js +1 -1
- package/lib/browser.js +1 -1
- package/lib/config.js +2 -3
- package/lib/contract_client/assembled_transaction.d.ts +456 -0
- package/lib/contract_client/assembled_transaction.js +513 -0
- package/lib/contract_client/basic_node_signer.d.ts +12 -0
- package/lib/contract_client/basic_node_signer.js +52 -0
- package/lib/contract_client/client.d.ts +17 -0
- package/lib/contract_client/client.js +57 -0
- package/lib/contract_client/index.d.ts +6 -0
- package/lib/contract_client/index.js +71 -0
- package/lib/contract_client/sent_transaction.d.ts +71 -0
- package/lib/contract_client/sent_transaction.js +148 -0
- package/lib/contract_client/types.d.ts +100 -0
- package/lib/contract_client/types.js +5 -0
- package/lib/contract_client/utils.d.ts +23 -0
- package/lib/contract_client/utils.js +95 -0
- package/lib/contract_spec.d.ts +7 -0
- package/lib/contract_spec.js +15 -6
- package/lib/errors.js +7 -8
- package/lib/federation/index.js +1 -1
- package/lib/federation/server.js +3 -4
- package/lib/horizon/account_call_builder.d.ts +0 -1
- package/lib/horizon/account_call_builder.js +3 -4
- package/lib/horizon/account_response.js +2 -3
- package/lib/horizon/assets_call_builder.d.ts +0 -1
- package/lib/horizon/assets_call_builder.js +3 -4
- package/lib/horizon/call_builder.js +3 -4
- package/lib/horizon/claimable_balances_call_builder.d.ts +0 -1
- package/lib/horizon/claimable_balances_call_builder.js +3 -4
- package/lib/horizon/effect_call_builder.d.ts +0 -1
- package/lib/horizon/effect_call_builder.js +3 -4
- package/lib/horizon/friendbot_builder.d.ts +0 -1
- package/lib/horizon/friendbot_builder.js +2 -2
- package/lib/horizon/horizon_api.d.ts +0 -1
- package/lib/horizon/index.js +1 -1
- package/lib/horizon/ledger_call_builder.d.ts +0 -1
- package/lib/horizon/ledger_call_builder.js +3 -4
- package/lib/horizon/liquidity_pool_call_builder.d.ts +0 -1
- package/lib/horizon/liquidity_pool_call_builder.js +3 -4
- package/lib/horizon/offer_call_builder.d.ts +0 -1
- package/lib/horizon/offer_call_builder.js +3 -4
- package/lib/horizon/operation_call_builder.d.ts +0 -1
- package/lib/horizon/operation_call_builder.js +3 -4
- package/lib/horizon/orderbook_call_builder.d.ts +0 -1
- package/lib/horizon/orderbook_call_builder.js +2 -2
- package/lib/horizon/path_call_builder.d.ts +0 -1
- package/lib/horizon/path_call_builder.js +2 -2
- package/lib/horizon/payment_call_builder.d.ts +0 -1
- package/lib/horizon/payment_call_builder.js +3 -4
- package/lib/horizon/server.js +4 -5
- package/lib/horizon/strict_receive_path_call_builder.d.ts +0 -1
- package/lib/horizon/strict_receive_path_call_builder.js +2 -2
- package/lib/horizon/strict_send_path_call_builder.d.ts +0 -1
- package/lib/horizon/strict_send_path_call_builder.js +2 -2
- package/lib/horizon/trade_aggregation_call_builder.d.ts +0 -1
- package/lib/horizon/trade_aggregation_call_builder.js +3 -4
- package/lib/horizon/trades_call_builder.d.ts +0 -1
- package/lib/horizon/trades_call_builder.js +3 -4
- package/lib/horizon/transaction_call_builder.d.ts +0 -1
- package/lib/horizon/transaction_call_builder.js +3 -4
- package/lib/index.d.ts +1 -2
- package/lib/index.js +13 -9
- package/lib/rust_types/index.d.ts +1 -0
- package/lib/rust_types/index.js +16 -0
- package/lib/rust_types/result.d.ts +71 -0
- package/lib/rust_types/result.js +66 -0
- package/lib/soroban/api.d.ts +1 -0
- package/lib/soroban/browser.js +1 -1
- package/lib/soroban/index.d.ts +0 -1
- package/lib/soroban/jsonrpc.d.ts +2 -8
- package/lib/soroban/jsonrpc.js +13 -54
- package/lib/soroban/parsers.js +1 -1
- package/lib/soroban/server.js +18 -13
- package/lib/stellartoml/index.js +3 -4
- package/lib/utils.js +2 -3
- package/lib/webauth/errors.js +2 -2
- package/package.json +34 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar/stellar-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0-rc.1",
|
|
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,27 @@
|
|
|
76
77
|
]
|
|
77
78
|
},
|
|
78
79
|
"devDependencies": {
|
|
79
|
-
"@babel/cli": "^7.
|
|
80
|
-
"@babel/core": "^7.
|
|
81
|
-
"@babel/eslint-parser": "^7.23.10",
|
|
80
|
+
"@babel/cli": "^7.24.1",
|
|
81
|
+
"@babel/core": "^7.24.3",
|
|
82
82
|
"@babel/eslint-plugin": "^7.22.10",
|
|
83
|
-
"@babel/preset-env": "^7.
|
|
84
|
-
"@babel/preset-typescript": "^7.
|
|
83
|
+
"@babel/preset-env": "^7.24.3",
|
|
84
|
+
"@babel/preset-typescript": "^7.24.1",
|
|
85
85
|
"@babel/register": "^7.23.7",
|
|
86
|
-
"@definitelytyped/dtslint": "^0.
|
|
86
|
+
"@definitelytyped/dtslint": "^0.2.20",
|
|
87
87
|
"@istanbuljs/nyc-config-babel": "3.0.0",
|
|
88
88
|
"@stellar/tsconfig": "^1.0.2",
|
|
89
|
-
"@types/chai": "^4.3.
|
|
89
|
+
"@types/chai": "^4.3.14",
|
|
90
90
|
"@types/detect-node": "^2.0.0",
|
|
91
91
|
"@types/eventsource": "^1.1.12",
|
|
92
92
|
"@types/json-schema": "^7.0.15",
|
|
93
|
-
"@types/lodash": "^4.
|
|
93
|
+
"@types/lodash": "^4.17.0",
|
|
94
94
|
"@types/mocha": "^10.0.2",
|
|
95
|
-
"@types/node": "^20.11.
|
|
95
|
+
"@types/node": "^20.11.30",
|
|
96
96
|
"@types/randombytes": "^2.0.1",
|
|
97
97
|
"@types/sinon": "^17.0.2",
|
|
98
98
|
"@types/urijs": "^1.19.20",
|
|
99
|
-
"@typescript-eslint/parser": "^
|
|
99
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
100
|
+
"ava": "^5.3.1",
|
|
100
101
|
"axios-mock-adapter": "^1.22.0",
|
|
101
102
|
"babel-loader": "^9.1.3",
|
|
102
103
|
"babel-plugin-istanbul": "^6.1.1",
|
|
@@ -105,23 +106,24 @@
|
|
|
105
106
|
"chai-as-promised": "^7.1.1",
|
|
106
107
|
"chai-http": "^4.3.0",
|
|
107
108
|
"cross-env": "^7.0.3",
|
|
108
|
-
"
|
|
109
|
+
"dotenv": "^16.4.5",
|
|
110
|
+
"eslint": "^8.57.0",
|
|
109
111
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
110
112
|
"eslint-config-prettier": "^9.0.0",
|
|
111
113
|
"eslint-plugin-import": "^2.29.1",
|
|
112
114
|
"eslint-plugin-node": "^11.1.0",
|
|
113
115
|
"eslint-plugin-prefer-import": "^0.0.1",
|
|
114
116
|
"eslint-plugin-prettier": "^5.1.2",
|
|
115
|
-
"eslint-webpack-plugin": "^4.0
|
|
117
|
+
"eslint-webpack-plugin": "^4.1.0",
|
|
116
118
|
"ghooks": "^2.0.4",
|
|
117
|
-
"husky": "^
|
|
119
|
+
"husky": "^9.0.11",
|
|
118
120
|
"jsdoc": "^4.0.2",
|
|
119
|
-
"json-schema-faker": "^0.5.
|
|
120
|
-
"karma": "^6.4.
|
|
121
|
+
"json-schema-faker": "^0.5.6",
|
|
122
|
+
"karma": "^6.4.3",
|
|
121
123
|
"karma-chai": "^0.1.0",
|
|
122
124
|
"karma-chrome-launcher": "^3.1.0",
|
|
123
125
|
"karma-coverage": "^2.2.1",
|
|
124
|
-
"karma-firefox-launcher": "^2.1.
|
|
126
|
+
"karma-firefox-launcher": "^2.1.3",
|
|
125
127
|
"karma-mocha": "^2.0.0",
|
|
126
128
|
"karma-sinon-chai": "^2.0.2",
|
|
127
129
|
"karma-webpack": "^5.0.1",
|
|
@@ -138,17 +140,26 @@
|
|
|
138
140
|
"taffydb": "^2.7.3",
|
|
139
141
|
"terser-webpack-plugin": "^5.3.10",
|
|
140
142
|
"ts-node": "^10.9.2",
|
|
141
|
-
"
|
|
143
|
+
"typescript": "^5.4.3",
|
|
144
|
+
"webpack": "^5.91.0",
|
|
142
145
|
"webpack-cli": "^5.0.1"
|
|
143
146
|
},
|
|
144
147
|
"dependencies": {
|
|
145
|
-
"@stellar/stellar-base": "^11.0.
|
|
146
|
-
"axios": "^1.6.
|
|
148
|
+
"@stellar/stellar-base": "^11.0.1",
|
|
149
|
+
"axios": "^1.6.8",
|
|
147
150
|
"bignumber.js": "^9.1.2",
|
|
148
151
|
"eventsource": "^2.0.2",
|
|
149
152
|
"randombytes": "^2.1.0",
|
|
150
153
|
"toml": "^3.0.0",
|
|
151
|
-
"typescript": "^5.3.3",
|
|
152
154
|
"urijs": "^1.19.1"
|
|
155
|
+
},
|
|
156
|
+
"ava": {
|
|
157
|
+
"files": [
|
|
158
|
+
"./test/e2e/src/test-*"
|
|
159
|
+
],
|
|
160
|
+
"require": [
|
|
161
|
+
"dotenv/config"
|
|
162
|
+
],
|
|
163
|
+
"timeout": "2m"
|
|
153
164
|
}
|
|
154
165
|
}
|