UNPKG

interchainjs

Version:

InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.

101 lines (100 loc) 3.73 kB
import { MsgFundCommunityPool, MsgCommunityPoolSpend, MsgCreateContinuousFund, MsgCancelContinuousFund, MsgUpdateParams } from "./tx"; export const registry = [["/cosmos.protocolpool.v1.MsgFundCommunityPool", MsgFundCommunityPool], ["/cosmos.protocolpool.v1.MsgCommunityPoolSpend", MsgCommunityPoolSpend], ["/cosmos.protocolpool.v1.MsgCreateContinuousFund", MsgCreateContinuousFund], ["/cosmos.protocolpool.v1.MsgCancelContinuousFund", MsgCancelContinuousFund], ["/cosmos.protocolpool.v1.MsgUpdateParams", MsgUpdateParams]]; export const MessageComposer = { encoded: { fundCommunityPool(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgFundCommunityPool", value: MsgFundCommunityPool.encode(value).finish() }; }, communityPoolSpend(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.encode(value).finish() }; }, createContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCreateContinuousFund", value: MsgCreateContinuousFund.encode(value).finish() }; }, cancelContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCancelContinuousFund", value: MsgCancelContinuousFund.encode(value).finish() }; }, updateParams(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgUpdateParams", value: MsgUpdateParams.encode(value).finish() }; } }, withTypeUrl: { fundCommunityPool(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgFundCommunityPool", value }; }, communityPoolSpend(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCommunityPoolSpend", value }; }, createContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCreateContinuousFund", value }; }, cancelContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCancelContinuousFund", value }; }, updateParams(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgUpdateParams", value }; } }, fromPartial: { fundCommunityPool(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgFundCommunityPool", value: MsgFundCommunityPool.fromPartial(value) }; }, communityPoolSpend(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCommunityPoolSpend", value: MsgCommunityPoolSpend.fromPartial(value) }; }, createContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCreateContinuousFund", value: MsgCreateContinuousFund.fromPartial(value) }; }, cancelContinuousFund(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgCancelContinuousFund", value: MsgCancelContinuousFund.fromPartial(value) }; }, updateParams(value) { return { typeUrl: "/cosmos.protocolpool.v1.MsgUpdateParams", value: MsgUpdateParams.fromPartial(value) }; } } };