Skip to content

v11.0.0-beta.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@Shaptic Shaptic released this 15 Sep 23:34
· 117 commits to master since this release
8df8275

v11.0.0-beta.2

Breaking Changes

  • Certain effects have been renamed to align better with the "tense" that other structures have (#844):
    • DepositLiquidityEffect -> LiquidityPoolDeposited
    • WithdrawLiquidityEffect -> LiquidityPoolWithdrew
    • LiquidityPoolTradeEffect -> LiquidityPoolTrade
    • LiquidityPoolCreatedEffect -> LiquidityPoolCreated
    • LiquidityPoolRevokedEffect -> LiquidityPoolRevoked
    • LiquidityPoolRemovedEffect -> LiquidityPoolRemoved

Add

  • New effects have been added to support Protocol 20 (Soroban) (#842):
    • ContractCredited occurs when a Stellar asset moves into its corresponding Stellar Asset Contract instance
    • ContractDebited occurs when a Stellar asset moves out of its corresponding Stellar Asset Contract instance
  • Asset stat records (ServerApi.AssetRecord) contain two new fields to support the Protocol 20 (Soroban) release (#841):
    • num_contracts - the integer quantity of contracts that hold this asset
    • contracts_amount - the total units of that asset held by contracts
  • New operation responses (#845):
    • invokeHostFunction: see Horizon.InvokeHostFunctionOperationResponse
    • bumpFootprintExpiration: see Horizon.BumpFootprintExpirationOperationResponse
    • restoreFootprint: see Horizon.RestoreFootprintOperationResponse
    • You can refer to the actual definitions for details, but the gist of the schemas is below:
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 {};

Fixed

  • Some effect definitions that were missing have been added (#842):
    • ClaimableBalanceClawedBack is now defined
    • type EffectRecord now has all of the effect types
  • The stellar-base library has been upgraded to support the latest Protocol 20 XDR schema and all Soroban functionality (#861).