You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* (x/*all*) [#16052](https://github.com/cosmos/cosmos-sdk/pull/16062)`GetSignBytes` implementations on messages and global legacy amino codec definitions have been removed from all modules.
249
+
* (sims) [#16052](https://github.com/cosmos/cosmos-sdk/pull/16062)`GetOrGenerate` no longer requires a codec argument is now 4-arity instead of 5-arity.
Copy file name to clipboardExpand all lines: UPGRADING.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,11 @@ ClevelDB, BoltDB and BadgerDB are not supported anymore. To migrate from a unsup
53
53
54
54
### Protobuf
55
55
56
-
The SDK is in the process of removing all `gogoproto` annotations.
56
+
With the deprecation of the amino JSON codec defined in [cosmos/gogoproto](https://github.com/cosmos/gogoproto) in favor of the protoreflect powered x/tx/aminojson codec, module developers are encouraged verify that their messages have the correct protobuf annotations to deterministically produce identical output from both codecs.
57
+
58
+
For core SDK types equivalence is asserted by generative testing of [SignableTypes](https://github.com/cosmos/cosmos-sdk/blob/76f0d101530ed78befc95506ab473c771d0d8a8c/tests/integration/rapidgen/rapidgen.go#L106) in [TestAminoJSON_Equivalence](https://github.com/cosmos/cosmos-sdk/blob/76f0d101530ed78befc95506ab473c771d0d8a8c/tests/integration/aminojson/aminojson_test.go#L90).
59
+
60
+
TODO: summarize proto annotation requirements.
57
61
58
62
#### Stringer
59
63
@@ -181,6 +185,8 @@ The return type of the interface method `TxConfig.SignModeHandler()` has been ch
181
185
The `sdk.Msg` interface has been updated to not require the implementation of the `ValidateBasic` method.
182
186
It is now recommended to validate message directly in the message server. When the validation is performed in the message server, the `ValidateBasic` method on a message is no longer required and can be removed.
183
187
188
+
Messages no longer need to implement the `LegacyMsg` interface and implementations of `GetSignBytes` can be deleted. Because of this change, global legacy Amino codec definitions and their registration in `init()` can safely be removed as well.
189
+
184
190
#### `x/auth`
185
191
186
192
For ante handler construction via `ante.NewAnteHandler`, the field `ante.HandlerOptions.SignModeHandler` has been updated to `x/tx/signing/HandlerMap` from `x/auth/signing/SignModeHandler`. Callers typically fetch this value from `client.TxConfig.SignModeHandler()` (which is also changed) so this change should be transparent to most users.
0 commit comments