web3 7.0.0b1__py3-none-any.whl → 7.0.0b3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. ens/async_ens.py +6 -8
  2. ens/ens.py +6 -6
  3. ens/utils.py +18 -16
  4. web3/_utils/abi.py +9 -15
  5. web3/_utils/events.py +15 -6
  6. web3/_utils/math.py +12 -14
  7. web3/_utils/method_formatters.py +7 -0
  8. web3/_utils/module_testing/eth_module.py +67 -6
  9. web3/_utils/module_testing/module_testing_utils.py +2 -2
  10. web3/_utils/request.py +1 -1
  11. web3/_utils/rpc_abi.py +1 -0
  12. web3/_utils/transactions.py +4 -0
  13. web3/contract/base_contract.py +1 -1
  14. web3/datastructures.py +7 -7
  15. web3/eth/async_eth.py +20 -2
  16. web3/eth/eth.py +13 -1
  17. web3/exceptions.py +11 -0
  18. web3/main.py +4 -30
  19. web3/manager.py +12 -13
  20. web3/middleware/__init__.py +9 -8
  21. web3/module.py +1 -1
  22. web3/providers/async_base.py +6 -6
  23. web3/providers/base.py +8 -8
  24. web3/providers/eth_tester/main.py +16 -20
  25. web3/providers/ipc.py +1 -1
  26. web3/providers/legacy_websocket.py +1 -1
  27. web3/providers/persistent/persistent.py +2 -2
  28. web3/providers/persistent/request_processor.py +3 -5
  29. web3/tools/benchmark/main.py +2 -2
  30. web3/types.py +4 -0
  31. web3/utils/caching.py +2 -4
  32. {web3-7.0.0b1.dist-info → web3-7.0.0b3.dist-info}/METADATA +3 -9
  33. web3-7.0.0b3.dist-info/RECORD +168 -0
  34. {web3-7.0.0b1.dist-info → web3-7.0.0b3.dist-info}/WHEEL +1 -1
  35. {web3-7.0.0b1.dist-info → web3-7.0.0b3.dist-info}/top_level.txt +0 -1
  36. ethpm/__init__.py +0 -20
  37. ethpm/_utils/__init__.py +0 -0
  38. ethpm/_utils/backend.py +0 -93
  39. ethpm/_utils/cache.py +0 -44
  40. ethpm/_utils/chains.py +0 -119
  41. ethpm/_utils/contract.py +0 -35
  42. ethpm/_utils/deployments.py +0 -145
  43. ethpm/_utils/ipfs.py +0 -116
  44. ethpm/_utils/protobuf/__init__.py +0 -0
  45. ethpm/_utils/protobuf/ipfs_file_pb2.py +0 -33
  46. ethpm/_utils/registry.py +0 -29
  47. ethpm/assets/__init__.py +0 -0
  48. ethpm/assets/ens/v3.json +0 -1
  49. ethpm/assets/escrow/with_bytecode_v3.json +0 -1
  50. ethpm/assets/ipfs_file.proto +0 -32
  51. ethpm/assets/owned/output_v3.json +0 -1
  52. ethpm/assets/owned/with_contract_type_v3.json +0 -1
  53. ethpm/assets/registry/contracts/Authority.sol +0 -156
  54. ethpm/assets/registry/contracts/IndexedOrderedSetLib.sol +0 -106
  55. ethpm/assets/registry/contracts/PackageDB.sol +0 -225
  56. ethpm/assets/registry/contracts/PackageRegistry.sol +0 -361
  57. ethpm/assets/registry/contracts/PackageRegistryInterface.sol +0 -97
  58. ethpm/assets/registry/contracts/ReleaseDB.sol +0 -309
  59. ethpm/assets/registry/contracts/ReleaseValidator.sol +0 -152
  60. ethpm/assets/registry/solc_input.json +0 -1
  61. ethpm/assets/registry/solc_output.json +0 -1
  62. ethpm/assets/registry/v3.json +0 -1
  63. ethpm/assets/safe-math-lib/v3-strict-no-deployments.json +0 -1
  64. ethpm/assets/simple-registry/contracts/Ownable.sol +0 -63
  65. ethpm/assets/simple-registry/contracts/PackageRegistry.sol +0 -373
  66. ethpm/assets/simple-registry/contracts/PackageRegistryInterface.sol +0 -96
  67. ethpm/assets/simple-registry/solc_input.json +0 -33
  68. ethpm/assets/simple-registry/solc_output.json +0 -1
  69. ethpm/assets/simple-registry/v3.json +0 -1
  70. ethpm/assets/standard-token/output_v3.json +0 -1
  71. ethpm/assets/standard-token/with_bytecode_v3.json +0 -1
  72. ethpm/assets/vyper_registry/0.1.0.json +0 -1
  73. ethpm/assets/vyper_registry/registry.vy +0 -216
  74. ethpm/assets/vyper_registry/registry_with_delete.vy +0 -244
  75. ethpm/backends/__init__.py +0 -0
  76. ethpm/backends/base.py +0 -43
  77. ethpm/backends/http.py +0 -108
  78. ethpm/backends/ipfs.py +0 -219
  79. ethpm/backends/registry.py +0 -154
  80. ethpm/constants.py +0 -17
  81. ethpm/contract.py +0 -187
  82. ethpm/dependencies.py +0 -58
  83. ethpm/deployments.py +0 -80
  84. ethpm/ethpm-spec/examples/escrow/1.0.0-pretty.json +0 -146
  85. ethpm/ethpm-spec/examples/escrow/1.0.0.json +0 -1
  86. ethpm/ethpm-spec/examples/escrow/contracts/Escrow.sol +0 -32
  87. ethpm/ethpm-spec/examples/escrow/contracts/SafeSendLib.sol +0 -20
  88. ethpm/ethpm-spec/examples/escrow/v3-pretty.json +0 -171
  89. ethpm/ethpm-spec/examples/escrow/v3.json +0 -1
  90. ethpm/ethpm-spec/examples/owned/1.0.0-pretty.json +0 -21
  91. ethpm/ethpm-spec/examples/owned/1.0.0.json +0 -1
  92. ethpm/ethpm-spec/examples/owned/contracts/Owned.sol +0 -12
  93. ethpm/ethpm-spec/examples/owned/v3-pretty.json +0 -27
  94. ethpm/ethpm-spec/examples/owned/v3.json +0 -1
  95. ethpm/ethpm-spec/examples/piper-coin/1.0.0-pretty.json +0 -31
  96. ethpm/ethpm-spec/examples/piper-coin/1.0.0.json +0 -1
  97. ethpm/ethpm-spec/examples/piper-coin/v3-pretty.json +0 -21
  98. ethpm/ethpm-spec/examples/piper-coin/v3.json +0 -1
  99. ethpm/ethpm-spec/examples/safe-math-lib/1.0.0-pretty.json +0 -85
  100. ethpm/ethpm-spec/examples/safe-math-lib/1.0.0.json +0 -1
  101. ethpm/ethpm-spec/examples/safe-math-lib/contracts/SafeMathLib.sol +0 -24
  102. ethpm/ethpm-spec/examples/safe-math-lib/v3-pretty.json +0 -117
  103. ethpm/ethpm-spec/examples/safe-math-lib/v3.json +0 -1
  104. ethpm/ethpm-spec/examples/standard-token/1.0.0-pretty.json +0 -55
  105. ethpm/ethpm-spec/examples/standard-token/1.0.0.json +0 -1
  106. ethpm/ethpm-spec/examples/standard-token/contracts/AbstractToken.sol +0 -20
  107. ethpm/ethpm-spec/examples/standard-token/contracts/StandardToken.sol +0 -84
  108. ethpm/ethpm-spec/examples/standard-token/v3-pretty.json +0 -460
  109. ethpm/ethpm-spec/examples/standard-token/v3.json +0 -1
  110. ethpm/ethpm-spec/examples/transferable/1.0.0-pretty.json +0 -21
  111. ethpm/ethpm-spec/examples/transferable/1.0.0.json +0 -1
  112. ethpm/ethpm-spec/examples/transferable/contracts/Transferable.sol +0 -14
  113. ethpm/ethpm-spec/examples/transferable/v3-pretty.json +0 -27
  114. ethpm/ethpm-spec/examples/transferable/v3.json +0 -1
  115. ethpm/ethpm-spec/examples/wallet/1.0.0-pretty.json +0 -120
  116. ethpm/ethpm-spec/examples/wallet/1.0.0.json +0 -1
  117. ethpm/ethpm-spec/examples/wallet/contracts/Wallet.sol +0 -41
  118. ethpm/ethpm-spec/examples/wallet/v3-pretty.json +0 -181
  119. ethpm/ethpm-spec/examples/wallet/v3.json +0 -1
  120. ethpm/ethpm-spec/examples/wallet-with-send/1.0.0-pretty.json +0 -135
  121. ethpm/ethpm-spec/examples/wallet-with-send/1.0.0.json +0 -1
  122. ethpm/ethpm-spec/examples/wallet-with-send/contracts/WalletWithSend.sol +0 -18
  123. ethpm/ethpm-spec/examples/wallet-with-send/v3-pretty.json +0 -207
  124. ethpm/ethpm-spec/examples/wallet-with-send/v3.json +0 -1
  125. ethpm/ethpm-spec/spec/package.spec.json +0 -379
  126. ethpm/ethpm-spec/spec/v3.spec.json +0 -483
  127. ethpm/exceptions.py +0 -68
  128. ethpm/package.py +0 -438
  129. ethpm/tools/__init__.py +0 -4
  130. ethpm/tools/builder.py +0 -930
  131. ethpm/tools/checker.py +0 -312
  132. ethpm/tools/get_manifest.py +0 -19
  133. ethpm/uri.py +0 -141
  134. ethpm/validation/__init__.py +0 -0
  135. ethpm/validation/manifest.py +0 -146
  136. ethpm/validation/misc.py +0 -39
  137. ethpm/validation/package.py +0 -80
  138. ethpm/validation/uri.py +0 -163
  139. web3/pm.py +0 -602
  140. web3/tools/__init__.py +0 -4
  141. web3/tools/pytest_ethereum/__init__.py +0 -0
  142. web3/tools/pytest_ethereum/_utils.py +0 -145
  143. web3/tools/pytest_ethereum/deployer.py +0 -48
  144. web3/tools/pytest_ethereum/exceptions.py +0 -22
  145. web3/tools/pytest_ethereum/linker.py +0 -128
  146. web3/tools/pytest_ethereum/plugins.py +0 -33
  147. web3-7.0.0b1.dist-info/RECORD +0 -280
  148. web3-7.0.0b1.dist-info/entry_points.txt +0 -2
  149. {web3-7.0.0b1.dist-info → web3-7.0.0b3.dist-info}/LICENSE +0 -0
@@ -1,361 +0,0 @@
1
- pragma solidity ^0.4.24;
2
- pragma experimental "v0.5.0";
3
-
4
-
5
- import {PackageDB} from "./PackageDB.sol";
6
- import {ReleaseDB} from "./ReleaseDB.sol";
7
- import {ReleaseValidator} from "./ReleaseValidator.sol";
8
- import {PackageRegistryInterface} from "./PackageRegistryInterface.sol";
9
- import {Authorized} from "./Authority.sol";
10
-
11
-
12
- /// @title Database contract for a package index.
13
- /// @author Tim Coulter <tim.coulter@consensys.net>, Piper Merriam <pipermerriam@gmail.com>
14
- contract PackageRegistry is Authorized, PackageRegistryInterface {
15
- PackageDB private packageDb;
16
- ReleaseDB private releaseDb;
17
- ReleaseValidator private releaseValidator;
18
-
19
- // Events
20
- event VersionRelease(string packageName, string version, string manifestURI);
21
- event PackageTransfer(address indexed oldOwner, address indexed newOwner);
22
-
23
- //
24
- // Administrative API
25
- //
26
- /// @dev Sets the address of the PackageDb contract.
27
- /// @param newPackageDb The address to set for the PackageDb.
28
- function setPackageDb(address newPackageDb)
29
- public
30
- auth
31
- returns (bool)
32
- {
33
- packageDb = PackageDB(newPackageDb);
34
- return true;
35
- }
36
-
37
- /// @dev Sets the address of the ReleaseDb contract.
38
- /// @param newReleaseDb The address to set for the ReleaseDb.
39
- function setReleaseDb(address newReleaseDb)
40
- public
41
- auth
42
- returns (bool)
43
- {
44
- releaseDb = ReleaseDB(newReleaseDb);
45
- return true;
46
- }
47
-
48
- /// @dev Sets the address of the ReleaseValidator contract.
49
- /// @param newReleaseValidator The address to set for the ReleaseValidator.
50
- function setReleaseValidator(address newReleaseValidator)
51
- public
52
- auth
53
- returns (bool)
54
- {
55
- releaseValidator = ReleaseValidator(newReleaseValidator);
56
- return true;
57
- }
58
-
59
- //
60
- // +-------------+
61
- // | Write API |
62
- // +-------------+
63
- //
64
- /// @dev Creates a a new release for the named package. If this is the first release for the given package then this will also assign msg.sender as the owner of the package. Returns success.
65
- /// @notice Will create a new release the given package with the given release information.
66
- /// @param packageName Package name
67
- /// @param version Version string (ex: '1.0.0')
68
- /// @param manifestURI The URI for the release manifest for this release.
69
- function release(
70
- string packageName,
71
- string version,
72
- string manifestURI
73
- )
74
- public
75
- auth
76
- returns (bytes32 releaseId)
77
- {
78
- require(address(packageDb) != 0x0, "escape:PackageIndex:package-db-not-set");
79
- require(address(releaseDb) != 0x0, "escape:PackageIndex:release-db-not-set");
80
- require(address(releaseValidator) != 0x0, "escape:PackageIndex:release-validator-not-set");
81
-
82
- bytes32 versionHash = releaseDb.hashVersion(version);
83
-
84
- // If the version for this release is not in the version database, populate
85
- // it. This must happen prior to validation to ensure that the version is
86
- // present in the releaseDb.
87
- if (!releaseDb.versionExists(versionHash)) {
88
- releaseDb.setVersion(version);
89
- }
90
-
91
- // Run release validator. This method reverts with an error message string
92
- // on failure.
93
- releaseValidator.validateRelease(
94
- packageDb,
95
- releaseDb,
96
- msg.sender,
97
- packageName,
98
- version,
99
- manifestURI
100
- );
101
-
102
- // Compute hashes
103
- bool _packageExists = packageExists(packageName);
104
-
105
- // Both creates the package if it is new as well as updating the updatedAt
106
- // timestamp on the package.
107
- packageDb.setPackage(packageName);
108
-
109
- bytes32 nameHash = packageDb.hashName(packageName);
110
-
111
- // If the package does not yet exist create it and set the owner
112
- if (!_packageExists) {
113
- packageDb.setPackageOwner(nameHash, msg.sender);
114
- }
115
-
116
- // Create the release and add it to the list of package release hashes.
117
- releaseDb.setRelease(nameHash, versionHash, manifestURI);
118
-
119
- // Log the release.
120
- releaseId = releaseDb.hashRelease(nameHash, versionHash);
121
- emit VersionRelease(packageName, version, manifestURI);
122
-
123
- return releaseId;
124
- }
125
-
126
- /// @dev Transfers package ownership to the provider new owner address.
127
- /// @notice Will transfer ownership of this package to the provided new owner address.
128
- /// @param name Package name
129
- /// @param newPackageOwner The address of the new owner.
130
- function transferPackageOwner(string name, address newPackageOwner)
131
- public
132
- auth
133
- returns (bool)
134
- {
135
- if (isPackageOwner(name, msg.sender)) {
136
- // Only the package owner may transfer package ownership.
137
- return false;
138
- }
139
-
140
- // Lookup the current owner
141
- address packageOwner;
142
- (packageOwner,,,) = getPackageData(name);
143
-
144
- // Log the transfer
145
- emit PackageTransfer(packageOwner, newPackageOwner);
146
-
147
- // Update the owner.
148
- packageDb.setPackageOwner(packageDb.hashName(name), newPackageOwner);
149
-
150
- return true;
151
- }
152
-
153
- //
154
- // +------------+
155
- // | Read API |
156
- // +------------+
157
- //
158
-
159
- /// @dev Returns the address of the packageDb
160
- function getPackageDb()
161
- public
162
- view
163
- returns (address)
164
- {
165
- return address(packageDb);
166
- }
167
-
168
- /// @dev Returns the address of the releaseDb
169
- function getReleaseDb()
170
- public
171
- view
172
- returns (address)
173
- {
174
- return address(releaseDb);
175
- }
176
-
177
- /// @dev Returns the address of the releaseValidator
178
- function getReleaseValidator()
179
- public
180
- view
181
- returns (address)
182
- {
183
- return address(releaseValidator);
184
- }
185
-
186
- /// @dev Query the existence of a package with the given name. Returns boolean indicating whether the package exists.
187
- /// @param name Package name
188
- function packageExists(string name)
189
- public
190
- view
191
- returns (bool)
192
- {
193
- return packageDb.packageExists(packageDb.hashName(name));
194
- }
195
-
196
- /// @dev Query the existence of a release at the provided version for the named package. Returns boolean indicating whether such a release exists.
197
- /// @param name Package name
198
- /// @param version Version string (ex: '1.0.0')
199
- function releaseExists(
200
- string name,
201
- string version
202
- )
203
- public
204
- view
205
- returns (bool)
206
- {
207
- bytes32 nameHash = packageDb.hashName(name);
208
- bytes32 versionHash = releaseDb.hashVersion(version);
209
- return releaseDb.releaseExists(releaseDb.hashRelease(nameHash, versionHash));
210
- }
211
-
212
- /// @dev Returns a slice of the array of all package hashes for the named package.
213
- /// @param offset The starting index for the slice.
214
- /// @param limit The length of the slice
215
- function getAllPackageIds(uint offset, uint limit)
216
- public
217
- view
218
- returns(
219
- bytes32[] packageIds,
220
- uint pointer
221
- )
222
- {
223
- return packageDb.getAllPackageIds(offset, limit);
224
- }
225
-
226
- /// @dev Retrieves the name for the given name hash.
227
- /// @param packageId The name hash of package to lookup the name for.
228
- function getPackageName(bytes32 packageId)
229
- public
230
- view
231
- returns (string packageName)
232
- {
233
- return packageDb.getPackageName(packageId);
234
- }
235
-
236
- /// @dev Returns the package data.
237
- /// @param name Package name
238
- function getPackageData(string name)
239
- public
240
- view
241
- returns (
242
- address packageOwner,
243
- uint createdAt,
244
- uint numReleases,
245
- uint updatedAt
246
- )
247
- {
248
- bytes32 nameHash = packageDb.hashName(name);
249
- (packageOwner, createdAt, updatedAt) = packageDb.getPackageData(nameHash);
250
- numReleases = releaseDb.getNumReleasesForNameHash(nameHash);
251
- return (packageOwner, createdAt, numReleases, updatedAt);
252
- }
253
-
254
- /// @dev Returns the release data for the release associated with the given release hash.
255
- /// @param releaseId The release hash.
256
- function getReleaseData(bytes32 releaseId)
257
- public
258
- view
259
- returns (
260
- string packageName,
261
- string version,
262
- string manifestURI
263
- )
264
- {
265
- bytes32 versionHash;
266
- bytes32 nameHash;
267
- (nameHash,versionHash, ,) = releaseDb.getReleaseData(releaseId);
268
-
269
- packageName = packageDb.getPackageName(nameHash);
270
- version = releaseDb.getVersion(versionHash);
271
- manifestURI = releaseDb.getManifestURI(releaseId);
272
-
273
- return (packageName, version, manifestURI);
274
- }
275
-
276
- /// @dev Returns a slice of the array of all package hashes for the named package.
277
- /// @param offset The starting index for the slice.
278
- /// @param limit The length of the slice
279
- function getAllReleaseIds(string packageName, uint offset, uint limit)
280
- public
281
- view
282
- returns (
283
- bytes32[] releaseIds,
284
- uint pointer
285
- )
286
- {
287
- bytes32 nameHash = packageDb.hashName(packageName);
288
- return releaseDb.getAllReleaseIds(nameHash, offset, limit);
289
- }
290
-
291
- /// @dev Returns release id that *would* be generated for a name and version pair on `release`.
292
- /// @param packageName Package name
293
- /// @param version Version string (ex: '1.0.0')
294
- function generateReleaseId(string packageName, string version)
295
- public
296
- view
297
- returns (bytes32 releaseId)
298
- {
299
- bytes32 nameHash = packageDb.hashName(packageName);
300
- bytes32 versionHash = releaseDb.hashVersion(version);
301
- return keccak256(abi.encodePacked(nameHash, versionHash));
302
- }
303
-
304
- /// @dev Returns the release id for a given name and version pair if present on registry.
305
- /// @param packageName Package name
306
- /// @param version Version string(ex: '1.0.0')
307
- function getReleaseId(string packageName, string version)
308
- public
309
- view
310
- returns (bytes32 releaseId)
311
- {
312
- releaseId = generateReleaseId(packageName, version);
313
- bool _releaseExists = releaseDb.releaseExists(releaseId);
314
- if (!_releaseExists) {
315
- return 0;
316
- }
317
- return releaseId;
318
- }
319
-
320
- /// @dev Returns the number of packages stored on the registry
321
- function numPackageIds()
322
- public
323
- view
324
- returns (uint totalCount)
325
- {
326
- return packageDb.getNumPackages();
327
- }
328
-
329
- /// @dev Returns the number of releases for a given package name on the registry
330
- /// @param packageName Package name
331
- function numReleaseIds(string packageName)
332
- public
333
- view
334
- returns (uint totalCount)
335
- {
336
- bool _packageExists = packageExists(packageName);
337
- if (!_packageExists) {
338
- return 0;
339
- }
340
- bytes32 nameHash = packageDb.hashName(packageName);
341
- return releaseDb.getNumReleasesForNameHash(nameHash);
342
- }
343
-
344
- //
345
- // +----------------+
346
- // | Internal API |
347
- // +----------------+
348
- //
349
- /// @dev Returns boolean whether the provided address is the package owner
350
- /// @param name The name of the package
351
- /// @param _address The address to check
352
- function isPackageOwner(string name, address _address)
353
- internal
354
- view
355
- returns (bool)
356
- {
357
- address packageOwner;
358
- (packageOwner,,,) = getPackageData(name);
359
- return (packageOwner != _address);
360
- }
361
- }
@@ -1,97 +0,0 @@
1
- pragma solidity ^0.4.24;
2
- pragma experimental "v0.5.0";
3
-
4
-
5
- /// @title EIP 1319 Smart Contract Package Registry Interface
6
- /// @author Piper Merriam <pipermerriam@gmail.com>, Christopher Gewecke <christophergewecke@gmail.com>
7
- contract PackageRegistryInterface {
8
-
9
- //
10
- // +-------------+
11
- // | Write API |
12
- // +-------------+
13
- //
14
-
15
- /// @dev Creates a a new release for the named package.
16
- /// @notice Will create a new release the given package with the given release information.
17
- /// @param packageName Package name
18
- /// @param version Version string (ex: 1.0.0)
19
- /// @param manifestURI The URI for the release manifest for this release.
20
- function release(
21
- string packageName,
22
- string version,
23
- string manifestURI
24
- )
25
- public
26
- returns (bytes32 releaseId);
27
-
28
- //
29
- // +------------+
30
- // | Read API |
31
- // +------------+
32
- //
33
-
34
- /// @dev Returns the string name of the package associated with a package id
35
- /// @param packageId The package id to look up
36
- function getPackageName(bytes32 packageId)
37
- public
38
- view
39
- returns (string packageName);
40
-
41
- /// @dev Returns a slice of the array of all package ids for the named package.
42
- /// @param offset The starting index for the slice.
43
- /// @param limit The length of the slice
44
- function getAllPackageIds(uint offset, uint limit)
45
- public
46
- view
47
- returns (
48
- bytes32[] packageIds,
49
- uint pointer
50
- );
51
-
52
- /// @dev Returns a slice of the array of all release hashes for the named package.
53
- /// @param packageName Package name
54
- /// @param offset The starting index for the slice.
55
- /// @param limit The length of the slice
56
- function getAllReleaseIds(string packageName, uint offset, uint limit)
57
- public
58
- view
59
- returns (
60
- bytes32[] releaseIds,
61
- uint pointer
62
- );
63
-
64
- /// @dev Returns the package data for a release.
65
- /// @param releaseId Release id
66
- function getReleaseData(bytes32 releaseId)
67
- public
68
- view
69
- returns (
70
- string packageName,
71
- string version,
72
- string manifestURI
73
- );
74
-
75
- // @dev Returns release id that *would* be generated for a name and version pair on `release`.
76
- // @param packageName Package name
77
- // @param version Version string (ex: '1.0.0')
78
- function generateReleaseId(string packageName, string version)
79
- public
80
- view
81
- returns (bytes32 releaseId);
82
-
83
- /// @dev Returns the release id for a given name and version pair if present on registry.
84
- /// @param packageName Package name
85
- /// @param version Version string(ex: '1.0.0')
86
- function getReleaseId(string packageName, string version)
87
- public
88
- view
89
- returns (bytes32 releaseId);
90
-
91
- /// @dev Returns the number of packages stored on the registry
92
- function numPackageIds() public view returns (uint totalCount);
93
-
94
- /// @dev Returns the number of releases for a given package name on the registry
95
- /// @param packageName Package name
96
- function numReleaseIds(string packageName) public view returns (uint totalCount);
97
- }