Skip to content

Commit

Permalink
some updates
Browse files Browse the repository at this point in the history
  • Loading branch information
d1onys1us committed Jun 4, 2023
1 parent 9469b5d commit 4118737
Show file tree
Hide file tree
Showing 10 changed files with 337 additions and 530 deletions.
30 changes: 15 additions & 15 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
"devDependencies": {
"@picocss/pico": "^1.5.10",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/kit": "^1.19.0",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"@wagmi/cli": "^1.0.2",
"@wagmi/core": "^1.0.6",
"@web3modal/ethereum": "^2.4.1",
"@web3modal/html": "^2.4.1",
"abitype": "^0.8.4",
"eslint": "^8.41.0",
"@sveltejs/kit": "^1.20.1",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@wagmi/cli": "^1.1.0",
"@wagmi/core": "^1.1.0",
"@web3modal/ethereum": "^2.4.2",
"@web3modal/html": "^2.4.2",
"abitype": "^0.8.7",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-svelte3": "^4.0.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.0",
"prettier-plugin-svelte": "^2.10.1",
"svelte": "^3.59.1",
"svelte-check": "^3.3.2",
"tslib": "^2.5.2",
"typescript": "^5.0.4",
"viem": "^0.3.37",
"vite": "^4.3.8",
"svelte-check": "^3.4.3",
"tslib": "^2.5.3",
"typescript": "^5.1.3",
"viem": "^0.3.50",
"vite": "^4.3.9",
"vite-plugin-node-polyfills": "^0.8.2"
}
}
138 changes: 0 additions & 138 deletions packages/app/src/components/SignalServiceInteraction.svelte

This file was deleted.

8 changes: 4 additions & 4 deletions packages/app/src/domain/chain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Chain } from "@wagmi/core";
import type { Chain } from "viem/chains";

export const base = {
id: 84531,
Expand All @@ -20,11 +20,11 @@ export const base = {
} as const satisfies Chain;

export const taiko = {
id: 167001,
id: 167005,
name: "Taiko",
network: "alpha-3",
nativeCurrency: {
name: "Taiko Ether",
name: "Ether",
symbol: "ETH",
decimals: 18,
},
Expand All @@ -38,7 +38,7 @@ export const taiko = {
},
blockExplorers: {
default: {
name: "L2 Explorer",
name: "blockscout",
url: "https://explorer.test.taiko.xyz",
},
},
Expand Down
19 changes: 0 additions & 19 deletions packages/app/src/domain/sepoliaBlock.ts

This file was deleted.

4 changes: 3 additions & 1 deletion packages/app/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
$ethereumClient = new EthereumClient(wagmiConfig, chains);
$web3Modal = new Web3Modal({ projectId, defaultChain: sepolia }, $ethereumClient);
// TODO: can initialize viem client instances here to svelte stores
});
</script>

Expand All @@ -30,7 +32,7 @@
<li><a href="/">Home</a></li>
</ul>
<ul>
<li><a href="/signal-service">Signal service</a></li>
<li><a href="/another-page">Another page</a></li>
<li><w3m-network-switch /></li>
<li>
<w3m-core-button balance="show" icon="hide" />
Expand Down
1 change: 1 addition & 0 deletions packages/app/src/routes/another-page/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Another page
6 changes: 0 additions & 6 deletions packages/app/src/routes/signal-service/+page.svelte

This file was deleted.

4 changes: 0 additions & 4 deletions packages/app/src/stores.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { writable } from "svelte/store";
import type { EthereumClient } from "@web3modal/ethereum";
import type { Client } from "@wagmi/core";
import type { Web3Modal } from "@web3modal/html";
import type { ethers } from "ethers";

export const ethereumClient = writable<EthereumClient>();
export const wagmiClient = writable<Client>();
export const web3Modal = writable<Web3Modal>();
export const providers = writable<{ [chainId: number]: ethers.providers.JsonRpcProvider }>();
39 changes: 20 additions & 19 deletions packages/app/wagmi.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,26 @@ const chains = { ...viemChains, base, taiko };

export default defineConfig({
out: "src/generated.ts",
contracts: [
{
name: "SignalService",
abi: signalServiceABI as Abi,
address: {
[chains.sepolia.id]: "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
// private l1
[chains.taiko.id]: "0x1000777700000000000000000000000000000007",
},
},
{
name: "TaikoL2",
abi: taikoL2ABI as Abi, // only using headerSyncABI for now
address: {
[chains.taiko.id]: "0x1000777700000000000000000000000000000001",
},
},
],
// pull ABI from foundry deployment
// Uncomment if you want to add some external contracts here
// contracts: [
// {
// name: "SignalService",
// abi: signalServiceABI as Abi,
// address: {
// [chains.sepolia.id]: "0x7a2088a1bFc9d81c55368AE168C2C02570cB814F",
// // private l1
// [chains.taiko.id]: "0x1000777700000000000000000000000000000007",
// },
// },
// {
// name: "TaikoL2",
// abi: taikoL2ABI as Abi, // only using headerSyncABI for now
// address: {
// [chains.taiko.id]: "0x1000777700000000000000000000000000000001",
// },
// },
// ],
// Pull ABI from Foundry deployment
plugins: [
foundry({
deployments: {
Expand Down
Loading

1 comment on commit 4118737

@vercel
Copy link

@vercel vercel bot commented on 4118737 Jun 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dapp-slaps – ./

dapp-slaps.vercel.app
dapp-slaps-git-main-d1onys1us.vercel.app
dapp-slaps-d1onys1us.vercel.app

Please sign in to comment.