@@ -19,21 +19,123 @@ interface IMetagraph {
19
19
* @return The count of UIDs associated with the specified netuid.
20
20
*/
21
21
function getUidCount (uint16 netuid ) external view returns (uint16 );
22
+
23
+ /**
24
+ * @dev Checks if a subnet with the given network identifier (netuid) is registered.
25
+ * @param netuid The network identifier of the subnet to check.
26
+ * @return Returns true if the subnet is registered, false otherwise.
27
+ */
28
+ function getIsSubnetRegistered (uint16 netuid ) external view returns (bool );
22
29
30
+ /**
31
+ * @dev Retrieves the stake amount associated with a given network identifier (netuid) and unique identifier (uid).
32
+ * @param netuid The network identifier for which to retrieve the stake.
33
+ * @param uid The unique identifier for which to retrieve the stake.
34
+ * @return The stake amount associated with the specified netuid and uid.
35
+ */
23
36
function getStake (uint16 netuid , uint16 uid ) external view returns (uint64 );
24
37
38
+ /**
39
+ * @dev Retrieves the rank of a node with a given network identifier (netuid) and unique identifier (uid).
40
+ * @param netuid The network identifier for which to retrieve the rank.
41
+ * @param uid The unique identifier for which to retrieve the rank.
42
+ * @return The rank of the node with the specified netuid and uid.
43
+ */
25
44
function getRank (uint16 netuid , uint16 uid ) external view returns (uint16 );
26
45
46
+ /**
47
+ * @dev Retrieves the trust value of a node with a given network identifier (netuid) and unique identifier (uid).
48
+ * @param netuid The network identifier for which to retrieve the trust value.
49
+ * @param uid The unique identifier for which to retrieve the trust value.
50
+ * @return The trust value of the node with the specified netuid and uid.
51
+ */
27
52
function getTrust (uint16 netuid , uint16 uid ) external view returns (uint16 );
53
+
54
+ /**
55
+ * @dev Retrieves the consensus value of a node with a given network identifier (netuid) and unique identifier (uid).
56
+ * @param netuid The network identifier for which to retrieve the consensus value.
57
+ * @param uid The unique identifier for which to retrieve the consensus value.
58
+ * @return The consensus value of the node with the specified netuid and uid.
59
+ */
28
60
function getConsensus (uint16 netuid , uint16 uid ) external view returns (uint16 );
61
+
62
+ /**
63
+ * @dev Retrieves the incentive value of a node with a given network identifier (netuid) and unique identifier (uid).
64
+ * @param netuid The network identifier for which to retrieve the incentive value.
65
+ * @param uid The unique identifier for which to retrieve the incentive value.
66
+ * @return The incentive value of the node with the specified netuid and uid.
67
+ */
29
68
function getIncentive (uint16 netuid , uint16 uid ) external view returns (uint16 );
69
+
70
+ /**
71
+ * @dev Retrieves the dividend value of a node with a given network identifier (netuid) and unique identifier (uid).
72
+ * @param netuid The network identifier for which to retrieve the dividend value.
73
+ * @param uid The unique identifier for which to retrieve the dividend value.
74
+ * @return The dividend value of the node with the specified netuid and uid.
75
+ */
30
76
function getDividends (uint16 netuid , uint16 uid ) external view returns (uint16 );
77
+
78
+ /**
79
+ * @dev Retrieves the emission value of a node with a given network identifier (netuid) and unique identifier (uid).
80
+ * @param netuid The network identifier for which to retrieve the emission value.
81
+ * @param uid The unique identifier for which to retrieve the emission value.
82
+ * @return The emission value of the node with the specified netuid and uid.
83
+ */
31
84
function getEmission (uint16 netuid , uint16 uid ) external view returns (uint64 );
85
+
86
+ /**
87
+ * @dev Retrieves the v-trust value of a node with a given network identifier (netuid) and unique identifier (uid).
88
+ * @param netuid The network identifier for which to retrieve the v-trust value.
89
+ * @param uid The unique identifier for which to retrieve the v-trust value.
90
+ * @return The v-trust value of the node with the specified netuid and uid.
91
+ */
32
92
function getVtrust (uint16 netuid , uint16 uid ) external view returns (uint16 );
93
+
94
+ /**
95
+ * @dev Checks the validator status of a node with a given network identifier (netuid) and unique identifier (uid).
96
+ * @param netuid The network identifier for which to check the validator status.
97
+ * @param uid The unique identifier for which to check the validator status.
98
+ * @return Returns true if the node is a validator, false otherwise.
99
+ */
33
100
function getValidatorStatus (uint16 netuid , uint16 uid ) external view returns (bool );
101
+
102
+ /**
103
+ * @dev Retrieves the last update timestamp of a node with a given network identifier (netuid) and unique identifier (uid).
104
+ * @param netuid The network identifier for which to retrieve the last update timestamp.
105
+ * @param uid The unique identifier for which to retrieve the last update timestamp.
106
+ * @return The last update timestamp of the node with the specified netuid and uid.
107
+ */
34
108
function getLastUpdate (uint16 netuid , uint16 uid ) external view returns (uint64 );
109
+
110
+ /**
111
+ * @dev Checks if a node with a given network identifier (netuid) and unique identifier (uid) is active.
112
+ * @param netuid The network identifier for which to check the node's activity.
113
+ * @param uid The unique identifier for which to check the node's activity.
114
+ * @return Returns true if the node is active, false otherwise.
115
+ */
35
116
function getIsActive (uint16 netuid , uint16 uid ) external view returns (bool );
117
+
118
+ /**
119
+ * @dev Retrieves the axon information of a node with a given network identifier (netuid) and unique identifier (uid).
120
+ * @param netuid The network identifier for which to retrieve the axon information.
121
+ * @param uid The unique identifier for which to retrieve the axon information.
122
+ * @return The axon information of the node with the specified netuid and uid.
123
+ */
36
124
function getAxon (uint16 netuid , uint16 uid ) external view returns (AxonInfo memory );
125
+
126
+ /**
127
+ * @dev Retrieves the hotkey of a node with a given network identifier (netuid) and unique identifier (uid).
128
+ * @param netuid The network identifier for which to retrieve the hotkey.
129
+ * @param uid The unique identifier for which to retrieve the hotkey.
130
+ * @return The hotkey of the node with the specified netuid and uid.
131
+ */
37
132
function getHotkey (uint16 netuid , uint16 uid ) external view returns (bytes32 );
133
+
134
+ /**
135
+ * @dev Retrieves the coldkey of a node with a given network identifier (netuid) and unique identifier (uid).
136
+ * @param netuid The network identifier for which to retrieve the coldkey.
137
+ * @param uid The unique identifier for which to retrieve the coldkey.
138
+ * @return The coldkey of the node with the specified netuid and uid.
139
+ */
38
140
function getColdkey (uint16 netuid , uint16 uid ) external view returns (bytes32 );
39
141
}
0 commit comments