Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
feat: more small text changes (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
danforbes authored Oct 12, 2023
1 parent d5375fc commit e0f3d4f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,25 @@ capabilities to include support for Polkadot, Kusama, and other
[Substrate](https://docs.substrate.io/)- and FRAME-based blockchains in the
[Polkadot](https://www.polkadot.network/) ecosystem.

#### Extension
## Documentation

Polkadot Wallet snap architecture, integration steps and detailed API documentation for dApp
developers is covered in the
[project wiki](https://github.com/ChainSafe/metamask-snap-polkadot/wiki), which also includes a
usage guide for the [example dApp](https://polkadot.snap.chainsafe.io/).

## Local Development

Developers who wish to use the snap locally must use [MetaMask Flask](https://metamask.io/flask/);
run the following commands from the project root to launch the
[Polkadot Wallet Snap Example dApp](https://github.com/ChainSafe/metamask-snap-polkadot/tree/master/packages/example).

- `yarn install`
- `yarn run demo`


### License
## License

Copyright [2020] [ChainSafe Systems]

Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -27,4 +40,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CloseIcon from '@material-ui/icons/Close';
import React, { Fragment, useCallback, useContext, useEffect } from 'react';
import Alert from '@material-ui/lab/Alert';
import { MetamaskActions, MetaMaskContext } from '../../context/metamask';
import { initiatePolkdatodSnap, isPolkadotSnapInstalled } from '../../services/metamask';
import { initiatePolkadotSnap, isPolkadotSnapInstalled } from '../../services/metamask';

export const MetaMaskConnector = (): React.JSX.Element => {
const [state, dispatch] = useContext(MetaMaskContext);
Expand All @@ -20,7 +20,7 @@ export const MetaMaskConnector = (): React.JSX.Element => {
}, [dispatch]);

const installSnap = useCallback(async (): Promise<void> => {
const installResult = await initiatePolkdatodSnap();
const installResult = await initiatePolkadotSnap();
if (!installResult.isSnapInstalled) {
dispatch({
payload: {
Expand Down
2 changes: 1 addition & 1 deletion packages/example/src/services/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface SnapInitializationResponse {
snap?: MetamaskPolkadotSnap;
}

export async function initiatePolkdatodSnap(): Promise<SnapInitializationResponse> {
export async function initiatePolkadotSnap(): Promise<SnapInitializationResponse> {
const snapId = process.env.REACT_APP_SNAP_ID ? process.env.REACT_APP_SNAP_ID : defaultSnapId;

try {
Expand Down
19 changes: 15 additions & 4 deletions packages/snap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,28 @@ capabilities to include support for Polkadot, Kusama, and other
[Substrate](https://docs.substrate.io/)- and FRAME-based blockchains in the
[Polkadot](https://www.polkadot.network/) ecosystem.

#### Extension
## Documentation

Developers who wish to use the extension locally must use [MetaMask Flask](https://metamask.io/flask/);
Polkadot Wallet snap architecture, integration steps and detailed API documentation for dApp
developers is covered in the
[project wiki](https://github.com/ChainSafe/metamask-snap-polkadot/wiki), which also includes a
usage guide for the [example dApp](https://polkadot.snap.chainsafe.io/). Additional
documentation is available on the
[homepage](https://github.com/ChainSafe/metamask-snap-polkadot#polkadot-wallet-snap-for-metamask)
for the project's GitHub repository.

## Local Development

Developers who wish to use the snap locally must use [MetaMask Flask](https://metamask.io/flask/);
run the following commands from the project root to launch the
[Polkadot Wallet Snap Example dApp](https://github.com/ChainSafe/metamask-snap-polkadot/tree/master/packages/example).

- `yarn install`
- `yarn run demo`


### License
## License

Copyright [2020] [ChainSafe Systems]

Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -32,4 +43,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.

0 comments on commit e0f3d4f

Please sign in to comment.