You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`SorobanRpc.Server.simulateTransaction` now supports an optional `addlResources` parameter to allow users to specify additional resources that they want to include in a simulation ([#896](https://github.com/stellar/js-stellar-sdk/pull/896)).
13
+
*`ContractSpec` now has a `jsonSchema()` method to generate a [JSON Schema](https://json-schema.org/) for a particular contract specification ([#889](https://github.com/stellar/js-stellar-sdk/pull/889)).
14
+
15
+
### Fixed
16
+
* All dependencies have been updated to their latest versions, including `stellar-base` to [v10.0.1](https://github.com/stellar/js-stellar-base/releases/tag/v10.0.1) which included a small patch ([#897](https://github.com/stellar/js-stellar-sdk/pull/897)).
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+2
Original file line number
Diff line number
Diff line change
@@ -21,3 +21,5 @@ In fact, you should follow [the steps there](https://github.com/stellar/js-stell
21
21
```
22
22
23
23
-[ ] Finally, run `yarn` so that the dependency is pulled (ensuring its a valid version) and the lockfile is updated with the latest integrity details. You can now commit the change and PR accordingly.
24
+
25
+
Note that new versions will be published to npm **and** Bower by GitHub Actions.
js-stellar-sdk is a JavaScript library for communicating with a
17
+
[Stellar Horizon server](https://github.com/stellar/go/tree/master/services/horizon) and [Soroban RPC](https://soroban.stellar.org/docs/reference/rpc).
18
18
It is used for building Stellar apps either on Node.js or in the browser.
19
19
20
20
It provides:
21
21
22
-
- a networking layer API for Horizon endpoints.
22
+
- a networking layer API for Horizon endpoints (REST-based) and Soroban RPC (JSON-RPC-based).
23
23
- facilities for building and signing transactions, for communicating with a
24
24
Stellar Horizon instance, and for submitting transactions or querying network
25
25
history.
26
26
27
27
### stellar-sdk vs stellar-base
28
28
29
-
stellar-sdk is a high-level library that serves as client-side API for Horizon.
30
-
[stellar-base](https://github.com/stellar/js-stellar-base) is lower-level
31
-
library for creating Stellar primitive constructs via XDR helpers and wrappers.
29
+
`stellar-sdk` is a high-level library that serves as client-side API for Horizon and Soroban RPC, while [stellar-base](https://github.com/stellar/js-stellar-base) is lower-level library for creating Stellar primitive constructs via XDR helpers and wrappers.
32
30
33
31
**Most people will want stellar-sdk instead of stellar-base.** You should only
34
32
use stellar-base if you know what you're doing!
@@ -55,7 +53,7 @@ installs `stellar-base` and exposes all of its exports in case you need them.
55
53
Using npm to include js-stellar-sdk in your own project:
Because we support the oldest maintenance version of Node, please install and develop on Node 16 so you don't get surprised when your code works locally but breaks in CI.
139
+
Because we support the oldest maintenance version of Node, please install and develop on Node 18 so you don't get surprised when your code works locally but breaks in CI.
140
140
141
141
Here's how to install `nvm` if you haven't: https://github.com/creationix/nvm
3. Add `import "./shim";` to the your app's entry point (by default `./App.js`)
203
-
4.`yarn add stellar-sdk`
203
+
4.`yarn add @stellar/stellar-sdk`
204
204
5.`expo install expo-random`
205
205
206
206
At this point, the Stellar SDK will work, except that `StellarSdk.Keypair.random()` will throw an error. To work around this, you can create your own method to generate a random keypair like this:
For information on how to contribute or publish new versions of this software to `npm`, please refer to our [contribution guide](https://github.com/stellar/js-stellar-sdk/blob/master/CONTRIBUTING.md).
0 commit comments