From 5cb17b3f0608f30be5dad32c5f9f263b39f29840 Mon Sep 17 00:00:00 2001 From: TABASCO <84655644+TABASCOatw@users.noreply.github.com> Date: Tue, 16 Jul 2024 03:55:03 -0400 Subject: [PATCH] Add Particle deployment/quickstart doc (#182) * Adds Particle deployment/quickstart doc * Update 09-Particle Network.md Signed-off-by: TABASCO <84655644+TABASCOatw@users.noreply.github.com> --------- Signed-off-by: TABASCO <84655644+TABASCOatw@users.noreply.github.com> Co-authored-by: Chan J --- docs/zkShuffle/Deploy/09-Particle Network.md | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 docs/zkShuffle/Deploy/09-Particle Network.md diff --git a/docs/zkShuffle/Deploy/09-Particle Network.md b/docs/zkShuffle/Deploy/09-Particle Network.md new file mode 100644 index 00000000..7afc07c4 --- /dev/null +++ b/docs/zkShuffle/Deploy/09-Particle Network.md @@ -0,0 +1,50 @@ +# Particle Auth SDK + +## What is Particle Network? + +**Particle Network** is the Intent-Centric, Modular Access Layer of Web3. With Particle's Wallet-as-a-Service, developers can curate unparalleled user experience through modular and customizable EOA/AA embedded wallet components. By utilizing MPC-TSS for key management, Particle can streamline onboarding via familiar Web2 accounts—such as Google accounts, email addresses, and phone numbers. + + +The Particle Auth SDK seamlessly integrates with Particle's Wallet-as-a-Service, offering native compatibility with Manta Pacific for activities like login, logout, and transaction or signature proposals. + +## Quickstart + +To get started, simply specify Manta Pacific as your preferred blockchain when setting up Particle Auth. Doing so configures the SDK for both in-app wallet functions and Web3 interactions with both Externally Owned Accounts (EOA) and ERC-4337 Account Abstraction (AA) on the Manta Pacific network. + +```js +import { ParticleNetwork } from "@particle-network/auth"; +import { Manta } from "@particle-network/chains"; +import { SmartAccount } "@particle-network/aa"; + +// Retrieved from https://dashboard.particle.network +const config = { + projectId: "xx", + clientKey: "xx", + appId: "xx", +}; + +const particle = new ParticleNetwork({ + ...config, + chainName: Manta.name, + chainId: Manta.id, +}); + +// If using AA +const smartAccount = new SmartAccount(new ParticleProvider(particle.auth), { + ...config, + aaOptions: { + simple: [{ chainId: Manta.id, version: '1.0.0' }] + } +}); + +particle.setERC4337({ + name: 'SIMPLE', + version: '1.0.0' +}); + +await particle.auth.login() // Initiates social login to Manta +``` + +### [Particle Network Documentation](https://docs.particle.network) +### [Particle Network Blog](https://blog.particle.network) +### [Particle Network Website](https://particle.network)