diff --git a/.circleci/config.yml b/.circleci/config.yml index 395b5623f..0f1b52640 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,13 +2,13 @@ version: 2.1 orbs: - node: circleci/node@5.1.0 + node: circleci/node@5.2.0 executors: rust-node: docker: - - image: cimg/rust:1.73-node + - image: cimg/rust:1.80-node commands: @@ -73,6 +73,25 @@ jobs: yarn test + e2e-testnet: + executor: rust-node + steps: + - setup-sdk + - run: + working_directory: sdk/e2e/testnet + command: | + yarn start + + e2e-mainnet: + executor: rust-node + steps: + - setup-sdk + - run: + working_directory: sdk/e2e/mainnet + command: | + yarn start + + template-node: executor: rust-node steps: @@ -119,7 +138,8 @@ jobs: - run: working_directory: wasm command: | - cargo clippy + cargo clippy --features testnet + cargo clippy --features mainnet check-fmt: executor: rust-node @@ -144,6 +164,12 @@ workflows: - sdk-test: requires: - sdk + - e2e-testnet: + requires: + - sdk + - e2e-mainnet: + requires: + - sdk - template-node: requires: - sdk diff --git a/.github/ISSUE_TEMPLATE/bug.md b/.github/ISSUE_TEMPLATE/bug.md index 7f7e62f59..032dfbb64 100644 --- a/.github/ISSUE_TEMPLATE/bug.md +++ b/.github/ISSUE_TEMPLATE/bug.md @@ -10,7 +10,7 @@ labels: bug diff --git a/.gitignore b/.gitignore index c3036429c..3b93409d1 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ **/node_modules **/target **/dist +**/tmp storage*/ **/.next @@ -18,4 +19,4 @@ rust/src/program/.DS_Store # Local Netlify folder .netlify -package-lock.json \ No newline at end of file +package-lock.json diff --git a/README.md b/README.md index 963a9b082..12e3fbd2c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ several TypeScript & JavaScript libraries which provide the following functional 4. [Management of program state and data](https://provable.tools/record) 5. [Communication with the Aleo network](https://provable.tools/rest) -All of this functionality is demonstrated on [Provable.tools](https://provable.tools). +All of this functionality is demonstrated on [Provable.tools](https://provable.tools). The Aleo SDK is divided into three TypeScript/JavaScript packages: @@ -29,7 +29,7 @@ The official Aleo SDK providing JavaScript/TypeScript tools for creating zero-kn ### ⚡ Build your own app -Start here with the [Aleo SDK Readme](https://github.com/ProvableHQ/sdk#readme) to get started building your +Start here with the [Aleo SDK Readme](https://github.com/ProvableHQ/sdk#readme) to get started building your first zero-knowledge web app. #### Source: [`Aleo SDK`](https://www.npmjs.com/package/@provablehq/sdk) @@ -47,7 +47,7 @@ start with working examples should start here. -Aleo Wasm is a Rust crate which compiles the Aleo source code responsible for creating and executing zero-knowledge programs into +Aleo Wasm is a Rust crate which compiles the Aleo source code responsible for creating and executing zero-knowledge programs into WebAssembly. When compiled with `wasm-pack`, JavaScript bindings are generated for the WebAssembly allowing Aleo zero-knowledge programs to be used in the browser and Node.js. This package is available on NPM (linked above). The Aleo Wasm diff --git a/create-leo-app/template-react-leo/README.md b/create-leo-app/template-react-leo/README.md index 14e510447..2b7d4c1f9 100644 --- a/create-leo-app/template-react-leo/README.md +++ b/create-leo-app/template-react-leo/README.md @@ -40,7 +40,7 @@ Your app should be running on http://localhost:5173/ ## Deploy program from web app -> [!WARNING] +> [!WARNING] > This is for demonstration purposes or local testing only, in production applications you > should avoid building a public facing web app with private key information @@ -62,7 +62,7 @@ Aleo programs deployed require unique names, make sure to edit the program's nam 2. (Optional) Provide a fee record manually (located in commented code within `worker.js`) If you do not provide a manual fee record, the SDK will attempt to scan for a record starting at the latest block. A simple way to speed this up would be to make a public transaction to this account right before deploying. - + 3. Run the web app and hit the deploy button ## Production deployment diff --git a/create-leo-app/template-react-leo/src/App.jsx b/create-leo-app/template-react-leo/src/App.jsx index b41f64e40..426144c3a 100644 --- a/create-leo-app/template-react-leo/src/App.jsx +++ b/create-leo-app/template-react-leo/src/App.jsx @@ -46,7 +46,7 @@ function App() { return ( <>