Skip to content

Commit

Permalink
refactor & upgrade example fix #46
Browse files Browse the repository at this point in the history
  • Loading branch information
clbrge committed Jun 3, 2023
1 parent 42eaaea commit b343839
Show file tree
Hide file tree
Showing 83 changed files with 20,471 additions and 13,255 deletions.
File renamed without changes.
File renamed without changes.
16,023 changes: 5,808 additions & 10,215 deletions examples/svelte-vite-template-web3/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/svelte-vite-template-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"devDependencies": {
"@openzeppelin/contracts": "^4.7.3",
"@sveltejs/vite-plugin-svelte": "^1.0.1",
"svelte": "^3.49.0",
"@openzeppelin/contracts": "^4.9.0",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"svelte": "^3.59.1",
"svelte-web3": "file:../../",
"vite": "^3.0.7"
"vite": "^4.3.9"
}
}
4 changes: 0 additions & 4 deletions examples/svelte-vite-template-web3/src/Contracts.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,4 @@

{/if}

{#if false}
<button class="button" on:click={exec}>Send 0.01 Gorli ETH to the zero address</button>
{/if}

</div>
2 changes: 2 additions & 0 deletions examples/svelte-vite-template-web3/src/Providers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
Localhost4: () => evm.setProvider('http://127.0.0.1:8545', 4),
LocalhostNull: () => evm.setProvider('http://127.0.0.1:8545', null),
Gnosis: () => evm.setProvider('https://rpc.gnosischain.com'),
Goerli: () => evm.setProvider('https://rpc.goerli.mudit.blog/'),
Arbitrum: () => evm.setProvider('https://arb1.arbitrum.io/rpc'),
}
console.log('[example]', type, handler[type])
Expand Down Expand Up @@ -61,6 +62,7 @@
<option value="Browser">Browser (window.ethereum)</option>
<option value="Localhost">Localhost (eg ganache or hardhat on http://127.0.0.1:8545)</option>
<option value="Localhost4">Localhost using account index 4</option>
<option value="Goerli">https://rpc.goerli.mudit.blog (RPC)</option>
<option value="Gnosis">https://rpc.gnosischain.com (RPC)</option>
<option value="Arbitrum">https://arb1.arbitrum.io/rpc (RPC)</option>
</select>
Expand Down
2 changes: 2 additions & 0 deletions examples/sveltekit-app-template-web3/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ node_modules
!.env.example
.vercel
.output
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
2 changes: 2 additions & 0 deletions examples/sveltekit-app-template-web3/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
engine-strict=true
resolution-mode=highest

0 comments on commit b343839

Please sign in to comment.