Protocol 22 support
christian-rogobete
released this
24 Oct 12:58
·
1 commit
to main
since this release
This release adds support for Protocol 22 and maintains backwards compatibility for Protocol 21.
See also: #44
To maintain compatibility for Protocol 21 until Protocol 22 is released you have to consider following braking changes if you are using this version of the SDK:
Horizon:
- The deprecated fields
amount
andnumAccounts
have been removed fromAssetResponse
- The deprecated field
validAfter
has been removed fromTransactionResponse
Soroban:
- The legacy field
cost
has been removed fromSimulateTransactionResponse
- The
createdAt
field fromTransactionInfo
is now aString
. It wasint
before.
Other tips for migrating to Protocol 22:
- Soroban: The field
pagingToken
fromEventInfo
will not be filled any more starting with Protocol 22. Instead, the new fieldcursor
inGetEventsResponse
will be filled starting with Protocol 22. - Soroban: The new field
txHash
inGetTransactionResponse
andTransactionInfo
will be filled starting with Protocol 22. - Soroban: You can use the new
CreateContractWithConstructorHostFunction
class to create contracts that have a constructor.