Skip to content

Commit

Permalink
feat: add all mav2 contract addrs, abis (#1207)
Browse files Browse the repository at this point in the history
# Pull Request Checklist

- [x] Did you add new tests and confirm existing tests pass? (`yarn test`)
- [ ] Did you update relevant docs? (docs are found in the `site` folder, and guidelines for updating/adding docs can be found in the [contribution guide](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md))
- [ ] Do your commits follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] Does your PR title also follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard?
- [ ] If you have a breaking change, is it [correctly reflected in your commit message](https://www.conventionalcommits.org/en/v1.0.0/#examples)? (e.g. `feat!: breaking change`)
- [ ] Did you run lint (`yarn lint:check`) and fix any issues? (`yarn lint:write`)
- [ ] Did you follow the [contribution guidelines](https://github.com/alchemyplatform/aa-sdk/blob/main/CONTRIBUTING.md)?

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces several new smart contract ABIs and address constants for a modular account system, enhancing functionality for various modules, including validation and execution.

### Detailed summary
- Added `addresses` constant with various module addresses in `addresses.ts`.
- Introduced ABIs for `paymasterGuardModule`, `timeRangeModule`, `webauthnValidation`, `nativeTokenLimitModule`, `allowlistModule`, and `maV2`.
- Each ABI includes functions, events, and errors relevant to their respective modules.

> The following files were skipped due to too many changes: `account-kit/smart-contracts/src/ma-v2/abis/smaStorage.ts`

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
  • Loading branch information
howydev authored and linnall committed Dec 13, 2024
1 parent 7e4f191 commit d3c29a2
Show file tree
Hide file tree
Showing 8 changed files with 4,598 additions and 0 deletions.
1,241 changes: 1,241 additions & 0 deletions account-kit/smart-contracts/src/ma-v2/abis/maV2.ts

Large diffs are not rendered by default.

1,301 changes: 1,301 additions & 0 deletions account-kit/smart-contracts/src/ma-v2/abis/smaStorage.ts

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions account-kit/smart-contracts/src/ma-v2/addresses.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// TODO: improve format

export const addresses = {
allowlistModule:
"0xE46ca4a98c485caEE2Abb6ef5116292B8c78a868" as `0x${string}`,
nativeTokenLimitModule:
"0xEa6a05306315196f2A7CA2ec7eEA45290bae00A0" as `0x${string}`,
paymasterGuardModule:
"0x976D01aF75D128cae526B5328AC268ac83D607f4" as `0x${string}`,
singleSignerValidationModule:
"0xF56716aE104545BdAf012e14e4640beb52727479" as `0x${string}`,
timeRangeModule:
"0x6FD0a9765a86788126a55aD5a483029a484F996C" as `0x${string}`,
webauthnValidationModule:
"0xCf3423F8EB9EE215560802D03a48cDD44f85bD28" as `0x${string}`,
executionInstallDelegate:
"0x8Bf909fEb66EBcC4725f04E70F319791Ec9d9628" as `0x${string}`,
modularAccountImpl:
"0x99090abd2700E24Cc70E3c486A89F7af876fFA33" as `0x${string}`,
semiModularAccountBytecodeImpl:
"0xDCBb5d4639428B18703801f7Cd7230add729E4b0" as `0x${string}`,
semiModularAccountStorageOnlyImpl:
"0x563ea43Ba0CD9150466B054Ce47FB0Fb45B234E2" as `0x${string}`,
accountFactory: "0xA5FC7aDc6d2c838443dF5bb826152c58b918f2c8" as `0x${string}`,
accountFactoryOwner:
"0x3BD786ac7Dec96eF9d06ebbCFa4e0E0947A2c303" as `0x${string}`,
};

export const tempChainId = 11155420;
Loading

0 comments on commit d3c29a2

Please sign in to comment.