-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(
crosschain
): add rate limiter flags singleton state variable (#…
…2046) * initialize type * keeper and genesis * new state variable * add query * make generate * changelog * fix lint * fix unit test * address comments
- Loading branch information
Showing
39 changed files
with
2,769 additions
and
254 deletions.
There are no files selected for viewing
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
33 changes: 33 additions & 0 deletions
33
docs/cli/zetacored/zetacored_query_crosschain_update_rate_limit_flags.md
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,33 @@ | ||
# query crosschain update_rate_limit_flags | ||
|
||
shows the rate limiter flags | ||
|
||
``` | ||
zetacored query crosschain update_rate_limit_flags [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--grpc-addr string the gRPC endpoint to use for this chain | ||
--grpc-insecure allow gRPC over insecure channels, if not TLS the server must use TLS | ||
--height int Use a specific height to query state at (this can error if the node is pruning state) | ||
-h, --help help for update_rate_limit_flags | ||
--node string [host]:[port] to Tendermint RPC interface for this chain | ||
-o, --output string Output format (text|json) | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--chain-id string The network chain ID | ||
--home string directory for config and data | ||
--log_format string The logging format (json|plain) | ||
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) | ||
--trace print out full stack trace on errors | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [zetacored query crosschain](zetacored_query_crosschain.md) - Querying commands for the crosschain module | ||
|
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
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
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,30 @@ | ||
syntax = "proto3"; | ||
package zetachain.zetacore.crosschain; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/zeta-chain/zetacore/x/crosschain/types"; | ||
|
||
message RateLimiterFlags { | ||
bool enabled = 1; | ||
|
||
// window in blocks | ||
int64 window = 2; | ||
|
||
// rate in azeta per block | ||
string rate = 3 [ | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Uint", | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
// conversion in azeta per token | ||
repeated Conversion conversions = 4 [(gogoproto.nullable) = false]; | ||
} | ||
|
||
message Conversion { | ||
string zrc20 = 1; | ||
string rate = 2 [ | ||
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", | ||
(gogoproto.nullable) = false | ||
]; | ||
} |
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
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
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
Oops, something went wrong.