Comments (3)
These are the required steps to implement a future workflow with authz to claim rewards and re-delegate. So need to implement the required tx authz with multisig. This is for reference while working on this issue.
Grant Withdraw rewards
[binary] tx authz grant [grantee_addr] generic --msg-type /cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward --expiration=1651060212 --from=ledgerS --keyring-backend=os --fees=3000ucrbrus --ledger
Grant Delegate
[binary] tx authz grant [grantee_addr] generic --msg-type /cosmos.staking.v1beta1.MsgDelegate --expiration=1651060212 --from=[account] --keyring-backend=os --fees=1000denom
Generate Withdraw Rewards Tx
[binary] tx distribution withdraw-all-rewards --keyring-backend=os --from [granter_address] --fees 1500denom --generate-only > tx.json
Execute Withdraw Rewards Tx (grantee on behalf of granter)
[binary] tx authz exec tx.json --from grantee --keyring-backend=os -y --output json
Generate Delegate Tx
[binary] tx staking delegate [valoper_addr] $([binary] query bank balances [account] -o json | jq '.balances[].amount' | xargs -I % sh -c 'echo $((%-3000));')denom --from account --keyring-backend=os --generate-only > tx_delegate.json
Execute Withdraw Rewards Tx (grantee on behalf of granter)
[binary] tx authz exec tx_delegate.json --from grantee --keyring-backend=os -y
from multisig.
While working in the multisig authz support, realized one thing. I believe the idea is to do a tx authz grant for multiple msg-types (comma separated list) in one shot, like
multisig tx authz grant <chain name> <key name> <grantee address> <message-types (eg. withdraw,commission,delegate)> [flags]
but the binary (e.g. gaiad) only allows one message type, like:
[binary] tx authz grant [grantee_addr] generic --msg-type /cosmos.staking.v1beta1.MsgDelegate --expiration=1651060212 --from=[account] --keyring-backend=os --fees=1000denom
so any ideas how this could be accomplished ? is there a way to have multiple txs to be signed in one unsigned.json ?
from multisig.
Implemented the tx authz grant
command. I'm now just thinking what would be the right workflow for the remaining parts. I believe the tx authz exec
will be executed by the grantee (e.g. bot). But the bot doesn't need multisig support as far as I understand. It could generate a tx (e.g. delegate) and execute it via tx authz exec
.
from multisig.
Related Issues (20)
- When broacast message get an error that key cannot be found
- Cannot create tx for Evmos, account type `/ethermint.types.v1.EthAccount` not supported
- Allow `--fees` and `--gas` to be specified when creating a transaction
- Add a new command for send transactions
- Better error message when signing with wrong key
- Command to undelegate from validators
- add a `--all` flag to delete command to remove all transactions at once
- Add a new command to create a claim commissions tx
- Multisig couldn't understand the axelar json response after broadcast command
- empty folders cannot be deleted with `delete` command
- error when broadcasting a message
- Cannot parse return for a `broadcast` command executed on Axelar
- Cannot parse Stride account type
- Use the `chain-id` value from the chain
- Cannot parse tx response for `ixod`
- broadcast command doesn't use the node from the config
- Upgrade cosmos SDK version
- new release v0.4.0 changes
- broacast on an empty [chain]/[key] outputs the wrong error message
- multisig sign -k does not read config.toml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from multisig.