web3 6.20.3__py3-none-any.whl → 7.0.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.
- ens/__init__.py +13 -2
- ens/_normalization.py +2 -17
- ens/async_ens.py +33 -21
- ens/base_ens.py +3 -1
- ens/ens.py +16 -11
- ens/exceptions.py +16 -29
- ens/specs/nf.json +1 -1
- ens/specs/normalization_spec.json +1 -1
- ens/utils.py +52 -63
- web3/__init__.py +20 -24
- web3/_utils/abi.py +115 -271
- web3/_utils/async_transactions.py +7 -4
- web3/_utils/batching.py +217 -0
- web3/_utils/blocks.py +6 -2
- web3/_utils/caching.py +128 -5
- web3/_utils/compat/__init__.py +2 -3
- web3/_utils/contract_sources/compile_contracts.py +1 -1
- web3/_utils/contract_sources/contract_data/arrays_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/bytes_contracts.py +5 -5
- web3/_utils/contract_sources/contract_data/constructor_contracts.py +7 -7
- web3/_utils/contract_sources/contract_data/contract_caller_tester.py +3 -3
- web3/_utils/contract_sources/contract_data/emitter_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/event_contracts.py +5 -5
- web3/_utils/contract_sources/contract_data/extended_resolver.py +3 -3
- web3/_utils/contract_sources/contract_data/fallback_function_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/function_name_tester_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/math_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/offchain_lookup.py +3 -3
- web3/_utils/contract_sources/contract_data/offchain_resolver.py +3 -3
- web3/_utils/contract_sources/contract_data/panic_errors_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/payable_tester.py +3 -3
- web3/_utils/contract_sources/contract_data/receive_function_contracts.py +5 -5
- web3/_utils/contract_sources/contract_data/reflector_contracts.py +3 -3
- web3/_utils/contract_sources/contract_data/revert_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/simple_resolver.py +3 -3
- web3/_utils/contract_sources/contract_data/storage_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/string_contract.py +3 -3
- web3/_utils/contract_sources/contract_data/tuple_contracts.py +5 -5
- web3/_utils/contracts.py +130 -236
- web3/_utils/datatypes.py +5 -1
- web3/_utils/decorators.py +13 -23
- web3/_utils/empty.py +1 -1
- web3/_utils/encoding.py +16 -12
- web3/_utils/ens.py +2 -1
- web3/_utils/error_formatters_utils.py +5 -3
- web3/_utils/events.py +66 -69
- web3/_utils/fee_utils.py +1 -3
- web3/_utils/filters.py +24 -22
- web3/_utils/formatters.py +2 -2
- web3/_utils/http.py +5 -3
- web3/_utils/http_session_manager.py +303 -0
- web3/_utils/math.py +14 -15
- web3/_utils/method_formatters.py +34 -36
- web3/_utils/module.py +2 -1
- web3/_utils/module_testing/__init__.py +0 -3
- web3/_utils/module_testing/eth_module.py +695 -643
- web3/_utils/module_testing/module_testing_utils.py +61 -34
- web3/_utils/module_testing/persistent_connection_provider.py +56 -25
- web3/_utils/module_testing/utils.py +258 -0
- web3/_utils/module_testing/web3_module.py +438 -17
- web3/_utils/normalizers.py +13 -11
- web3/_utils/rpc_abi.py +5 -32
- web3/_utils/threads.py +8 -7
- web3/_utils/transactions.py +14 -12
- web3/_utils/type_conversion.py +5 -1
- web3/_utils/validation.py +17 -17
- web3/auto/gethdev.py +7 -2
- web3/beacon/__init__.py +6 -1
- web3/beacon/async_beacon.py +9 -5
- web3/beacon/{main.py → beacon.py} +7 -5
- web3/contract/__init__.py +7 -0
- web3/contract/async_contract.py +47 -46
- web3/contract/base_contract.py +183 -158
- web3/contract/contract.py +49 -43
- web3/contract/utils.py +203 -59
- web3/datastructures.py +79 -31
- web3/eth/__init__.py +7 -0
- web3/eth/async_eth.py +39 -51
- web3/eth/base_eth.py +17 -10
- web3/eth/eth.py +30 -68
- web3/exceptions.py +108 -82
- web3/gas_strategies/time_based.py +8 -6
- web3/geth.py +1 -254
- web3/main.py +75 -122
- web3/manager.py +316 -146
- web3/method.py +38 -31
- web3/middleware/__init__.py +67 -89
- web3/middleware/attrdict.py +36 -49
- web3/middleware/base.py +174 -0
- web3/middleware/buffered_gas_estimate.py +20 -21
- web3/middleware/filter.py +157 -117
- web3/middleware/formatting.py +124 -108
- web3/middleware/gas_price_strategy.py +20 -32
- web3/middleware/names.py +29 -26
- web3/middleware/proof_of_authority.py +68 -0
- web3/middleware/pythonic.py +2 -2
- web3/middleware/signing.py +74 -89
- web3/middleware/stalecheck.py +52 -79
- web3/middleware/validation.py +5 -13
- web3/module.py +54 -10
- web3/providers/__init__.py +10 -6
- web3/providers/async_base.py +117 -39
- web3/providers/auto.py +3 -3
- web3/providers/base.py +89 -33
- web3/providers/eth_tester/__init__.py +5 -0
- web3/providers/eth_tester/defaults.py +1 -64
- web3/providers/eth_tester/main.py +99 -31
- web3/providers/eth_tester/middleware.py +45 -73
- web3/providers/ipc.py +42 -46
- web3/providers/{websocket/websocket.py → legacy_websocket.py} +32 -7
- web3/providers/persistent/__init__.py +22 -0
- web3/providers/persistent/async_ipc.py +153 -0
- web3/providers/{persistent.py → persistent/persistent.py} +106 -25
- web3/providers/persistent/persistent_connection.py +84 -0
- web3/providers/{websocket → persistent}/request_processor.py +94 -32
- web3/providers/persistent/utils.py +43 -0
- web3/providers/{websocket/websocket_v2.py → persistent/websocket.py} +29 -28
- web3/providers/rpc/__init__.py +11 -0
- web3/providers/rpc/async_rpc.py +171 -0
- web3/providers/rpc/rpc.py +179 -0
- web3/providers/rpc/utils.py +92 -0
- web3/testing.py +4 -4
- web3/tools/benchmark/main.py +22 -22
- web3/tools/benchmark/node.py +2 -8
- web3/tools/benchmark/reporting.py +2 -2
- web3/tools/benchmark/utils.py +1 -1
- web3/tracing.py +9 -5
- web3/types.py +30 -107
- web3/utils/__init__.py +58 -5
- web3/utils/abi.py +575 -10
- web3/utils/async_exception_handling.py +19 -7
- web3/utils/caching.py +32 -13
- web3/utils/exception_handling.py +7 -5
- {web3-6.20.3.dist-info → web3-7.0.0.dist-info}/LICENSE +1 -1
- web3-7.0.0.dist-info/METADATA +112 -0
- web3-7.0.0.dist-info/RECORD +167 -0
- {web3-6.20.3.dist-info → web3-7.0.0.dist-info}/top_level.txt +0 -1
- ethpm/__init__.py +0 -20
- ethpm/_utils/__init__.py +0 -0
- ethpm/_utils/backend.py +0 -93
- ethpm/_utils/cache.py +0 -44
- ethpm/_utils/chains.py +0 -119
- ethpm/_utils/contract.py +0 -35
- ethpm/_utils/deployments.py +0 -145
- ethpm/_utils/ipfs.py +0 -116
- ethpm/_utils/protobuf/__init__.py +0 -0
- ethpm/_utils/protobuf/ipfs_file_pb2.py +0 -33
- ethpm/_utils/registry.py +0 -29
- ethpm/assets/__init__.py +0 -0
- ethpm/assets/ens/v3.json +0 -1
- ethpm/assets/escrow/with_bytecode_v3.json +0 -1
- ethpm/assets/ipfs_file.proto +0 -32
- ethpm/assets/owned/output_v3.json +0 -1
- ethpm/assets/owned/with_contract_type_v3.json +0 -1
- ethpm/assets/registry/contracts/Authority.sol +0 -156
- ethpm/assets/registry/contracts/IndexedOrderedSetLib.sol +0 -106
- ethpm/assets/registry/contracts/PackageDB.sol +0 -225
- ethpm/assets/registry/contracts/PackageRegistry.sol +0 -361
- ethpm/assets/registry/contracts/PackageRegistryInterface.sol +0 -97
- ethpm/assets/registry/contracts/ReleaseDB.sol +0 -309
- ethpm/assets/registry/contracts/ReleaseValidator.sol +0 -152
- ethpm/assets/registry/solc_input.json +0 -1
- ethpm/assets/registry/solc_output.json +0 -1
- ethpm/assets/registry/v3.json +0 -1
- ethpm/assets/safe-math-lib/v3-strict-no-deployments.json +0 -1
- ethpm/assets/simple-registry/contracts/Ownable.sol +0 -63
- ethpm/assets/simple-registry/contracts/PackageRegistry.sol +0 -373
- ethpm/assets/simple-registry/contracts/PackageRegistryInterface.sol +0 -96
- ethpm/assets/simple-registry/solc_input.json +0 -33
- ethpm/assets/simple-registry/solc_output.json +0 -1
- ethpm/assets/simple-registry/v3.json +0 -1
- ethpm/assets/standard-token/output_v3.json +0 -1
- ethpm/assets/standard-token/with_bytecode_v3.json +0 -1
- ethpm/assets/vyper_registry/0.1.0.json +0 -1
- ethpm/assets/vyper_registry/registry.vy +0 -216
- ethpm/assets/vyper_registry/registry_with_delete.vy +0 -244
- ethpm/backends/__init__.py +0 -0
- ethpm/backends/base.py +0 -43
- ethpm/backends/http.py +0 -108
- ethpm/backends/ipfs.py +0 -219
- ethpm/backends/registry.py +0 -154
- ethpm/constants.py +0 -17
- ethpm/contract.py +0 -187
- ethpm/dependencies.py +0 -58
- ethpm/deployments.py +0 -80
- ethpm/ethpm-spec/examples/escrow/1.0.0-pretty.json +0 -146
- ethpm/ethpm-spec/examples/escrow/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/escrow/contracts/Escrow.sol +0 -32
- ethpm/ethpm-spec/examples/escrow/contracts/SafeSendLib.sol +0 -20
- ethpm/ethpm-spec/examples/escrow/v3-pretty.json +0 -171
- ethpm/ethpm-spec/examples/escrow/v3.json +0 -1
- ethpm/ethpm-spec/examples/owned/1.0.0-pretty.json +0 -21
- ethpm/ethpm-spec/examples/owned/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/owned/contracts/Owned.sol +0 -12
- ethpm/ethpm-spec/examples/owned/v3-pretty.json +0 -27
- ethpm/ethpm-spec/examples/owned/v3.json +0 -1
- ethpm/ethpm-spec/examples/piper-coin/1.0.0-pretty.json +0 -31
- ethpm/ethpm-spec/examples/piper-coin/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/piper-coin/v3-pretty.json +0 -21
- ethpm/ethpm-spec/examples/piper-coin/v3.json +0 -1
- ethpm/ethpm-spec/examples/safe-math-lib/1.0.0-pretty.json +0 -85
- ethpm/ethpm-spec/examples/safe-math-lib/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/safe-math-lib/contracts/SafeMathLib.sol +0 -24
- ethpm/ethpm-spec/examples/safe-math-lib/v3-pretty.json +0 -117
- ethpm/ethpm-spec/examples/safe-math-lib/v3.json +0 -1
- ethpm/ethpm-spec/examples/standard-token/1.0.0-pretty.json +0 -55
- ethpm/ethpm-spec/examples/standard-token/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/standard-token/contracts/AbstractToken.sol +0 -20
- ethpm/ethpm-spec/examples/standard-token/contracts/StandardToken.sol +0 -84
- ethpm/ethpm-spec/examples/standard-token/v3-pretty.json +0 -460
- ethpm/ethpm-spec/examples/standard-token/v3.json +0 -1
- ethpm/ethpm-spec/examples/transferable/1.0.0-pretty.json +0 -21
- ethpm/ethpm-spec/examples/transferable/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/transferable/contracts/Transferable.sol +0 -14
- ethpm/ethpm-spec/examples/transferable/v3-pretty.json +0 -27
- ethpm/ethpm-spec/examples/transferable/v3.json +0 -1
- ethpm/ethpm-spec/examples/wallet/1.0.0-pretty.json +0 -120
- ethpm/ethpm-spec/examples/wallet/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/wallet/contracts/Wallet.sol +0 -41
- ethpm/ethpm-spec/examples/wallet/v3-pretty.json +0 -181
- ethpm/ethpm-spec/examples/wallet/v3.json +0 -1
- ethpm/ethpm-spec/examples/wallet-with-send/1.0.0-pretty.json +0 -135
- ethpm/ethpm-spec/examples/wallet-with-send/1.0.0.json +0 -1
- ethpm/ethpm-spec/examples/wallet-with-send/contracts/WalletWithSend.sol +0 -18
- ethpm/ethpm-spec/examples/wallet-with-send/v3-pretty.json +0 -207
- ethpm/ethpm-spec/examples/wallet-with-send/v3.json +0 -1
- ethpm/ethpm-spec/spec/package.spec.json +0 -379
- ethpm/ethpm-spec/spec/v3.spec.json +0 -483
- ethpm/exceptions.py +0 -68
- ethpm/package.py +0 -438
- ethpm/tools/__init__.py +0 -4
- ethpm/tools/builder.py +0 -930
- ethpm/tools/checker.py +0 -312
- ethpm/tools/get_manifest.py +0 -19
- ethpm/uri.py +0 -141
- ethpm/validation/__init__.py +0 -0
- ethpm/validation/manifest.py +0 -146
- ethpm/validation/misc.py +0 -39
- ethpm/validation/package.py +0 -80
- ethpm/validation/uri.py +0 -163
- web3/_utils/contract_sources/contract_data/address_reflector.py +0 -29
- web3/_utils/miner.py +0 -88
- web3/_utils/module_testing/go_ethereum_personal_module.py +0 -323
- web3/_utils/request.py +0 -265
- web3/middleware/abi.py +0 -11
- web3/middleware/async_cache.py +0 -99
- web3/middleware/cache.py +0 -374
- web3/middleware/exception_handling.py +0 -49
- web3/middleware/exception_retry_request.py +0 -188
- web3/middleware/fixture.py +0 -190
- web3/middleware/geth_poa.py +0 -81
- web3/middleware/normalize_request_parameters.py +0 -11
- web3/middleware/simulate_unmined_transaction.py +0 -43
- web3/pm.py +0 -602
- web3/providers/async_rpc.py +0 -99
- web3/providers/rpc.py +0 -98
- web3/providers/websocket/__init__.py +0 -11
- web3/providers/websocket/websocket_connection.py +0 -42
- web3/tools/__init__.py +0 -4
- web3/tools/pytest_ethereum/__init__.py +0 -0
- web3/tools/pytest_ethereum/_utils.py +0 -145
- web3/tools/pytest_ethereum/deployer.py +0 -48
- web3/tools/pytest_ethereum/exceptions.py +0 -22
- web3/tools/pytest_ethereum/linker.py +0 -128
- web3/tools/pytest_ethereum/plugins.py +0 -33
- web3-6.20.3.dist-info/METADATA +0 -104
- web3-6.20.3.dist-info/RECORD +0 -283
- web3-6.20.3.dist-info/entry_points.txt +0 -2
- /web3/_utils/{function_identifiers.py → abi_element_identifiers.py} +0 -0
- {web3-6.20.3.dist-info → web3-7.0.0.dist-info}/WHEEL +0 -0
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"contractTypes": {
|
|
3
|
-
"StandardToken": {
|
|
4
|
-
"abi": [
|
|
5
|
-
{
|
|
6
|
-
"inputs": [
|
|
7
|
-
{
|
|
8
|
-
"internalType": "uint256",
|
|
9
|
-
"name": "_totalSupply",
|
|
10
|
-
"type": "uint256"
|
|
11
|
-
}
|
|
12
|
-
],
|
|
13
|
-
"stateMutability": "nonpayable",
|
|
14
|
-
"type": "constructor"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"anonymous": false,
|
|
18
|
-
"inputs": [
|
|
19
|
-
{
|
|
20
|
-
"indexed": true,
|
|
21
|
-
"internalType": "address",
|
|
22
|
-
"name": "owner",
|
|
23
|
-
"type": "address"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"indexed": true,
|
|
27
|
-
"internalType": "address",
|
|
28
|
-
"name": "spender",
|
|
29
|
-
"type": "address"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"indexed": false,
|
|
33
|
-
"internalType": "uint256",
|
|
34
|
-
"name": "value",
|
|
35
|
-
"type": "uint256"
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"name": "Approval",
|
|
39
|
-
"type": "event"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"anonymous": false,
|
|
43
|
-
"inputs": [
|
|
44
|
-
{
|
|
45
|
-
"indexed": true,
|
|
46
|
-
"internalType": "address",
|
|
47
|
-
"name": "from",
|
|
48
|
-
"type": "address"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"indexed": true,
|
|
52
|
-
"internalType": "address",
|
|
53
|
-
"name": "to",
|
|
54
|
-
"type": "address"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"indexed": false,
|
|
58
|
-
"internalType": "uint256",
|
|
59
|
-
"name": "value",
|
|
60
|
-
"type": "uint256"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"name": "Transfer",
|
|
64
|
-
"type": "event"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"inputs": [
|
|
68
|
-
{
|
|
69
|
-
"internalType": "address",
|
|
70
|
-
"name": "_owner",
|
|
71
|
-
"type": "address"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"internalType": "address",
|
|
75
|
-
"name": "_spender",
|
|
76
|
-
"type": "address"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"name": "allowance",
|
|
80
|
-
"outputs": [
|
|
81
|
-
{
|
|
82
|
-
"internalType": "uint256",
|
|
83
|
-
"name": "remaining",
|
|
84
|
-
"type": "uint256"
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"stateMutability": "view",
|
|
88
|
-
"type": "function"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"inputs": [
|
|
92
|
-
{
|
|
93
|
-
"internalType": "address",
|
|
94
|
-
"name": "_spender",
|
|
95
|
-
"type": "address"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"internalType": "uint256",
|
|
99
|
-
"name": "_value",
|
|
100
|
-
"type": "uint256"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"name": "approve",
|
|
104
|
-
"outputs": [
|
|
105
|
-
{
|
|
106
|
-
"internalType": "bool",
|
|
107
|
-
"name": "success",
|
|
108
|
-
"type": "bool"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"stateMutability": "nonpayable",
|
|
112
|
-
"type": "function"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"inputs": [
|
|
116
|
-
{
|
|
117
|
-
"internalType": "address",
|
|
118
|
-
"name": "_owner",
|
|
119
|
-
"type": "address"
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"name": "balanceOf",
|
|
123
|
-
"outputs": [
|
|
124
|
-
{
|
|
125
|
-
"internalType": "uint256",
|
|
126
|
-
"name": "balance",
|
|
127
|
-
"type": "uint256"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"stateMutability": "view",
|
|
131
|
-
"type": "function"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"inputs": [],
|
|
135
|
-
"name": "totalSupply",
|
|
136
|
-
"outputs": [
|
|
137
|
-
{
|
|
138
|
-
"internalType": "uint256",
|
|
139
|
-
"name": "",
|
|
140
|
-
"type": "uint256"
|
|
141
|
-
}
|
|
142
|
-
],
|
|
143
|
-
"stateMutability": "view",
|
|
144
|
-
"type": "function"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"inputs": [
|
|
148
|
-
{
|
|
149
|
-
"internalType": "address",
|
|
150
|
-
"name": "_to",
|
|
151
|
-
"type": "address"
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"internalType": "uint256",
|
|
155
|
-
"name": "_value",
|
|
156
|
-
"type": "uint256"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"name": "transfer",
|
|
160
|
-
"outputs": [
|
|
161
|
-
{
|
|
162
|
-
"internalType": "bool",
|
|
163
|
-
"name": "success",
|
|
164
|
-
"type": "bool"
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"stateMutability": "nonpayable",
|
|
168
|
-
"type": "function"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"inputs": [
|
|
172
|
-
{
|
|
173
|
-
"internalType": "address",
|
|
174
|
-
"name": "_from",
|
|
175
|
-
"type": "address"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"internalType": "address",
|
|
179
|
-
"name": "_to",
|
|
180
|
-
"type": "address"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"internalType": "uint256",
|
|
184
|
-
"name": "_value",
|
|
185
|
-
"type": "uint256"
|
|
186
|
-
}
|
|
187
|
-
],
|
|
188
|
-
"name": "transferFrom",
|
|
189
|
-
"outputs": [
|
|
190
|
-
{
|
|
191
|
-
"internalType": "bool",
|
|
192
|
-
"name": "success",
|
|
193
|
-
"type": "bool"
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"stateMutability": "nonpayable",
|
|
197
|
-
"type": "function"
|
|
198
|
-
}
|
|
199
|
-
],
|
|
200
|
-
"devdoc": {
|
|
201
|
-
"author": "Stefan George - <stefan.george@consensys.net>",
|
|
202
|
-
"methods": {
|
|
203
|
-
"allowance(address,address)": {
|
|
204
|
-
"details": "Returns number of allowed tokens for given address.",
|
|
205
|
-
"params": {
|
|
206
|
-
"_owner": "Address of token owner.",
|
|
207
|
-
"_spender": "Address of token spender."
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
"approve(address,uint256)": {
|
|
211
|
-
"details": "Sets approved amount of tokens for spender. Returns success.",
|
|
212
|
-
"params": {
|
|
213
|
-
"_spender": "Address of allowed account.",
|
|
214
|
-
"_value": "Number of approved tokens."
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"balanceOf(address)": {
|
|
218
|
-
"details": "Returns number of tokens owned by given address.",
|
|
219
|
-
"params": {
|
|
220
|
-
"_owner": "Address of token owner."
|
|
221
|
-
}
|
|
222
|
-
},
|
|
223
|
-
"transfer(address,uint256)": {
|
|
224
|
-
"details": "Transfers sender's tokens to a given address. Returns success.",
|
|
225
|
-
"params": {
|
|
226
|
-
"_to": "Address of token receiver.",
|
|
227
|
-
"_value": "Number of tokens to transfer."
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"transferFrom(address,address,uint256)": {
|
|
231
|
-
"details": "Allows allowed third party to transfer tokens from one address to another. Returns success.",
|
|
232
|
-
"params": {
|
|
233
|
-
"_from": "Address from where tokens are withdrawn.",
|
|
234
|
-
"_to": "Address to where tokens are sent.",
|
|
235
|
-
"_value": "Number of tokens to transfer."
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"title": "Standard token contract"
|
|
240
|
-
},
|
|
241
|
-
"sourceId": "StandardToken.sol"
|
|
242
|
-
},
|
|
243
|
-
"Token": {
|
|
244
|
-
"abi": [
|
|
245
|
-
{
|
|
246
|
-
"anonymous": false,
|
|
247
|
-
"inputs": [
|
|
248
|
-
{
|
|
249
|
-
"indexed": true,
|
|
250
|
-
"internalType": "address",
|
|
251
|
-
"name": "owner",
|
|
252
|
-
"type": "address"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"indexed": true,
|
|
256
|
-
"internalType": "address",
|
|
257
|
-
"name": "spender",
|
|
258
|
-
"type": "address"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
"indexed": false,
|
|
262
|
-
"internalType": "uint256",
|
|
263
|
-
"name": "value",
|
|
264
|
-
"type": "uint256"
|
|
265
|
-
}
|
|
266
|
-
],
|
|
267
|
-
"name": "Approval",
|
|
268
|
-
"type": "event"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"anonymous": false,
|
|
272
|
-
"inputs": [
|
|
273
|
-
{
|
|
274
|
-
"indexed": true,
|
|
275
|
-
"internalType": "address",
|
|
276
|
-
"name": "from",
|
|
277
|
-
"type": "address"
|
|
278
|
-
},
|
|
279
|
-
{
|
|
280
|
-
"indexed": true,
|
|
281
|
-
"internalType": "address",
|
|
282
|
-
"name": "to",
|
|
283
|
-
"type": "address"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"indexed": false,
|
|
287
|
-
"internalType": "uint256",
|
|
288
|
-
"name": "value",
|
|
289
|
-
"type": "uint256"
|
|
290
|
-
}
|
|
291
|
-
],
|
|
292
|
-
"name": "Transfer",
|
|
293
|
-
"type": "event"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"inputs": [
|
|
297
|
-
{
|
|
298
|
-
"internalType": "address",
|
|
299
|
-
"name": "owner",
|
|
300
|
-
"type": "address"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"internalType": "address",
|
|
304
|
-
"name": "spender",
|
|
305
|
-
"type": "address"
|
|
306
|
-
}
|
|
307
|
-
],
|
|
308
|
-
"name": "allowance",
|
|
309
|
-
"outputs": [
|
|
310
|
-
{
|
|
311
|
-
"internalType": "uint256",
|
|
312
|
-
"name": "remaining",
|
|
313
|
-
"type": "uint256"
|
|
314
|
-
}
|
|
315
|
-
],
|
|
316
|
-
"stateMutability": "view",
|
|
317
|
-
"type": "function"
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
"inputs": [
|
|
321
|
-
{
|
|
322
|
-
"internalType": "address",
|
|
323
|
-
"name": "spender",
|
|
324
|
-
"type": "address"
|
|
325
|
-
},
|
|
326
|
-
{
|
|
327
|
-
"internalType": "uint256",
|
|
328
|
-
"name": "value",
|
|
329
|
-
"type": "uint256"
|
|
330
|
-
}
|
|
331
|
-
],
|
|
332
|
-
"name": "approve",
|
|
333
|
-
"outputs": [
|
|
334
|
-
{
|
|
335
|
-
"internalType": "bool",
|
|
336
|
-
"name": "success",
|
|
337
|
-
"type": "bool"
|
|
338
|
-
}
|
|
339
|
-
],
|
|
340
|
-
"stateMutability": "nonpayable",
|
|
341
|
-
"type": "function"
|
|
342
|
-
},
|
|
343
|
-
{
|
|
344
|
-
"inputs": [
|
|
345
|
-
{
|
|
346
|
-
"internalType": "address",
|
|
347
|
-
"name": "owner",
|
|
348
|
-
"type": "address"
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"name": "balanceOf",
|
|
352
|
-
"outputs": [
|
|
353
|
-
{
|
|
354
|
-
"internalType": "uint256",
|
|
355
|
-
"name": "balance",
|
|
356
|
-
"type": "uint256"
|
|
357
|
-
}
|
|
358
|
-
],
|
|
359
|
-
"stateMutability": "view",
|
|
360
|
-
"type": "function"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
"inputs": [],
|
|
364
|
-
"name": "totalSupply",
|
|
365
|
-
"outputs": [
|
|
366
|
-
{
|
|
367
|
-
"internalType": "uint256",
|
|
368
|
-
"name": "supply",
|
|
369
|
-
"type": "uint256"
|
|
370
|
-
}
|
|
371
|
-
],
|
|
372
|
-
"stateMutability": "view",
|
|
373
|
-
"type": "function"
|
|
374
|
-
},
|
|
375
|
-
{
|
|
376
|
-
"inputs": [
|
|
377
|
-
{
|
|
378
|
-
"internalType": "address",
|
|
379
|
-
"name": "to",
|
|
380
|
-
"type": "address"
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
"internalType": "uint256",
|
|
384
|
-
"name": "value",
|
|
385
|
-
"type": "uint256"
|
|
386
|
-
}
|
|
387
|
-
],
|
|
388
|
-
"name": "transfer",
|
|
389
|
-
"outputs": [
|
|
390
|
-
{
|
|
391
|
-
"internalType": "bool",
|
|
392
|
-
"name": "success",
|
|
393
|
-
"type": "bool"
|
|
394
|
-
}
|
|
395
|
-
],
|
|
396
|
-
"stateMutability": "nonpayable",
|
|
397
|
-
"type": "function"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
"inputs": [
|
|
401
|
-
{
|
|
402
|
-
"internalType": "address",
|
|
403
|
-
"name": "from",
|
|
404
|
-
"type": "address"
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
"internalType": "address",
|
|
408
|
-
"name": "to",
|
|
409
|
-
"type": "address"
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
"internalType": "uint256",
|
|
413
|
-
"name": "value",
|
|
414
|
-
"type": "uint256"
|
|
415
|
-
}
|
|
416
|
-
],
|
|
417
|
-
"name": "transferFrom",
|
|
418
|
-
"outputs": [
|
|
419
|
-
{
|
|
420
|
-
"internalType": "bool",
|
|
421
|
-
"name": "success",
|
|
422
|
-
"type": "bool"
|
|
423
|
-
}
|
|
424
|
-
],
|
|
425
|
-
"stateMutability": "nonpayable",
|
|
426
|
-
"type": "function"
|
|
427
|
-
}
|
|
428
|
-
],
|
|
429
|
-
"devdoc": {
|
|
430
|
-
"author": "Stefan George - <stefan.george@consensys.net>",
|
|
431
|
-
"methods": {},
|
|
432
|
-
"title": "Abstract token contract - Functions to be implemented by token contracts."
|
|
433
|
-
},
|
|
434
|
-
"sourceId": "AbstractToken.sol",
|
|
435
|
-
"userdoc": {
|
|
436
|
-
"methods": {},
|
|
437
|
-
"notice": "Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20"
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"manifest": "ethpm/3",
|
|
442
|
-
"name": "standard-token",
|
|
443
|
-
"sources": {
|
|
444
|
-
"./AbstractToken.sol": {
|
|
445
|
-
"installPath": "./AbstractToken.sol",
|
|
446
|
-
"type": "solidity",
|
|
447
|
-
"urls": [
|
|
448
|
-
"ipfs://QmSBYuGKSH2veDepMbFQu3XVStYRCvuqFjUV7YCPufeHJz"
|
|
449
|
-
]
|
|
450
|
-
},
|
|
451
|
-
"./StandardToken.sol": {
|
|
452
|
-
"installPath": "./StandardToken.sol",
|
|
453
|
-
"type": "solidity",
|
|
454
|
-
"urls": [
|
|
455
|
-
"ipfs://QmUofKBtNJVaqoSAtnHfrarJyyLm1oMUTAK4yCtnmYMJVy"
|
|
456
|
-
]
|
|
457
|
-
}
|
|
458
|
-
},
|
|
459
|
-
"version": "1.0.0"
|
|
460
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"contractTypes":{"StandardToken":{"abi":[{"inputs":[{"internalType":"uint256","name":"_totalSupply","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_spender","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"author":"Stefan George - <stefan.george@consensys.net>","methods":{"allowance(address,address)":{"details":"Returns number of allowed tokens for given address.","params":{"_owner":"Address of token owner.","_spender":"Address of token spender."}},"approve(address,uint256)":{"details":"Sets approved amount of tokens for spender. Returns success.","params":{"_spender":"Address of allowed account.","_value":"Number of approved tokens."}},"balanceOf(address)":{"details":"Returns number of tokens owned by given address.","params":{"_owner":"Address of token owner."}},"transfer(address,uint256)":{"details":"Transfers sender's tokens to a given address. Returns success.","params":{"_to":"Address of token receiver.","_value":"Number of tokens to transfer."}},"transferFrom(address,address,uint256)":{"details":"Allows allowed third party to transfer tokens from one address to another. Returns success.","params":{"_from":"Address from where tokens are withdrawn.","_to":"Address to where tokens are sent.","_value":"Number of tokens to transfer."}}},"title":"Standard token contract"},"sourceId":"StandardToken.sol"},"Token":{"abi":[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"remaining","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"supply","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"}],"devdoc":{"author":"Stefan George - <stefan.george@consensys.net>","methods":{},"title":"Abstract token contract - Functions to be implemented by token contracts."},"sourceId":"AbstractToken.sol","userdoc":{"methods":{},"notice":"Implements ERC 20 Token standard: https://github.com/ethereum/EIPs/issues/20"}}},"manifest":"ethpm/3","name":"standard-token","sources":{"./AbstractToken.sol":{"installPath":"./AbstractToken.sol","type":"solidity","urls":["ipfs://QmSBYuGKSH2veDepMbFQu3XVStYRCvuqFjUV7YCPufeHJz"]},"./StandardToken.sol":{"installPath":"./StandardToken.sol","type":"solidity","urls":["ipfs://QmUofKBtNJVaqoSAtnHfrarJyyLm1oMUTAK4yCtnmYMJVy"]}},"version":"1.0.0"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version":"2",
|
|
3
|
-
"version":"1.0.0",
|
|
4
|
-
"package_name":"transferable",
|
|
5
|
-
"meta":{
|
|
6
|
-
"license":"MIT",
|
|
7
|
-
"authors":[
|
|
8
|
-
"Piper Merriam <pipermerriam@gmail.com>"
|
|
9
|
-
],
|
|
10
|
-
"description":"Reusable contracts which implement a privileged 'owner' model for authorization with functionality for transfering ownership.",
|
|
11
|
-
"keywords":[
|
|
12
|
-
"authorization"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"sources":{
|
|
16
|
-
"./contracts/Transferable.sol":"ipfs://QmZYkdUUTwREjfy4vQc3enzu6WKk8eNyvGERqy1cNNVkAD"
|
|
17
|
-
},
|
|
18
|
-
"build_dependencies":{
|
|
19
|
-
"owned":"ipfs://QmbeVyFLSuEUxiXKwSsEjef6icpdTdA4kGG9BcrJXKNKUW"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"build_dependencies":{"owned":"ipfs://QmbeVyFLSuEUxiXKwSsEjef6icpdTdA4kGG9BcrJXKNKUW"},"manifest_version":"2","meta":{"authors":["Piper Merriam <pipermerriam@gmail.com>"],"description":"Reusable contracts which implement a privileged 'owner' model for authorization with functionality for transfering ownership.","keywords":["authorization"],"license":"MIT"},"package_name":"transferable","sources":{"./contracts/Transferable.sol":"ipfs://QmZYkdUUTwREjfy4vQc3enzu6WKk8eNyvGERqy1cNNVkAD"},"version":"1.0.0"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity ^0.6.8;
|
|
3
|
-
|
|
4
|
-
import {Owned} from "owned/contracts/Owned.sol";
|
|
5
|
-
|
|
6
|
-
contract Transferable is Owned {
|
|
7
|
-
event OwnerChanged(address indexed prevOwner, address indexed newOwner);
|
|
8
|
-
|
|
9
|
-
function transferOwner(address newOwner) public onlyOwner returns (bool) {
|
|
10
|
-
emit OwnerChanged(owner, newOwner);
|
|
11
|
-
owner = newOwner;
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest": "ethpm/3",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"name": "transferable",
|
|
5
|
-
"meta": {
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"authors": [
|
|
8
|
-
"Piper Merriam <pipermerriam@gmail.com>"
|
|
9
|
-
],
|
|
10
|
-
"description": "Reusable contracts which implement a privileged 'owner' model for authorization with functionality for transfering ownership.",
|
|
11
|
-
"keywords": [
|
|
12
|
-
"authorization"
|
|
13
|
-
]
|
|
14
|
-
},
|
|
15
|
-
"sources": {
|
|
16
|
-
"Transferable.sol": {
|
|
17
|
-
"type": "solidity",
|
|
18
|
-
"installPath": "./Transferable.sol",
|
|
19
|
-
"urls": [
|
|
20
|
-
"ipfs://QmdWB74Ca8tyXtS3UxzJqcvETv3LLkacX2ywfJfNNWVnYt"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"buildDependencies": {
|
|
25
|
-
"owned": "ipfs://QmcxvhkJJVpbxEAa6cgW3B6XwPJb79w9GpNUv2P2THUzZR"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"buildDependencies":{"owned":"ipfs://QmcxvhkJJVpbxEAa6cgW3B6XwPJb79w9GpNUv2P2THUzZR"},"manifest":"ethpm/3","meta":{"authors":["Piper Merriam <pipermerriam@gmail.com>"],"description":"Reusable contracts which implement a privileged 'owner' model for authorization with functionality for transfering ownership.","keywords":["authorization"],"license":"MIT"},"name":"transferable","sources":{"Transferable.sol":{"installPath":"./Transferable.sol","type":"solidity","urls":["ipfs://QmdWB74Ca8tyXtS3UxzJqcvETv3LLkacX2ywfJfNNWVnYt"]}},"version":"1.0.0"}
|