interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
104 lines (103 loc) • 3.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.MessageComposer = exports.registry = void 0;
const tx_1 = require("./tx");
exports.registry = [["/cosmos.protocolpool.v1.MsgFundCommunityPool", tx_1.MsgFundCommunityPool], ["/cosmos.protocolpool.v1.MsgCommunityPoolSpend", tx_1.MsgCommunityPoolSpend], ["/cosmos.protocolpool.v1.MsgCreateContinuousFund", tx_1.MsgCreateContinuousFund], ["/cosmos.protocolpool.v1.MsgCancelContinuousFund", tx_1.MsgCancelContinuousFund], ["/cosmos.protocolpool.v1.MsgUpdateParams", tx_1.MsgUpdateParams]];
exports.MessageComposer = {
encoded: {
fundCommunityPool(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgFundCommunityPool",
value: tx_1.MsgFundCommunityPool.encode(value).finish()
};
},
communityPoolSpend(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCommunityPoolSpend",
value: tx_1.MsgCommunityPoolSpend.encode(value).finish()
};
},
createContinuousFund(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCreateContinuousFund",
value: tx_1.MsgCreateContinuousFund.encode(value).finish()
};
},
cancelContinuousFund(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCancelContinuousFund",
value: tx_1.MsgCancelContinuousFund.encode(value).finish()
};
},
updateParams(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgUpdateParams",
value: tx_1.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: tx_1.MsgFundCommunityPool.fromPartial(value)
};
},
communityPoolSpend(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCommunityPoolSpend",
value: tx_1.MsgCommunityPoolSpend.fromPartial(value)
};
},
createContinuousFund(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCreateContinuousFund",
value: tx_1.MsgCreateContinuousFund.fromPartial(value)
};
},
cancelContinuousFund(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgCancelContinuousFund",
value: tx_1.MsgCancelContinuousFund.fromPartial(value)
};
},
updateParams(value) {
return {
typeUrl: "/cosmos.protocolpool.v1.MsgUpdateParams",
value: tx_1.MsgUpdateParams.fromPartial(value)
};
}
}
};