diff --git a/README.md b/README.md index cd3e69f1e6..9fc1f913d4 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ For help using Keplr Wallet, Visit our [User Support Site](https://help.keplr.ap - protoc v21.3 (recommended) ```sh - # This script is example for mac arm64 user. for other OS, replace URL(starts with https://..) to be matched with your OS from https://github.com/protocolbuffers/protobuf/releases/tag/v21.3 + # This script is an example for mac arm64 user. for other OS, replace URL(starts with https://..) to be matched with your OS from https://github.com/protocolbuffers/protobuf/releases/tag/v21.3 curl -Lo protoc-21.3.zip https://github.com/protocolbuffers/protobuf/releases/download/v21.3/protoc-21.3-osx-aarch_64.zip unzip protoc-21.3.zip -d $HOME/protoc cp -r $HOME/protoc/include /usr/local @@ -71,7 +71,7 @@ Usage of any other packages besides @keplr-wallet/types is not recommended. - Any other packages besides @keplr-wallet/types are actively being developed, backward compatibility is not in the scope of support. - Since there are active changes being made, documentation is not being updated to the most recent version of the package as of right now. Documentations would be updated as packages get stable. -Also, this repo contains submodules that are not open sourced and are only available through the Chainapsis’ official Keplr Browser Extension release. However, all primary features of the extension will work without the closed sourced submodules. +Also, this repo contains submodules that are not open-sourced and are only available through the Chainapsis’ official Keplr Browser Extension release. However, all primary features of the extension will work without the closed-sourced submodules. ## License diff --git a/docs/docs/01-intro.md b/docs/docs/01-intro.md index 89ca1f0a78..8c8c168f91 100644 --- a/docs/docs/01-intro.md +++ b/docs/docs/01-intro.md @@ -21,7 +21,7 @@ Keplr is a non-custodial blockchain wallets for webpages that allow users to int [Use with cosmjs](./03-cosmjs.md) describes how to use cosmjs with Keplr. -[Use with secretjs](./04-secretjs.md) describes how to use secretjs with Keplr if you need to use secret-wasm feature. +[Use with secretjs](./04-secretjs.md) describes how to use secretjs with Keplr if you need to use the secret-wasm feature. [Suggest chain](./05-suggest-chain.md) describes how to suggest the chain to Keplr if the chain is not supported natively in Keplr. diff --git a/docs/docs/02-basic-api.md b/docs/docs/02-basic-api.md index 4394e2e1a0..77b6ecd652 100644 --- a/docs/docs/02-basic-api.md +++ b/docs/docs/02-basic-api.md @@ -5,7 +5,7 @@ order: 1 ## How to detect Keplr -You can determine whether Keplr is installed on the user device by checking `window.keplr`. If `window.keplr` returns `undefined` after document.load, Keplr is not installed. There are several ways to wait for the load event to check the status. Refer to the examples below: +You can determine whether Keplr is installed on the user's device by checking `window.keplr`. If `window.keplr` returns `undefined` after document.load, Keplr is not installed. There are several ways to wait for the load event to check the status. Refer to the examples below: You can register the function to `window.onload`: @@ -73,7 +73,7 @@ There may be multiple ways to achieve the same result, and no preferred method. If you were able to connect Keplr with CosmJS, you may skip to the [Use Keplr with CosmJS](./03-cosmjs.md) section. -While Keplr supports an easy way to connect to CosmJS, there are additional functions specific to Keplr which provide additional features. +While Keplr supports an easy way to connect to CosmJS, there are additional functions specific to Keplr that provide additional features. ### Using with Typescript **`window.d.ts`** @@ -88,7 +88,7 @@ declare global { The `@keplr-wallet/types` package has the type definition related to Keplr. If you're using TypeScript, run `npm install --save-dev @keplr-wallet/types` or `yarn add -D @keplr-wallet/types` to install `@keplr-wallet/types`. -Then, you can add the `@keplr-wallet/types` window to a global window object and register the Keplr related types. +Then, you can add the `@keplr-wallet/types` window to a global window object and register the Keplr-related types. > Usage of any other packages besides @keplr-wallet/types is not recommended. > - Any other packages besides @keplr-wallet/types are actively being developed, backward compatibility is not in the scope of support. @@ -133,7 +133,7 @@ If the webpage has permission and Keplr is unlocked, this function will return t } ``` -It also returns the nickname for the key store currently selected, which should allow the webpage to display the current key store selected to the user in a more convenient mane. +It also returns the nickname for the key store currently selected, which should allow the webpage to display the current key store selected to the user in a more convenient manner. `isNanoLedger` field in the return type is used to indicate whether the selected account is from the Ledger Nano. Because current Cosmos app in the Ledger Nano doesn't support the direct (protobuf) format msgs, this field can be used to select the amino or direct signer. [Ref](./03-cosmjs.md#types-of-offline-signers) ### Sign Amino diff --git a/docs/docs/04-secretjs.md b/docs/docs/04-secretjs.md index 76ff572b86..18dd921180 100644 --- a/docs/docs/04-secretjs.md +++ b/docs/docs/04-secretjs.md @@ -45,8 +45,8 @@ const cosmJS = new SigningCosmWasmClient( async suggestToken(chainId: string, contractAddress: string): Promise ``` -The webpage can request the user permission to add a SNIP-20 token to Keplr's token list. Will throw an error if the user rejects the request. -If a SNIP-20 with the same contract address already exists, nothing will happen. +The webpage can request the user's permission to add a SNIP-20 token to Keplr's token list. Will throw an error if the user rejects the request. +If an SNIP-20 with the same contract address already exists, nothing will happen. ### Get SNIP-20 Viewing Key ```javascript diff --git a/docs/docs/05-suggest-chain.md b/docs/docs/05-suggest-chain.md index 7f94739399..f452815e42 100644 --- a/docs/docs/05-suggest-chain.md +++ b/docs/docs/05-suggest-chain.md @@ -7,7 +7,7 @@ order: 4 *Warning: This is an experimental feature.* -Keplr's 'suggest chain' feature allows front-ends to request adding new Cosmos-SDK based blockchains that aren't natively integrated to Keplr extension. +Keplr's 'suggest chain' feature allows front-ends to request adding new Cosmos-SDK based blockchains that aren't natively integrated into Keplr extension. If the same chain is already added to Keplr, nothing will happen. If the user rejects the request, an error will be thrown. This allows all Cosmos-SDK blockchains to have permissionless, instant wallet and transaction signing support for front-ends. @@ -55,7 +55,7 @@ experimentalSuggestChain(chainInfo: SuggestingChainInfo): Promise |-|-|-| | `rpc` | `http://123.456.789.012:26657` | Address of RPC endpoint of the chain. Default port is 26657 | | `rest` | `http://123.456.789.012:1317` | Address of REST/API endpoint of the chain. Default port is 1317. Must be enabled in `app.toml` | -| `chainId` | mychain-1 | Keplr has a feature which automatically detects when the chain-id has changed, and automatically update to support new chain. However, it should be noted that this functionality will only work when the chain-id follows the \{identifier\}-\{version\}(ex.cosmoshub-4) format. Therefore, it is recommended that the chain follows the chain-id format. | +| `chainId` | mychain-1 | Keplr has a feature which automatically detects when the chain-id has changed, and automatically updates to support new chain. However, it should be noted that this functionality will only work when the chain-id follows the \{identifier\}-\{version\}(ex.cosmoshub-4) format. Therefore, it is recommended that the chain follows the chain-id format. | | `stakeCurrency` | ```{ coinDenom: "ATOM", coinMinimalDenom: "uatom", coinDecimals: 6, coinGeckoId: "cosmos", }``` | Information on the staking token of the chain | | `walletUrlForStaking` | https://wallet.keplr.app/chains/cosmos-hub | The URL for the staking interface frontend for the chain. If you don't have a staking interface built, you can use [Lunie Light](https://github.com/luniehq/lunie-light) which supports Keplr. | | `bip44.coinType` | 118 | BIP44 coin type for address derivation. We recommend using `118`(Cosmos Hub) as this would provide good Ledger hardware wallet compatibility by utilizing the Cosmos Ledger app. |