Create a School account on-chain as a Program Derived Address (PDA) when the first donation request for a school is submitted. This account will store minimal information and be owned by the program, ensuring users cannot modify it directly.
Tasks
Acceptance Criteria
School PDA is created automatically if it doesn’t exist.
- The program owns all
School PDAs.
- No duplicate
School PDAs are created.
- Unit tests pass successfully.
@holygrimacing
Create a
Schoolaccount on-chain as a Program Derived Address (PDA) when the first donation request for a school is submitted. This account will store minimal information and be owned by the program, ensuring users cannot modify it directly.Tasks
SchoolPDA that stores:school_id(string or bytes)SchoolPDA already exists for a givenschool_id.SchoolPDA if it does not exist.SchoolPDA.SchoolPDA (should not create a new one).Acceptance Criteria
SchoolPDA is created automatically if it doesn’t exist.SchoolPDAs.SchoolPDAs are created.@holygrimacing