From 8ffb2a725a1f334ff6c6686fb1d272cfb14c1973 Mon Sep 17 00:00:00 2001 From: abefernan <44572727+abefernan@users.noreply.github.com> Date: Mon, 10 Jul 2023 18:43:44 +0200 Subject: [PATCH] Switch new forms and details --- components/dataViews/TransactionInfo/index.tsx | 9 +++++++++ components/forms/CreateTxForm/MsgForm/index.tsx | 9 +++++++++ components/forms/CreateTxForm/index.tsx | 9 +++++++++ 3 files changed, 27 insertions(+) diff --git a/components/dataViews/TransactionInfo/index.tsx b/components/dataViews/TransactionInfo/index.tsx index 5986a8e..0b11c6c 100644 --- a/components/dataViews/TransactionInfo/index.tsx +++ b/components/dataViews/TransactionInfo/index.tsx @@ -7,6 +7,9 @@ import StackableContainer from "../../layout/StackableContainer"; import TxMsgClaimRewardsDetails from "./TxMsgClaimRewardsDetails"; import TxMsgCreateVestingAccountDetails from "./TxMsgCreateVestingAccountDetails"; import TxMsgDelegateDetails from "./TxMsgDelegateDetails"; +import TxMsgExecuteContractDetails from "./TxMsgExecuteContractDetails"; +import TxMsgInstantiateContract2Details from "./TxMsgInstantiateContract2Details"; +import TxMsgInstantiateContractDetails from "./TxMsgInstantiateContractDetails"; import TxMsgRedelegateDetails from "./TxMsgRedelegateDetails"; import TxMsgSendDetails from "./TxMsgSendDetails"; import TxMsgSetWithdrawAddressDetails from "./TxMsgSetWithdrawAddressDetails"; @@ -31,6 +34,12 @@ const TxMsgDetails = ({ typeUrl, value: msgValue }: EncodeObject) => { return ; case MsgTypeUrls.Transfer: return ; + case MsgTypeUrls.Execute: + return ; + case MsgTypeUrls.Instantiate: + return ; + case MsgTypeUrls.Instantiate2: + return ; default: return null; } diff --git a/components/forms/CreateTxForm/MsgForm/index.tsx b/components/forms/CreateTxForm/MsgForm/index.tsx index bcd9027..c47864c 100644 --- a/components/forms/CreateTxForm/MsgForm/index.tsx +++ b/components/forms/CreateTxForm/MsgForm/index.tsx @@ -3,6 +3,9 @@ import { MsgTypeUrl, MsgTypeUrls } from "../../../../types/txMsg"; import MsgClaimRewardsForm from "./MsgClaimRewardsForm"; import MsgCreateVestingAccountForm from "./MsgCreateVestingAccountForm"; import MsgDelegateForm from "./MsgDelegateForm"; +import MsgExecuteContractForm from "./MsgExecuteContractForm"; +import MsgInstantiateContract2Form from "./MsgInstantiateContract2Form"; +import MsgInstantiateContractForm from "./MsgInstantiateContractForm"; import MsgRedelegateForm from "./MsgRedelegateForm"; import MsgSendForm from "./MsgSendForm"; import MsgSetWithdrawAddressForm from "./MsgSetWithdrawAddressForm"; @@ -34,6 +37,12 @@ const MsgForm = ({ msgType, senderAddress, ...restProps }: MsgFormProps) => { return ; case MsgTypeUrls.Transfer: return ; + case MsgTypeUrls.Execute: + return ; + case MsgTypeUrls.Instantiate: + return ; + case MsgTypeUrls.Instantiate2: + return ; default: return null; } diff --git a/components/forms/CreateTxForm/index.tsx b/components/forms/CreateTxForm/index.tsx index 63eff73..9385e9c 100644 --- a/components/forms/CreateTxForm/index.tsx +++ b/components/forms/CreateTxForm/index.tsx @@ -179,6 +179,15 @@ const CreateTxForm = ({ router, senderAddress, accountOnChain }: CreateTxFormPro onClick={() => addMsgType(MsgTypeUrls.CreateVestingAccount)} />