Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge the Soroban RPC client into this library #860

Merged
merged 30 commits into from
Oct 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
41bff1f
Move Horizon SDK into subfolders
Shaptic Jul 18, 2023
689f716
Move types also
Shaptic Jul 18, 2023
13a2f7d
WIP merge
Shaptic Aug 4, 2023
ffeed24
Upgrade all dependencies to their latest versions
Shaptic Sep 6, 2023
59b841c
Drop redundancies, tests pass!
Shaptic Sep 7, 2023
820c9ba
Move over latest soroban-client source code
Shaptic Sep 14, 2023
5b2c403
Trying to update Soroban tests to pass
Shaptic Sep 14, 2023
455fab8
More moving, formatting pass
Shaptic Sep 15, 2023
4a6cdc6
Merge branch 'master' into soroban-merge
Shaptic Sep 15, 2023
9cb919d
Holy crap, node tests pass???
Shaptic Sep 15, 2023
aa9f9d6
Fixup browser tests, too, LFGGGG
Shaptic Sep 15, 2023
90df6de
Prettier
Shaptic Sep 15, 2023
df2526d
Prettier: smaller diff
Shaptic Sep 15, 2023
5d8019a
Prettier fixup for easier merge?
Shaptic Sep 22, 2023
4181b0a
Merge branch 'master' into soroban-merge
Shaptic Sep 22, 2023
4fc2934
Drop Node 20 tests
Shaptic Sep 22, 2023
21bd09f
Minimize formatting changes
Shaptic Sep 22, 2023
fdfe795
:cmonBruh:
Shaptic Sep 22, 2023
7b34b1d
Move namespaces around to isolate srpc and hz
Shaptic Oct 11, 2023
bc5ff0f
Final testing fixups
Shaptic Oct 12, 2023
4412f7d
Merge branch 'master' into soroban-merge
Shaptic Oct 12, 2023
b4ffa9c
Merge fixup
Shaptic Oct 12, 2023
0b08af8
Upgrade soroban library + tests from v1.0.0-beta.3
Shaptic Oct 13, 2023
1ab6696
Fixup and revert unneeded changes
Shaptic Oct 13, 2023
4947082
Moving/Renaming Sep10 stuff around a bit
Shaptic Oct 13, 2023
3212204
Move friendbot API into a separate module
Shaptic Oct 16, 2023
9efd446
Reset changelog find/replace and add entry
Shaptic Oct 23, 2023
879e3a4
Buncha SEP-related module/file renames
Shaptic Oct 23, 2023
e455ac3
Finish moving and renaming, add friendbot export
Shaptic Oct 23, 2023
63e62ed
Merge branch 'master' into soroban-merge
Shaptic Oct 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
max-parallel: 4
matrix:
node-version: [16, 18, 20]
node-version: [16, 18]

steps:
- name: Checkout
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ A breaking change will get clearly marked in this log.

## Unreleased

### Breaking Changes
* The `soroban-client` library ([stellar/js-soroban-client](https://github.com/stellar/js-soroban-client)) has been merged into this package, causing significant breaking changes in the module structure ([#860](https://github.com/stellar/js-stellar-sdk/pull/860)):

- The namespaces have changed to move each server-dependent component into its own module. Shared components (e.g. `TransactionBuilder`) are still in the top level, Horizon-specific interactions are in the `Horizon` namespace (i.e. `Server` is now `Horizon.Server`), and new Soroban RPC interactions are in the `SorobanRpc` namespace.
- There is a [detailed migration guide](https://gist.github.com/Shaptic/5ce4f16d9cce7118f391fbde398c2f30) available to outline both the literal (i.e. necessary code changes) and philosophical (i.e. how to find certain functionality) changes needed to adapt to this merge.


## [v11.0.0-beta.4](https://github.com/stellar/js-stellar-sdk/compare/v11.0.0-beta.3...v11.0.0-beta.4)

Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@
"build:prod": "cross-env NODE_ENV=production yarn _build",
"build:node": "yarn _babel && yarn build:ts",
"build:ts": "tsc -p ./config/tsconfig.json",
"build:test": "tsc -p ./test/tsconfig.json",
"build:browser": "webpack -c config/webpack.config.browser.js",
"build:docs": "cross-env NODE_ENV=docs yarn _babel",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/",
"docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json --verbose",
"test": "yarn test:node && yarn test:integration && yarn test:browser",
"test": "yarn build:test && yarn test:node && yarn test:integration && yarn test:browser",
"test:node": "yarn _nyc mocha --recursive 'test/unit/**/*.js'",
"test:integration": "yarn _nyc mocha --recursive 'test/integration/**/*.js'",
"test:browser": "karma start config/karma.conf.js",
"fmt": "yarn eslint -c .eslintrc.js src/ --fix && yarn _prettier",
"preversion": "yarn clean && yarn fmt && yarn build:prod && yarn test",
"prepare": "yarn build:prod",
"_build": "yarn build:node && yarn build:browser",
"_build": "yarn build:node && yarn build:test && yarn build:browser",
"_babel": "babel --extensions '.ts' --out-dir lib/ src/",
"_nyc": "nyc --nycrc-path config/.nycrc",
"_prettier": "prettier --ignore-path config/.prettierignore --write './**/*.js'"
"_prettier": "prettier --ignore-path config/.prettierignore --write './test/**/*.js'"
},
"husky": {
"hooks": {
Expand All @@ -51,8 +52,7 @@
},
"lint-staged": {
"**/*.{js,json,ts}": [
"yarn fmt",
"yarn lint"
"yarn fmt"
]
},
"mocha": {
Expand All @@ -66,7 +66,7 @@
],
"sort": true,
"recursive": true,
"timeout": 60000
"timeout": 30000
},
"nyc": {
"instrument": false,
Expand All @@ -86,11 +86,14 @@
"@definitelytyped/dtslint": "^0.0.182",
"@istanbuljs/nyc-config-babel": "3.0.0",
"@stellar/tsconfig": "^1.0.2",
"@types/chai": "^4.3.6",
"@types/detect-node": "^2.0.0",
"@types/eventsource": "^1.1.12",
"@types/lodash": "^4.14.199",
"@types/mocha": "^10.0.2",
"@types/node": "^20.8.2",
"@types/randombytes": "^2.0.1",
"@types/sinon": "^10.0.19",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^6.7.4",
"axios-mock-adapter": "^1.22.0",
Expand Down Expand Up @@ -143,7 +146,7 @@
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"stellar-base": "10.0.0-beta.2",
"stellar-base": "10.0.0-beta.3",
"toml": "^3.0.0",
"urijs": "^1.19.1"
}
Expand Down
Loading
Loading