To get information (similar to TransactionSet) out of a GeneralizedTxSet, I added methods like fn previous_ledger_hash(&self) and fn txes(&self).
the ~trait ComputeHash~ trait IntoHash will replace spacewalk's fn compute_non_generic_tx_set_content_hash(). This will remove code duplication both in stellar-relay-lib and stellar-relay pallet.
having a fn to_base64_encoded_xdr_string() is helpful when decoding xdr in stellar laboratory's XDR viewer.
Added a spacewalk-only enum: TransactionSetType that covers both TransactionSet and GeneralizedTransactionSet.
This is partly for https://github.com/pendulum-chain/spacewalk/issues/401, to support Stellar's protocol 20.
Some stellar-relevant codes in spacewalk are better fit in
stellar-substrate-sdk
since these are used by both spacewalk pallets and client:To get information (similar to
TransactionSet
) out of aGeneralizedTxSet
, I added methods likefn previous_ledger_hash(&self)
andfn txes(&self)
.trait ComputeHash
~trait IntoHash
will replace spacewalk'sfn compute_non_generic_tx_set_content_hash()
. This will remove code duplication both instellar-relay-lib
andstellar-relay
pallet.fn to_base64_encoded_xdr_string()
is helpful when decoding xdr in stellar laboratory's XDR viewer.Added a spacewalk-only enum:
TransactionSetType
that covers bothTransactionSet
andGeneralizedTransactionSet
.note: merge this to branch
polkadot-v0.9.40
or a new branch likepolkadot-v0.9.40-protocol20
AFTER https://github.com/pendulum-chain/substrate-stellar-sdk/pull/20 is merged.