Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Apr 10, 2023
1 parent 4853e8e commit f5e46b1
Show file tree
Hide file tree
Showing 8 changed files with 4,732 additions and 11,883 deletions.
933 changes: 170 additions & 763 deletions example/package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions example/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethers-svelte-example",
"version": "0.0.1",
"version": "0.0.2",
"scripts": {
"dev": "vite dev",
"build": "vite build",
Expand All @@ -10,15 +10,15 @@
"highlight.js": "^11.6.0"
},
"devDependencies": {
"svelte-highlight": "^7.2.0",
"@openzeppelin/contracts": "^4.8.1",
"svelte-ethers-store": "file:../",
"svelte-highlight": "^7.2.1",
"@openzeppelin/contracts": "^4.8.2",
"ethers-svelte": "file:../",
"@fontsource/fira-mono": "^4.5.10",
"@neoconfetti/svelte": "^1.0.0",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.8.3",
"svelte": "^3.55.1",
"vite": "^4.1.4"
"@sveltejs/kit": "^1.15.2",
"svelte": "^3.58.0",
"vite": "^4.2.1"
},
"type": "module"
}
6 changes: 3 additions & 3 deletions example/src/lib/Components.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script>
import { connected, provider, signerAddress } from 'svelte-ethers-store'
import { connected, provider, signerAddress } from 'ethers-svelte'
import { test } from '$lib/cache'
import { Balance, Identicon, Jazzicon } from 'svelte-ethers-store/components'
import { Balance, Identicon, Jazzicon } from 'ethers-svelte/components'
import Highlight from 'svelte-highlight'
import { xml } from "svelte-highlight/languages"
Expand All @@ -22,7 +22,7 @@

<div class="content">

<h1>svelte-ethers-store</h1>
<h1>ethers-svelte</h1>

<h2>using Components</h2>

Expand Down
4 changes: 2 additions & 2 deletions example/src/lib/Contracts.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import { defaultEvmStores as evm, connected, chainId, chainData, contracts, signerAddress } from 'svelte-ethers-store'
import { defaultEvmStores as evm, connected, chainId, chainData, contracts, signerAddress } from 'ethers-svelte'
import IERC20 from '@openzeppelin/contracts/build/contracts/IERC20.json'
Expand All @@ -21,7 +21,7 @@

<div class="content">

<h1>svelte-ethers-store</h1>
<h1>ethers-svelte</h1>

<h2>using the '$contracts' store</h2>

Expand Down
4 changes: 2 additions & 2 deletions example/src/lib/Providers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
evmProviderType,
defaultEvmStores as evm
}
from 'svelte-ethers-store'
from 'ethers-svelte'
let type
let pending = false
Expand Down Expand Up @@ -74,7 +74,7 @@

<div class="content">

<h1>svelte-ethers-store</h1>
<h1>ethers-svelte</h1>

<h2>using setProvider()</h2>

Expand Down
2 changes: 1 addition & 1 deletion example/src/lib/cache.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import { ethers } from 'ethers'

import { defaultEvmStores, contracts } from 'svelte-ethers-store'
import { defaultEvmStores, contracts } from 'ethers-svelte'


export const test = () => {
Expand Down
Loading

0 comments on commit f5e46b1

Please sign in to comment.