1
- pragma solidity >= 0.5.10 ;
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ pragma solidity ^ 0.6.0 ;
2
4
3
5
import {PackageRegistryInterface} from "./PackageRegistryInterface.sol " ;
4
6
import {Ownable} from "./Ownable.sol " ;
@@ -69,6 +71,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
69
71
string memory manifestURI
70
72
)
71
73
public
74
+ override
72
75
onlyOwner
73
76
returns (bytes32 )
74
77
{
@@ -140,6 +143,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
140
143
/// @param packageId The package id to look up
141
144
function getPackageName (bytes32 packageId )
142
145
public
146
+ override
143
147
view
144
148
returns (string memory packageName )
145
149
{
@@ -153,6 +157,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
153
157
/// @param limit The length of the slice
154
158
function getAllPackageIds (uint offset , uint limit )
155
159
public
160
+ override
156
161
view
157
162
returns (
158
163
bytes32 [] memory packageIds ,
@@ -194,6 +199,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
194
199
/// @param limit The length of the slice
195
200
function getAllReleaseIds (string memory packageName , uint offset , uint limit )
196
201
public
202
+ override
197
203
view
198
204
onlyIfPackageExists (packageName)
199
205
returns (
@@ -239,6 +245,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
239
245
/// @param releaseId Release id
240
246
function getReleaseData (bytes32 releaseId )
241
247
public
248
+ override
242
249
view
243
250
returns (
244
251
string memory packageName , string memory version ,
@@ -255,6 +262,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
255
262
/// @param version Version string(ex: '1.0.0')
256
263
function getReleaseId (string memory packageName , string memory version )
257
264
public
265
+ override
258
266
view
259
267
onlyIfPackageExists (packageName)
260
268
onlyIfReleaseExists (packageName, version)
@@ -264,7 +272,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
264
272
}
265
273
266
274
/// @dev Returns the number of packages stored on the registry
267
- function numPackageIds () public view returns (uint totalCount )
275
+ function numPackageIds () public override view returns (uint totalCount )
268
276
{
269
277
return packageCount;
270
278
}
@@ -273,6 +281,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
273
281
/// @param packageName Package name
274
282
function numReleaseIds (string memory packageName )
275
283
public
284
+ override
276
285
view
277
286
onlyIfPackageExists (packageName)
278
287
returns (uint totalCount )
@@ -327,6 +336,7 @@ contract PackageRegistry is PackageRegistryInterface, Ownable {
327
336
string memory version
328
337
)
329
338
public
339
+ override
330
340
view
331
341
returns (bytes32 )
332
342
{
0 commit comments