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