docs: fix typos (#25085)
This commit is contained in:
parent
944a3bca90
commit
d458d9eae5
@ -10,7 +10,7 @@ import (
|
||||
"cosmossdk.io/store/types"
|
||||
)
|
||||
|
||||
// Store is a wrapper type for dbm.Db with implementation of KVStore
|
||||
// Store is a wrapper type for dbm.DB with implementation of KVStore
|
||||
type Store struct {
|
||||
dbm.DB
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// Upgrade reads the configuration file at configPath and applies any
|
||||
// transformations necessary to Upgrade it to the current version. If this
|
||||
// transformations necessary to upgrade it to the current version. If this
|
||||
// succeeds, the transformed output is written to outputPath. As a special
|
||||
// case, if outputPath == "" the output is written to stdout.
|
||||
//
|
||||
|
||||
@ -160,7 +160,7 @@ type BufferedPipe struct {
|
||||
|
||||
// buffer is the channel used to communicate buffer contents.
|
||||
buffer chan []byte
|
||||
// stated is true if this BufferedPipe has been started.
|
||||
// started is true if this BufferedPipe has been started.
|
||||
started bool
|
||||
}
|
||||
|
||||
|
||||
@ -146,7 +146,7 @@ func NewMsgCreatePeriodicVestingAccountCmd(ac address.Codec) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "create-periodic-vesting-account [to_address] [periods_json_file]",
|
||||
Short: "Create a new vesting account funded with an allocation of tokens.",
|
||||
Long: `A sequence of coins and period length in seconds. Periods are sequential, in that the duration of of a period only starts at the end of the previous period. The duration of the first period starts upon account creation. For instance, the following periods.json file shows 20 "test" coins vesting 30 days apart from each other.
|
||||
Long: `A sequence of coins and period length in seconds. Periods are sequential, in that the duration of a period only starts at the end of the previous period. The duration of the first period starts upon account creation. For instance, the following periods.json file shows 20 "test" coins vesting 30 days apart from each other.
|
||||
Where periods.json contains:
|
||||
|
||||
An array of coin strings and unix epoch times for coins to vest
|
||||
|
||||
@ -264,7 +264,7 @@ Example:
|
||||
simd tx authz grant cosmos1.. send --spend-limit=100stake --allow-list=cosmos1...,cosmos2... --from=cosmos1..
|
||||
```
|
||||
|
||||
* The `generic` authorization_type refers to the built-in `GenericAuthorization` type. The custom flag available is `msg-type` ( required) documented [here](#genericauthorization).
|
||||
* The `generic` authorization_type refers to the built-in `GenericAuthorization` type. The custom flag available is `msg-type` (required) documented [here](#genericauthorization).
|
||||
|
||||
> Note: `msg-type` is any valid Cosmos SDK `Msg` type url.
|
||||
|
||||
@ -274,7 +274,7 @@ Example:
|
||||
simd tx authz grant cosmos1.. generic --msg-type=/cosmos.bank.v1beta1.MsgSend --from=cosmos1..
|
||||
```
|
||||
|
||||
* The `delegate`,`unbond`,`redelegate` authorization_types refer to the built-in `StakeAuthorization` type. The custom flags available are `spend-limit` (optional), `allowed-validators` (optional) and `deny-validators` (optional) documented [here](#stakeauthorization).
|
||||
* The `delegate`,`unbond`,`redelegate` authorization_types refer to the built-in `StakeAuthorization` type. The custom flags available are `spend-limit` (optional), `allowed-validators` (optional) and `deny-validators` (optional) documented [here](#stakeauthorization).
|
||||
|
||||
> Note: `allowed-validators` and `deny-validators` cannot both be empty. `spend-limit` represents the `MaxTokens`
|
||||
|
||||
|
||||
@ -98,7 +98,7 @@ func (suite *KeeperTestSuite) TestTotalSupply() {
|
||||
{
|
||||
"calculation NOT matching genesis Supply field",
|
||||
types.NewGenesisState(defaultGenesis.Params, balances, sdk.NewCoins(sdk.NewCoin("wrongcoin", sdkmath.NewInt(1))), defaultGenesis.DenomMetadata, defaultGenesis.SendEnabled),
|
||||
nil, true, "genesis supply is incorrect, expected 1wrongcoin, got 21barcoin,11foocoin",
|
||||
nil, true, "genesis supply is incorrect, expected 1wrongcoin, got 21barcoin, 11foocoin",
|
||||
},
|
||||
{
|
||||
"calculation matches genesis Supply field",
|
||||
|
||||
@ -5,7 +5,7 @@ var DenomAddressPrefix = []byte{0x03}
|
||||
// CreateDenomAddressPrefix creates a prefix for a reverse index of denomination
|
||||
// to account balance for that denomination.
|
||||
func CreateDenomAddressPrefix(denom string) []byte {
|
||||
// we add a "zero" byte at the end - null byte terminator, to allow prefix denom prefix
|
||||
// we add a "zero" byte at the end - null byte terminator, to allow denom prefix
|
||||
// scan. Setting it is not needed (key[last] = 0) - because this is the default.
|
||||
key := make([]byte, len(DenomAddressPrefix)+len(denom)+1)
|
||||
copy(key, DenomAddressPrefix)
|
||||
|
||||
@ -47,7 +47,7 @@ func RandomGenesisSendEnabled(r *rand.Rand, bondDenom string) []types.SendEnable
|
||||
// P(sef) = 18.0% = SendEnabled entry that does not equal the default = P(stc') + P(sfc) = .045 + .135 = .180
|
||||
//
|
||||
// P(t) = 81.0% = Bond denom is sendable = P(a'c) + P(st) = .360 + .450 = .810
|
||||
// P(f) = 19.0% = Bond demon is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190
|
||||
// P(f) = 19.0% = Bond denom is NOT sendable = P(a'c') + P(sf) = .040 + .150 = .190
|
||||
|
||||
return rv
|
||||
}
|
||||
|
||||
@ -21,7 +21,7 @@ https://github.com/cosmos/cosmos-sdk/blob/v0.50.1/baseapp/msg_service_router.go#
|
||||
```
|
||||
|
||||
:::note
|
||||
The `CircuitBreakerDecorator` works for most use cases, but [does not check the inner messages of a transaction](https://docs.cosmos.network/main/learn/beginner/tx-lifecycle#antehandler). This some transactions (such as `x/authz` transactions or some `x/gov` transactions) may pass the ante handler. **This does not affect the circuit breaker** as the message router check will still fail the transaction.
|
||||
The `CircuitBreakerDecorator` works for most use cases, but [does not check the inner messages of a transaction](https://docs.cosmos.network/main/learn/beginner/tx-lifecycle#antehandler). This means some transactions (such as `x/authz` transactions or some `x/gov` transactions) may pass the ante handler. **This does not affect the circuit breaker** as the message router check will still fail the transaction.
|
||||
This tradeoff is to avoid introducing more dependencies in the `x/circuit` module. Chains can re-define the `CircuitBreakerDecorator` to check for inner messages if they wish to do so.
|
||||
:::
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user