web3 7.0.0b1__py3-none-any.whl → 7.7.0__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 (261) hide show
  1. ens/__init__.py +13 -2
  2. ens/_normalization.py +4 -4
  3. ens/async_ens.py +31 -21
  4. ens/base_ens.py +3 -1
  5. ens/contract_data.py +2 -2
  6. ens/ens.py +14 -11
  7. ens/exceptions.py +16 -29
  8. ens/specs/nf.json +1 -1
  9. ens/specs/normalization_spec.json +1 -1
  10. ens/utils.py +33 -41
  11. web3/__init__.py +23 -12
  12. web3/_utils/abi.py +162 -274
  13. web3/_utils/async_transactions.py +34 -20
  14. web3/_utils/batching.py +217 -0
  15. web3/_utils/blocks.py +6 -2
  16. web3/_utils/caching/__init__.py +12 -0
  17. web3/_utils/caching/caching_utils.py +433 -0
  18. web3/_utils/caching/request_caching_validation.py +287 -0
  19. web3/_utils/compat/__init__.py +2 -3
  20. web3/_utils/contract_sources/compile_contracts.py +1 -1
  21. web3/_utils/contract_sources/contract_data/ambiguous_function_contract.py +42 -0
  22. web3/_utils/contract_sources/contract_data/arrays_contract.py +3 -3
  23. web3/_utils/contract_sources/contract_data/bytes_contracts.py +5 -5
  24. web3/_utils/contract_sources/contract_data/constructor_contracts.py +7 -7
  25. web3/_utils/contract_sources/contract_data/contract_caller_tester.py +3 -3
  26. web3/_utils/contract_sources/contract_data/emitter_contract.py +3 -3
  27. web3/_utils/contract_sources/contract_data/event_contracts.py +50 -5
  28. web3/_utils/contract_sources/contract_data/extended_resolver.py +3 -3
  29. web3/_utils/contract_sources/contract_data/fallback_function_contract.py +3 -3
  30. web3/_utils/contract_sources/contract_data/function_name_tester_contract.py +3 -3
  31. web3/_utils/contract_sources/contract_data/math_contract.py +3 -3
  32. web3/_utils/contract_sources/contract_data/offchain_lookup.py +3 -3
  33. web3/_utils/contract_sources/contract_data/offchain_resolver.py +3 -3
  34. web3/_utils/contract_sources/contract_data/panic_errors_contract.py +3 -3
  35. web3/_utils/contract_sources/contract_data/payable_tester.py +3 -3
  36. web3/_utils/contract_sources/contract_data/receive_function_contracts.py +5 -5
  37. web3/_utils/contract_sources/contract_data/reflector_contracts.py +3 -3
  38. web3/_utils/contract_sources/contract_data/revert_contract.py +3 -3
  39. web3/_utils/contract_sources/contract_data/simple_resolver.py +3 -3
  40. web3/_utils/contract_sources/contract_data/storage_contract.py +3 -3
  41. web3/_utils/contract_sources/contract_data/string_contract.py +3 -3
  42. web3/_utils/contract_sources/contract_data/tuple_contracts.py +5 -5
  43. web3/_utils/contracts.py +172 -220
  44. web3/_utils/datatypes.py +5 -1
  45. web3/_utils/decorators.py +6 -1
  46. web3/_utils/empty.py +1 -1
  47. web3/_utils/encoding.py +16 -12
  48. web3/_utils/error_formatters_utils.py +5 -3
  49. web3/_utils/events.py +78 -72
  50. web3/_utils/fee_utils.py +1 -3
  51. web3/_utils/filters.py +24 -22
  52. web3/_utils/formatters.py +2 -2
  53. web3/_utils/http.py +8 -2
  54. web3/_utils/http_session_manager.py +314 -0
  55. web3/_utils/math.py +14 -15
  56. web3/_utils/method_formatters.py +161 -34
  57. web3/_utils/module.py +2 -1
  58. web3/_utils/module_testing/__init__.py +3 -2
  59. web3/_utils/module_testing/eth_module.py +736 -583
  60. web3/_utils/module_testing/go_ethereum_debug_module.py +128 -0
  61. web3/_utils/module_testing/module_testing_utils.py +81 -24
  62. web3/_utils/module_testing/persistent_connection_provider.py +702 -220
  63. web3/_utils/module_testing/utils.py +114 -33
  64. web3/_utils/module_testing/web3_module.py +438 -17
  65. web3/_utils/normalizers.py +13 -11
  66. web3/_utils/rpc_abi.py +10 -22
  67. web3/_utils/threads.py +8 -7
  68. web3/_utils/transactions.py +32 -25
  69. web3/_utils/type_conversion.py +5 -1
  70. web3/_utils/validation.py +20 -17
  71. web3/beacon/__init__.py +5 -0
  72. web3/beacon/api_endpoints.py +3 -0
  73. web3/beacon/async_beacon.py +29 -6
  74. web3/beacon/beacon.py +24 -6
  75. web3/contract/__init__.py +7 -0
  76. web3/contract/async_contract.py +285 -82
  77. web3/contract/base_contract.py +556 -258
  78. web3/contract/contract.py +295 -84
  79. web3/contract/utils.py +251 -55
  80. web3/datastructures.py +56 -41
  81. web3/eth/__init__.py +7 -0
  82. web3/eth/async_eth.py +89 -69
  83. web3/eth/base_eth.py +7 -3
  84. web3/eth/eth.py +43 -66
  85. web3/exceptions.py +158 -83
  86. web3/gas_strategies/time_based.py +8 -6
  87. web3/geth.py +53 -184
  88. web3/main.py +77 -43
  89. web3/manager.py +368 -101
  90. web3/method.py +43 -15
  91. web3/middleware/__init__.py +26 -8
  92. web3/middleware/attrdict.py +12 -22
  93. web3/middleware/base.py +55 -2
  94. web3/middleware/filter.py +45 -23
  95. web3/middleware/formatting.py +6 -3
  96. web3/middleware/names.py +4 -1
  97. web3/middleware/signing.py +15 -6
  98. web3/middleware/stalecheck.py +2 -1
  99. web3/module.py +62 -26
  100. web3/providers/__init__.py +21 -0
  101. web3/providers/async_base.py +93 -38
  102. web3/providers/base.py +85 -40
  103. web3/providers/eth_tester/__init__.py +5 -0
  104. web3/providers/eth_tester/defaults.py +2 -55
  105. web3/providers/eth_tester/main.py +57 -35
  106. web3/providers/eth_tester/middleware.py +16 -17
  107. web3/providers/ipc.py +42 -18
  108. web3/providers/legacy_websocket.py +27 -2
  109. web3/providers/persistent/__init__.py +7 -0
  110. web3/providers/persistent/async_ipc.py +61 -121
  111. web3/providers/persistent/persistent.py +324 -17
  112. web3/providers/persistent/persistent_connection.py +54 -5
  113. web3/providers/persistent/request_processor.py +136 -56
  114. web3/providers/persistent/subscription_container.py +56 -0
  115. web3/providers/persistent/subscription_manager.py +233 -0
  116. web3/providers/persistent/websocket.py +29 -92
  117. web3/providers/rpc/__init__.py +5 -0
  118. web3/providers/rpc/async_rpc.py +73 -18
  119. web3/providers/rpc/rpc.py +73 -30
  120. web3/providers/rpc/utils.py +1 -13
  121. web3/scripts/install_pre_releases.py +33 -0
  122. web3/scripts/parse_pygeth_version.py +16 -0
  123. web3/testing.py +4 -4
  124. web3/tracing.py +9 -5
  125. web3/types.py +141 -74
  126. web3/utils/__init__.py +64 -5
  127. web3/utils/abi.py +790 -10
  128. web3/utils/address.py +8 -0
  129. web3/utils/async_exception_handling.py +20 -11
  130. web3/utils/caching.py +34 -4
  131. web3/utils/exception_handling.py +9 -12
  132. web3/utils/subscriptions.py +285 -0
  133. {web3-7.0.0b1.dist-info → web3-7.7.0.dist-info}/LICENSE +1 -1
  134. web3-7.7.0.dist-info/METADATA +130 -0
  135. web3-7.7.0.dist-info/RECORD +171 -0
  136. {web3-7.0.0b1.dist-info → web3-7.7.0.dist-info}/WHEEL +1 -1
  137. {web3-7.0.0b1.dist-info → web3-7.7.0.dist-info}/top_level.txt +0 -1
  138. ethpm/__init__.py +0 -20
  139. ethpm/_utils/__init__.py +0 -0
  140. ethpm/_utils/backend.py +0 -93
  141. ethpm/_utils/cache.py +0 -44
  142. ethpm/_utils/chains.py +0 -119
  143. ethpm/_utils/contract.py +0 -35
  144. ethpm/_utils/deployments.py +0 -145
  145. ethpm/_utils/ipfs.py +0 -116
  146. ethpm/_utils/protobuf/__init__.py +0 -0
  147. ethpm/_utils/protobuf/ipfs_file_pb2.py +0 -33
  148. ethpm/_utils/registry.py +0 -29
  149. ethpm/assets/__init__.py +0 -0
  150. ethpm/assets/ens/v3.json +0 -1
  151. ethpm/assets/escrow/with_bytecode_v3.json +0 -1
  152. ethpm/assets/ipfs_file.proto +0 -32
  153. ethpm/assets/owned/output_v3.json +0 -1
  154. ethpm/assets/owned/with_contract_type_v3.json +0 -1
  155. ethpm/assets/registry/contracts/Authority.sol +0 -156
  156. ethpm/assets/registry/contracts/IndexedOrderedSetLib.sol +0 -106
  157. ethpm/assets/registry/contracts/PackageDB.sol +0 -225
  158. ethpm/assets/registry/contracts/PackageRegistry.sol +0 -361
  159. ethpm/assets/registry/contracts/PackageRegistryInterface.sol +0 -97
  160. ethpm/assets/registry/contracts/ReleaseDB.sol +0 -309
  161. ethpm/assets/registry/contracts/ReleaseValidator.sol +0 -152
  162. ethpm/assets/registry/solc_input.json +0 -1
  163. ethpm/assets/registry/solc_output.json +0 -1
  164. ethpm/assets/registry/v3.json +0 -1
  165. ethpm/assets/safe-math-lib/v3-strict-no-deployments.json +0 -1
  166. ethpm/assets/simple-registry/contracts/Ownable.sol +0 -63
  167. ethpm/assets/simple-registry/contracts/PackageRegistry.sol +0 -373
  168. ethpm/assets/simple-registry/contracts/PackageRegistryInterface.sol +0 -96
  169. ethpm/assets/simple-registry/solc_input.json +0 -33
  170. ethpm/assets/simple-registry/solc_output.json +0 -1
  171. ethpm/assets/simple-registry/v3.json +0 -1
  172. ethpm/assets/standard-token/output_v3.json +0 -1
  173. ethpm/assets/standard-token/with_bytecode_v3.json +0 -1
  174. ethpm/assets/vyper_registry/0.1.0.json +0 -1
  175. ethpm/assets/vyper_registry/registry.vy +0 -216
  176. ethpm/assets/vyper_registry/registry_with_delete.vy +0 -244
  177. ethpm/backends/__init__.py +0 -0
  178. ethpm/backends/base.py +0 -43
  179. ethpm/backends/http.py +0 -108
  180. ethpm/backends/ipfs.py +0 -219
  181. ethpm/backends/registry.py +0 -154
  182. ethpm/constants.py +0 -17
  183. ethpm/contract.py +0 -187
  184. ethpm/dependencies.py +0 -58
  185. ethpm/deployments.py +0 -80
  186. ethpm/ethpm-spec/examples/escrow/1.0.0-pretty.json +0 -146
  187. ethpm/ethpm-spec/examples/escrow/1.0.0.json +0 -1
  188. ethpm/ethpm-spec/examples/escrow/contracts/Escrow.sol +0 -32
  189. ethpm/ethpm-spec/examples/escrow/contracts/SafeSendLib.sol +0 -20
  190. ethpm/ethpm-spec/examples/escrow/v3-pretty.json +0 -171
  191. ethpm/ethpm-spec/examples/escrow/v3.json +0 -1
  192. ethpm/ethpm-spec/examples/owned/1.0.0-pretty.json +0 -21
  193. ethpm/ethpm-spec/examples/owned/1.0.0.json +0 -1
  194. ethpm/ethpm-spec/examples/owned/contracts/Owned.sol +0 -12
  195. ethpm/ethpm-spec/examples/owned/v3-pretty.json +0 -27
  196. ethpm/ethpm-spec/examples/owned/v3.json +0 -1
  197. ethpm/ethpm-spec/examples/piper-coin/1.0.0-pretty.json +0 -31
  198. ethpm/ethpm-spec/examples/piper-coin/1.0.0.json +0 -1
  199. ethpm/ethpm-spec/examples/piper-coin/v3-pretty.json +0 -21
  200. ethpm/ethpm-spec/examples/piper-coin/v3.json +0 -1
  201. ethpm/ethpm-spec/examples/safe-math-lib/1.0.0-pretty.json +0 -85
  202. ethpm/ethpm-spec/examples/safe-math-lib/1.0.0.json +0 -1
  203. ethpm/ethpm-spec/examples/safe-math-lib/contracts/SafeMathLib.sol +0 -24
  204. ethpm/ethpm-spec/examples/safe-math-lib/v3-pretty.json +0 -117
  205. ethpm/ethpm-spec/examples/safe-math-lib/v3.json +0 -1
  206. ethpm/ethpm-spec/examples/standard-token/1.0.0-pretty.json +0 -55
  207. ethpm/ethpm-spec/examples/standard-token/1.0.0.json +0 -1
  208. ethpm/ethpm-spec/examples/standard-token/contracts/AbstractToken.sol +0 -20
  209. ethpm/ethpm-spec/examples/standard-token/contracts/StandardToken.sol +0 -84
  210. ethpm/ethpm-spec/examples/standard-token/v3-pretty.json +0 -460
  211. ethpm/ethpm-spec/examples/standard-token/v3.json +0 -1
  212. ethpm/ethpm-spec/examples/transferable/1.0.0-pretty.json +0 -21
  213. ethpm/ethpm-spec/examples/transferable/1.0.0.json +0 -1
  214. ethpm/ethpm-spec/examples/transferable/contracts/Transferable.sol +0 -14
  215. ethpm/ethpm-spec/examples/transferable/v3-pretty.json +0 -27
  216. ethpm/ethpm-spec/examples/transferable/v3.json +0 -1
  217. ethpm/ethpm-spec/examples/wallet/1.0.0-pretty.json +0 -120
  218. ethpm/ethpm-spec/examples/wallet/1.0.0.json +0 -1
  219. ethpm/ethpm-spec/examples/wallet/contracts/Wallet.sol +0 -41
  220. ethpm/ethpm-spec/examples/wallet/v3-pretty.json +0 -181
  221. ethpm/ethpm-spec/examples/wallet/v3.json +0 -1
  222. ethpm/ethpm-spec/examples/wallet-with-send/1.0.0-pretty.json +0 -135
  223. ethpm/ethpm-spec/examples/wallet-with-send/1.0.0.json +0 -1
  224. ethpm/ethpm-spec/examples/wallet-with-send/contracts/WalletWithSend.sol +0 -18
  225. ethpm/ethpm-spec/examples/wallet-with-send/v3-pretty.json +0 -207
  226. ethpm/ethpm-spec/examples/wallet-with-send/v3.json +0 -1
  227. ethpm/ethpm-spec/spec/package.spec.json +0 -379
  228. ethpm/ethpm-spec/spec/v3.spec.json +0 -483
  229. ethpm/exceptions.py +0 -68
  230. ethpm/package.py +0 -438
  231. ethpm/tools/__init__.py +0 -4
  232. ethpm/tools/builder.py +0 -930
  233. ethpm/tools/checker.py +0 -312
  234. ethpm/tools/get_manifest.py +0 -19
  235. ethpm/uri.py +0 -141
  236. ethpm/validation/__init__.py +0 -0
  237. ethpm/validation/manifest.py +0 -146
  238. ethpm/validation/misc.py +0 -39
  239. ethpm/validation/package.py +0 -80
  240. ethpm/validation/uri.py +0 -163
  241. web3/_utils/caching.py +0 -155
  242. web3/_utils/contract_sources/contract_data/address_reflector.py +0 -29
  243. web3/_utils/module_testing/go_ethereum_personal_module.py +0 -300
  244. web3/_utils/request.py +0 -265
  245. web3/pm.py +0 -602
  246. web3/tools/__init__.py +0 -4
  247. web3/tools/benchmark/__init__.py +0 -0
  248. web3/tools/benchmark/main.py +0 -185
  249. web3/tools/benchmark/node.py +0 -126
  250. web3/tools/benchmark/reporting.py +0 -39
  251. web3/tools/benchmark/utils.py +0 -69
  252. web3/tools/pytest_ethereum/__init__.py +0 -0
  253. web3/tools/pytest_ethereum/_utils.py +0 -145
  254. web3/tools/pytest_ethereum/deployer.py +0 -48
  255. web3/tools/pytest_ethereum/exceptions.py +0 -22
  256. web3/tools/pytest_ethereum/linker.py +0 -128
  257. web3/tools/pytest_ethereum/plugins.py +0 -33
  258. web3-7.0.0b1.dist-info/METADATA +0 -114
  259. web3-7.0.0b1.dist-info/RECORD +0 -280
  260. web3-7.0.0b1.dist-info/entry_points.txt +0 -2
  261. /web3/_utils/{function_identifiers.py → abi_element_identifiers.py} +0 -0
@@ -1,207 +0,0 @@
1
- {
2
- "manifest": "ethpm/3",
3
- "version": "1.0.0",
4
- "name": "wallet-with-send",
5
- "sources": {
6
- "WalletWithSend.sol": {
7
- "type": "solidity",
8
- "installPath": "./WalletWithSend.sol",
9
- "urls": [
10
- "ipfs://QmQmKim8MpVGgkaJzHCAWkAJnr3hPLrUXmaz5Ao1gWjxNY"
11
- ]
12
- }
13
- },
14
- "compilers": [
15
- {
16
- "contractTypes": [
17
- "WalletWithSend"
18
- ],
19
- "name": "solc",
20
- "version": "0.6.8+commit.0bbfe453",
21
- "settings": {
22
- "optimize": false
23
- }
24
- }
25
- ],
26
- "contractTypes": {
27
- "WalletWithSend": {
28
- "sourceId": "WalletWithSend.sol",
29
- "deploymentBytecode": {
30
- "bytecode": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105e1806100606000396000f3fe608060405234801561001057600080fd5b50600436106100505760003560e01c8063095ea7b3146100535780632e1a7d4d146100b9578063c577ff8b146100ff578063d0679d341461014d57610051565b5b005b61009f6004803603604081101561006957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101b3565b604051808215151515815260200191505060405180910390f35b6100e5600480360360208110156100cf57600080fd5b810190808035906020019092919050505061025c565b604051808215151515815260200191505060405180910390f35b61014b6004803603604081101561011557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103bb565b005b6101996004803603604081101561016357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610513565b604051808215151515815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461020e57600080fd5b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001905092915050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156102f657600080fd5b505af415801561030a573d6000803e3d6000fd5b505050506040513d602081101561032057600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050506103b257600080fd5b60019050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561045357600080fd5b505af4158015610467573d6000803e3d6000fd5b505050506040513d602081101561047d57600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061050f57600080fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461056e57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505090509291505056fea2646970667358221220b3e9d35017f06ad00bdc4a7887a8d810719509dbab16e308d48e0a800d95d90e64736f6c63430006080033",
31
- "linkReferences": [
32
- {
33
- "offsets": [
34
- 768,
35
- 1117
36
- ],
37
- "length": 20,
38
- "name": "wallet:safe-math-lib:SafeMathLib"
39
- }
40
- ]
41
- },
42
- "runtimeBytecode": {
43
- "bytecode": "0x608060405234801561001057600080fd5b50600436106100505760003560e01c8063095ea7b3146100535780632e1a7d4d146100b9578063c577ff8b146100ff578063d0679d341461014d57610051565b5b005b61009f6004803603604081101561006957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101b3565b604051808215151515815260200191505060405180910390f35b6100e5600480360360208110156100cf57600080fd5b810190808035906020019092919050505061025c565b604051808215151515815260200191505060405180910390f35b61014b6004803603604081101561011557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103bb565b005b6101996004803603604081101561016357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610513565b604051808215151515815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461020e57600080fd5b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001905092915050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156102f657600080fd5b505af415801561030a573d6000803e3d6000fd5b505050506040513d602081101561032057600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050506103b257600080fd5b60019050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561045357600080fd5b505af4158015610467573d6000803e3d6000fd5b505050506040513d602081101561047d57600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061050f57600080fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461056e57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505090509291505056fea2646970667358221220b3e9d35017f06ad00bdc4a7887a8d810719509dbab16e308d48e0a800d95d90e64736f6c63430006080033",
44
- "linkReferences": [
45
- {
46
- "offsets": [
47
- 672,
48
- 1021
49
- ],
50
- "length": 20,
51
- "name": "wallet:safe-math-lib:SafeMathLib"
52
- }
53
- ]
54
- },
55
- "abi": [
56
- {
57
- "stateMutability": "nonpayable",
58
- "type": "fallback"
59
- },
60
- {
61
- "inputs": [
62
- {
63
- "internalType": "address",
64
- "name": "recipient",
65
- "type": "address"
66
- },
67
- {
68
- "internalType": "uint256",
69
- "name": "value",
70
- "type": "uint256"
71
- }
72
- ],
73
- "name": "approve",
74
- "outputs": [
75
- {
76
- "internalType": "bool",
77
- "name": "",
78
- "type": "bool"
79
- }
80
- ],
81
- "stateMutability": "nonpayable",
82
- "type": "function"
83
- },
84
- {
85
- "inputs": [
86
- {
87
- "internalType": "uint256",
88
- "name": "value",
89
- "type": "uint256"
90
- },
91
- {
92
- "internalType": "address payable",
93
- "name": "to",
94
- "type": "address"
95
- }
96
- ],
97
- "name": "approvedSend",
98
- "outputs": [],
99
- "stateMutability": "nonpayable",
100
- "type": "function"
101
- },
102
- {
103
- "inputs": [
104
- {
105
- "internalType": "address payable",
106
- "name": "recipient",
107
- "type": "address"
108
- },
109
- {
110
- "internalType": "uint256",
111
- "name": "value",
112
- "type": "uint256"
113
- }
114
- ],
115
- "name": "send",
116
- "outputs": [
117
- {
118
- "internalType": "bool",
119
- "name": "",
120
- "type": "bool"
121
- }
122
- ],
123
- "stateMutability": "nonpayable",
124
- "type": "function"
125
- },
126
- {
127
- "inputs": [
128
- {
129
- "internalType": "uint256",
130
- "name": "value",
131
- "type": "uint256"
132
- }
133
- ],
134
- "name": "withdraw",
135
- "outputs": [
136
- {
137
- "internalType": "bool",
138
- "name": "",
139
- "type": "bool"
140
- }
141
- ],
142
- "stateMutability": "nonpayable",
143
- "type": "function"
144
- }
145
- ],
146
- "devdoc": {
147
- "author": "Piper Merriam <pipermerriam@gmail.com>",
148
- "methods": {
149
- "approve(address,uint256)": {
150
- "details": "Sets recipient to be approved to withdraw the specified amount"
151
- },
152
- "send(address,uint256)": {
153
- "details": "Sends the recipient the specified amount"
154
- },
155
- "approvedSend(uint256,address)": {
156
- "details": "Sends funds that have been approved to the specified address"
157
- },
158
- "withdraw(uint256)": {
159
- "details": "Lets caller withdraw up to their approved amount"
160
- }
161
- },
162
- "title": "Wallet contract with simple send and approval spending functionality"
163
- },
164
- "userdoc": {
165
- "methods": {
166
- "approve(address,uint256)": {
167
- "notice": "This will set the recipient to be approved to withdraw the specified amount."
168
- },
169
- "send(address,uint256)": {
170
- "notice": "This will send the reciepient the specified amount."
171
- },
172
- "approvedSend(uint256,address)": {
173
- "notice": "This will send the reciepient the specified amount."
174
- },
175
- "withdraw(uint256)": {
176
- "notice": "This will withdraw provided value, deducting it from your total allowance."
177
- }
178
- }
179
- }
180
- }
181
- },
182
- "deployments": {
183
- "blockchain://41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d/block/b6d0d43f61e5e36d20eb3d5caca12220b024ed2861a814795d1fd6596fe041bf": {
184
- "Wallet": {
185
- "contractType": "WalletWithSend",
186
- "address": "0x4308223cdec48F8a396Ba206025b39caD11cacE6",
187
- "transaction": "0xc1bdfc5eeb517aabb3b65cb24f8d0cd3fd4b8d71f94f90f3e76250cbb96b5369",
188
- "block": "0x48ed49ff47ecf433d7c8f1847ddae8c1250ad948fda22342f78f732823534780",
189
- "runtimeBytecode": {
190
- "linkDependencies": [
191
- {
192
- "offsets": [
193
- 672,
194
- 1021
195
- ],
196
- "type": "reference",
197
- "value": "wallet:safe-math-lib:SafeMathLib"
198
- }
199
- ]
200
- }
201
- }
202
- }
203
- },
204
- "buildDependencies": {
205
- "wallet": "ipfs://QmRALeFkttSr6DLmPiNtAqLcMJYXu4BK3SjZGVgW8VASnm"
206
- }
207
- }
@@ -1 +0,0 @@
1
- {"buildDependencies":{"wallet":"ipfs://QmRALeFkttSr6DLmPiNtAqLcMJYXu4BK3SjZGVgW8VASnm"},"compilers":[{"contractTypes":["WalletWithSend"],"name":"solc","settings":{"optimize":false},"version":"0.6.8+commit.0bbfe453"}],"contractTypes":{"WalletWithSend":{"abi":[{"stateMutability":"nonpayable","type":"fallback"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"address payable","name":"to","type":"address"}],"name":"approvedSend","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"send","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"deploymentBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506105e1806100606000396000f3fe608060405234801561001057600080fd5b50600436106100505760003560e01c8063095ea7b3146100535780632e1a7d4d146100b9578063c577ff8b146100ff578063d0679d341461014d57610051565b5b005b61009f6004803603604081101561006957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101b3565b604051808215151515815260200191505060405180910390f35b6100e5600480360360208110156100cf57600080fd5b810190808035906020019092919050505061025c565b604051808215151515815260200191505060405180910390f35b61014b6004803603604081101561011557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103bb565b005b6101996004803603604081101561016357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610513565b604051808215151515815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461020e57600080fd5b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001905092915050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156102f657600080fd5b505af415801561030a573d6000803e3d6000fd5b505050506040513d602081101561032057600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050506103b257600080fd5b60019050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561045357600080fd5b505af4158015610467573d6000803e3d6000fd5b505050506040513d602081101561047d57600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061050f57600080fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461056e57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505090509291505056fea2646970667358221220b3e9d35017f06ad00bdc4a7887a8d810719509dbab16e308d48e0a800d95d90e64736f6c63430006080033","linkReferences":[{"length":20,"name":"wallet:safe-math-lib:SafeMathLib","offsets":[768,1117]}]},"devdoc":{"author":"Piper Merriam <pipermerriam@gmail.com>","methods":{"approve(address,uint256)":{"details":"Sets recipient to be approved to withdraw the specified amount"},"approvedSend(uint256,address)":{"details":"Sends funds that have been approved to the specified address"},"send(address,uint256)":{"details":"Sends the recipient the specified amount"},"withdraw(uint256)":{"details":"Lets caller withdraw up to their approved amount"}},"title":"Wallet contract with simple send and approval spending functionality"},"runtimeBytecode":{"bytecode":"0x608060405234801561001057600080fd5b50600436106100505760003560e01c8063095ea7b3146100535780632e1a7d4d146100b9578063c577ff8b146100ff578063d0679d341461014d57610051565b5b005b61009f6004803603604081101561006957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506101b3565b604051808215151515815260200191505060405180910390f35b6100e5600480360360208110156100cf57600080fd5b810190808035906020019092919050505061025c565b604051808215151515815260200191505060405180910390f35b61014b6004803603604081101561011557600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506103bb565b005b6101996004803603604081101561016357600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610513565b604051808215151515815260200191505060405180910390f35b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461020e57600080fd5b81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506001905092915050565b6000600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156102f657600080fd5b505af415801561030a573d6000803e3d6000fd5b505050506040513d602081101561032057600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055503373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050506103b257600080fd5b60019050919050565b600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205473000000000000000000000000000000000000000063a293d1e89091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b15801561045357600080fd5b505af4158015610467573d6000803e3d6000fd5b505050506040513d602081101561047d57600080fd5b8101908080519060200190929190505050600160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508073ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061050f57600080fd5b5050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461056e57600080fd5b8273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505090509291505056fea2646970667358221220b3e9d35017f06ad00bdc4a7887a8d810719509dbab16e308d48e0a800d95d90e64736f6c63430006080033","linkReferences":[{"length":20,"name":"wallet:safe-math-lib:SafeMathLib","offsets":[672,1021]}]},"sourceId":"WalletWithSend.sol","userdoc":{"methods":{"approve(address,uint256)":{"notice":"This will set the recipient to be approved to withdraw the specified amount."},"approvedSend(uint256,address)":{"notice":"This will send the reciepient the specified amount."},"send(address,uint256)":{"notice":"This will send the reciepient the specified amount."},"withdraw(uint256)":{"notice":"This will withdraw provided value, deducting it from your total allowance."}}}}},"deployments":{"blockchain://41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d/block/b6d0d43f61e5e36d20eb3d5caca12220b024ed2861a814795d1fd6596fe041bf":{"Wallet":{"address":"0x4308223cdec48F8a396Ba206025b39caD11cacE6","block":"0x48ed49ff47ecf433d7c8f1847ddae8c1250ad948fda22342f78f732823534780","contractType":"WalletWithSend","runtimeBytecode":{"linkDependencies":[{"offsets":[672,1021],"type":"reference","value":"wallet:safe-math-lib:SafeMathLib"}]},"transaction":"0xc1bdfc5eeb517aabb3b65cb24f8d0cd3fd4b8d71f94f90f3e76250cbb96b5369"}}},"manifest":"ethpm/3","name":"wallet-with-send","sources":{"WalletWithSend.sol":{"installPath":"./WalletWithSend.sol","type":"solidity","urls":["ipfs://QmQmKim8MpVGgkaJzHCAWkAJnr3hPLrUXmaz5Ao1gWjxNY"]}},"version":"1.0.0"}
@@ -1,379 +0,0 @@
1
- {
2
- "title": "Package Manifest",
3
- "description": "EthPM Manifest Specification",
4
- "type": "object",
5
- "required": [
6
- "manifest_version",
7
- "package_name",
8
- "version"
9
- ],
10
- "version": "2",
11
- "properties": {
12
- "manifest_version": {
13
- "type": "string",
14
- "title": "Manifest Version",
15
- "description": "EthPM Manifest Version",
16
- "default": "2",
17
- "enum": ["2"]
18
- },
19
- "package_name": {
20
- "title": "Package Name",
21
- "description": "The name of the package that this release is for",
22
- "type": "string",
23
- "pattern": "^[a-z][-a-z0-9]{0,255}$"
24
- },
25
- "meta": {
26
- "$ref": "#/definitions/PackageMeta"
27
- },
28
- "version": {
29
- "title": "Version",
30
- "type": "string"
31
- },
32
- "sources": {
33
- "title": "Sources",
34
- "type": "object",
35
- "patternProperties": {
36
- "\\.\\/.*": {
37
- "anyOf": [
38
- {
39
- "title": "Source code",
40
- "type": "string"
41
- },
42
- {
43
- "$ref": "#/definitions/ContentURI"
44
- }
45
- ]
46
- }
47
- }
48
- },
49
- "contract_types": {
50
- "title": "Contract Types",
51
- "description": "The contract types included in this release",
52
- "type": "object",
53
- "patternProperties": {
54
- "[a-zA-Z][-a-zA-Z0-9_]{0,255}(?:\\[[-a-zA-Z0-9]{1,256}\\])?$": {
55
- "$ref": "#/definitions/ContractType"
56
- }
57
- }
58
- },
59
- "deployments": {
60
- "title": "Deployments",
61
- "description": "The deployed contract instances in this release",
62
- "type": "object",
63
- "patternProperties": {
64
- "^blockchain\\://[0-9a-zA-Z]{64}/block/[0-9a-zA-Z]{64}$": {
65
- "$ref": "#/definitions/Deployment"
66
- }
67
- }
68
- },
69
- "build_dependencies": {
70
- "title": "Build Dependencies",
71
- "type": "object",
72
- "patternProperties": {
73
- "^[a-z][-a-z0-9]{0,255}$": {
74
- "$ref": "#/definitions/ContentURI"
75
- }
76
- }
77
- }
78
- },
79
- "definitions": {
80
- "PackageMeta": {
81
- "title": "Package Meta",
82
- "description": "Metadata about the package",
83
- "type": "object",
84
- "properties": {
85
- "authors": {
86
- "title": "Authors",
87
- "description": "Authors of this package",
88
- "type": "array",
89
- "items": {
90
- "type": "string"
91
- }
92
- },
93
- "license": {
94
- "title": "License",
95
- "description": "The license that this package and it's source are released under",
96
- "type": "string"
97
- },
98
- "description": {
99
- "title": "Description",
100
- "description": "Description of this package",
101
- "type": "string"
102
- },
103
- "keywords": {
104
- "title": "Keywords",
105
- "description": "Keywords that apply to this package",
106
- "type": "array",
107
- "items": {
108
- "type": "string"
109
- }
110
- },
111
- "links": {
112
- "title": "Links",
113
- "descriptions": "URIs for resources related to this package",
114
- "type": "object",
115
- "additionalProperties": {
116
- "type": "string",
117
- "format": "uri"
118
- }
119
- }
120
- }
121
- },
122
- "ContractType": {
123
- "title": "Contract Type",
124
- "description": "Data for a contract type included in this package",
125
- "type": "object",
126
- "properties":{
127
- "contract_name": {
128
- "title": "Contract Name",
129
- "description": "The name for this contract type as found in the project source code.",
130
- "type": "string",
131
- "pattern": "[a-zA-Z][a-zA-Z0-9_]{0,255}"
132
- },
133
- "deployment_bytecode": {
134
- "$ref": "#/definitions/BytecodeObject"
135
- },
136
- "runtime_bytecode": {
137
- "$ref": "#/definitions/BytecodeObject"
138
- },
139
- "abi": {
140
- "title": "ABI",
141
- "description": "The ABI for this contract type",
142
- "type": "array"
143
- },
144
- "natspec": {
145
- "title": "NatSpec",
146
- "description": "The combined user-doc and dev-doc for this contract",
147
- "type": "object"
148
- },
149
- "compiler": {
150
- "$ref": "#/definitions/CompilerInformation"
151
- }
152
- }
153
- },
154
- "ContractInstance": {
155
- "title": "Contract Instance",
156
- "description": "Data for a deployed instance of a contract",
157
- "type": "object",
158
- "required": [
159
- "contract_type",
160
- "address"
161
- ],
162
- "properties": {
163
- "contract_type": {
164
- "title": "Contract Type Name",
165
- "description": "The contract type of this contract instance",
166
- "type": "string",
167
- "pattern": "^(?:[a-z][-a-z0-9]{0,255}\\:)?[a-zA-Z][-a-zA-Z0-9_]{0,255}(?:\\[[-a-zA-Z0-9]{1,256}\\])?$"
168
- },
169
- "address": {
170
- "$ref": "#/definitions/Address"
171
- },
172
- "transaction": {
173
- "$ref": "#/definitions/TransactionHash"
174
- },
175
- "block": {
176
- "$ref": "#/definitions/BlockHash"
177
- },
178
- "runtime_bytecode": {
179
- "$ref": "#/definitions/BytecodeObject"
180
- },
181
- "compiler": {
182
- "$ref": "#/definitions/CompilerInformation"
183
- },
184
- "link_dependencies": {
185
- "title": "Link Dependencies",
186
- "description": "The values for the link references found within this contract instances runtime bytecode",
187
- "type": "array",
188
- "items": {
189
- "$ref": "#/definitions/LinkValue"
190
- }
191
- }
192
- }
193
- },
194
- "ByteString": {
195
- "title": "Byte String",
196
- "description": "0x-prefixed hexadecimal string representing bytes",
197
- "type": "string",
198
- "pattern": "^0x([0-9a-fA-F]{2})*$"
199
- },
200
- "BytecodeObject": {
201
- "title": "Bytecode Object",
202
- "type": "object",
203
- "anyOf": [
204
- {"required": ["bytecode"]},
205
- {"required": ["link_dependencies"]}
206
- ],
207
- "properties": {
208
- "bytecode": {
209
- "$ref": "#/definitions/ByteString"
210
- },
211
- "link_references": {
212
- "type": "array",
213
- "items": {
214
- "$ref": "#/definitions/LinkReference"
215
- }
216
- },
217
- "link_dependencies": {
218
- "type": "array",
219
- "items": {
220
- "$ref": "#/definitions/LinkValue"
221
- }
222
- }
223
- }
224
- },
225
- "LinkReference": {
226
- "title": "Link Reference",
227
- "description": "A defined location in some bytecode which requires linking",
228
- "type": "object",
229
- "required": [
230
- "offsets",
231
- "length",
232
- "name"
233
- ],
234
- "properties": {
235
- "offsets": {
236
- "type": "array",
237
- "items": {
238
- "type": "integer",
239
- "minimum": 0
240
- }
241
- },
242
- "length": {
243
- "type": "integer",
244
- "minimum": 1
245
- },
246
- "name": {
247
- "$ref": "#/definitions/Identifier"
248
- }
249
- }
250
- },
251
- "LinkValue": {
252
- "title": "Link Value",
253
- "description": "A value for an individual link reference in a contract's bytecode",
254
- "type": "object",
255
- "required": [
256
- "offsets",
257
- "type",
258
- "value"
259
- ],
260
- "properties": {
261
- "offsets": {
262
- "type": "array",
263
- "items": {
264
- "type": "integer",
265
- "minimum": 0
266
- }
267
- },
268
- "type": {
269
- "description": "The type of link value",
270
- "type": "string"
271
- },
272
- "value": {
273
- "description": "The value for the link reference"
274
- }
275
- },
276
- "oneOf": [{
277
- "properties": {
278
- "type": {
279
- "enum": ["literal"]
280
- },
281
- "value": {
282
- "$ref": "#/definitions/ByteString"
283
- }
284
- }
285
- }, {
286
- "properties": {
287
- "type": {
288
- "enum": ["reference"]
289
- },
290
- "value": {
291
- "anyOf": [
292
- {"$ref": "#/definitions/ContractInstanceName"},
293
- {"$ref": "#/definitions/PackageContractInstanceName"}
294
- ]
295
- }
296
- }
297
- }]
298
- },
299
- "Identifier": {
300
- "title": "Identifier",
301
- "type": "string",
302
- "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,255}$"
303
- },
304
- "ContractInstanceName": {
305
- "title": "Contract Instance Name",
306
- "description": "The name of the deployed contract instance",
307
- "type": "string",
308
- "pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,255}$"
309
- },
310
- "Deployment": {
311
- "title": "Deployment",
312
- "type": "object",
313
- "patternProperties": {
314
- "^[a-zA-Z][a-zA-Z0-9_]{0,255}$": {
315
- "$ref": "#/definitions/ContractInstance"
316
- }
317
- }
318
- },
319
- "PackageContractInstanceName": {
320
- "title": "Package Contract Instance Name",
321
- "description": "The path to a deployed contract instance somewhere down the dependency tree",
322
- "type": "string",
323
- "pattern": "^([a-z][-a-z0-9]{0,255}\\:)+[a-zA-Z][a-zA-Z0-9_]{0,255}$"
324
- },
325
- "CompilerInformation": {
326
- "title": "Compiler Information",
327
- "description": "Information about the software that was used to compile a contract type or instance",
328
- "type": "object",
329
- "required": [
330
- "name",
331
- "version"
332
- ],
333
- "properties": {
334
- "name": {
335
- "description": "The name of the compiler",
336
- "type": "string"
337
- },
338
- "version": {
339
- "description": "The version string for the compiler",
340
- "type": "string"
341
- },
342
- "settings": {
343
- "description": "The settings used for compilation",
344
- "type": "object"
345
- }
346
- }
347
- },
348
- "Address": {
349
- "title": "Address",
350
- "description": "An Ethereum address",
351
- "allOf": [
352
- { "$ref": "#/definitions/ByteString" },
353
- { "minLength": 42, "maxLength": 42 }
354
- ]
355
- },
356
- "TransactionHash": {
357
- "title": "Transaction Hash",
358
- "description": "An Ethereum transaction hash",
359
- "allOf": [
360
- { "$ref": "#/definitions/ByteString" },
361
- { "minLength": 66, "maxLength": 66 }
362
- ]
363
- },
364
- "BlockHash": {
365
- "title": "Block Hash",
366
- "description": "An Ethereum block hash",
367
- "allOf": [
368
- { "$ref": "#/definitions/ByteString" },
369
- { "minLength": 66, "maxLength": 66 }
370
- ]
371
- },
372
- "ContentURI": {
373
- "title": "Content URI",
374
- "description": "An content addressable URI",
375
- "type": "string",
376
- "format": "uri"
377
- }
378
- }
379
- }