Skip to content

Commit

Permalink
deps+typos
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Jan 1, 2022
1 parent 9e6c0da commit be6c8b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,24 +145,23 @@ not it's value).

### Reading stores outside of Svelte files

The `$` prefix Svelte notation to access store values in only
The `$` prefix Svelte notation to access store values is only
available inside Svelte files. To directly access the instantiated
values in pure javascript library without subscribing to the store,
you can use special getter on the library abstract helper:
you can use a special getter on the library abstract helper:

```js
// this is not a Svelte file but a standard JavaScript file
import { defaultEvmStores } from 'svelte-web3'


if (defaultEvmStores.$selectedAccount) {

// do something if store selectedAccount is non null

}
```

### Forcing a disconnect (and the remove all listeners)
### Forcing a disconnect (and removing all listeners)

Simply call the function `disconnect` directly on the on the library
abstract helper:
Expand Down Expand Up @@ -254,7 +253,7 @@ discussions in our [Discord](https://discord.gg/7yXuwDwaHF).
import { Balance } from 'svelte-web3/components'
</script>

<p>balance = <Balance address="0x0000000000000000000000000000000000000000" />
<p>balance = <Balance address="0x0000000000000000000000000000000000000000" /></p>

```

Expand Down Expand Up @@ -309,20 +308,17 @@ if you want to be listed in this section.

### Svelte basic example (based on rollup template)

Please check [`examples/svelte-app-template-web3` in github]
(https://github.com/clbrge/svelte-web3/tree/master/examples/svelte-app-template-web3).
Please check [`examples/svelte-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/svelte-app-template-web3).

Contains demos to use the default store and multi stores.

### SvelteKit basic example

Please check [`examples/sveltekit-app-template-web3` in github]
(https://github.com/clbrge/svelte-web3/tree/master/examples/sveltekit-app-template-web3).
Please check [`examples/sveltekit-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/sveltekit-app-template-web3).

### Sapper basic example (based on webpack template)

Please check [`examples/sapper-app-template-web3` in github]
(https://github.com/clbrge/svelte-web3/tree/master/examples/sapper-app-template-web3).
Please check [`examples/sapper-app-template-web3` in github](https://github.com/clbrge/svelte-web3/tree/master/examples/sapper-app-template-web3).

Please check `examples/sapper-app-template-web3` in github.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"svelte": "^3.0.0",
"svelte-proxied-store": "^0.2.0"
"svelte-proxied-store": "^1.0.0"
},
"devDependencies": {
"eslint-plugin-svelte3": "^3.2.1",
Expand Down

0 comments on commit be6c8b7

Please sign in to comment.