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,483 +0,0 @@
1
- {
2
- "title": "Package Manifest",
3
- "description": "EthPM Manifest Specification",
4
- "type": "object",
5
- "required": [
6
- "manifest"
7
- ],
8
- "version": "3",
9
- "not": {
10
- "required": ["manifest_version"]
11
- },
12
- "properties": {
13
- "manifest": {
14
- "type": "string",
15
- "title": "Manifest",
16
- "description": "EthPM Manifest Version",
17
- "default": "ethpm/3",
18
- "enum": ["ethpm/3"]
19
- },
20
- "name": {
21
- "$ref": "#/definitions/PackageName"
22
- },
23
- "version": {
24
- "title": "Package Version",
25
- "description": "The version of the package that this release is for",
26
- "type": "string"
27
- },
28
- "meta": {
29
- "$ref": "#/definitions/PackageMeta"
30
- },
31
- "sources": {
32
- "title": "Sources",
33
- "description": "The source files included in this release",
34
- "type": "object",
35
- "patternProperties": {
36
- ".*": {
37
- "$ref": "#/definitions/Source"
38
- }
39
- }
40
- },
41
- "compilers": {
42
- "title": "Compilers",
43
- "description": "The compiler versions used in this release",
44
- "type": "array",
45
- "items": {
46
- "$ref": "#/definitions/CompilerInformation"
47
- }
48
- },
49
- "contractTypes": {
50
- "title": "Contract Types",
51
- "description": "The contract types included in this release",
52
- "type": "object",
53
- "propertyNames": {
54
- "$ref": "#/definitions/ContractTypeName"
55
- },
56
- "patternProperties": {
57
- "": {
58
- "$ref": "#/definitions/ContractType"
59
- }
60
- }
61
- },
62
- "deployments": {
63
- "title": "Deployments",
64
- "description": "The deployed contract instances in this release",
65
- "type": "object",
66
- "propertyNames": {
67
- "$ref": "#/definitions/BlockchainURI"
68
- },
69
- "patternProperties": {
70
- "": {
71
- "$ref": "#/definitions/Deployment"
72
- }
73
- }
74
- },
75
- "buildDependencies": {
76
- "title": "Build Dependencies",
77
- "type": "object",
78
- "propertyNames": {
79
- "$ref": "#/definitions/PackageName"
80
- },
81
- "patternProperties": {
82
- "": {
83
- "$ref": "#/definitions/ContentURI"
84
- }
85
- }
86
- }
87
- },
88
- "definitions": {
89
- "Source": {
90
- "title": "Source",
91
- "description": "Information about a source file included in this package",
92
- "type": "object",
93
- "anyOf": [
94
- {"required": ["content"]},
95
- {"required": ["urls"]}
96
- ],
97
- "properties": {
98
- "checksum": {
99
- "$ref": "#/definitions/ChecksumObject"
100
- },
101
- "urls": {
102
- "title": "URLs",
103
- "description": "Array of urls that resolve to the source file",
104
- "type": "array",
105
- "items": {
106
- "$ref": "#/definitions/ContentURI"
107
- }
108
- },
109
- "content": {
110
- "title": "Inlined source code",
111
- "type": "string"
112
- },
113
- "installPath": {
114
- "title": "Target file path to install source file",
115
- "type": "string",
116
- "pattern": "^\\.\\/.*$"
117
- },
118
- "type": {
119
- "title": "Type",
120
- "description": "File type of this source",
121
- "type": "string"
122
- },
123
- "license": {
124
- "title": "License",
125
- "description": "The license associated with the source file",
126
- "type": "string"
127
- }
128
- }
129
- },
130
- "PackageMeta": {
131
- "title": "Package Meta",
132
- "description": "Metadata about the package",
133
- "type": "object",
134
- "properties": {
135
- "authors": {
136
- "title": "Authors",
137
- "description": "Authors of this package",
138
- "type": "array",
139
- "items": {
140
- "type": "string"
141
- }
142
- },
143
- "license": {
144
- "title": "License",
145
- "description": "The license that this package and its source are released under",
146
- "type": "string"
147
- },
148
- "description": {
149
- "title": "Description",
150
- "description": "Description of this package",
151
- "type": "string"
152
- },
153
- "keywords": {
154
- "title": "Keywords",
155
- "description": "Keywords that apply to this package",
156
- "type": "array",
157
- "items": {
158
- "type": "string"
159
- }
160
- },
161
- "links": {
162
- "title": "Links",
163
- "descriptions": "URIs for resources related to this package",
164
- "type": "object",
165
- "additionalProperties": {
166
- "type": "string",
167
- "format": "uri"
168
- }
169
- }
170
- }
171
- },
172
- "PackageName": {
173
- "title": "Package Name",
174
- "description": "The name of the package that this release is for",
175
- "type": "string",
176
- "pattern": "^[a-z][-a-z0-9]{0,255}$"
177
- },
178
- "ContractType": {
179
- "title": "Contract Type",
180
- "description": "Data for a contract type included in this package",
181
- "type": "object",
182
- "properties":{
183
- "contractName": {
184
- "$ref": "#/definitions/ContractTypeName"
185
- },
186
- "sourceId": {
187
- "title": "Source ID",
188
- "description": "The source ID that corresponds to this contract type",
189
- "type": "string"
190
- },
191
- "deploymentBytecode": {
192
- "$ref": "#/definitions/BytecodeObject"
193
- },
194
- "runtimeBytecode": {
195
- "$ref": "#/definitions/BytecodeObject"
196
- },
197
- "abi": {
198
- "title": "ABI",
199
- "description": "The ABI for this contract type",
200
- "type": "array"
201
- },
202
- "devdoc": {
203
- "title": "Devdoc",
204
- "description": "The dev-doc for this contract",
205
- "type": "object"
206
- },
207
- "userdoc": {
208
- "title": "Userdoc",
209
- "description": "The user-doc for this contract",
210
- "type": "object"
211
- }
212
- }
213
- },
214
- "ContractInstance": {
215
- "title": "Contract Instance",
216
- "description": "Data for a deployed instance of a contract",
217
- "type": "object",
218
- "required": [
219
- "contractType",
220
- "address"
221
- ],
222
- "properties": {
223
- "contractType": {
224
- "anyOf": [
225
- {"$ref": "#/definitions/ContractTypeName"},
226
- {"$ref": "#/definitions/NestedContractTypeName"}
227
- ]
228
- },
229
- "address": {
230
- "$ref": "#/definitions/Address"
231
- },
232
- "transaction": {
233
- "$ref": "#/definitions/TransactionHash"
234
- },
235
- "block": {
236
- "$ref": "#/definitions/BlockHash"
237
- },
238
- "runtimeBytecode": {
239
- "$ref": "#/definitions/BytecodeObject"
240
- },
241
- "linkDependencies": {
242
- "title": "Link Dependencies",
243
- "description": "The values for the link references found within this contract instances runtime bytecode",
244
- "type": "array",
245
- "items": {
246
- "$ref": "#/definitions/LinkValue"
247
- }
248
- }
249
- }
250
- },
251
- "ContractTypeName": {
252
- "title": "Contract Type Name",
253
- "description": "The name of the contract type",
254
- "type": "string",
255
- "pattern": "^(?:[a-z][-a-z0-9]{0,255}\\:)?[a-zA-Z_$][-a-zA-Z0-9_$]{0,255}(?:[-a-zA-Z0-9]{1,256}])?$"
256
- },
257
- "ByteString": {
258
- "title": "Byte String",
259
- "description": "0x-prefixed hexadecimal string representing bytes",
260
- "type": "string",
261
- "pattern": "^0x([0-9a-fA-F]{2})*$"
262
- },
263
- "BytecodeObject": {
264
- "title": "Bytecode Object",
265
- "type": "object",
266
- "anyOf": [
267
- {"required": ["bytecode"]},
268
- {"required": ["linkDependencies"]}
269
- ],
270
- "properties": {
271
- "bytecode": {
272
- "$ref": "#/definitions/ByteString"
273
- },
274
- "linkReferences": {
275
- "type": "array",
276
- "items": {
277
- "$ref": "#/definitions/LinkReference"
278
- }
279
- },
280
- "linkDependencies": {
281
- "type": "array",
282
- "items": {
283
- "$ref": "#/definitions/LinkValue"
284
- }
285
- }
286
- }
287
- },
288
- "ChecksumObject": {
289
- "title": "Checksum Object",
290
- "description": "Checksum information about the contents of a source file",
291
- "type": "object",
292
- "required": [
293
- "hash",
294
- "algorithm"
295
- ],
296
- "properties": {
297
- "hash": {
298
- "type": "string"
299
- },
300
- "algorithm": {
301
- "type": "string"
302
- }
303
- }
304
- },
305
- "LinkReference": {
306
- "title": "Link Reference",
307
- "description": "A defined location in some bytecode which requires linking",
308
- "type": "object",
309
- "required": [
310
- "offsets",
311
- "length",
312
- "name"
313
- ],
314
- "properties": {
315
- "offsets": {
316
- "type": "array",
317
- "items": {
318
- "type": "integer",
319
- "minimum": 0
320
- }
321
- },
322
- "length": {
323
- "type": "integer",
324
- "minimum": 1
325
- },
326
- "name": {
327
- "anyOf": [
328
- {"$ref": "#/definitions/ContractTypeName"},
329
- {"$ref": "#/definitions/NestedContractTypeName"}
330
- ]
331
- }
332
- }
333
- },
334
- "LinkValue": {
335
- "title": "Link Value",
336
- "description": "A value for an individual link reference in a contract's bytecode",
337
- "type": "object",
338
- "required": [
339
- "offsets",
340
- "type",
341
- "value"
342
- ],
343
- "properties": {
344
- "offsets": {
345
- "type": "array",
346
- "items": {
347
- "type": "integer",
348
- "minimum": 0
349
- }
350
- },
351
- "type": {
352
- "description": "The type of link value",
353
- "type": "string"
354
- },
355
- "value": {
356
- "description": "The value for the link reference"
357
- }
358
- },
359
- "oneOf": [{
360
- "properties": {
361
- "type": {
362
- "enum": ["literal"]
363
- },
364
- "value": {
365
- "$ref": "#/definitions/ByteString"
366
- }
367
- }
368
- }, {
369
- "properties": {
370
- "type": {
371
- "enum": ["reference"]
372
- },
373
- "value": {
374
- "anyOf": [
375
- {"$ref": "#/definitions/ContractInstanceName"},
376
- {"$ref": "#/definitions/NestedContractInstanceName"}
377
- ]
378
- }
379
- }
380
- }]
381
- },
382
- "ContractInstanceName": {
383
- "title": "Contract Instance Name",
384
- "description": "The name of the deployed contract instance",
385
- "type": "string",
386
- "pattern": "^[a-zA-Z_$][-a-zA-Z0-9_$]{0,255}(?:[-a-zA-Z0-9]{1,256})?$"
387
- },
388
- "Deployment": {
389
- "title": "Deployment",
390
- "type": "object",
391
- "propertyNames": {
392
- "$ref": "#/definitions/ContractInstanceName"
393
- },
394
- "patternProperties": {
395
- "": {
396
- "$ref": "#/definitions/ContractInstance"
397
- }
398
- }
399
- },
400
- "NestedContractTypeName": {
401
- "title": "Nested Contract Type Name",
402
- "description": "Name of a nested contract type from somewhere down the dependency tree",
403
- "type": "string",
404
- "pattern": "^(?:[a-z][-a-z0-9]{0,255}\\:)+[a-zA-Z_$][-a-zA-Z0-9_$]{0,255}(?:[-a-zA-Z0-9]{1,256})?$"
405
- },
406
- "NestedContractInstanceName": {
407
- "title": "Nested Contract Instance Name",
408
- "description": "Name of a nested contract instance from somewhere down the dependency tree",
409
- "type": "string",
410
- "pattern": "^(?:[a-z][-a-z0-9]{0,255}\\:)+[a-zA-Z_$][-a-zA-Z0-9_$]{0,255}(?:[-a-zA-Z0-9]{1,256})?$"
411
- },
412
- "CompilerInformation": {
413
- "title": "Compiler Information",
414
- "description": "Information about the software that was used to compile a contract type or deployment",
415
- "type": "object",
416
- "required": [
417
- "name",
418
- "version"
419
- ],
420
- "properties": {
421
- "name": {
422
- "description": "The name of the compiler",
423
- "type": "string"
424
- },
425
- "version": {
426
- "description": "The version string for the compiler",
427
- "type": "string"
428
- },
429
- "settings": {
430
- "description": "The settings used for compilation",
431
- "type": "object"
432
- },
433
- "contractTypes": {
434
- "description": "The contract types that targeted this compiler.",
435
- "type": "array",
436
- "items": {
437
- "$ref": "#/definitions/ContractTypeName"
438
- }
439
- }
440
- }
441
- },
442
- "Address": {
443
- "title": "Address",
444
- "description": "A 0x-prefixed Ethereum address",
445
- "allOf": [
446
- { "$ref": "#/definitions/ByteString" },
447
- { "minLength": 42, "maxLength": 42 }
448
- ]
449
- },
450
- "TransactionHash": {
451
- "title": "Transaction Hash",
452
- "description": "A 0x-prefixed Ethereum transaction hash",
453
- "allOf": [
454
- { "$ref": "#/definitions/ByteString" },
455
- { "minLength": 66, "maxLength": 66 }
456
- ]
457
- },
458
- "BlockHash": {
459
- "title": "Block Hash",
460
- "description": "An Ethereum block hash",
461
- "allOf": [
462
- { "$ref": "#/definitions/ByteString" },
463
- { "minLength": 66, "maxLength": 66 }
464
- ]
465
- },
466
- "ContentURI": {
467
- "title": "Content URI",
468
- "description": "An content addressable URI",
469
- "type": "string",
470
- "format": "uri"
471
- },
472
- "BlockchainURI": {
473
- "title": "Blockchain URI",
474
- "description": "An BIP122 URI",
475
- "type": "string",
476
- "pattern": "^blockchain\\://[0-9a-fA-F]{64}\\/block\\/[0-9a-fA-F]{64}$"
477
- }
478
- },
479
- "dependencies": {
480
- "name": ["version"],
481
- "version": ["name"]
482
- }
483
- }
ethpm/exceptions.py DELETED
@@ -1,68 +0,0 @@
1
- from eth_utils import (
2
- ValidationError,
3
- )
4
-
5
-
6
- class EthPMException(Exception):
7
- """
8
- Base class for all Py-EthPM errors.
9
- """
10
-
11
- pass
12
-
13
-
14
- class InsufficientAssetsError(EthPMException):
15
- """
16
- Raised when a Manifest or Package does not contain the required
17
- assets to do something.
18
- """
19
-
20
- pass
21
-
22
-
23
- class EthPMValidationError(EthPMException, ValidationError):
24
- """
25
- Raised when something does not pass a validation check.
26
- """
27
-
28
- pass
29
-
30
-
31
- class CannotHandleURI(EthPMException):
32
- """
33
- Raised when the given URI cannot be served by any of the available backends.
34
- """
35
-
36
- pass
37
-
38
-
39
- class FailureToFetchIPFSAssetsError(EthPMException):
40
- """
41
- Raised when an attempt to fetch a Package's assets via IPFS failed.
42
- """
43
-
44
- pass
45
-
46
-
47
- class BytecodeLinkingError(EthPMException):
48
- """
49
- Raised when an attempt to link a contract factory's bytecode failed.
50
- """
51
-
52
- pass
53
-
54
-
55
- class ManifestBuildingError(EthPMException):
56
- """
57
- Raised when an attempt to build a manifest failed.
58
- """
59
-
60
- pass
61
-
62
-
63
- class ManifestValidationError(EthPMException):
64
- """
65
- Raised when a provided manifest cannot be published, since it's invalid.
66
- """
67
-
68
- pass