-
Notifications
You must be signed in to change notification settings - Fork 313
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
Commits on Jan 9, 2024
-
Update examples to use new module and package structure. (stellar#900)
* Fixup deprecation to specify exact version * Upgrade references to use latest modules
Configuration menu - View commit details
-
Copy full SHA for 4214a1c - Browse repository at this point
Copy the full SHA 4214a1cView commit details -
Bump follow-redirects from 1.15.3 to 1.15.4 (stellar#906)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.3 to 1.15.4. - [Release notes](https://github.com/follow-redirects/follow-redirects/releases) - [Commits](follow-redirects/follow-redirects@v1.15.3...v1.15.4) --- updated-dependencies: - dependency-name: follow-redirects dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for d2cf06b - Browse repository at this point
Copy the full SHA d2cf06bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbcb184 - Browse repository at this point
Copy the full SHA fbcb184View commit details
Commits on Jan 10, 2024
-
Add support for new
sendTransaction
response field (stellar#905)* Add checks to ensure incorrect fields don't sneak in
Configuration menu - View commit details
-
Copy full SHA for 82d0dfb - Browse repository at this point
Copy the full SHA 82d0dfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 547b360 - Browse repository at this point
Copy the full SHA 547b360View commit details
Commits on Jan 11, 2024
-
Prepare v11.2.0 for release (stellar#908)
* Upgrade all dependencies besides chai * Add changelog entries
Configuration menu - View commit details
-
Copy full SHA for 77d7de6 - Browse repository at this point
Copy the full SHA 77d7de6View commit details
Commits on Jan 23, 2024
-
Eliminating
utility-types
dependency entirely (stellar#912)Eliminated the 'utility-types' package since its functionalities are likely replaced by native TypeScript features. This change includes cleaning up imports and references in the codebase and updating the package.json and yarn.lock accordingly, resulting in a leaner dependency graph and potentially reducing installation times and package size. Co-authored-by: Sérgio Luis <sergiocl@airtm.io>
Configuration menu - View commit details
-
Copy full SHA for e2722f6 - Browse repository at this point
Copy the full SHA e2722f6View commit details -
Configuration menu - View commit details
-
Copy full SHA for bacbf8e - Browse repository at this point
Copy the full SHA bacbf8eView commit details
Commits on Jan 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ac5545b - Browse repository at this point
Copy the full SHA ac5545bView commit details
Commits on Feb 8, 2024
-
optional simulate & wallet, editable TransactionBuilder
- Can now pass an `account` OR `wallet` when constructing the ContractClient, or none! If you pass none, you can still make view calls, since they don't need a signer. You will need to pass a `wallet` when calling things that need it, like `signAndSend`. - You can now pass `simulate: false` when first creating your transaction to skip simulation. You can then modify the transaction using the TransactionBuilder at `tx.raw` before manually calling `simulate`. Example: const tx = await myContract.myMethod( { args: 'for', my: 'method', ... }, { simulate: false } ); tx.raw.addMemo(Memo.text('Nice memo, friend!')) await tx.simulate(); - Error types are now collected under `AssembledTransaction.Errors` and `SentTransaction.Errors`.
Configuration menu - View commit details
-
Copy full SHA for b22af74 - Browse repository at this point
Copy the full SHA b22af74View commit details
Commits on Feb 12, 2024
-
Ensure that event streaming tests write a valid stream (stellar#917)
* Add valid response to not error in tests
Configuration menu - View commit details
-
Copy full SHA for d6f50e7 - Browse repository at this point
Copy the full SHA d6f50e7View commit details -
* Add README entry about React-Native compiler requirements * Fixup the jsdoc for an entry * Upgrade stellar-base * Update all dependencies to their latest compatible versions
Configuration menu - View commit details
-
Copy full SHA for 4c42a4d - Browse repository at this point
Copy the full SHA 4c42a4dView commit details -
export ExampleNodeWallet from lib
Tyler van der Hoeven thought this would be useful. The current place it's exported from is surpassingly silly. But it functions properly and the tests fail the same way they failed before.
Configuration menu - View commit details
-
Copy full SHA for 134fcae - Browse repository at this point
Copy the full SHA 134fcaeView commit details
Commits on Feb 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0e4a0b0 - Browse repository at this point
Copy the full SHA 0e4a0b0View commit details
Commits on Feb 27, 2024
-
feat(e2e-tests): new account & contract per test
- New `clientFor` that instantiates a ContractClient for given contract, as well as initializes a new account, funding it with friendbot - Can also use `generateFundedKeypair` directly, as with test-swap - Stop generating anything in initialize.sh. Just check that the network is running and the pinned binary is installed, and fund the `$SOROBAN_ACCOUNT`. Ideally we wouldn't use the binary at all, but for now the tests are still shelling out to the CLI, so it's worth keeping the pinning around
Configuration menu - View commit details
-
Copy full SHA for c1f3efd - Browse repository at this point
Copy the full SHA c1f3efdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 159e69e - Browse repository at this point
Copy the full SHA 159e69eView commit details
Commits on Mar 1, 2024
-
feat: no more
Wallet
interfaceInstead, just accept the things that Wallet contained. This avoids the conundrum of what to call the thing. - `Wallet` seems too high-level. Too high-level to be the concern of stellar-sdk, and too high-level for the thing being described here. It's really just two functions: `signTransaction` and `signAuthEntry`. - No need for this thing to defined `getPublicKey`, let alone any of the more complicated wrappers around it that it used to. Just have people pass in a `publicKey`. For convenience' sake, I also allowed this to be a Promise of a string, so that you don't need to instantiate ContractClient asynchronously, instead doing something like: new ContractClient({ publicKey: asyncPublicKeyLookupFromWallet(), ... }) This helps when getting public keys in a browser environment, where public key lookup is async, and adds little complexity to the logic here.
Configuration menu - View commit details
-
Copy full SHA for a2945f9 - Browse repository at this point
Copy the full SHA a2945f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5369ed6 - Browse repository at this point
Copy the full SHA 5369ed6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 29efe06 - Browse repository at this point
Copy the full SHA 29efe06View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ef0600 - Browse repository at this point
Copy the full SHA 1ef0600View commit details
Commits on Mar 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 93e0b2f - Browse repository at this point
Copy the full SHA 93e0b2fView commit details -
Merge branch 'master' into feat/more-better
* master: Drop all usage of array-based passing (stellar#924) Release v11.2.2 (stellar#918) Ensure that event streaming tests write a valid stream (stellar#917) Release v11.2.1 (stellar#913) Eliminating `utility-types` dependency entirely (stellar#912) Prepare v11.2.0 for release (stellar#908) Update README to flow better (stellar#907) Add support for new `sendTransaction` response field (stellar#905) Export the individual event response instance (stellar#904) Bump follow-redirects from 1.15.3 to 1.15.4 (stellar#906) Update examples to use new module and package structure. (stellar#900)
Configuration menu - View commit details
-
Copy full SHA for 523812e - Browse repository at this point
Copy the full SHA 523812eView commit details -
build: move ExampleNodeWallet to own entrypoint
No need to pollute the global API or bundle size with this.
Configuration menu - View commit details
-
Copy full SHA for 561eee3 - Browse repository at this point
Copy the full SHA 561eee3View commit details -
build: move ContractClient & AssembledTransaction
These are a bit higher-level and experimental, at this point, so let's not clutter the global API or the bundle size unless people really want it.
Configuration menu - View commit details
-
Copy full SHA for cdbeb81 - Browse repository at this point
Copy the full SHA cdbeb81View commit details
Commits on Mar 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 81d554f - Browse repository at this point
Copy the full SHA 81d554fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 807fcc6 - Browse repository at this point
Copy the full SHA 807fcc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4c738d - Browse repository at this point
Copy the full SHA a4c738dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a98cb5 - Browse repository at this point
Copy the full SHA 4a98cb5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8505316 - Browse repository at this point
Copy the full SHA 8505316View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4318df0 - Browse repository at this point
Copy the full SHA 4318df0View commit details
Commits on Mar 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ac83856 - Browse repository at this point
Copy the full SHA ac83856View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76cb907 - Browse repository at this point
Copy the full SHA 76cb907View commit details
Commits on Mar 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ac7e891 - Browse repository at this point
Copy the full SHA ac7e891View commit details -
feat: don't make people import and use Networks enum
I personally find TS enums a little surprising to work with, and my own codebases already have network passphrases littered throughout. I think we can upgrade to use the enum later, after more discussion about the exact interface. Let's not tangle that up in this change.
Configuration menu - View commit details
-
Copy full SHA for e10461a - Browse repository at this point
Copy the full SHA e10461aView commit details
Commits on Mar 12, 2024
-
doc: include rust_types readme info in build
the README.md file is not included in the `lib/rust_types` built version, so it's better to include it in a file that people can find by using the go-to-definition function in their editor, such as a `rust_types.ts` file directly, which gets built as `lib/rust_types.d.ts`.
Configuration menu - View commit details
-
Copy full SHA for 3cadcba - Browse repository at this point
Copy the full SHA 3cadcbaView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf0a384 - Browse repository at this point
Copy the full SHA cf0a384View commit details -
feat: basicNodeSigner as a plain-object factory
Our suggested approach of spreading `signer` into `ContractClient` constructors causes typing issues, since `networkPassphrase` is a private field inside BasicNodeSigner. This means the `signer` needs to be spread in before the inclusion of `networkPassphrase`, otherwise it gets overwritten with `undefined` (or maybe TypeScript just thinks it will get overwritten).
Configuration menu - View commit details
-
Copy full SHA for 740a887 - Browse repository at this point
Copy the full SHA 740a887View commit details