📄 test/MockSubscriptionDeps.sol
D-OPEN SOVEREIGN
1/*
2 * Copyright (c) 2026 DataPond D-Library Pty Ltd. ("The Sanctuary")
3 * Non-Profit Public Library — The World Library
4 *
5 * D-SAFE Certification issued by POND Enterprise.
6 * Published under the D-Open Code Sovereign Licence v1.0 framework
7 * DataPond D-Library All exclusive Right reserved on modifiying the code - CC Attribution to data pond, Non modifiable, Non Commercial.
8 * https://registry.world.bibliotech.com/licence
9 * Source code donated to DataPond D-Library by it's author: data pond.
10 *
11 * Technical Guardian ("The Shield"): Pond Enterprise Pty Ltd. (ACN 694 747 987)
12 * All liability claims about D-SAFE certification issues coming from the published D-Safe direction must be addressed with Pond Enterprise Pty Ltd.
13 * Code Modification automatically voids the certified liability protection provided by Pond Enterprise.
14 */
15
16// SPDX-License-Identifier: Apache-2.0
17pragma solidity ^0.8.24;
18
19contract MockSubscriptionDeps {
20 mapping(uint32 => uint8) public levels;
21 mapping(uint32 => bool) public registered;
22
23 function userLevel(uint32 userId) external view returns (uint8) {
24 return levels[userId];
25 }
26
27 function isRegistered(uint32 userId) external view returns (bool) {
28 return registered[userId];
29 }
30
31 function setRegistered(uint32 userId, bool isReg) external {
32 registered[userId] = isReg;
33 }
34
35 function setLevel(uint32 userId, uint8 lvl) external {
36 levels[userId] = lvl;
37 }
38}
39