clawchain/dex-app/modules/auction/createAuctionUnlockMsgs.ts
2026-05-15 19:18:10 +03:00

25 lines
518 B
TypeScript

import { EncodeObject } from "@cosmjs/proto-signing";
import { createExecuteMsg } from "libs/cosmjs";
type CreateMsgsOptions = {
contract: string;
amount: string;
};
export const createAuctionUnlockMsgs = (
options: CreateMsgsOptions,
sender: string
): EncodeObject[] => {
const { contract, amount } = options;
const executeMsg = createExecuteMsg(sender, contract, {
claim_rewards: {
withdraw_lp_shares: amount,
},
});
return [executeMsg];
};
export default createAuctionUnlockMsgs;