Skip to content

Commit

Permalink
update allowed actions in controller-utils and document example snap …
Browse files Browse the repository at this point in the history
…params types
  • Loading branch information
hmalik88 committed Dec 17, 2024
1 parent 68214c6 commit e68ce95
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/examples/packages/cronjobs/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
/**
* The parameters for calling the `scheduleNotification` JSON-RPC method.
*
* @property date - The ISO 8601 date of when the notification should be scheduled.
*/
export type ScheduleNotificationParams = {
date: string;
};

/**
* The parameters for calling the `cancelNotification` JSON-RPC method.
*
* @property id - The id of the notification event to cancel.
*/
export type CancelNotificationParams = {
id: string;
};
1 change: 1 addition & 0 deletions packages/snaps-controllers/src/test-utils/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ export const getRestrictedCronjobControllerMessenger = (
'SnapController:handleRequest',
'CronjobController:scheduleBackgroundEvent',
'CronjobController:cancelBackgroundEvent',
'CronjobController:getBackgroundEvents',
],
});

Expand Down

0 comments on commit e68ce95

Please sign in to comment.