import { MsgGetter } from ".."; import { MsgTypeUrl, MsgTypeUrls } from "../../../../types/txMsg"; import MsgBeginRedelegateForm from "./MsgBeginRedelegateForm"; import MsgCreateVestingAccountForm from "./MsgCreateVestingAccountForm"; import MsgDelegateForm from "./MsgDelegateForm"; import MsgExecuteContractForm from "./MsgExecuteContractForm"; import MsgFundCommunityPoolForm from "./MsgFundCommunityPoolForm"; import MsgInstantiateContract2Form from "./MsgInstantiateContract2Form"; import MsgInstantiateContractForm from "./MsgInstantiateContractForm"; import MsgMigrateContractForm from "./MsgMigrateContractForm"; import MsgSendForm from "./MsgSendForm"; import MsgSetWithdrawAddressForm from "./MsgSetWithdrawAddressForm"; import MsgTransferForm from "./MsgTransferForm"; import MsgUndelegateForm from "./MsgUndelegateForm"; import MsgUpdateAdminForm from "./MsgUpdateAdminForm"; import MsgVoteForm from "./MsgVoteForm"; import MsgWithdrawDelegatorRewardForm from "./MsgWithdrawDelegatorRewardForm"; interface MsgFormProps { readonly msgType: MsgTypeUrl; readonly senderAddress: string; readonly setMsgGetter: (msgGetter: MsgGetter) => void; readonly deleteMsg: () => void; } const MsgForm = ({ msgType, ...restProps }: MsgFormProps) => { switch (msgType) { // Bank case MsgTypeUrls.Send: return ; // Staking case MsgTypeUrls.Delegate: return ; case MsgTypeUrls.Undelegate: return ; case MsgTypeUrls.BeginRedelegate: return ; // Distribution case MsgTypeUrls.FundCommunityPool: return ; case MsgTypeUrls.SetWithdrawAddress: return ; case MsgTypeUrls.WithdrawDelegatorReward: return ; // Vesting case MsgTypeUrls.CreateVestingAccount: return ; // Governance case MsgTypeUrls.Vote: return ; // IBC case MsgTypeUrls.Transfer: return ; // CosmWasm case MsgTypeUrls.InstantiateContract: return ; case MsgTypeUrls.InstantiateContract2: return ; case MsgTypeUrls.UpdateAdmin: return ; case MsgTypeUrls.ExecuteContract: return ; case MsgTypeUrls.MigrateContract: return ; default: return null; } }; export default MsgForm;