Skip to content

Commit e68ce95

Browse files
committed
update allowed actions in controller-utils and document example snap params types
1 parent 68214c6 commit e68ce95

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
/**
2+
* The parameters for calling the `scheduleNotification` JSON-RPC method.
3+
*
4+
* @property date - The ISO 8601 date of when the notification should be scheduled.
5+
*/
16
export type ScheduleNotificationParams = {
27
date: string;
38
};
49

10+
/**
11+
* The parameters for calling the `cancelNotification` JSON-RPC method.
12+
*
13+
* @property id - The id of the notification event to cancel.
14+
*/
515
export type CancelNotificationParams = {
616
id: string;
717
};

packages/snaps-controllers/src/test-utils/controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,7 @@ export const getRestrictedCronjobControllerMessenger = (
677677
'SnapController:handleRequest',
678678
'CronjobController:scheduleBackgroundEvent',
679679
'CronjobController:cancelBackgroundEvent',
680+
'CronjobController:getBackgroundEvents',
680681
],
681682
});
682683

0 commit comments

Comments
 (0)