interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
29 lines (28 loc) • 799 B
JavaScript
import { MsgUpdateParams } from "./tx";
export const registry = [["/cosmos.consensus.v1.MsgUpdateParams", MsgUpdateParams]];
export const MessageComposer = {
encoded: {
updateParams(value) {
return {
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
value: MsgUpdateParams.encode(value).finish()
};
}
},
withTypeUrl: {
updateParams(value) {
return {
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
value
};
}
},
fromPartial: {
updateParams(value) {
return {
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams",
value: MsgUpdateParams.fromPartial(value)
};
}
}
};