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

optional simulate & wallet, editable TransactionBuilder #921

Merged
merged 37 commits into from
Mar 12, 2024
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
4214a1c
Update examples to use new module and package structure. (#900)
Shaptic Jan 9, 2024
d2cf06b
Bump follow-redirects from 1.15.3 to 1.15.4 (#906)
dependabot[bot] Jan 9, 2024
fbcb184
Export the individual event response instance (#904)
Shaptic Jan 9, 2024
82d0dfb
Add support for new `sendTransaction` response field (#905)
Shaptic Jan 10, 2024
547b360
Update README to flow better (#907)
Shaptic Jan 10, 2024
77d7de6
Prepare v11.2.0 for release (#908)
Shaptic Jan 11, 2024
e2722f6
Eliminating `utility-types` dependency entirely (#912)
sergiolclem Jan 23, 2024
bacbf8e
Release v11.2.1 (#913)
Shaptic Jan 23, 2024
ac5545b
fix: stop using TimeoutInfinite
chadoh Jan 30, 2024
b22af74
optional simulate & wallet, editable TransactionBuilder
chadoh Feb 7, 2024
d6f50e7
Ensure that event streaming tests write a valid stream (#917)
Shaptic Feb 12, 2024
4c42a4d
Release v11.2.2 (#918)
Shaptic Feb 12, 2024
134fcae
export ExampleNodeWallet from lib
chadoh Feb 12, 2024
0e4a0b0
Drop all usage of array-based passing (#924)
Shaptic Feb 15, 2024
c1f3efd
feat(e2e-tests): new account & contract per test
chadoh Feb 22, 2024
159e69e
wallet/signer only needs three methods
chadoh Feb 27, 2024
a2945f9
feat: no more `Wallet` interface
chadoh Mar 1, 2024
5369ed6
rm getAccount from exposed interface
chadoh Mar 1, 2024
29efe06
make simulation public; wrap comments
chadoh Mar 1, 2024
1ef0600
explicit allowHttp
chadoh Mar 1, 2024
93e0b2f
test(ava): set timeout to 2m
chadoh Mar 5, 2024
523812e
Merge branch 'master' into feat/more-better
chadoh Mar 5, 2024
561eee3
build: move ExampleNodeWallet to own entrypoint
chadoh Mar 5, 2024
cdbeb81
build: move ContractClient & AssembledTransaction
chadoh Mar 5, 2024
81d554f
fix: allow overriding 'publicKey' for 'signAuthEntries'
chadoh Mar 6, 2024
807fcc6
feat(contract-client): require publicKey
chadoh Mar 6, 2024
a4c738d
fix: use Networks from stellar-base
chadoh Mar 6, 2024
4a98cb5
doc: explain 'errorTypes' param
chadoh Mar 6, 2024
8505316
build: ContractClient-related things in one dir
chadoh Mar 6, 2024
4318df0
typo
chadoh Mar 6, 2024
ac83856
move primitive type defs to contractclient
chadoh Mar 7, 2024
76cb907
rm ContractClient.generate; do it in constructor
chadoh Mar 7, 2024
ac7e891
feat: separate rust_types to own import path
chadoh Mar 11, 2024
e10461a
feat: don't make people import and use Networks enum
chadoh Mar 11, 2024
3cadcba
doc: include rust_types readme info in build
chadoh Mar 12, 2024
cf0a384
build: make it easier to import rust_types
chadoh Mar 12, 2024
740a887
feat: basicNodeSigner as a plain-object factory
chadoh Mar 12, 2024
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: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
SOROBAN_NETWORK_PASSPHRASE="Standalone Network ; February 2017"
SOROBAN_RPC_URL="http://localhost:8000/soroban/rpc"
SOROBAN_ACCOUNT="me"
FRIENDBOT_URL="http://localhost:8000/friendbot"
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib
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: [18, 20]
node-version: [18, 20, 21]

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

## Unreleased

### Fixed
* `SorobanRpc`: remove all instances of array-based parsing to conform to future breaking changes in Soroban RPC ([#924](https://github.com/stellar/js-stellar-sdk/pull/924)).


## [v11.2.2](https://github.com/stellar/js-stellar-sdk/compare/v11.2.1...v11.2.2)

### Fixed
* Event streaming tests now pass on Node 20, which seems to have tighter conformance to the spec ([#917](https://github.com/stellar/js-stellar-sdk/pull/917)).
* `@stellar/stellar-base` has been upgraded to its latest major version ([#918](https://github.com/stellar/js-stellar-sdk/pull/918), see [v11.0.0](https://github.com/stellar/js-stellar-base/releases/tag/v11.0.0) for release notes).


## [v11.2.1](https://github.com/stellar/js-stellar-sdk/compare/v11.2.0...v11.2.1)

### Fixed
* An unnecessary dependency has been removed which was causing a TypeScript error in certain environments ([#912](https://github.com/stellar/js-stellar-sdk/pull/912)).
* Dependencies have been upgraded (see [`[email protected]`](https://github.com/stellar/js-stellar-base/releases/tag/v10.0.2) for release notes, [#913](https://github.com/stellar/js-stellar-sdk/pull/913)).


## [v11.2.0](https://github.com/stellar/js-stellar-sdk/compare/v11.1.0...v11.2.0)

### Added
* Support for the new, optional `diagnosticEventsXdr` field on the `SorobanRpc.Server.sendTransaction` method. The raw field will be present when using the `_sendTransaction` method, while the normal method will have an already-parsed `diagnosticEvents: xdr.DiagnosticEvent[]` field, instead ([#905](https://github.com/stellar/js-stellar-sdk/pull/905)).
* A new exported interface `SorobanRpc.Api.EventResponse` so that developers can type-check individual events ([#904](https://github.com/stellar/js-stellar-sdk/pull/904)).

### Updated
* Dependencies have been updated to their latest versions ([#906](https://github.com/stellar/js-stellar-sdk/pull/906), [#908](https://github.com/stellar/js-stellar-sdk/pull/908)).


## [v11.2.0](https://github.com/stellar/js-stellar-sdk/compare/v11.1.0...v11.2.0)

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ module.exports = {

There is also a [sample](https://github.com/fnando/rn-stellar-sdk-sample) that you can follow.

**Note**: Only the V8 compiler (on Android) and JSC (on iOS) have proper support for `Buffer` and `Uint8Array` as is needed by this library. Otherwise, you may see bizarre errors when doing XDR encoding/decoding such as `source not specified`.

#### Usage with Expo managed workflows

1. Install `yarn add --dev rn-nodeify`
Expand Down
42 changes: 21 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stellar/stellar-sdk",
"version": "11.2.0",
"version": "11.2.2",
"description": "A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.",
"keywords": [
"stellar"
Expand Down Expand Up @@ -31,7 +31,7 @@
"build:test": "tsc -p ./test/unit/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/ test/e2e/.soroban test/e2e/contract-*.txt test/e2e/wasms/specs/*.json",
"clean": "rm -rf lib/ dist/ coverage/ .nyc_output/ jsdoc/ test/e2e/.soroban",
"docs": "yarn build:docs && jsdoc -c ./config/.jsdoc.json --verbose",
"test": "yarn build:test && yarn test:node && yarn test:integration && yarn test:browser",
"test:e2e": "./test/e2e/initialize.sh && ava",
Expand Down Expand Up @@ -77,13 +77,11 @@
]
},
"devDependencies": {
"ava": "^5.3.1",
"dotenv": "^16.3.1",
"@babel/cli": "^7.23.0",
"@babel/core": "^7.23.7",
"@babel/eslint-parser": "^7.22.15",
"@babel/cli": "^7.23.9",
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@babel/eslint-plugin": "^7.22.10",
"@babel/preset-env": "^7.23.8",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.0",
"@babel/register": "^7.23.7",
"@definitelytyped/dtslint": "^0.1.2",
Expand All @@ -95,11 +93,12 @@
"@types/json-schema": "^7.0.15",
"@types/lodash": "^4.14.199",
"@types/mocha": "^10.0.2",
"@types/node": "^20.10.8",
"@types/node": "^20.11.17",
"@types/randombytes": "^2.0.1",
"@types/sinon": "^17.0.2",
"@types/urijs": "^1.19.20",
"@typescript-eslint/parser": "^6.18.1",
"@typescript-eslint/parser": "^6.20.0",
"ava": "^5.3.1",
"axios-mock-adapter": "^1.22.0",
"babel-loader": "^9.1.3",
"babel-plugin-istanbul": "^6.1.1",
Expand All @@ -108,6 +107,7 @@
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"eslint": "^8.56.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -119,40 +119,39 @@
"ghooks": "^2.0.4",
"husky": "^8.0.3",
"jsdoc": "^4.0.2",
"json-schema-faker": "^0.5.4",
"json-schema-faker": "^0.5.5",
"karma": "^6.4.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.2.1",
"karma-firefox-launcher": "^2.1.1",
"karma-mocha": "^2.0.0",
"karma-sinon-chai": "^2.0.2",
"karma-webpack": "^5.0.0",
"lint-staged": "^15.2.0",
"karma-webpack": "^5.0.1",
"lint-staged": "^15.2.2",
"lodash": "^4.17.21",
"minami": "^1.1.1",
"mocha": "^10.2.0",
"mocha": "^10.3.0",
"node-polyfill-webpack-plugin": "^3.0.0",
"nyc": "^15.1.0",
"prettier": "^3.1.1",
"prettier": "^3.2.5",
"randombytes": "^2.1.0",
"sinon": "^17.0.1",
"sinon-chai": "^3.7.0",
"taffydb": "^2.7.3",
"terser-webpack-plugin": "^5.3.10",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"utility-types": "^3.7.0",
"webpack": "^5.88.2",
"webpack": "^5.90.1",
"webpack-cli": "^5.0.1"
},
"dependencies": {
"@stellar/stellar-base": "10.0.1",
"axios": "^1.6.5",
"@stellar/stellar-base": "^11.0.0",
"axios": "^1.6.7",
"bignumber.js": "^9.1.2",
"eventsource": "^2.0.2",
"randombytes": "^2.1.0",
"toml": "^3.0.0",
"typescript": "^5.3.3",
"urijs": "^1.19.1"
},
"ava": {
Expand All @@ -161,6 +160,7 @@
],
"require": [
"dotenv/config"
]
],
"timeout": "2m"
}
}
Loading
Loading