Vue 3
π Running the example
# Run local hardhat node with all contracts pnpm chain # Run example pnpm vue-example
Config
VITE_NETWORK_MODE=sepoliaπ Folder structure
Last updated
# Run local hardhat node with all contracts pnpm chain # Run example pnpm vue-example
VITE_NETWORK_MODE=sepoliaLast updated
examples/vue/
βββ src/
β βββ App.vue # Uses composables for encryption and decryption
β βββ main.ts # Initializes polyfills and installs FHEVM plugin
β βββ config/ # Configuration and default values (mode, RPC, addresses)
β β βββ index.ts
β β βββ localhost.ts
β β βββ sepolia.ts
β βββ lib/
β βββ contracts/
β βββ counter.ts # Contract interaction helpers
βββ env.example # All supported variables and defaults
βββ vite.config.ts # Vite config for WASM and deps
βββ package.json