Skip to content

Commit

Permalink
chore: add more detail to readmes about contract addresses, and add b…
Browse files Browse the repository at this point in the history
…readcrumb (#63)
  • Loading branch information
rthomare authored Jul 30, 2023
1 parent 1526fcd commit 8e71bae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion examples/alchemy-daapp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,15 @@ export const serverConfigs: Record<number, ServerConfiguration> = {
nftContractAddress: "<your-nft-contract-address>",
simpleAccountFactoryAddress: "<your-simple-account-factory-address>",
gasManagerPolicyId: "<your-gas-manager-policy-id>",
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
Expand Down

0 comments on commit 8e71bae

Please sign in to comment.