Skip to content

Commit 4806a6e

Browse files
authored
Merge pull request #2032 from CosmWasm/co/typos
Add typo check to CI
2 parents 9c2f332 + d824a11 commit 4806a6e

30 files changed

+115
-88
lines changed

.github/workflows/typo-check.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check for typos
2+
3+
on:
4+
merge_group:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
check-typos:
13+
name: "Spell-check repository source"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
- name: Run spell-check
19+
uses: crate-ci/typos@master

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
- Log query error before redacting [\#1593](https://github.com/CosmWasm/wasmd/issues/1593)
163163
- Restrict pagination on all-state-query [\#1619](https://github.com/CosmWasm/wasmd/pull/1619)
164164
- Bug in IbcQuery::ListChannels implementation when port is unset [\#1597](https://github.com/CosmWasm/wasmd/issues/1597)
165-
- Ensure some contraints and limits on pin/unpin code ids [\#1624](https://github.com/CosmWasm/wasmd/pull/1624)
165+
- Ensure some constraints and limits on pin/unpin code ids [\#1624](https://github.com/CosmWasm/wasmd/pull/1624)
166166
- Ensure genesis import works with both address generators [\#1629](https://github.com/CosmWasm/wasmd/issues/1629)
167167
- Set default query limit and ensure constraints [\#1632](https://github.com/CosmWasm/wasmd/pull/1632)
168168

@@ -174,7 +174,7 @@
174174
- If `port_id` is omitted, all channels bound to the contract's port will be listed.
175175
- Restrict pagination on all-state-query [\#1619](https://github.com/CosmWasm/wasmd/pull/1619)
176176
- Pagination limit is set to 100 for all-state-query. See also [\#1632](https://github.com/CosmWasm/wasmd/pull/1632)
177-
- Ensure some contraints and limits on pin/unpin code ids [\#1624](https://github.com/CosmWasm/wasmd/pull/1624)
177+
- Ensure some constraints and limits on pin/unpin code ids [\#1624](https://github.com/CosmWasm/wasmd/pull/1624)
178178
- Total number of code ids is limited to 50 for pin/unpin operations
179179
- Custom StoreCode Authorization for authz module [\#1584](https://github.com/CosmWasm/wasmd/issues/1584)
180180

@@ -413,7 +413,7 @@ below to learn more!
413413

414414
[Full Changelog](https://github.com/CosmWasm/wasmd/compare/v0.28.0...v0.29.0)
415415

416-
- Add dependencies for protobuf and remove third_party forlder [/#1030](https://github.com/CosmWasm/wasmd/pull/1030)
416+
- Add dependencies for protobuf and remove third_party folder [/#1030](https://github.com/CosmWasm/wasmd/pull/1030)
417417
- Check wasmvm version on startup [\#1029](https://github.com/CosmWasm/wasmd/pull/1029/)
418418
- Allow AccessConfig to use a list of addresses instead of just a single address [\#945](https://github.com/CosmWasm/wasmd/issues/945)
419419
- Make contract addresses predictable \("deterministic"\) [\#942](https://github.com/CosmWasm/wasmd/issues/942)
@@ -455,7 +455,7 @@ No
455455

456456
**Fixed Bugs**
457457

458-
- Fix: Make events in reply completely determinisitic by stripping out anything coming from Cosmos SDK (not CosmWasm codebase) [\#917](https://github.com/CosmWasm/wasmd/pull/917) ([assafmo](https://github.com/assafmo))
458+
- Fix: Make events in reply completely deterministic by stripping out anything coming from Cosmos SDK (not CosmWasm codebase) [\#917](https://github.com/CosmWasm/wasmd/pull/917) ([assafmo](https://github.com/assafmo))
459459

460460
Migration notes:
461461

EVENTS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ consistent order (and avoid dictionaries/hashes). Here is a simple Event in JSON
4646
"type": "wasm",
4747
"attributes": [
4848
{"key": "_contract_address", "value": "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6"},
49-
{"key": "transfered", "value": "777000"}
49+
{"key": "transferred", "value": "777000"}
5050
]
5151
}
5252
```
@@ -321,10 +321,10 @@ action emitting events, so we define a structure to flatten this event tree:
321321
* All events are returned in execution order as [defined by CosmWasm docs](https://github.com/CosmWasm/cosmwasm/blob/main/SEMANTICS.md#dispatching-messages)
322322
* `x/wasm` keeper emits a custom event for each call to a contract entry point. Not just `execute`, `instantiate`,
323323
and `migrate`, but also `reply`, `sudo` and all ibc entry points.
324-
* This means all `wasm*` events are preceeded by the cosmwasm entry point that returned them.
324+
* This means all `wasm*` events are preceded by the cosmwasm entry point that returned them.
325325

326326
To make this more clear, I will provide an example of executing a contract, which returns two messages, one to instantiate a new
327-
contract and the other to set the withdrawl address, while also using `ReplyOnSuccess` for the instantiation (to get the
327+
contract and the other to set the withdrawal address, while also using `ReplyOnSuccess` for the instantiation (to get the
328328
address). It will emit a series of events that looks something like this:
329329

330330
```go
@@ -335,7 +335,7 @@ sdk.NewEvent(
335335
sdk.NewAttribute("sender", msg.Sender),
336336
),
337337

338-
// top-level exection call
338+
// top-level execution call
339339
sdk.NewEvent(
340340
"execute",
341341
sdk.NewAttribute("_contract_address", contractAddr.String()),

UPGRADING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ docker run --rm -it \
142142

143143
## Take majority control of the chain
144144

145-
In genesis we have a valiator with 250 million `ustake` bonded. We want to be easily
145+
In genesis we have a validator with 250 million `ustake` bonded. We want to be easily
146146
able to pass a proposal with our client. Let us bond 700 million `ustake` to ensure
147147
we have > 67% of the voting power and will pass with the validator not voting.
148148

@@ -167,7 +167,7 @@ docker run --rm -it \
167167
## Vote on the upgrade
168168

169169
Now that we see the chain is running and producing blocks, and our client has
170-
enough token to control the netwrok, let's create a governance
170+
enough token to control the network, let's create a governance
171171
upgrade proposal for the new chain to move to `musselnet-v2` (this must be the
172172
same name as we use in the handler we created above, change this to match what
173173
you put in your handler):
@@ -298,7 +298,7 @@ docker run --rm -it \
298298
After this, we just let the chain run and open the terminal so you can see the log files.
299299
It should keep producing blocks until it hits height 500 (or whatever you set there),
300300
when the process will print a huge stacktrace and hang. Immediately before the stack trace, you
301-
should see a line like this (burried under tons of tendermint logs):
301+
should see a line like this (buried under tons of tendermint logs):
302302

303303
`8:50PM ERR UPGRADE "musselnet-v2" NEEDED at height: 100:`
304304

_typos.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[default]
2+
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"]
3+
4+
[default.extend-identifiers]
5+
iNdEx = "iNdEx"
6+
7+
[files]
8+
extend-exclude = ["**/go.mod", "**/go.sum", "**/*.pb.go"]

app/params/doc.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Package params defines the simulation parameters in the gaia.
33
44
It contains the default weights used for each transaction used on the module's
55
simulation. These weights define the chance for a transaction to be simulated at
6-
any gived operation.
6+
any given operation.
77
8-
You can repace the default values for the weights by providing a params.json
8+
You can replace the default values for the weights by providing a params.json
99
file with the weights defined for each of the transaction operations:
1010
1111
{

app/sim_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,15 +179,15 @@ func TestAppImportExport(t *testing.T) {
179179
failedKVAs, failedKVBs := simtestutil.DiffKVStores(storeA, storeB, skipPrefixes[keyName])
180180
if !assert.Equal(t, len(failedKVAs), len(failedKVBs), "unequal sets of key-values to compare in %q", keyName) {
181181
for _, v := range failedKVBs {
182-
t.Logf("store missmatch: %q\n", v)
182+
t.Logf("store mismatch: %q\n", v)
183183
}
184184
t.FailNow()
185185
}
186186

187187
t.Logf("compared %d different key/value pairs between %s and %s\n", len(failedKVAs), appKeyA, appKeyB)
188188
if !assert.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(keyName, app.SimulationManager().StoreDecoders, failedKVAs, failedKVBs)) {
189189
for _, v := range failedKVAs {
190-
t.Logf("store missmatch: %q\n", v)
190+
t.Logf("store mismatch: %q\n", v)
191191
}
192192
t.FailNow()
193193
}

docs/proto/proto-docs.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,10 +746,10 @@ a v1 governance proposal.
746746
| ----- | ---- | ----- | ----------- |
747747
| `title` | [string](#string) | | Title is a short summary |
748748
| `description` | [string](#string) | | Description is a human readable text |
749-
| `run_as` | [string](#string) | | RunAs is the address that is passed to the contract's enviroment as sender |
749+
| `run_as` | [string](#string) | | RunAs is the address that is passed to the contract's environment as sender |
750750
| `admin` | [string](#string) | | Admin is an optional address that can execute migrations |
751751
| `code_id` | [uint64](#uint64) | | CodeID is the reference to the stored WASM code |
752-
| `label` | [string](#string) | | Label is optional metadata to be stored with a constract instance. |
752+
| `label` | [string](#string) | | Label is optional metadata to be stored with a contract instance. |
753753
| `msg` | [bytes](#bytes) | | Msg json encode message to be passed to the contract on instantiation |
754754
| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | Funds coins that are transferred to the contract on instantiation |
755755
| `salt` | [bytes](#bytes) | | Salt is an arbitrary value provided by the sender. Size can be 1 to 64. |
@@ -776,7 +776,7 @@ a v1 governance proposal.
776776
| `run_as` | [string](#string) | | RunAs is the address that is passed to the contract's environment as sender |
777777
| `admin` | [string](#string) | | Admin is an optional address that can execute migrations |
778778
| `code_id` | [uint64](#uint64) | | CodeID is the reference to the stored WASM code |
779-
| `label` | [string](#string) | | Label is optional metadata to be stored with a constract instance. |
779+
| `label` | [string](#string) | | Label is optional metadata to be stored with a contract instance. |
780780
| `msg` | [bytes](#bytes) | | Msg json encoded message to be passed to the contract on instantiation |
781781
| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | Funds coins that are transferred to the contract on instantiation |
782782

@@ -847,7 +847,7 @@ the x/gov module via a v1 governance proposal.
847847
| `instantiate_permission` | [AccessConfig](#cosmwasm.wasm.v1.AccessConfig) | | InstantiatePermission to apply on contract creation, optional |
848848
| `unpin_code` | [bool](#bool) | | UnpinCode code on upload, optional |
849849
| `admin` | [string](#string) | | Admin is an optional address that can execute migrations |
850-
| `label` | [string](#string) | | Label is optional metadata to be stored with a constract instance. |
850+
| `label` | [string](#string) | | Label is optional metadata to be stored with a contract instance. |
851851
| `msg` | [bytes](#bytes) | | Msg json encoded message to be passed to the contract on instantiation |
852852
| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | Funds coins that are transferred to the contract on instantiation |
853853
| `source` | [string](#string) | | Source is the URL where the code is hosted |
@@ -1762,7 +1762,7 @@ Since: 0.40
17621762
| `instantiate_permission` | [AccessConfig](#cosmwasm.wasm.v1.AccessConfig) | | InstantiatePermission to apply on contract creation, optional |
17631763
| `unpin_code` | [bool](#bool) | | UnpinCode code on upload, optional. As default the uploaded contract is pinned to cache. |
17641764
| `admin` | [string](#string) | | Admin is an optional address that can execute migrations |
1765-
| `label` | [string](#string) | | Label is optional metadata to be stored with a constract instance. |
1765+
| `label` | [string](#string) | | Label is optional metadata to be stored with a contract instance. |
17661766
| `msg` | [bytes](#bytes) | | Msg json encoded message to be passed to the contract on instantiation |
17671767
| `funds` | [cosmos.base.v1beta1.Coin](#cosmos.base.v1beta1.Coin) | repeated | Funds coins that are transferred from the authority account to the contract on instantiation |
17681768
| `source` | [string](#string) | | Source is the URL where the code is hosted |

proto/cosmwasm/wasm/v1/proposal_legacy.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ message InstantiateContractProposal {
6464
string admin = 4 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
6565
// CodeID is the reference to the stored WASM code
6666
uint64 code_id = 5 [ (gogoproto.customname) = "CodeID" ];
67-
// Label is optional metadata to be stored with a constract instance.
67+
// Label is optional metadata to be stored with a contract instance.
6868
string label = 6;
6969
// Msg json encoded message to be passed to the contract on instantiation
7070
bytes msg = 7 [
@@ -93,13 +93,13 @@ message InstantiateContract2Proposal {
9393
string title = 1;
9494
// Description is a human readable text
9595
string description = 2;
96-
// RunAs is the address that is passed to the contract's enviroment as sender
96+
// RunAs is the address that is passed to the contract's environment as sender
9797
string run_as = 3 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
9898
// Admin is an optional address that can execute migrations
9999
string admin = 4 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
100100
// CodeID is the reference to the stored WASM code
101101
uint64 code_id = 5 [ (gogoproto.customname) = "CodeID" ];
102-
// Label is optional metadata to be stored with a constract instance.
102+
// Label is optional metadata to be stored with a contract instance.
103103
string label = 6;
104104
// Msg json encode message to be passed to the contract on instantiation
105105
bytes msg = 7 [
@@ -330,7 +330,7 @@ message StoreAndInstantiateContractProposal {
330330
bool unpin_code = 6;
331331
// Admin is an optional address that can execute migrations
332332
string admin = 7;
333-
// Label is optional metadata to be stored with a constract instance.
333+
// Label is optional metadata to be stored with a contract instance.
334334
string label = 8;
335335
// Msg json encoded message to be passed to the contract on instantiation
336336
bytes msg = 9 [

proto/cosmwasm/wasm/v1/tx.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ message MsgStoreAndInstantiateContract {
399399
bool unpin_code = 5;
400400
// Admin is an optional address that can execute migrations
401401
string admin = 6 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
402-
// Label is optional metadata to be stored with a constract instance.
402+
// Label is optional metadata to be stored with a contract instance.
403403
string label = 7;
404404
// Msg json encoded message to be passed to the contract on instantiation
405405
bytes msg = 8 [
@@ -518,4 +518,4 @@ message MsgUpdateContractLabel {
518518
}
519519

520520
// MsgUpdateContractLabelResponse returns empty data
521-
message MsgUpdateContractLabelResponse {}
521+
message MsgUpdateContractLabelResponse {}

0 commit comments

Comments
 (0)