js-stellar-base
js-stellar-base copied to clipboard
The lowest-level stellar helper library. It consists of classes to read, write, hash, and sign Stellar xdr
**Describe the bug** asset.js construtor allows 'xlm' and 'XLM' to be native asset codes. **What version are you on?** Latest **To Reproduce** Steps to reproduce the behavior: console.dir(new stellarSdk.Asset('xlm'); console.dir(new...
Work-in-progress branch using the soroban XDR. Pretty rough-and-ready, but you can build `InvokeHostFunctionOperations` You can do: ```typescript let invokeHostFunctionOp = new StellarBase.Contract("add_u32_contract_id").call( "add", xdr.ScVal.u32(5), xdr.ScVal.u32(8) ); // Then use it...
**Describe the bug** Calling the toXdr() method on xdr.TransactionHistoryResultEntry can cause an out of range error. **What version are you on?** stellar-base 8.1.0 nodejs 16 **To Reproduce** Steps to reproduce...
Currently (Stellar Base v8.1.0) `SetOptionOp` does not support new CAP40 `ed25519SignedPayload` signer. This blocks creation and results in incorrect parsing of a transaction containing such an operation.
After digging into the SDK and the API I've noticed several issues and some true roadblocks for front-end web applications. 1. Webpack 5: The SDK currently uses Webpack 4.33.0. This...
While many parts of the SDK have been updated to enable the new signer type from [CAP-40](https://stellar.org/protocol/cap-40), the `SetOptions` operation has not. As part of this, new helpers exist: ```typescript...
**Describe the bug** If you pass in a number instead of a string for either maxAmountA or maxAmountB field of the `liquidityPoolDeposit` operation, the error thrown is `TypeError: maxAmountA argument...
https://github.com/stellar/js-stellar-base/blob/c687cf941133814a40d3e49a13794900453bfed8/package.json#L115 Sodium-native's version is causing issues because the node-gyp version is old. That means it does not have support for VS 2019 causing compiler compiler errors because the enum value...
This commit addresses the following issues: https://github.com/stellar/js-stellar-base/issues/339 https://github.com/stellar/js-stellar-base/issues/404 Changes: - removal of optional sodium-native native compiled module - promotion of existing version of tweetnacl-js to handle all sign/verify duties Removal...