From 8659dc0c2e67dfb75073f5997352e4cedfe77edb Mon Sep 17 00:00:00 2001 From: NodeOps <157517809+nodeopsdev@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:05:36 +0700 Subject: [PATCH 1/2] Create query.mdx query --- packages/docs/pages/users/query.mdx | 51 +++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 packages/docs/pages/users/query.mdx diff --git a/packages/docs/pages/users/query.mdx b/packages/docs/pages/users/query.mdx new file mode 100644 index 00000000..9b8c1cc5 --- /dev/null +++ b/packages/docs/pages/users/query.mdx @@ -0,0 +1,51 @@ +# **Query** + +This is the complete query related to Namada + +Including: account,bytes,pgf,proposal,proposal-result,proposal-votes,protocol parameters + +## query-account + +```txt +namadac query-account --owner +``` + +Return the results will return the `Threshold` and `Public` key of the address. + +## query-pgf + +``` +namadac query-pgf +``` + +Return the results will return the `Pgf stewards , Reward distribution`, `Pgf fundings` key of the address. + +## query-proposal + +``` +namadac query-proposal --proposal-id +``` + +Return the results will return the PGF type of the proposal, `author`, `content`, `StartEpoch`, `EndEpoch`, `GraceEpoch`, `Status` + +## query-proposal-result + +``` +namadac query-proposal-result --proposal-id +``` + +Return the results will return the outcome of the proposal, whether it's `Passed` or `Rejected`, including the total number of votes for `yay`, `nay`, `abstain`, and the threshold (fraction) of the total voting power needed to tally. + +## query-proposal-votes + +``` +namadac query-proposal-votes --proposal-id +``` + +Return the results of all wallets that have voted `yay` or `nay` on the proposal + +``` +namadac query-proposal-votes --proposal-id --voter +``` + +Return the result of a specific wallet that has voted on a specific proposal From 0ecbc0734ff41df3b06935082f945811e361d775 Mon Sep 17 00:00:00 2001 From: NodeOps <157517809+nodeopsdev@users.noreply.github.com> Date: Thu, 28 Mar 2024 16:08:06 +0700 Subject: [PATCH 2/2] Update query.mdx --- packages/docs/pages/users/query.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/pages/users/query.mdx b/packages/docs/pages/users/query.mdx index 9b8c1cc5..e52a156c 100644 --- a/packages/docs/pages/users/query.mdx +++ b/packages/docs/pages/users/query.mdx @@ -2,7 +2,7 @@ This is the complete query related to Namada -Including: account,bytes,pgf,proposal,proposal-result,proposal-votes,protocol parameters +Including: account,pgf,proposal,proposal-result,proposal-votes ## query-account