Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adds paymaster guard module #1226

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
04bed7c
feat: add ma v2 scaffolding with basic uo test
howydev Dec 9, 2024
b11a94c
fix: review fixes
howydev Dec 14, 2024
3f1b3ef
fix: some review fixes
howydev Dec 14, 2024
76052dc
fix: more review fixes
howydev Dec 14, 2024
49d67b6
chore: rename abi files for clarity
howydev Dec 14, 2024
28926df
chore: more fixes
howydev Dec 14, 2024
f7ce236
chore: more fixes
howydev Dec 14, 2024
5bd7bcd
feat: add install validation, add tests for session key
howydev Dec 14, 2024
9e5c594
feat: add uninstall validation, tests
howydev Dec 14, 2024
d010f10
chore: update abi types
howydev Dec 16, 2024
392e2e4
feat: add initial paymaster guard module impl
linnall Dec 17, 2024
f46ac29
chore: removing arbsepo instance
howydev Dec 17, 2024
38f4013
Merge branch 'howy/scaffold-v0.8' into linna/paymaster-guard-module
linnall Dec 17, 2024
d481ee9
chore: removing arbsepo instance
howydev Dec 17, 2024
47a7d71
fix: more review fixes
howydev Dec 18, 2024
be95010
feat: add install validation, add tests for session key
howydev Dec 17, 2024
d9c40ed
fix: lint
howydev Dec 18, 2024
555fdc9
feat: add view functions and user op calldata encodings
howydev Dec 17, 2024
2b4b01a
fix: move install validation to the client
howydev Dec 18, 2024
c24d65e
chore: merges in howy/add-install-validation
linnall Dec 18, 2024
df77f00
Merge branch 'howy/add-mav2-uo-call-encoding' into linna/paymaster-gu…
linnall Dec 18, 2024
f808b02
feat: adds install and uninstall test for paymaster guard module
linnall Dec 19, 2024
b1befe2
fix: does not skip tests
linnall Dec 19, 2024
3fb7387
fix: removes import for installValidationActions
linnall Dec 19, 2024
4713fd6
feat: adds test for successful install, functionality, and uninstall …
linnall Dec 19, 2024
5cf0634
feat: adds tests that checks that validation fails with no paymaster
linnall Dec 19, 2024
9c744bb
feat: add email OTP support (#1163)
dphilipson Dec 16, 2024
d1903bf
chore(release): publish v4.7.0 [skip-ci]
Dec 16, 2024
ddb1b3c
docs: fix typo on OTP page (#1224)
dphilipson Dec 16, 2024
4147576
feat(chains): add ink and soneium mainnet (#1215)
0xfourzerofour Dec 17, 2024
51166c3
feat: add ink mainnet (#1225)
alex-miao Dec 17, 2024
f1642a7
feat: add OTP authentication capabilities to RN Signer (#1231)
iykazrji Dec 18, 2024
0a6c53c
feat: add expo example (#1204)
iykazrji Dec 18, 2024
6a594b7
feat: add mekong devnet support (#1239)
adamegyed Dec 19, 2024
5c817a7
docs: update export private key (#1197)
RobChangCA Dec 20, 2024
fe962a0
docs: tailwind tip (#1198)
RobChangCA Dec 20, 2024
446070a
fix: review fixes, improve getNonce implementation to be more friendly
howydev Dec 18, 2024
f4629d6
chore: update sma type to include entity properties
howydev Dec 19, 2024
79e1157
feat: add install validation, add tests for session key
howydev Dec 17, 2024
3136edc
fix: review fixes
howydev Dec 18, 2024
448e382
feat: add view functions and user op calldata encodings
howydev Dec 17, 2024
0d57783
feat: add install validation, add tests for session key
howydev Dec 14, 2024
dc7a573
feat: add uninstall validation, tests
howydev Dec 14, 2024
531d5f8
chore: removing arbsepo instance
howydev Dec 17, 2024
caa976b
feat: add install validation, add tests for session key
howydev Dec 17, 2024
664fa5e
feat: add view functions and user op calldata encodings
howydev Dec 17, 2024
d0e8782
fix: move install validation to the client
howydev Dec 18, 2024
93f0d98
chore: more rebase changes
linnall Dec 20, 2024
6909c6a
Merge branch 'main' into linna/paymaster-guard-module
linnall Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vitest/src/instances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const local060Instance = defineInstance({

export const local070Instance = defineInstance({
chain: localhost,
forkBlockNumber: 6381303,
forkBlockNumber: 7299096,
forkUrl:
process.env.VITEST_SEPOLIA_FORK_URL ??
"https://ethereum-sepolia-rpc.publicnode.com",
Expand Down
48 changes: 48 additions & 0 deletions aa-sdk/core/src/errors/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,51 @@ export class ChainNotFoundError extends BaseError {
super("No chain supplied to the client");
}
}

/**
* Error class denoting that the provided entity id is invalid because it's too large.
*/
export class InvalidEntityIdError extends BaseError {
override name = "InvalidEntityIdError";

/**
* Initializes a new instance of the error message with a default message indicating that the entity id is invalid because it's too large.
*
* @param {number} entityId the invalid entityId used
*/
constructor(entityId: number) {
super(`Entity ID used is ${entityId}, but must be less than uint32.max`);
}
}

/**
* Error class denoting that the nonce key is invalid because its too large.
*/
export class InvalidNonceKeyError extends BaseError {
override name = "InvalidNonceKeyError";

/**
* Initializes a new instance of the error message with a default message indicating that the nonce key is invalid.
*
* @param {bigint} nonceKey the invalid nonceKey used
*/
constructor(nonceKey: bigint) {
super(`Nonce key is ${nonceKey} but has to be less than 2**152`);
}
}

/**
* Error class denoting that the provided entity id is invalid because it's overriding the native entity id.
*/
export class EntityIdOverrideError extends BaseError {
override name = "InvalidNonceKeyError";

/**
* Initializes a new instance of the error message with a default message indicating that the nonce key is invalid.
*/
constructor() {
super(
`Installing entityId of 0 overrides the owner's entity id in the account`
);
}
}
3 changes: 3 additions & 0 deletions aa-sdk/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ export {
ChainNotFoundError,
IncompatibleClientError,
InvalidRpcUrlError,
InvalidEntityIdError,
InvalidNonceKeyError,
EntityIdOverrideError,
} from "./errors/client.js";
export {
EntryPointNotFoundError,
Expand Down
Loading