-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add opchild querys & output index to propose output
- Loading branch information
Showing
12 changed files
with
583 additions
and
772 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package opchild | ||
|
||
import ( | ||
autocliv1 "cosmossdk.io/api/cosmos/autocli/v1" | ||
opchildv1 "github.com/initia-labs/OPinit/api/opinit/opchild/v1" | ||
) | ||
|
||
// AutoCLIOptions implements the autocli.HasAutoCLIConfig interface. | ||
func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { | ||
return &autocliv1.ModuleOptions{ | ||
Query: &autocliv1.ServiceCommandDescriptor{ | ||
Service: opchildv1.Query_ServiceDesc.ServiceName, | ||
RpcCommandOptions: []*autocliv1.RpcCommandOptions{ | ||
{ | ||
RpcMethod: "Validator", | ||
Use: "validator [validator-addr]", | ||
Short: "Query a validator", | ||
PositionalArgs: []*autocliv1.PositionalArgDescriptor{ | ||
{ProtoField: "validator_addr"}, | ||
}, | ||
}, | ||
{ | ||
RpcMethod: "Validators", | ||
Use: "validators", | ||
Short: "Query for all validators", | ||
}, | ||
{ | ||
RpcMethod: "Params", | ||
Use: "params", | ||
Short: "Query the current opchild parameters information", | ||
}, | ||
{ | ||
RpcMethod: "NextL1Sequence", | ||
Use: "next-l1-sequence", | ||
Short: "Query the next l1 sequence", | ||
}, | ||
{ | ||
RpcMethod: "NextL2Sequence", | ||
Use: "next-l2-sequence", | ||
Short: "Query the next l2 sequence", | ||
}, | ||
}, | ||
EnhanceCustomCommand: true, // We still have manual commands in gov that we want to keep | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.