Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

[Docs] GovTx usage #1302

Open
conanoc opened this issue Oct 28, 2019 · 1 comment
Open

[Docs] GovTx usage #1302

conanoc opened this issue Oct 28, 2019 · 1 comment
Labels
type/good starter issue this issue is limited in scope otherwise suitable for new contributors

Comments

@conanoc
Copy link

conanoc commented Oct 28, 2019

I could not find how to use GovTx. It would be helpful if there is an example changing the permission of an account.

@silasdavis silasdavis added the type/good starter issue this issue is limited in scope otherwise suitable for new contributors label Oct 30, 2019
@silasdavis
Copy link
Contributor

This could do with being documented.

There are three ways to change permissions currently:

  1. Using permission SNatives via smart contract (provided the callee has appropriate setBase/setGlobal moderator permissions)
  2. Sending a PermissionTx
  3. Using GovTx

GovTx is a bit of a big pointy stick if you just want to change permissions - it's an all-powerful transaction often only granted to a system account as part of our proposal mechanism.

See here for setting permission via a permissions tx with burrow deploy:

https://github.com/hyperledger/burrow/tree/master/tests/jobs_fixtures/app03-basic_and_advanced_permission_txs_and_queries

Here for generating a govtx:

https://github.com/hyperledger/burrow/tree/master/tests/jobs_fixtures/app48-govern-account

Both can be done programmatically, see for example:

https://github.com/hyperledger/burrow/blob/3920ee3e401fd18c7bff62b42b5d27a8a33d61f3/txs/payload/gov_tx.go#L60

Sorry to drop you off in the deep end with this - I would love to have better starter documentation here, but hopefully with those links you can see the usage. If you are able to contribute some documentation that would have scratched your itch it is much appreciated.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/good starter issue this issue is limited in scope otherwise suitable for new contributors
Development

No branches or pull requests

2 participants