From 162b458d6ba96dcc0863fd562644e5a325d2fb41 Mon Sep 17 00:00:00 2001 From: Huynh Duc Dung Date: Sun, 29 Aug 2021 14:04:45 +0800 Subject: [PATCH 1/7] :sparkles: Simple store DApp example --- src/App.tsx | 10 ++- src/SimpleStoreApp.tsx | 97 +++++++++++++++++++++++++++ src/types/Box.d.ts | 28 ++++++++ src/types/BoxV2.d.ts | 28 ++++++++ src/types/factories/BoxV2__factory.ts | 15 ++++- src/types/factories/Box__factory.ts | 15 ++++- src/vite-env.d.ts | 1 + 7 files changed, 186 insertions(+), 8 deletions(-) create mode 100644 src/SimpleStoreApp.tsx diff --git a/src/App.tsx b/src/App.tsx index 4b87d491..27188730 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,9 +2,11 @@ import { Web3ReactProvider } from "@web3-react/core"; import React from "react"; import "./App.css"; +import SimpleStoreApp from "./SimpleStoreApp"; import Demo from "./components/Demo"; import { getLibrary } from "./components/Demo"; -import logo from "./logo.svg"; + +const VITE_BOX_ADDRESS = import.meta.env.VITE_BOX_ADDRESS; function App() { return ( @@ -12,11 +14,7 @@ function App() {
- logo -

Hello Dapp Starter!

-

- Edit App.tsx and save to test HMR updates. -

+