From b86e99c890f2887afef834871a26ab9e5967db70 Mon Sep 17 00:00:00 2001 From: rthomare Date: Sat, 29 Jul 2023 07:04:25 -0700 Subject: [PATCH] chore: add more deatil to readmes about contract addresses, and add breadcrumb --- README.md | 2 ++ examples/alchemy-daapp/README.md | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 764ccc2d46..27a8f14ea2 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ npm i -s @alchemy/aa-ethers ## Example Usage to Interact with [Simple Accounts](https://github.com/eth-infinitism/account-abstraction/blob/develop/contracts/samples/SimpleAccount.sol) +**Note 🗒️:** We've also included an [E2E example here](https://github.com/alchemyplatform/aa-sdk/tree/main/examples/alchemy-daapp). This example DApp creates a simple account wallet and mints an NFT in one flow. + ### via `aa-core` ```ts diff --git a/examples/alchemy-daapp/README.md b/examples/alchemy-daapp/README.md index c033ff5153..f855cab0bb 100644 --- a/examples/alchemy-daapp/README.md +++ b/examples/alchemy-daapp/README.md @@ -34,11 +34,15 @@ export const serverConfigs: Record = { nftContractAddress: "", simpleAccountFactoryAddress: "", gasManagerPolicyId: "", - chain: polygon, + chain: polygonMumbai, }, // Repeat for other chains as needed }; ``` +### **🗒️ Notes:** for `nftContractAddress` and `simpleAccountFactoryAddress` +- There are already contract addresses deployed for them across [various chains here](https://github.com/alchemyplatform/aa-sdk/blob/main/examples/alchemy-daapp/src/configs/clientConfigs.ts). +- We used eth-infinitism's [simpleAccountFactory here](https://github.com/eth-infinitism/account-abstraction/blob/main/contracts/samples/SimpleAccountFactory.sol). +- Finally, the contracts sibling package has the copy of the [NFT contract](https://github.com/alchemyplatform/aa-sdk/tree/main/examples/contracts/DAAppNFT/src) along instructions on [how to deploy it](https://github.com/alchemyplatform/aa-sdk/blob/main/examples/contracts/README.md). 4. Update the serverConfigs.ts file with your alchemy API keys: ```typescript