You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Implement two programs for SPL that can be used to extend contracts with ability to pause, resume and check for the owner before instructions are executed.
4
+
5
+
An Owner program with the instructions you've listed:
6
+
7
+
- set owner
8
+
- renounce ownership
9
+
- check owner
10
+
11
+
Additionally:
12
+
* an Owner struct should contain Option<Pubkey>
13
+
* library code should generate a pda, probably given (struct_key, program_id)
14
+
15
+
Given an Owner program, compose it with the Pause program.
16
+
17
+
- pause
18
+
- resume
19
+
20
+
Note: only owner can pause/resume normal operations
21
+
22
+
For both programs provide example usage from other programs via CPI and unit tests.
0 commit comments