From 9374edc42999d51883a7bfdd143d2c7a952326dd Mon Sep 17 00:00:00 2001 From: Matthew A Elder Date: Thu, 24 Feb 2022 20:50:31 -0700 Subject: [PATCH] blank and vesting buttons --- components/forms/FlexibleTransactionForm.js | 27 +++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/components/forms/FlexibleTransactionForm.js b/components/forms/FlexibleTransactionForm.js index 74068933..2b4198aa 100644 --- a/components/forms/FlexibleTransactionForm.js +++ b/components/forms/FlexibleTransactionForm.js @@ -112,6 +112,28 @@ function blankVoteJSON(voter, proposalId = -1) { ); } +function blankCreateVestingAccountJSON(fromAddress) { + return JSON.stringify( + { + typeUrl: "/cosmos.vesting.v1beta1.MsgCreateVestingAccount", + value: { + fromAddress, + toAddress: "", + amount: [ + { + denom: "uumee", + amount: "0", + }, + ], + endTime: "", + delayed: false, + }, + }, + null, + 2, + ); +} + const FlexibleTransactionForm = (props) => { const { state } = useAppContext(); @@ -322,6 +344,11 @@ const FlexibleTransactionForm = (props) => {