-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added toAllowedParamsEnforcer impl and integrated support for t…
…his caveat in wallet eip1193provider
- Loading branch information
1 parent
214c9c5
commit 0c34df3
Showing
13 changed files
with
540 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
plugins/multi-tenant-session-account/enforcers/allowed-params/constants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export enum CallType { | ||
CALL = "0x00", | ||
BATCH_CALL = "0x01", | ||
DELEGATE_CALL = "0xff" | ||
} | ||
|
||
export enum ParamCondition { | ||
EQUAL = 0, | ||
GREATER_THAN = 1, | ||
LESS_THAN = 2, | ||
GREATER_THAN_OR_EQUAL = 3, | ||
LESS_THAN_OR_EQUAL = 4, | ||
NOT_EQUAL = 5, | ||
ONE_OF = 6 | ||
} | ||
|
||
export const AllowedParamsEnforcerAddress = | ||
"0x54F1f6aAe77D2E3feA4c40A7d99E4aDcEFa00c79" |
4 changes: 4 additions & 0 deletions
4
plugins/multi-tenant-session-account/enforcers/allowed-params/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export * from "./toAllowedParamsEnforcer.js" | ||
export * from "./utils.js" | ||
export type * from "./types.js" | ||
export * from "./constants.js" |
Oops, something went wrong.