Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix function name and some typos in comment #1961

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ type ChannelResult struct {
result *abci.ExecTxResult
}

// cacheContext returns a new context based off of the provided context with
// CacheContext returns a new context based off of the provided context with
// a branched multi-store.
func (app *App) CacheContext(ctx sdk.Context) (sdk.Context, sdk.CacheMultiStore) {
ms := ctx.MultiStore()
Expand Down Expand Up @@ -1445,7 +1445,7 @@ func (app *App) PartitionPrioritizedTxs(_ sdk.Context, txs [][]byte, typedTxs []
return prioritizedTxs, otherTxs, prioritizedTypedTxs, otherTypedTxs, prioritizedIndices, otherIndices
}

// ExecuteTxsConcurrently calls the appropriate function for processing transacitons
// ExecuteTxsConcurrently calls the appropriate function for processing transactions
func (app *App) ExecuteTxsConcurrently(ctx sdk.Context, txs [][]byte, typedTxs []sdk.Tx, absoluteTxIndices []int) ([]*abci.ExecTxResult, sdk.Context) {
// TODO after OCC release, remove this check and call ProcessTXsWithOCC directly
if ctx.IsOCCEnabled() {
Expand Down
2 changes: 1 addition & 1 deletion app/params/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ It contains the default weights used for each transaction used on the module's
simulation. These weights define the chance for a transaction to be simulated at
any gived operation.

You can repace the default values for the weights by providing a params.json
You can replace the default values for the weights by providing a params.json
file with the weights defined for each of the transaction operations:

{
Expand Down
2 changes: 1 addition & 1 deletion evmrpc/rpcstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (h *HTTPServer) SetListenAddr(host string, port int) error {
return nil
}

// listenAddr returns the listening address of the server.
// ListenAddr returns the listening address of the server.
func (h *HTTPServer) ListenAddr() string {
h.mu.Lock()
defer h.mu.Unlock()
Expand Down
4 changes: 2 additions & 2 deletions loadtest/contracts/evm/foundry.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[profile.default]
# Foundry Configuration File
# Default definitions: https://github.com/gakonst/foundry/blob/b7917fa8491aedda4dd6db53fbb206ea233cd531/config/src/lib.rs#L782
# See more config options at: https://github.com/gakonst/foundry/tree/master/config
# Default definitions: https://github.com/foundry-rs/foundry/blob/b7917fa8491aedda4dd6db53fbb206ea233cd531/config/src/lib.rs#L782
# See more config options at: https://github.com/foundry-rs/foundry/tree/master/.config

# The Default Profile
# Sets the concrete solc version to use
Expand Down
2 changes: 1 addition & 1 deletion occ_tests/occ_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func assertEqualEvents(t *testing.T, expected, actual []types.Event, testName st
}
}

// assertEqualExecTxResults validates the code, so that all errors don't count as a success
// assertExecTxResultCode validates the code, so that all errors don't count as a success
func assertExecTxResultCode(t *testing.T, expected, actual []*types.ExecTxResult, code uint32, testName string) {
for _, e := range expected {
require.Equal(t, code, e.Code, "%s: Expected code %d, got %d", testName, code, e.Code)
Expand Down
4 changes: 2 additions & 2 deletions oracle/price-feeder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ If a cluster is running Oracle price-feeder, your validator is also required to


## Create an account for Oracle Price Feeder Delegate
1) To avoid account sequence errors with the admin account, it's reccomended to create a different account as an Oracle delegate. To do so, you'll need to create the account with
1) To avoid account sequence errors with the admin account, it's recommended to create a different account as an Oracle delegate. To do so, you'll need to create the account with
`seid keys add price-feeder-delegate` or any other account name. This may still cause account sequence errors for the delegate account but since it's only being used for the Oracle price feeder, it's not a concern
2) With the account address output, `export PRICE_FEEDER_DELEGATE_ADDR=<output>`
3) `seid tx oracle set-feeder $PRICE_FEEDER_DELEGATE_ADDR --from <validator-wallet> --fees 2000usei -b block -y --chain-id {chain-id}`
Expand Down Expand Up @@ -45,7 +45,7 @@ make install-price-feeder
```

## Run Price Feeder
You can run it as a seperate binary but it's reccomedned to run it as a systemd serivce, you can use the following as an example.
You can run it as a seperate binary but it's reccomedned to run it as a systemd service, you can use the following as an example.

You need to setup a config.toml file (see [this for example](./config.example.toml)), you need to set the following fields in

Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
ProviderMock: {},
}

// maxDeviationThreshold is the maxmimum allowed amount of standard
// maxDeviationThreshold is the maximum allowed amount of standard
// deviations which validators are able to set for a given asset.
maxDeviationThreshold = sdk.MustNewDecFromStr("3.0")

Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/dockerfile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker build --build-arg VERSION=$VERSION -t price-feeder:latest .
```

## Create `config.toml`
Edit your `address`, `validator`, `grpc_endpoint`, `tmrpc_endpoint` you may need to modifify your firewall to allow this container to reach your chain-node. See [offical docs](https://docs.kujira.app/validators/run-a-node/oracle-price-feeder) for more details.
Edit your `address`, `validator`, `grpc_endpoint`, `tmrpc_endpoint` you may need to modifify your firewall to allow this container to reach your chain-node. See [official docs](https://docs.kujira.app/validators/run-a-node/oracle-price-feeder) for more details.

```bash
sudo tee config.toml <<EOF
Expand Down
2 changes: 1 addition & 1 deletion oracle/price-feeder/oracle/provider/kraken.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ func newKrakenCandleSubscriptionMsg(pairs ...string) KrakenSubscriptionMsg {
}
}

// krakenPairToCurrencyPairSymbol receives a kraken pair formated
// krakenPairToCurrencyPairSymbol receives a kraken pair formatted
// ex.: ATOM/USDT and return currencyPair Symbol ATOMUSDT.
func krakenPairToCurrencyPairSymbol(krakenPair string) string {
return strings.ReplaceAll(krakenPair, "/", "")
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ run this if you're trying to setup a price feeder service on a validator node po

## Running Services

For seid and price-feeder processes, it's reccomended to run as a systemd service.
For seid and price-feeder processes, it's recommended to run as a systemd service.

seid

Expand Down
2 changes: 1 addition & 1 deletion x/mint/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func TestGetNextScheduledTokenRelease(t *testing.T) {
require.Equal(t, currentTime.AddDate(0, 0, 1).Format(minttypes.TokenReleaseDateFormat), nextScheduledRelease.GetStartDate())
})

t.Run("Panic on invalid foramt", func(t *testing.T) {
t.Run("Panic on invalid format", func(t *testing.T) {
// No next scheduled token release intially
tokenReleaseSchedule := []mintTypes.ScheduledTokenRelease{
{
Expand Down