diff --git a/create-aleo-app/template-nextjs-ts/src/app/worker.ts b/create-leo-app/template-nextjs-ts/src/app/worker.ts similarity index 100% rename from create-aleo-app/template-nextjs-ts/src/app/worker.ts rename to create-leo-app/template-nextjs-ts/src/app/worker.ts diff --git a/create-aleo-app/template-nextjs-ts/tsconfig.json b/create-leo-app/template-nextjs-ts/tsconfig.json similarity index 100% rename from create-aleo-app/template-nextjs-ts/tsconfig.json rename to create-leo-app/template-nextjs-ts/tsconfig.json diff --git a/create-aleo-app/template-node-ts/README.md b/create-leo-app/template-node-ts/README.md similarity index 100% rename from create-aleo-app/template-node-ts/README.md rename to create-leo-app/template-node-ts/README.md diff --git a/create-aleo-app/template-node-ts/_gitignore b/create-leo-app/template-node-ts/_gitignore similarity index 100% rename from create-aleo-app/template-node-ts/_gitignore rename to create-leo-app/template-node-ts/_gitignore diff --git a/create-aleo-app/template-node-ts/package.json b/create-leo-app/template-node-ts/package.json similarity index 100% rename from create-aleo-app/template-node-ts/package.json rename to create-leo-app/template-node-ts/package.json diff --git a/create-aleo-app/template-node-ts/rollup.config.js b/create-leo-app/template-node-ts/rollup.config.js similarity index 100% rename from create-aleo-app/template-node-ts/rollup.config.js rename to create-leo-app/template-node-ts/rollup.config.js diff --git a/create-aleo-app/template-node-ts/src/index.ts b/create-leo-app/template-node-ts/src/index.ts similarity index 100% rename from create-aleo-app/template-node-ts/src/index.ts rename to create-leo-app/template-node-ts/src/index.ts diff --git a/create-aleo-app/template-node-ts/tsconfig.json b/create-leo-app/template-node-ts/tsconfig.json similarity index 100% rename from create-aleo-app/template-node-ts/tsconfig.json rename to create-leo-app/template-node-ts/tsconfig.json diff --git a/create-aleo-app/template-node/README.md b/create-leo-app/template-node/README.md similarity index 100% rename from create-aleo-app/template-node/README.md rename to create-leo-app/template-node/README.md diff --git a/create-aleo-app/template-node/_gitignore b/create-leo-app/template-node/_gitignore similarity index 100% rename from create-aleo-app/template-node/_gitignore rename to create-leo-app/template-node/_gitignore diff --git a/create-aleo-app/template-node/index.js b/create-leo-app/template-node/index.js similarity index 100% rename from create-aleo-app/template-node/index.js rename to create-leo-app/template-node/index.js diff --git a/create-aleo-app/template-node/package.json b/create-leo-app/template-node/package.json similarity index 100% rename from create-aleo-app/template-node/package.json rename to create-leo-app/template-node/package.json diff --git a/create-aleo-app/template-offline-public-transaction-ts/README.md b/create-leo-app/template-offline-public-transaction-ts/README.md similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/README.md rename to create-leo-app/template-offline-public-transaction-ts/README.md diff --git a/create-aleo-app/template-offline-public-transaction-ts/_gitignore b/create-leo-app/template-offline-public-transaction-ts/_gitignore similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/_gitignore rename to create-leo-app/template-offline-public-transaction-ts/_gitignore diff --git a/create-aleo-app/template-offline-public-transaction-ts/package.json b/create-leo-app/template-offline-public-transaction-ts/package.json similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/package.json rename to create-leo-app/template-offline-public-transaction-ts/package.json diff --git a/create-aleo-app/template-offline-public-transaction-ts/rollup.config.js b/create-leo-app/template-offline-public-transaction-ts/rollup.config.js similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/rollup.config.js rename to create-leo-app/template-offline-public-transaction-ts/rollup.config.js diff --git a/create-aleo-app/template-offline-public-transaction-ts/src/helpers.ts b/create-leo-app/template-offline-public-transaction-ts/src/helpers.ts similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/src/helpers.ts rename to create-leo-app/template-offline-public-transaction-ts/src/helpers.ts diff --git a/create-aleo-app/template-offline-public-transaction-ts/src/index.ts b/create-leo-app/template-offline-public-transaction-ts/src/index.ts similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/src/index.ts rename to create-leo-app/template-offline-public-transaction-ts/src/index.ts diff --git a/create-aleo-app/template-offline-public-transaction-ts/tsconfig.json b/create-leo-app/template-offline-public-transaction-ts/tsconfig.json similarity index 100% rename from create-aleo-app/template-offline-public-transaction-ts/tsconfig.json rename to create-leo-app/template-offline-public-transaction-ts/tsconfig.json diff --git a/create-aleo-app/template-react-leo/.babelrc b/create-leo-app/template-react-leo/.babelrc similarity index 100% rename from create-aleo-app/template-react-leo/.babelrc rename to create-leo-app/template-react-leo/.babelrc diff --git a/create-aleo-app/template-react-leo/.eslintrc.cjs b/create-leo-app/template-react-leo/.eslintrc.cjs similarity index 100% rename from create-aleo-app/template-react-leo/.eslintrc.cjs rename to create-leo-app/template-react-leo/.eslintrc.cjs diff --git a/create-aleo-app/template-react-leo/README.md b/create-leo-app/template-react-leo/README.md similarity index 98% rename from create-aleo-app/template-react-leo/README.md rename to create-leo-app/template-react-leo/README.md index 74e4f46fb..14e510447 100644 --- a/create-aleo-app/template-react-leo/README.md +++ b/create-leo-app/template-react-leo/README.md @@ -1,6 +1,6 @@ # React + Aleo + Leo -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ProvableHQ/sdk/tree/testnet3/create-aleo-app/template-react-leo) +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ProvableHQ/sdk/tree/testnet3/create-leo-app/template-react-leo) This template provides a minimal setup to get React and Aleo working in Vite with HMR and some ESLint rules. diff --git a/create-aleo-app/template-react-leo/_gitignore b/create-leo-app/template-react-leo/_gitignore similarity index 100% rename from create-aleo-app/template-react-leo/_gitignore rename to create-leo-app/template-react-leo/_gitignore diff --git a/create-aleo-app/template-react-leo/_headers b/create-leo-app/template-react-leo/_headers similarity index 100% rename from create-aleo-app/template-react-leo/_headers rename to create-leo-app/template-react-leo/_headers diff --git a/create-aleo-app/template-react-leo/helloworld/.env.example b/create-leo-app/template-react-leo/helloworld/.env.example similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/.env.example rename to create-leo-app/template-react-leo/helloworld/.env.example diff --git a/create-aleo-app/template-react-leo/helloworld/.gitignore b/create-leo-app/template-react-leo/helloworld/.gitignore similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/.gitignore rename to create-leo-app/template-react-leo/helloworld/.gitignore diff --git a/create-aleo-app/template-react-leo/helloworld/README.md b/create-leo-app/template-react-leo/helloworld/README.md similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/README.md rename to create-leo-app/template-react-leo/helloworld/README.md diff --git a/create-aleo-app/template-react-leo/helloworld/build/main.aleo b/create-leo-app/template-react-leo/helloworld/build/main.aleo similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/build/main.aleo rename to create-leo-app/template-react-leo/helloworld/build/main.aleo diff --git a/create-aleo-app/template-react-leo/helloworld/build/program.json b/create-leo-app/template-react-leo/helloworld/build/program.json similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/build/program.json rename to create-leo-app/template-react-leo/helloworld/build/program.json diff --git a/create-aleo-app/template-react-leo/helloworld/inputs/helloworld.in b/create-leo-app/template-react-leo/helloworld/inputs/helloworld.in similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/inputs/helloworld.in rename to create-leo-app/template-react-leo/helloworld/inputs/helloworld.in diff --git a/create-aleo-app/template-react-leo/helloworld/program.json b/create-leo-app/template-react-leo/helloworld/program.json similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/program.json rename to create-leo-app/template-react-leo/helloworld/program.json diff --git a/create-aleo-app/template-react-leo/helloworld/src/main.leo b/create-leo-app/template-react-leo/helloworld/src/main.leo similarity index 100% rename from create-aleo-app/template-react-leo/helloworld/src/main.leo rename to create-leo-app/template-react-leo/helloworld/src/main.leo diff --git a/create-aleo-app/template-react-leo/index.html b/create-leo-app/template-react-leo/index.html similarity index 100% rename from create-aleo-app/template-react-leo/index.html rename to create-leo-app/template-react-leo/index.html diff --git a/create-aleo-app/template-react-leo/install.sh b/create-leo-app/template-react-leo/install.sh similarity index 100% rename from create-aleo-app/template-react-leo/install.sh rename to create-leo-app/template-react-leo/install.sh diff --git a/create-aleo-app/template-react-leo/package.json b/create-leo-app/template-react-leo/package.json similarity index 100% rename from create-aleo-app/template-react-leo/package.json rename to create-leo-app/template-react-leo/package.json diff --git a/create-aleo-app/template-react-leo/public/favicon.ico b/create-leo-app/template-react-leo/public/favicon.ico similarity index 100% rename from create-aleo-app/template-react-leo/public/favicon.ico rename to create-leo-app/template-react-leo/public/favicon.ico diff --git a/create-aleo-app/template-react-leo/src/App.css b/create-leo-app/template-react-leo/src/App.css similarity index 100% rename from create-aleo-app/template-react-leo/src/App.css rename to create-leo-app/template-react-leo/src/App.css diff --git a/create-aleo-app/template-react-leo/src/App.jsx b/create-leo-app/template-react-leo/src/App.jsx similarity index 97% rename from create-aleo-app/template-react-leo/src/App.jsx rename to create-leo-app/template-react-leo/src/App.jsx index 96f4597b2..b41f64e40 100644 --- a/create-aleo-app/template-react-leo/src/App.jsx +++ b/create-leo-app/template-react-leo/src/App.jsx @@ -61,7 +61,7 @@ function App() {
diff --git a/create-aleo-app/template-react-leo/src/assets/aleo.svg b/create-leo-app/template-react-leo/src/assets/aleo.svg similarity index 100% rename from create-aleo-app/template-react-leo/src/assets/aleo.svg rename to create-leo-app/template-react-leo/src/assets/aleo.svg diff --git a/create-aleo-app/template-react-leo/src/assets/react.svg b/create-leo-app/template-react-leo/src/assets/react.svg similarity index 100% rename from create-aleo-app/template-react-leo/src/assets/react.svg rename to create-leo-app/template-react-leo/src/assets/react.svg diff --git a/create-aleo-app/template-react-leo/src/index.css b/create-leo-app/template-react-leo/src/index.css similarity index 100% rename from create-aleo-app/template-react-leo/src/index.css rename to create-leo-app/template-react-leo/src/index.css diff --git a/create-aleo-app/template-react-leo/src/main.jsx b/create-leo-app/template-react-leo/src/main.jsx similarity index 100% rename from create-aleo-app/template-react-leo/src/main.jsx rename to create-leo-app/template-react-leo/src/main.jsx diff --git a/create-aleo-app/template-react-leo/src/workers/AleoWorker.js b/create-leo-app/template-react-leo/src/workers/AleoWorker.js similarity index 100% rename from create-aleo-app/template-react-leo/src/workers/AleoWorker.js rename to create-leo-app/template-react-leo/src/workers/AleoWorker.js diff --git a/create-aleo-app/template-react-leo/src/workers/worker.js b/create-leo-app/template-react-leo/src/workers/worker.js similarity index 100% rename from create-aleo-app/template-react-leo/src/workers/worker.js rename to create-leo-app/template-react-leo/src/workers/worker.js diff --git a/create-aleo-app/template-react-leo/vite.config.js b/create-leo-app/template-react-leo/vite.config.js similarity index 100% rename from create-aleo-app/template-react-leo/vite.config.js rename to create-leo-app/template-react-leo/vite.config.js diff --git a/create-aleo-app/template-react-leo/webpack.config.js b/create-leo-app/template-react-leo/webpack.config.js similarity index 100% rename from create-aleo-app/template-react-leo/webpack.config.js rename to create-leo-app/template-react-leo/webpack.config.js diff --git a/create-aleo-app/template-react-managed-worker/.babelrc b/create-leo-app/template-react-managed-worker/.babelrc similarity index 100% rename from create-aleo-app/template-react-managed-worker/.babelrc rename to create-leo-app/template-react-managed-worker/.babelrc diff --git a/create-aleo-app/template-react-managed-worker/.eslintrc.cjs b/create-leo-app/template-react-managed-worker/.eslintrc.cjs similarity index 100% rename from create-aleo-app/template-react-managed-worker/.eslintrc.cjs rename to create-leo-app/template-react-managed-worker/.eslintrc.cjs diff --git a/create-aleo-app/template-react-managed-worker/README.md b/create-leo-app/template-react-managed-worker/README.md similarity index 100% rename from create-aleo-app/template-react-managed-worker/README.md rename to create-leo-app/template-react-managed-worker/README.md diff --git a/create-aleo-app/template-react-managed-worker/_gitignore b/create-leo-app/template-react-managed-worker/_gitignore similarity index 100% rename from create-aleo-app/template-react-managed-worker/_gitignore rename to create-leo-app/template-react-managed-worker/_gitignore diff --git a/create-aleo-app/template-react-managed-worker/index.html b/create-leo-app/template-react-managed-worker/index.html similarity index 100% rename from create-aleo-app/template-react-managed-worker/index.html rename to create-leo-app/template-react-managed-worker/index.html diff --git a/create-aleo-app/template-react-managed-worker/package.json b/create-leo-app/template-react-managed-worker/package.json similarity index 100% rename from create-aleo-app/template-react-managed-worker/package.json rename to create-leo-app/template-react-managed-worker/package.json diff --git a/create-aleo-app/template-react-managed-worker/public/favicon.ico b/create-leo-app/template-react-managed-worker/public/favicon.ico similarity index 100% rename from create-aleo-app/template-react-managed-worker/public/favicon.ico rename to create-leo-app/template-react-managed-worker/public/favicon.ico diff --git a/create-aleo-app/template-react-managed-worker/src/App.css b/create-leo-app/template-react-managed-worker/src/App.css similarity index 100% rename from create-aleo-app/template-react-managed-worker/src/App.css rename to create-leo-app/template-react-managed-worker/src/App.css diff --git a/create-aleo-app/template-react-managed-worker/src/App.jsx b/create-leo-app/template-react-managed-worker/src/App.jsx similarity index 90% rename from create-aleo-app/template-react-managed-worker/src/App.jsx rename to create-leo-app/template-react-managed-worker/src/App.jsx index 4162aec2f..f8504eb67 100644 --- a/create-aleo-app/template-react-managed-worker/src/App.jsx +++ b/create-leo-app/template-react-managed-worker/src/App.jsx @@ -27,7 +27,7 @@ function App() { " output r2 as u32.private;\n"; setLoading(true); - const result = await aleoWorker.executeOffline(hello_hello_program,"hello", ["5u32", "5u32"], "APrivateKey1zkp778oUFSck3PZA5xppgp4trFwkkD6xnUXtxcBCfsq4URJ") + const result = await aleoWorker.run(hello_hello_program,"hello", ["5u32", "5u32"], "APrivateKey1zkp778oUFSck3PZA5xppgp4trFwkkD6xnUXtxcBCfsq4URJ") setLoading(false); alert(JSON.stringify(result)); @@ -52,7 +52,7 @@ function App() { diff --git a/create-aleo-app/template-react-managed-worker/src/assets/aleo.png b/create-leo-app/template-react-managed-worker/src/assets/aleo.png similarity index 100% rename from create-aleo-app/template-react-managed-worker/src/assets/aleo.png rename to create-leo-app/template-react-managed-worker/src/assets/aleo.png diff --git a/create-aleo-app/template-react-managed-worker/src/assets/react.svg b/create-leo-app/template-react-managed-worker/src/assets/react.svg similarity index 100% rename from create-aleo-app/template-react-managed-worker/src/assets/react.svg rename to create-leo-app/template-react-managed-worker/src/assets/react.svg diff --git a/create-aleo-app/template-react-managed-worker/src/index.css b/create-leo-app/template-react-managed-worker/src/index.css similarity index 100% rename from create-aleo-app/template-react-managed-worker/src/index.css rename to create-leo-app/template-react-managed-worker/src/index.css diff --git a/create-aleo-app/template-react-managed-worker/src/main.jsx b/create-leo-app/template-react-managed-worker/src/main.jsx similarity index 100% rename from create-aleo-app/template-react-managed-worker/src/main.jsx rename to create-leo-app/template-react-managed-worker/src/main.jsx diff --git a/create-aleo-app/template-react-managed-worker/vite.config.js b/create-leo-app/template-react-managed-worker/vite.config.js similarity index 100% rename from create-aleo-app/template-react-managed-worker/vite.config.js rename to create-leo-app/template-react-managed-worker/vite.config.js diff --git a/create-aleo-app/template-react-managed-worker/webpack.config.js b/create-leo-app/template-react-managed-worker/webpack.config.js similarity index 100% rename from create-aleo-app/template-react-managed-worker/webpack.config.js rename to create-leo-app/template-react-managed-worker/webpack.config.js diff --git a/create-aleo-app/template-react-ts/.babelrc b/create-leo-app/template-react-ts/.babelrc similarity index 100% rename from create-aleo-app/template-react-ts/.babelrc rename to create-leo-app/template-react-ts/.babelrc diff --git a/create-aleo-app/template-react-ts/.eslintrc.cjs b/create-leo-app/template-react-ts/.eslintrc.cjs similarity index 100% rename from create-aleo-app/template-react-ts/.eslintrc.cjs rename to create-leo-app/template-react-ts/.eslintrc.cjs diff --git a/create-aleo-app/template-react-ts/README.md b/create-leo-app/template-react-ts/README.md similarity index 98% rename from create-aleo-app/template-react-ts/README.md rename to create-leo-app/template-react-ts/README.md index e00c62a66..b571c81ea 100644 --- a/create-aleo-app/template-react-ts/README.md +++ b/create-leo-app/template-react-ts/README.md @@ -1,6 +1,6 @@ # React + Aleo + Leo -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ProvableHQ/sdk/tree/testnet3/create-aleo-app/template-react) +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/fork/github/ProvableHQ/sdk/tree/testnet3/create-leo-app/template-react) This template provides a minimal setup to get React and Aleo working in Vite with HMR and some ESLint rules. diff --git a/create-aleo-app/template-react-ts/_gitignore b/create-leo-app/template-react-ts/_gitignore similarity index 100% rename from create-aleo-app/template-react-ts/_gitignore rename to create-leo-app/template-react-ts/_gitignore diff --git a/create-aleo-app/template-react-ts/_headers b/create-leo-app/template-react-ts/_headers similarity index 100% rename from create-aleo-app/template-react-ts/_headers rename to create-leo-app/template-react-ts/_headers diff --git a/create-aleo-app/template-react-ts/helloworld/.env.example b/create-leo-app/template-react-ts/helloworld/.env.example similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/.env.example rename to create-leo-app/template-react-ts/helloworld/.env.example diff --git a/create-aleo-app/template-react-ts/helloworld/.gitignore b/create-leo-app/template-react-ts/helloworld/.gitignore similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/.gitignore rename to create-leo-app/template-react-ts/helloworld/.gitignore diff --git a/create-aleo-app/template-react-ts/helloworld/README.md b/create-leo-app/template-react-ts/helloworld/README.md similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/README.md rename to create-leo-app/template-react-ts/helloworld/README.md diff --git a/create-aleo-app/template-react-ts/helloworld/build/main.aleo b/create-leo-app/template-react-ts/helloworld/build/main.aleo similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/build/main.aleo rename to create-leo-app/template-react-ts/helloworld/build/main.aleo diff --git a/create-aleo-app/template-react-ts/helloworld/build/program.json b/create-leo-app/template-react-ts/helloworld/build/program.json similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/build/program.json rename to create-leo-app/template-react-ts/helloworld/build/program.json diff --git a/create-aleo-app/template-react-ts/helloworld/inputs/helloworld.in b/create-leo-app/template-react-ts/helloworld/inputs/helloworld.in similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/inputs/helloworld.in rename to create-leo-app/template-react-ts/helloworld/inputs/helloworld.in diff --git a/create-aleo-app/template-react-ts/helloworld/program.json b/create-leo-app/template-react-ts/helloworld/program.json similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/program.json rename to create-leo-app/template-react-ts/helloworld/program.json diff --git a/create-aleo-app/template-react-ts/helloworld/src/main.leo b/create-leo-app/template-react-ts/helloworld/src/main.leo similarity index 100% rename from create-aleo-app/template-react-ts/helloworld/src/main.leo rename to create-leo-app/template-react-ts/helloworld/src/main.leo diff --git a/create-aleo-app/template-react-ts/index.html b/create-leo-app/template-react-ts/index.html similarity index 100% rename from create-aleo-app/template-react-ts/index.html rename to create-leo-app/template-react-ts/index.html diff --git a/create-aleo-app/template-react-ts/install.sh b/create-leo-app/template-react-ts/install.sh similarity index 100% rename from create-aleo-app/template-react-ts/install.sh rename to create-leo-app/template-react-ts/install.sh diff --git a/create-aleo-app/template-react-ts/package.json b/create-leo-app/template-react-ts/package.json similarity index 100% rename from create-aleo-app/template-react-ts/package.json rename to create-leo-app/template-react-ts/package.json diff --git a/create-aleo-app/template-react-ts/public/favicon.ico b/create-leo-app/template-react-ts/public/favicon.ico similarity index 100% rename from create-aleo-app/template-react-ts/public/favicon.ico rename to create-leo-app/template-react-ts/public/favicon.ico diff --git a/create-aleo-app/template-react-ts/src/App.css b/create-leo-app/template-react-ts/src/App.css similarity index 100% rename from create-aleo-app/template-react-ts/src/App.css rename to create-leo-app/template-react-ts/src/App.css diff --git a/create-aleo-app/template-react-ts/src/App.tsx b/create-leo-app/template-react-ts/src/App.tsx similarity index 97% rename from create-aleo-app/template-react-ts/src/App.tsx rename to create-leo-app/template-react-ts/src/App.tsx index b64330c9d..4dab329d4 100644 --- a/create-aleo-app/template-react-ts/src/App.tsx +++ b/create-leo-app/template-react-ts/src/App.tsx @@ -61,7 +61,7 @@ function App() {
diff --git a/create-aleo-app/template-react-ts/src/assets/aleo.svg b/create-leo-app/template-react-ts/src/assets/aleo.svg similarity index 100% rename from create-aleo-app/template-react-ts/src/assets/aleo.svg rename to create-leo-app/template-react-ts/src/assets/aleo.svg diff --git a/create-aleo-app/template-react-ts/src/assets/react.svg b/create-leo-app/template-react-ts/src/assets/react.svg similarity index 100% rename from create-aleo-app/template-react-ts/src/assets/react.svg rename to create-leo-app/template-react-ts/src/assets/react.svg diff --git a/create-aleo-app/template-react-ts/src/custom.d.ts b/create-leo-app/template-react-ts/src/custom.d.ts similarity index 100% rename from create-aleo-app/template-react-ts/src/custom.d.ts rename to create-leo-app/template-react-ts/src/custom.d.ts diff --git a/create-aleo-app/template-react-ts/src/index.css b/create-leo-app/template-react-ts/src/index.css similarity index 100% rename from create-aleo-app/template-react-ts/src/index.css rename to create-leo-app/template-react-ts/src/index.css diff --git a/create-aleo-app/template-react-ts/src/main.tsx b/create-leo-app/template-react-ts/src/main.tsx similarity index 100% rename from create-aleo-app/template-react-ts/src/main.tsx rename to create-leo-app/template-react-ts/src/main.tsx diff --git a/create-aleo-app/template-react-ts/src/workers/AleoWorker.ts b/create-leo-app/template-react-ts/src/workers/AleoWorker.ts similarity index 100% rename from create-aleo-app/template-react-ts/src/workers/AleoWorker.ts rename to create-leo-app/template-react-ts/src/workers/AleoWorker.ts diff --git a/create-aleo-app/template-react-ts/src/workers/worker.ts b/create-leo-app/template-react-ts/src/workers/worker.ts similarity index 96% rename from create-aleo-app/template-react-ts/src/workers/worker.ts rename to create-leo-app/template-react-ts/src/workers/worker.ts index 9d74019f4..125003604 100644 --- a/create-aleo-app/template-react-ts/src/workers/worker.ts +++ b/create-leo-app/template-react-ts/src/workers/worker.ts @@ -19,7 +19,7 @@ async function localProgramExecution(program, aleoFunction, inputs) { const account = new Account(); programManager.setAccount(account); - const executionResponse = await programManager.executeOffline( + const executionResponse = await programManager.run( program, aleoFunction, inputs, diff --git a/create-aleo-app/template-react-ts/tsconfig.json b/create-leo-app/template-react-ts/tsconfig.json similarity index 100% rename from create-aleo-app/template-react-ts/tsconfig.json rename to create-leo-app/template-react-ts/tsconfig.json diff --git a/create-aleo-app/template-react-ts/vite.config.ts b/create-leo-app/template-react-ts/vite.config.ts similarity index 100% rename from create-aleo-app/template-react-ts/vite.config.ts rename to create-leo-app/template-react-ts/vite.config.ts diff --git a/create-aleo-app/template-react-ts/webpack.config.ts b/create-leo-app/template-react-ts/webpack.config.ts similarity index 100% rename from create-aleo-app/template-react-ts/webpack.config.ts rename to create-leo-app/template-react-ts/webpack.config.ts diff --git a/create-aleo-app/template-vanilla/_gitignore b/create-leo-app/template-vanilla/_gitignore similarity index 100% rename from create-aleo-app/template-vanilla/_gitignore rename to create-leo-app/template-vanilla/_gitignore diff --git a/create-aleo-app/template-vanilla/_headers b/create-leo-app/template-vanilla/_headers similarity index 100% rename from create-aleo-app/template-vanilla/_headers rename to create-leo-app/template-vanilla/_headers diff --git a/create-aleo-app/template-vanilla/index.html b/create-leo-app/template-vanilla/index.html similarity index 91% rename from create-aleo-app/template-vanilla/index.html rename to create-leo-app/template-vanilla/index.html index 19dff6298..dd895fe66 100644 --- a/create-aleo-app/template-vanilla/index.html +++ b/create-leo-app/template-vanilla/index.html @@ -4,7 +4,7 @@ -
- -
-- -
-
- Edit src/App.jsx
and save to test HMR
-
- Click on the Aleo and React logos to learn more -
- > - ); -} +Program execution is a computationally-expensive process. For this reason, it is recommended to execute programs in +web workers. Create-Leo-App will automatically create a web worker for you that performs the execution called `worker.js`. -export default App; -``` -