Add
- Add support for claimable balances (#572).
Extend server class to allow loading claimable balances from Horizon. The following functions are available:
server.claimableBalances();
server.claimableBalances().claimant(claimant);
server.claimableBalances().sponsor(sponsorID);
server.claimableBalances().asset(asset);
server.claimableBalances().claimableBalance(balanceID);
-
Add the following attributes to
AccountResponse(#572):sponsor?: stringnum_sponsoring: numbernum_sponsored: number
-
Add the optional attribute
sponsortoAccountSigner,BalanceLineAsset,ClaimableBalanceRecord, andOfferRecord(#572). -
Add
sponsorfiltering support foroffersandaccounts(#572).server.offers().sponsor(accountID)server.accounts().sponsor(accountID)
-
Extend operation responses to support new operations (#572).
create_claimable_balancewith the following fields:asset- asset available to be claimed (in canonical form),amount- amount available to be claimed,claimants- list of claimants with predicates (see below):destination- destination account ID,predicate- predicate required to claim a balance (see below).
claim_claimable_balancewith the following fields:balance_id- unique ID of balance to be claimed,claimant- account ID of a claimant.
begin_sponsoring_future_reserveswith the following fields:sponsored_id- account ID for which future reserves will be sponsored.
end_sponsoring_future_reserveswith the following fields:begin_sponsor- account sponsoring reserves.
revoke_sponsorshipwith the following fields:account_id- if account sponsorship was revoked,claimable_balance_id- if claimable balance sponsorship was revoked,data_account_id- if account data sponsorship was revoked,data_name- if account data sponsorship was revoked,offer_id- if offer sponsorship was revoked,trustline_account_id- if trustline sponsorship was revoked,trustline_asset- if trustline sponsorship was revoked,signer_account_id- if signer sponsorship was revoked,signer_key- if signer sponsorship was revoked.
-
Extend effect responses to support new effects (#572).
claimable_balance_createdwith the following fields:balance_id- unique ID of claimable balance,asset- asset available to be claimed (in canonical form),amount- amount available to be claimed.
claimable_balance_claimant_createdwith the following fields:balance_id- unique ID of a claimable balance,asset- asset available to be claimed (in canonical form),amount- amount available to be claimed,predicate- predicate required to claim a balance (see below).
claimable_balance_claimedwith the following fields:balance_id- unique ID of a claimable balance,asset- asset available to be claimed (in canonical form),amount- amount available to be claimed,
account_sponsorship_createdwith the following fields:sponsor- sponsor of an account.
account_sponsorship_updatedwith the following fields:new_sponsor- new sponsor of an account,former_sponsor- former sponsor of an account.
account_sponsorship_removedwith the following fields:former_sponsor- former sponsor of an account.
trustline_sponsorship_createdwith the following fields:sponsor- sponsor of a trustline.
trustline_sponsorship_updatedwith the following fields:new_sponsor- new sponsor of a trustline,former_sponsor- former sponsor of a trustline.
trustline_sponsorship_removedwith the following fields:former_sponsor- former sponsor of a trustline.
claimable_balance_sponsorship_createdwith the following fields:sponsor- sponsor of a claimable balance.
claimable_balance_sponsorship_updatedwith the following fields:new_sponsor- new sponsor of a claimable balance,former_sponsor- former sponsor of a claimable balance.
claimable_balance_sponsorship_removedwith the following fields:former_sponsor- former sponsor of a claimable balance.
signer_sponsorship_createdwith the following fields:signer- signer being sponsored.sponsor- signer sponsor.
signer_sponsorship_updatedwith the following fields:signer- signer being sponsored.former_sponsor- the former sponsor of the signer.new_sponsor- the new sponsor of the signer.
signer_sponsorship_removedwith the following fields:former_sponsor- former sponsor of a signer.
Breaking
- Update
stellar-basetov4.0.0which introduces a breaking change in the internal XDR library.
The following functions were renamed:
xdr.OperationBody.setOption()->xdr.OperationBody.setOptions()xdr.OperationBody.manageDatum()->xdr.OperationBody.manageData()xdr.OperationType.setOption()->xdr.OperationType.setOptions()xdr.OperationType.manageDatum()->xdr.OperationType.manageData()
The following enum values were rename in OperationType:
setOption->setOptionsmanageDatum->manageData