-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
164 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Contributing to svelte-web3 | ||
|
||
Thanks for your interest in improving svelte-web3! We welcome | ||
contributions of all kinds: from discussion to documentation to | ||
bugfixes to feature improvements. | ||
|
||
Please review this document to help to streamline the process and save | ||
everyone's precious time. | ||
|
||
## Issues | ||
|
||
No software is bug-free. So, if you got an issue, follow these steps: | ||
|
||
- Search the [issue list](https://github.com/clbrge/svelte-web3/issues) for current and old issues. | ||
- If you find an existing issue, please UPVOTE the issue by adding a "thumbs-up reaction". We use this to help prioritize issues! | ||
- If none of that is helping, create an issue with the following information: | ||
- Clear title (shorter is better). | ||
- Describe the issue in clear language. | ||
- Share error logs, screenshots and etc. | ||
- To speed up the issue fixing process, send us a sample repo with the issue you faced: | ||
|
||
## Pull Requests (PRs) | ||
|
||
We welcome all contributions. There are many ways you can help us. This is few of those ways: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,29 @@ | |
"name": "svelte-web3", | ||
"version": "2.3.5", | ||
"description": "web3.js as a collection of stores for Svelte, Sapper or SvelteKit.", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"svelte": "src/web3-store.js", | ||
"types": "dist/svelte-web3.d.ts", | ||
"license": "MIT", | ||
"repository": "clbrge/svelte-web3", | ||
"author": { | ||
"name": "Christophe Le Bars", | ||
"email": "<[email protected]>" | ||
}, | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"svelte": "src/web3-store.js", | ||
"types": "dist/svelte-web3.d.ts", | ||
"exports":{ | ||
"./package.json": "./package.json", | ||
".":{ | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"svelte": "./src/web3-store.js", | ||
"types": "./dist/svelte-web3.d.ts" | ||
}, | ||
"./components":{ | ||
"import": "./src/components/index.js", | ||
"svelte": "./src/components/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
"update-chains": "node ./scripts/update-chains.js", | ||
"build": "rollup -c" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<script> | ||
import { web3, connected } from 'svelte-web3' | ||
export let address | ||
export let pending = 'pending' | ||
// todo format + symbol | ||
$: balance = $connected && address ? $web3.eth.getBalance(address) : '' | ||
</script> | ||
|
||
{#if address}{#await balance}{pending}{:then value}{value}{/await}{/if} |
Oops, something went wrong.