Deprecate sdk.Msg #8864
Labels
C:baseapp
S:proposed
T: API Breaking
Breaking changes that impact APIs and the SDK only (not state machine).
T: Dev UX
UX for SDK developers (i.e. how to call our code)
T: State Machine Breaking
State machine breaking changes (impacts consensus).
Summary
It's confusing to have both
sdk.Msg
andServiceMsg
.ServiceMsg
is intended to be used going forward.Problem Definition
It's confusing when calling
Tx.GetMsgs
to have eithersdk.Msg
for legacy cases orServiceMsg
.Proposal
In a future release, require that all transactions submit messages using service methods. Recently we added a conversion from
ServiceMsg
to legacy aminosdk.Msg
s forSIGN_MODE_LEGACY_AMINO_JSON
(#8346). With this change, there is really no reason to continue to allow legacysdk.Msg
s to be packed intoTx
s.With this deprecation,
Tx.GetMsgs
would return[]ServiceMsg
andTxBuilder
would work withServiceMsg
s primarily through better codegen (#8270).We will need to make sure that clients are aware that this is part of the migration to protobuf and give them ample time before this support is turned off. Likely we will want to coordinate this with complete removal of legacy REST APIs.
/cc @AmauryM @fdymylja
For Admin Use
The text was updated successfully, but these errors were encountered: