From 6d4269a5c5ffa6bba031590cc82c5abaec610df4 Mon Sep 17 00:00:00 2001 From: James Kay Date: Wed, 27 Aug 2025 20:16:46 +0100 Subject: [PATCH] Remove hosted examples: these live in `linera-protocol` now --- examples/hosted-counter-metamask/.env | 1 - examples/hosted-counter-metamask/index.html | 115 -------- examples/hosted-counter-metamask/package.json | 21 -- .../hosted-counter-metamask/public/arrow.svg | 1 - .../hosted-counter-metamask/public/icon.png | 1 - .../public/js/@linera/client | 1 - .../hosted-counter-metamask/public/style.css | 1 - .../hosted-counter-metamask/vite.config.ts | 27 -- examples/hosted-counter/.env | 1 - examples/hosted-counter/index.html | 114 -------- examples/hosted-counter/package.json | 22 -- examples/hosted-counter/public/arrow.svg | 1 - examples/hosted-counter/public/icon.png | 1 - .../hosted-counter/public/js/@linera/client | 1 - examples/hosted-counter/public/style.css | 1 - examples/hosted-counter/vite.config.ts | 27 -- examples/hosted-fungible/.env | 1 - examples/hosted-fungible/index.html | 264 ------------------ examples/hosted-fungible/package.json | 22 -- examples/hosted-fungible/public/arrow.svg | 1 - examples/hosted-fungible/public/icon.png | 1 - .../hosted-fungible/public/js/@linera/client | 1 - examples/hosted-fungible/public/style.css | 1 - examples/hosted-fungible/vite.config.ts | 35 --- linera-protocol | 2 +- 25 files changed, 1 insertion(+), 663 deletions(-) delete mode 120000 examples/hosted-counter-metamask/.env delete mode 100644 examples/hosted-counter-metamask/index.html delete mode 100644 examples/hosted-counter-metamask/package.json delete mode 120000 examples/hosted-counter-metamask/public/arrow.svg delete mode 120000 examples/hosted-counter-metamask/public/icon.png delete mode 120000 examples/hosted-counter-metamask/public/js/@linera/client delete mode 120000 examples/hosted-counter-metamask/public/style.css delete mode 100644 examples/hosted-counter-metamask/vite.config.ts delete mode 120000 examples/hosted-counter/.env delete mode 100644 examples/hosted-counter/index.html delete mode 100644 examples/hosted-counter/package.json delete mode 120000 examples/hosted-counter/public/arrow.svg delete mode 120000 examples/hosted-counter/public/icon.png delete mode 120000 examples/hosted-counter/public/js/@linera/client delete mode 120000 examples/hosted-counter/public/style.css delete mode 100644 examples/hosted-counter/vite.config.ts delete mode 120000 examples/hosted-fungible/.env delete mode 100644 examples/hosted-fungible/index.html delete mode 100644 examples/hosted-fungible/package.json delete mode 120000 examples/hosted-fungible/public/arrow.svg delete mode 120000 examples/hosted-fungible/public/icon.png delete mode 120000 examples/hosted-fungible/public/js/@linera/client delete mode 120000 examples/hosted-fungible/public/style.css delete mode 100644 examples/hosted-fungible/vite.config.ts diff --git a/examples/hosted-counter-metamask/.env b/examples/hosted-counter-metamask/.env deleted file mode 120000 index c7360fb..0000000 --- a/examples/hosted-counter-metamask/.env +++ /dev/null @@ -1 +0,0 @@ -../../.env \ No newline at end of file diff --git a/examples/hosted-counter-metamask/index.html b/examples/hosted-counter-metamask/index.html deleted file mode 100644 index 9c92e35..0000000 --- a/examples/hosted-counter-metamask/index.html +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - Linera | Counter - - - - - -
-
-
-

MetaMask Counter

-

- This is a simple application tracking some on-chain state that remembers the value of an integer counter, with transactions signed by MetaMask. -

-

- You'll need to have MetaMask installed and connected to the page for this demo to run. -

-

- Click the button to ask MetaMask to sign a block with your key that increments the counter. -

-
-
-

Clicks: 0

- -
-
- -
-

Connected as requesting owner…

-

Chain history for requesting chain…

-
    - -
-
- - - - - - - diff --git a/examples/hosted-counter-metamask/package.json b/examples/hosted-counter-metamask/package.json deleted file mode 100644 index 74b1f5e..0000000 --- a/examples/hosted-counter-metamask/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "name": "@linera/examples/hosted-counter-metamask", - "private": true, - "author": "Linera ", - "license": "Apache-2.0", - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview", - "ci": "pnpm build" - }, - "dependencies": { - "@linera/client": "workspace:*", - "@linera/signer": "workspace:*" - }, - "devDependencies": { - "vite": "^5.4.11" - } -} diff --git a/examples/hosted-counter-metamask/public/arrow.svg b/examples/hosted-counter-metamask/public/arrow.svg deleted file mode 120000 index 77d21e2..0000000 --- a/examples/hosted-counter-metamask/public/arrow.svg +++ /dev/null @@ -1 +0,0 @@ -../../assets/arrow.svg \ No newline at end of file diff --git a/examples/hosted-counter-metamask/public/icon.png b/examples/hosted-counter-metamask/public/icon.png deleted file mode 120000 index b3dee6a..0000000 --- a/examples/hosted-counter-metamask/public/icon.png +++ /dev/null @@ -1 +0,0 @@ -../../assets/icon.png \ No newline at end of file diff --git a/examples/hosted-counter-metamask/public/js/@linera/client b/examples/hosted-counter-metamask/public/js/@linera/client deleted file mode 120000 index ad71613..0000000 --- a/examples/hosted-counter-metamask/public/js/@linera/client +++ /dev/null @@ -1 +0,0 @@ -../../../node_modules/@linera/client/dist \ No newline at end of file diff --git a/examples/hosted-counter-metamask/public/style.css b/examples/hosted-counter-metamask/public/style.css deleted file mode 120000 index 1e19e62..0000000 --- a/examples/hosted-counter-metamask/public/style.css +++ /dev/null @@ -1 +0,0 @@ -../../assets/style.css \ No newline at end of file diff --git a/examples/hosted-counter-metamask/vite.config.ts b/examples/hosted-counter-metamask/vite.config.ts deleted file mode 100644 index d50d18d..0000000 --- a/examples/hosted-counter-metamask/vite.config.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { defineConfig } from 'vite'; - -// https://vitejs.dev/config/ -export default defineConfig({ - base: '', - server: { - headers: { - 'Cross-Origin-Embedder-Policy': 'require-corp', - 'Cross-Origin-Opener-Policy': 'same-origin', - }, - }, - build: { - rollupOptions: { - external: ['@linera/client'], - }, - }, - esbuild: { - supported: { - 'top-level-await': true, - }, - }, - optimizeDeps: { - exclude: [ - '@linera/client', - ], - }, -}) diff --git a/examples/hosted-counter/.env b/examples/hosted-counter/.env deleted file mode 120000 index c7360fb..0000000 --- a/examples/hosted-counter/.env +++ /dev/null @@ -1 +0,0 @@ -../../.env \ No newline at end of file diff --git a/examples/hosted-counter/index.html b/examples/hosted-counter/index.html deleted file mode 100644 index f8b2c28..0000000 --- a/examples/hosted-counter/index.html +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - Linera | Counter - - - - - -
-
-
-

Counter

-

- This is a simple application tracking some on-chain state that remembers the value of an integer counter. -

-

- Click the button to submit a block that increments the counter, and watch your local node's state update in real-time. -

-
-
-

Clicks: 0

- -
-
- -
-

Connected as requesting owner…

-

Chain history for requesting chain…

-
    - -
-
- - - - - - - diff --git a/examples/hosted-counter/package.json b/examples/hosted-counter/package.json deleted file mode 100644 index 1e3c2bc..0000000 --- a/examples/hosted-counter/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@linera/examples/hosted-counter", - "private": true, - "author": "Linera ", - "license": "Apache-2.0", - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview", - "ci": "pnpm build" - }, - "dependencies": { - "@linera/client": "workspace:*", - "@linera/signer": "workspace:*", - "ethers": "^6.14.3" - }, - "devDependencies": { - "vite": "^5.4.11" - } -} diff --git a/examples/hosted-counter/public/arrow.svg b/examples/hosted-counter/public/arrow.svg deleted file mode 120000 index 77d21e2..0000000 --- a/examples/hosted-counter/public/arrow.svg +++ /dev/null @@ -1 +0,0 @@ -../../assets/arrow.svg \ No newline at end of file diff --git a/examples/hosted-counter/public/icon.png b/examples/hosted-counter/public/icon.png deleted file mode 120000 index b3dee6a..0000000 --- a/examples/hosted-counter/public/icon.png +++ /dev/null @@ -1 +0,0 @@ -../../assets/icon.png \ No newline at end of file diff --git a/examples/hosted-counter/public/js/@linera/client b/examples/hosted-counter/public/js/@linera/client deleted file mode 120000 index ad71613..0000000 --- a/examples/hosted-counter/public/js/@linera/client +++ /dev/null @@ -1 +0,0 @@ -../../../node_modules/@linera/client/dist \ No newline at end of file diff --git a/examples/hosted-counter/public/style.css b/examples/hosted-counter/public/style.css deleted file mode 120000 index 1e19e62..0000000 --- a/examples/hosted-counter/public/style.css +++ /dev/null @@ -1 +0,0 @@ -../../assets/style.css \ No newline at end of file diff --git a/examples/hosted-counter/vite.config.ts b/examples/hosted-counter/vite.config.ts deleted file mode 100644 index d50d18d..0000000 --- a/examples/hosted-counter/vite.config.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { defineConfig } from 'vite'; - -// https://vitejs.dev/config/ -export default defineConfig({ - base: '', - server: { - headers: { - 'Cross-Origin-Embedder-Policy': 'require-corp', - 'Cross-Origin-Opener-Policy': 'same-origin', - }, - }, - build: { - rollupOptions: { - external: ['@linera/client'], - }, - }, - esbuild: { - supported: { - 'top-level-await': true, - }, - }, - optimizeDeps: { - exclude: [ - '@linera/client', - ], - }, -}) diff --git a/examples/hosted-fungible/.env b/examples/hosted-fungible/.env deleted file mode 120000 index c7360fb..0000000 --- a/examples/hosted-fungible/.env +++ /dev/null @@ -1 +0,0 @@ -../../.env \ No newline at end of file diff --git a/examples/hosted-fungible/index.html b/examples/hosted-fungible/index.html deleted file mode 100644 index 9c089af..0000000 --- a/examples/hosted-fungible/index.html +++ /dev/null @@ -1,264 +0,0 @@ - - - - - - Linera | Fungible - - - - - -
-
-
-

Fungible

-

- This application is a demo to showcase personal chains, real-time transfers, - and trustless user interfaces in Linera. -

-

Send funds to a friend and watch their balance update in real time.

-

- This web page is hosting a Linera client connected with a Linera test network. - Each user is given an account on a new personal chain. To send and receive - tokens, the chain of a user is extended with new blocks. Blocks are validated - and synchronized over the Linera network in real time. Clients execute blocks - locally in a Wasm virtual machine, allowing the displayed balance to be refreshed - instantly and securely. -

-
-
-

Account

- - - -

Balance

-

- retrieving funds… - -

- -

Transfer

-
- - - - - -
- -
    - -
-
-
- -
-

Connected as requesting owner…

-

Chain history for requesting a new microchain…

-
    - -
-
- - - - - diff --git a/examples/hosted-fungible/package.json b/examples/hosted-fungible/package.json deleted file mode 100644 index b72828d..0000000 --- a/examples/hosted-fungible/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "@linera/examples/hosted-fungible", - "private": true, - "author": "Linera ", - "license": "Apache-2.0", - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "preview": "vite preview", - "ci": "pnpm build" - }, - "dependencies": { - "@linera/client": "workspace:*", - "@linera/signer": "workspace:*", - "ethers": "^6.14.3" - }, - "devDependencies": { - "vite": "^5.4.11" - } -} diff --git a/examples/hosted-fungible/public/arrow.svg b/examples/hosted-fungible/public/arrow.svg deleted file mode 120000 index 77d21e2..0000000 --- a/examples/hosted-fungible/public/arrow.svg +++ /dev/null @@ -1 +0,0 @@ -../../assets/arrow.svg \ No newline at end of file diff --git a/examples/hosted-fungible/public/icon.png b/examples/hosted-fungible/public/icon.png deleted file mode 120000 index b3dee6a..0000000 --- a/examples/hosted-fungible/public/icon.png +++ /dev/null @@ -1 +0,0 @@ -../../assets/icon.png \ No newline at end of file diff --git a/examples/hosted-fungible/public/js/@linera/client b/examples/hosted-fungible/public/js/@linera/client deleted file mode 120000 index ad71613..0000000 --- a/examples/hosted-fungible/public/js/@linera/client +++ /dev/null @@ -1 +0,0 @@ -../../../node_modules/@linera/client/dist \ No newline at end of file diff --git a/examples/hosted-fungible/public/style.css b/examples/hosted-fungible/public/style.css deleted file mode 120000 index 1e19e62..0000000 --- a/examples/hosted-fungible/public/style.css +++ /dev/null @@ -1 +0,0 @@ -../../assets/style.css \ No newline at end of file diff --git a/examples/hosted-fungible/vite.config.ts b/examples/hosted-fungible/vite.config.ts deleted file mode 100644 index a8f66ea..0000000 --- a/examples/hosted-fungible/vite.config.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { defineConfig } from 'vite'; - -// https://vitejs.dev/config/ -export default defineConfig({ - base: '', - server: { - headers: { - 'Cross-Origin-Embedder-Policy': 'require-corp', - 'Cross-Origin-Opener-Policy': 'same-origin', - }, - }, - build: { - rollupOptions: { - input: { - index: 'index.html', - linera: '@linera/client', - }, - preserveEntrySignatures: 'strict', - }, - }, - esbuild: { - supported: { - 'top-level-await': true, - }, - }, - optimizeDeps: { - exclude: [ - '@linera/client', - ], - include: ['@adraffy/ens-normalize'], - }, - ssr: { - noExternal: ['@adraffy/ens-normalize'], - } -}) diff --git a/linera-protocol b/linera-protocol index eccd553..a16a4ef 160000 --- a/linera-protocol +++ b/linera-protocol @@ -1 +1 @@ -Subproject commit eccd5539f594e6700e63b1981634f3908c7f2b26 +Subproject commit a16a4effa6c1ab11c2df080a96cf26d0b8331427