* add proto msgs * add delegate authorization * add delegate authorization tests * add delegate authorization to cli * fix lint * add cli tests * made max_tokens optional * add tests * add table tests * resolve conflicts * add undelegate authorization * proto-gen * fix errors * fix lint * resolve conflicts * fix imports * add allow & deny lists to delegate authorization * refactor authorizations * proto-docs * fix lint * review changes * golint * proto lint * review changes * add staking authorization * review changes * fix protos * review changes * review changes * clean docs * proto-docs * proto-gen * proto-docs
15 lines
454 B
Go
15 lines
454 B
Go
package testutil
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/testutil"
|
|
clitestutil "github.com/cosmos/cosmos-sdk/testutil/cli"
|
|
"github.com/cosmos/cosmos-sdk/testutil/network"
|
|
"github.com/cosmos/cosmos-sdk/x/authz/client/cli"
|
|
)
|
|
|
|
func ExecGrantAuthorization(val *network.Validator, args []string) (testutil.BufferWriter, error) {
|
|
cmd := cli.NewCmdGrantAuthorization()
|
|
clientCtx := val.ClientCtx
|
|
return clitestutil.ExecTestCLICmd(clientCtx, cmd, args)
|
|
}
|