All Deployments
diff --git a/src/routes/counter/Counter.svelte.ts b/src/routes/counter/Counter.svelte.ts
deleted file mode 100644
index 8a6e9c7..0000000
--- a/src/routes/counter/Counter.svelte.ts
+++ /dev/null
@@ -1,32 +0,0 @@
-import type { Address } from "viem";
-import { SmartContract, isAddress } from "$lib/wagmi";
-
-class Counter extends SmartContract {
- get number() {
- return this.call("number") as bigint;
- }
- increment = async () => {
- await this.sendAndWait("increment");
- await this.callAsync("number");
- };
- setNumber = async (num: number | bigint = 1n) => {
- await this.sendAndWait("setNumber", [num]);
- await this.callAsync("number");
- };
- square(num: number | bigint = 1n) {
- return this.call("square", [num]) as bigint;
- }
- balanceOf(address: Address) {
- if (!isAddress(address)) return;
-
- const balance = this.call("balanceOf", [address]) as bigint;
-
- return balance;
- }
-
- constructor() {
- super("Counter");
- }
-}
-
-export { Counter };
diff --git a/src/routes/notification/+page.svelte b/src/routes/notification/+page.svelte
deleted file mode 100644
index 8a7307a..0000000
--- a/src/routes/notification/+page.svelte
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
diff --git a/src/routes/quick/counter/+page.svelte b/src/routes/quick/counter/+page.svelte
new file mode 100644
index 0000000..e9e64cf
--- /dev/null
+++ b/src/routes/quick/counter/+page.svelte
@@ -0,0 +1,28 @@
+
+
+
+ Using Counter class Helper
+
+ {counter.number}² = {counter.square(counter.number)}
+
+
+
+
+ Using SmartContract class
+
+ {num}² = {square}
+
+
diff --git a/src/routes/quick/notification/+page.svelte b/src/routes/quick/notification/+page.svelte
new file mode 100644
index 0000000..3e79573
--- /dev/null
+++ b/src/routes/quick/notification/+page.svelte
@@ -0,0 +1,23 @@
+
+
+
+
Notifications
+
+
+
+
+
+
+
diff --git a/turbo.json b/turbo.json
index fdca7f2..b3dc4a9 100644
--- a/turbo.json
+++ b/turbo.json
@@ -1,43 +1,68 @@
{
"$schema": "https://turbo.build/schema.json",
+ "globalPassThroughEnv": [
+ "PUBLIC_CHAINS",
+ "PUBLIC_POLLING_INTERVAL",
+ "PUBLIC_ALCHEMY_API_KEY",
+ "PUBLIC_WALLET_CONNECT_PROJECT_ID",
+ "PUBLIC_BURNER_WALLET_ONLY_LOCAL",
+ "PUBLIC_BURNER_WALLET_KEY"
+ ],
"envMode": "strict",
"ui": "stream",
"tasks": {
"format": {
- "inputs": ["src/**", "test/**"],
+ "inputs": [
+ "src/**",
+ "test/**"
+ ],
"outputLogs": "new-only"
},
"check": {
- "dependsOn": ["format"],
+ "dependsOn": [
+ "format"
+ ],
"outputLogs": "new-only"
},
"build": {
- "dependsOn": ["check"],
+ "dependsOn": [
+ "check"
+ ],
"outputLogs": "new-only"
},
"test": {
- "dependsOn": ["build"],
+ "dependsOn": [
+ "build"
+ ],
"cache": false,
"outputLogs": "new-only"
},
"dev": {
"cache": false,
"persistent": true,
- "inputs": ["src/**"],
+ "inputs": [
+ "src/**"
+ ],
"outputLogs": "new-only"
},
"start": {
- "dependsOn": ["check"],
+ "dependsOn": [
+ "check"
+ ],
"cache": false,
"persistent": true,
- "inputs": ["src/**"],
+ "inputs": [
+ "src/**"
+ ],
"outputLogs": "new-only"
},
"preview": {
- "dependsOn": ["build"],
+ "dependsOn": [
+ "build"
+ ],
"cache": false,
"persistent": true,
"outputLogs": "new-only"
}
}
-}
+}
\ No newline at end of file