ocean-contracts 2.0.4__py3-none-any.whl → 2.2.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 (36) hide show
  1. addresses/address.json +29 -7
  2. artifacts/AccessList.json +630 -0
  3. artifacts/AccessListFactory.json +220 -0
  4. artifacts/Booster.json +557 -0
  5. artifacts/DFRewards.json +2 -2
  6. artifacts/DFStrategyV1.json +2 -2
  7. artifacts/Dispenser.json +2 -2
  8. artifacts/ERC20Template.json +2 -2
  9. artifacts/ERC20Template3.json +2 -2
  10. artifacts/ERC20Template4.json +1806 -0
  11. artifacts/ERC20TemplateEnterprise.json +2 -2
  12. artifacts/ERC721.json +2 -2
  13. artifacts/ERC721Factory.json +2 -2
  14. artifacts/ERC721Template.json +2 -2
  15. artifacts/ERC725Ocean.json +2 -2
  16. artifacts/FactoryRouter.json +2 -2
  17. artifacts/FixedRateExchange.json +2 -2
  18. artifacts/IAccessList.json +68 -0
  19. artifacts/IAccessListContract.json +30 -0
  20. artifacts/IAccessListFactory.json +49 -0
  21. artifacts/MockERC20.json +2 -2
  22. artifacts/MockOcean.json +2 -2
  23. artifacts/MockOldDT.json +2 -2
  24. artifacts/OPFCommunityFeeCollector.json +2 -2
  25. artifacts/OceanToken.json +2 -2
  26. artifacts/PredictoorHelper.json +2 -2
  27. artifacts/SmartWalletChecker.json +2 -2
  28. artifacts/Splitter.json +2 -2
  29. artifacts/VestingWalletHalving.json +2 -2
  30. artifacts/VestingWalletLinear.json +2 -2
  31. artifacts/veAllocate.json +2 -2
  32. artifacts/veFeeDistributorOwner.json +2 -2
  33. {ocean_contracts-2.0.4.dist-info → ocean_contracts-2.2.0.dist-info}/METADATA +1 -1
  34. {ocean_contracts-2.0.4.dist-info → ocean_contracts-2.2.0.dist-info}/RECORD +36 -29
  35. {ocean_contracts-2.0.4.dist-info → ocean_contracts-2.2.0.dist-info}/WHEEL +1 -1
  36. {ocean_contracts-2.0.4.dist-info → ocean_contracts-2.2.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,220 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AccessListFactory",
4
+ "sourceName": "contracts/accesslists/AccessListFactory.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "address",
10
+ "name": "_template",
11
+ "type": "address"
12
+ }
13
+ ],
14
+ "stateMutability": "nonpayable",
15
+ "type": "constructor"
16
+ },
17
+ {
18
+ "anonymous": false,
19
+ "inputs": [
20
+ {
21
+ "indexed": false,
22
+ "internalType": "address",
23
+ "name": "instance",
24
+ "type": "address"
25
+ }
26
+ ],
27
+ "name": "InstanceDeployed",
28
+ "type": "event"
29
+ },
30
+ {
31
+ "anonymous": false,
32
+ "inputs": [
33
+ {
34
+ "indexed": true,
35
+ "internalType": "address",
36
+ "name": "contractAddress",
37
+ "type": "address"
38
+ },
39
+ {
40
+ "indexed": true,
41
+ "internalType": "address",
42
+ "name": "owner",
43
+ "type": "address"
44
+ }
45
+ ],
46
+ "name": "NewAccessList",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": true,
54
+ "internalType": "address",
55
+ "name": "previousOwner",
56
+ "type": "address"
57
+ },
58
+ {
59
+ "indexed": true,
60
+ "internalType": "address",
61
+ "name": "newOwner",
62
+ "type": "address"
63
+ }
64
+ ],
65
+ "name": "OwnershipTransferred",
66
+ "type": "event"
67
+ },
68
+ {
69
+ "inputs": [
70
+ {
71
+ "internalType": "address",
72
+ "name": "",
73
+ "type": "address"
74
+ }
75
+ ],
76
+ "name": "accessListDeployedContracts",
77
+ "outputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "",
81
+ "type": "address"
82
+ }
83
+ ],
84
+ "stateMutability": "view",
85
+ "type": "function"
86
+ },
87
+ {
88
+ "inputs": [
89
+ {
90
+ "internalType": "address",
91
+ "name": "_newTemplateAddress",
92
+ "type": "address"
93
+ }
94
+ ],
95
+ "name": "changeTemplateAddress",
96
+ "outputs": [],
97
+ "stateMutability": "nonpayable",
98
+ "type": "function"
99
+ },
100
+ {
101
+ "inputs": [
102
+ {
103
+ "internalType": "string",
104
+ "name": "name",
105
+ "type": "string"
106
+ },
107
+ {
108
+ "internalType": "string",
109
+ "name": "symbol",
110
+ "type": "string"
111
+ },
112
+ {
113
+ "internalType": "bool",
114
+ "name": "transferable",
115
+ "type": "bool"
116
+ },
117
+ {
118
+ "internalType": "address",
119
+ "name": "owner",
120
+ "type": "address"
121
+ },
122
+ {
123
+ "internalType": "address[]",
124
+ "name": "user",
125
+ "type": "address[]"
126
+ },
127
+ {
128
+ "internalType": "string[]",
129
+ "name": "_tokenURI",
130
+ "type": "string[]"
131
+ }
132
+ ],
133
+ "name": "deployAccessListContract",
134
+ "outputs": [
135
+ {
136
+ "internalType": "address",
137
+ "name": "token",
138
+ "type": "address"
139
+ }
140
+ ],
141
+ "stateMutability": "nonpayable",
142
+ "type": "function"
143
+ },
144
+ {
145
+ "inputs": [
146
+ {
147
+ "internalType": "address",
148
+ "name": "contractAddress",
149
+ "type": "address"
150
+ }
151
+ ],
152
+ "name": "isDeployed",
153
+ "outputs": [
154
+ {
155
+ "internalType": "bool",
156
+ "name": "",
157
+ "type": "bool"
158
+ }
159
+ ],
160
+ "stateMutability": "view",
161
+ "type": "function"
162
+ },
163
+ {
164
+ "inputs": [
165
+ {
166
+ "internalType": "address",
167
+ "name": "contractAddress",
168
+ "type": "address"
169
+ }
170
+ ],
171
+ "name": "isSoulBound",
172
+ "outputs": [
173
+ {
174
+ "internalType": "bool",
175
+ "name": "",
176
+ "type": "bool"
177
+ }
178
+ ],
179
+ "stateMutability": "view",
180
+ "type": "function"
181
+ },
182
+ {
183
+ "inputs": [],
184
+ "name": "owner",
185
+ "outputs": [
186
+ {
187
+ "internalType": "address",
188
+ "name": "",
189
+ "type": "address"
190
+ }
191
+ ],
192
+ "stateMutability": "view",
193
+ "type": "function"
194
+ },
195
+ {
196
+ "inputs": [],
197
+ "name": "renounceOwnership",
198
+ "outputs": [],
199
+ "stateMutability": "nonpayable",
200
+ "type": "function"
201
+ },
202
+ {
203
+ "inputs": [
204
+ {
205
+ "internalType": "address",
206
+ "name": "newOwner",
207
+ "type": "address"
208
+ }
209
+ ],
210
+ "name": "transferOwnership",
211
+ "outputs": [],
212
+ "stateMutability": "nonpayable",
213
+ "type": "function"
214
+ }
215
+ ],
216
+ "bytecode": "0x608060405234801561001057600080fd5b50604051610c6b380380610c6b83398101604081905261002f9161010c565b610038336100bc565b600180556001600160a01b038116158015906100545750803b15155b6100975760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642074656d706c61746560801b604482015260640160405180910390fd5b600280546001600160a01b0319166001600160a01b039290921691909117905561013c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561011e57600080fd5b81516001600160a01b038116811461013557600080fd5b9392505050565b610b208061014b6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c806390184b021161005b57806390184b02146100fb5780639b0712f21461010e578063d91cb12214610137578063f2fde38b1461014a57600080fd5b80634a1fd0d01461008d578063715018a6146100b557806373282534146100bf5780638da5cb5b146100ea575b600080fd5b6100a061009b366004610659565b61015d565b60405190151581526020015b60405180910390f35b6100bd610227565b005b6100d26100cd36600461089e565b61023b565b6040516001600160a01b0390911681526020016100ac565b6000546001600160a01b03166100d2565b6100a0610109366004610659565b6103d6565b6100d261011c366004610659565b6003602052600090815260409020546001600160a01b031681565b6100bd610145366004610659565b610409565b6100bd610158366004610659565b61048a565b6000610168826103d6565b15156001146101be5760405162461bcd60e51b815260206004820152601760248201527f4e6f74206465706c6f79656420627920666163746f727900000000000000000060448201526064015b60405180910390fd5b816001600160a01b03166392ff0d316040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610220919061097a565b1592915050565b61022f610503565b610239600061055d565b565b600254600090610253906001600160a01b03166105ad565b90506001600160a01b0381166102ab5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f206465706c6f79206e657720616363657373206c69737460448201526064016101b5565b6001600160a01b0380821660008181526003602052604080822080546001600160a01b0319168417905551928716927fd65bc8e3024bbad886df74eea79b6e118b7fbcffe1f3f98054e5a6b98dc838919190a36040516314399fef60e21b815281906001600160a01b038216906350e67fbc9061033a9088908e908e908e908e908e908d908d90600401610a4e565b6020604051808303816000875af1158015610359573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037d919061097a565b6103c95760405162461bcd60e51b815260206004820181905260248201527f556e61626c6520746f20696e697469616c697a6520616363657373206c69737460448201526064016101b5565b5098975050505050505050565b6001600160a01b03808216600081815260036020526040812054909216141561040157506001919050565b506000919050565b610411610503565b6001600160a01b038116158015906104295750803b15155b6104685760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642074656d706c61746560801b60448201526064016101b5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610492610503565b6001600160a01b0381166104f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b5565b6105008161055d565b50565b6000546001600160a01b031633146102395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f06040516001600160a01b03821681529093507f117c72e6c25f0a072e36e148df71468ce2f3dbe7defec5b2c257a6e3eb65278c915060200160405180910390a150919050565b80356001600160a01b038116811461065457600080fd5b919050565b60006020828403121561066b57600080fd5b6106748261063d565b9392505050565b60008083601f84011261068d57600080fd5b50813567ffffffffffffffff8111156106a557600080fd5b6020830191508360208285010111156106bd57600080fd5b9250929050565b801515811461050057600080fd5b8035610654816106c4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561071c5761071c6106dd565b604052919050565b600067ffffffffffffffff82111561073e5761073e6106dd565b5060051b60200190565b600082601f83011261075957600080fd5b8135602061076e61076983610724565b6106f3565b82815260059290921b8401810191818101908684111561078d57600080fd5b8286015b848110156107af576107a28161063d565b8352918301918301610791565b509695505050505050565b6000601f83818401126107cc57600080fd5b823560206107dc61076983610724565b82815260059290921b850181019181810190878411156107fb57600080fd5b8287015b8481101561089257803567ffffffffffffffff808211156108205760008081fd5b818a0191508a603f8301126108355760008081fd5b8582013560408282111561084b5761084b6106dd565b61085c828b01601f191689016106f3565b92508183528c818386010111156108735760008081fd5b81818501898501375060009082018701528452509183019183016107ff565b50979650505050505050565b60008060008060008060008060c0898b0312156108ba57600080fd5b883567ffffffffffffffff808211156108d257600080fd5b6108de8c838d0161067b565b909a50985060208b01359150808211156108f757600080fd5b6109038c838d0161067b565b909850965086915061091760408c016106d2565b955061092560608c0161063d565b945060808b013591508082111561093b57600080fd5b6109478c838d01610748565b935060a08b013591508082111561095d57600080fd5b5061096a8b828c016107ba565b9150509295985092959890939650565b60006020828403121561098c57600080fd5b8151610674816106c4565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600081518084526020808501808196508360051b810191508286016000805b86811015610a40578385038a5282518051808752835b81811015610a10578281018901518882018a015288016109f5565b81811115610a20578489838a0101525b509a87019a601f01601f19169590950186019450918501916001016109df565b509298975050505050505050565b600060018060a01b03808b168352602060c081850152610a7260c085018b8d610997565b8481036040860152610a85818a8c610997565b88151560608701528581036080870152875180825283890192509083019060005b81811015610ac4578351861683529284019291840191600101610aa6565b505085810360a0870152610ad881886109c0565b9e9d505050505050505050505050505056fea2646970667358221220742b6e9c4b6bcf4bf7bf976a1fa0216f075abc51adf2cd9eafa6cc6076b5d4bf64736f6c634300080c0033",
217
+ "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100885760003560e01c806390184b021161005b57806390184b02146100fb5780639b0712f21461010e578063d91cb12214610137578063f2fde38b1461014a57600080fd5b80634a1fd0d01461008d578063715018a6146100b557806373282534146100bf5780638da5cb5b146100ea575b600080fd5b6100a061009b366004610659565b61015d565b60405190151581526020015b60405180910390f35b6100bd610227565b005b6100d26100cd36600461089e565b61023b565b6040516001600160a01b0390911681526020016100ac565b6000546001600160a01b03166100d2565b6100a0610109366004610659565b6103d6565b6100d261011c366004610659565b6003602052600090815260409020546001600160a01b031681565b6100bd610145366004610659565b610409565b6100bd610158366004610659565b61048a565b6000610168826103d6565b15156001146101be5760405162461bcd60e51b815260206004820152601760248201527f4e6f74206465706c6f79656420627920666163746f727900000000000000000060448201526064015b60405180910390fd5b816001600160a01b03166392ff0d316040518163ffffffff1660e01b8152600401602060405180830381865afa1580156101fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610220919061097a565b1592915050565b61022f610503565b610239600061055d565b565b600254600090610253906001600160a01b03166105ad565b90506001600160a01b0381166102ab5760405162461bcd60e51b815260206004820181905260248201527f4661696c656420746f206465706c6f79206e657720616363657373206c69737460448201526064016101b5565b6001600160a01b0380821660008181526003602052604080822080546001600160a01b0319168417905551928716927fd65bc8e3024bbad886df74eea79b6e118b7fbcffe1f3f98054e5a6b98dc838919190a36040516314399fef60e21b815281906001600160a01b038216906350e67fbc9061033a9088908e908e908e908e908e908d908d90600401610a4e565b6020604051808303816000875af1158015610359573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061037d919061097a565b6103c95760405162461bcd60e51b815260206004820181905260248201527f556e61626c6520746f20696e697469616c697a6520616363657373206c69737460448201526064016101b5565b5098975050505050505050565b6001600160a01b03808216600081815260036020526040812054909216141561040157506001919050565b506000919050565b610411610503565b6001600160a01b038116158015906104295750803b15155b6104685760405162461bcd60e51b815260206004820152601060248201526f496e76616c69642074656d706c61746560801b60448201526064016101b5565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b610492610503565b6001600160a01b0381166104f75760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101b5565b6105008161055d565b50565b6000546001600160a01b031633146102395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101b5565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000808260601b9050604051733d602d80600a3d3981f3363d3d373d3d3d363d7360601b81528160148201526e5af43d82803e903d91602b57fd5bf360881b60288201526037816000f06040516001600160a01b03821681529093507f117c72e6c25f0a072e36e148df71468ce2f3dbe7defec5b2c257a6e3eb65278c915060200160405180910390a150919050565b80356001600160a01b038116811461065457600080fd5b919050565b60006020828403121561066b57600080fd5b6106748261063d565b9392505050565b60008083601f84011261068d57600080fd5b50813567ffffffffffffffff8111156106a557600080fd5b6020830191508360208285010111156106bd57600080fd5b9250929050565b801515811461050057600080fd5b8035610654816106c4565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561071c5761071c6106dd565b604052919050565b600067ffffffffffffffff82111561073e5761073e6106dd565b5060051b60200190565b600082601f83011261075957600080fd5b8135602061076e61076983610724565b6106f3565b82815260059290921b8401810191818101908684111561078d57600080fd5b8286015b848110156107af576107a28161063d565b8352918301918301610791565b509695505050505050565b6000601f83818401126107cc57600080fd5b823560206107dc61076983610724565b82815260059290921b850181019181810190878411156107fb57600080fd5b8287015b8481101561089257803567ffffffffffffffff808211156108205760008081fd5b818a0191508a603f8301126108355760008081fd5b8582013560408282111561084b5761084b6106dd565b61085c828b01601f191689016106f3565b92508183528c818386010111156108735760008081fd5b81818501898501375060009082018701528452509183019183016107ff565b50979650505050505050565b60008060008060008060008060c0898b0312156108ba57600080fd5b883567ffffffffffffffff808211156108d257600080fd5b6108de8c838d0161067b565b909a50985060208b01359150808211156108f757600080fd5b6109038c838d0161067b565b909850965086915061091760408c016106d2565b955061092560608c0161063d565b945060808b013591508082111561093b57600080fd5b6109478c838d01610748565b935060a08b013591508082111561095d57600080fd5b5061096a8b828c016107ba565b9150509295985092959890939650565b60006020828403121561098c57600080fd5b8151610674816106c4565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b600081518084526020808501808196508360051b810191508286016000805b86811015610a40578385038a5282518051808752835b81811015610a10578281018901518882018a015288016109f5565b81811115610a20578489838a0101525b509a87019a601f01601f19169590950186019450918501916001016109df565b509298975050505050505050565b600060018060a01b03808b168352602060c081850152610a7260c085018b8d610997565b8481036040860152610a85818a8c610997565b88151560608701528581036080870152875180825283890192509083019060005b81811015610ac4578351861683529284019291840191600101610aa6565b505085810360a0870152610ad881886109c0565b9e9d505050505050505050505050505056fea2646970667358221220742b6e9c4b6bcf4bf7bf976a1fa0216f075abc51adf2cd9eafa6cc6076b5d4bf64736f6c634300080c0033",
218
+ "linkReferences": {},
219
+ "deployedLinkReferences": {}
220
+ }