stellar-sdk
Advanced tools
Changelog
stellar-base
library has been upgraded to beta.4
which contains a bugfix for large sequence numbers (#877).SorobanRpc.Server.getTransaction()
method will now return the full response when encountering a FAILED
transaction result (#872).SorobanRpc.Server.getEvents()
method will correctly parse the event value (which is an xdr.ScVal
rather than an xdr.DiagnosticEvent
, see the modified SorobanRpc.Api.EventResponse.value
; #876).Changelog
soroban-client
library (stellar/js-soroban-client) has been merged into this package, causing significant breaking changes in the module structure (#860):
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.SorobanRpc.Server.prepareTransaction
and SorobanRpc.assembleTransaction
methods no longer need an optional networkPassphrase
parameter, because it is implicitly part of the transaction already (#870).Changelog
DepositLiquidityEffect
-> LiquidityPoolDeposited
WithdrawLiquidityEffect
-> LiquidityPoolWithdrew
LiquidityPoolTradeEffect
-> LiquidityPoolTrade
LiquidityPoolCreatedEffect
-> LiquidityPoolCreated
LiquidityPoolRevokedEffect
-> LiquidityPoolRevoked
LiquidityPoolRemovedEffect
-> LiquidityPoolRemoved
ContractCredited
occurs when a Stellar asset moves into its corresponding Stellar Asset Contract instanceContractDebited
occurs when a Stellar asset moves out of its corresponding Stellar Asset Contract instanceServerApi.AssetRecord
) contain two new fields to support the Protocol 20 (Soroban) release (#841):
num_contracts
- the integer quantity of contracts that hold this assetcontracts_amount
- the total units of that asset held by contractsinvokeHostFunction
: see Horizon.InvokeHostFunctionOperationResponse
bumpFootprintExpiration
: see Horizon.BumpFootprintExpirationOperationResponse
restoreFootprint
: see Horizon.RestoreFootprintOperationResponse
interface InvokeHostFunctionOperationResponse {
function: string;
parameters: {
value: string;
type: string;
}[];
address: string;
salt: string;
asset_balance_changes: {
type: string;
from: string;
to: string;
amount: string;
}[];
}
interface BumpFootprintExpirationOperationResponse {
ledgersToExpire: string;
}
interface RestoreFootprintOperationResponse {};
ClaimableBalanceClawedBack
is now definedtype EffectRecord
now has all of the effect typesstellar-base
library has been upgraded to support the latest Protocol 20 XDR schema and all Soroban functionality ().Changelog
This version is marked by a major version bump because of the significant upgrades to underlying dependencies. While there should be no noticeable API changes from a downstream perspective, there may be breaking changes in the way that this library is bundled.
stellar-base
has been updated to its corresponding overhaul (#818).