ocean-contracts 1.1.14__py3-none-any.whl → 2.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.
- addresses/address.json +80 -5
- artifacts/Distribute.json +57 -0
- artifacts/ERC20Template.json +2 -2
- artifacts/ERC20Template3.json +2113 -0
- artifacts/ERC20TemplateEnterprise.json +2 -2
- artifacts/FactoryRouter.json +2 -2
- artifacts/FixedRateExchange.json +47 -2
- artifacts/IERC20Template3.json +971 -0
- artifacts/IFixedRateExchange.json +13 -0
- artifacts/ISplitter.json +24 -0
- artifacts/IVestingContract.json +24 -0
- artifacts/IveFeeDistributor.json +85 -0
- artifacts/MockERC20.json +2 -2
- artifacts/MockERC20Decimals.json +2 -2
- artifacts/MockOcean.json +2 -2
- artifacts/OPFCommunityFeeCollector.json +2 -2
- artifacts/PredictoorHelper.json +191 -0
- artifacts/Splitter.json +340 -0
- artifacts/VestingWalletHalving.json +435 -0
- artifacts/VestingWalletLinear.json +362 -0
- artifacts/veFeeDistributorOwner.json +226 -0
- {ocean_contracts-1.1.14.dist-info → ocean_contracts-2.0.0.dist-info}/METADATA +2 -3
- {ocean_contracts-1.1.14.dist-info → ocean_contracts-2.0.0.dist-info}/RECORD +25 -16
- {ocean_contracts-1.1.14.dist-info → ocean_contracts-2.0.0.dist-info}/WHEEL +1 -1
- artifacts/SideStaking.json +0 -502
- artifacts/veDelegationProxy.json +0 -195
- {ocean_contracts-1.1.14.dist-info → ocean_contracts-2.0.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "VestingWalletLinear",
|
|
4
|
+
"sourceName": "contracts/df/VestingWalletLinear.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "beneficiaryAddress",
|
|
11
|
+
"type": "address"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint64",
|
|
15
|
+
"name": "startTimestamp",
|
|
16
|
+
"type": "uint64"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint64",
|
|
20
|
+
"name": "durationSeconds",
|
|
21
|
+
"type": "uint64"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"stateMutability": "payable",
|
|
25
|
+
"type": "constructor"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"anonymous": false,
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"indexed": true,
|
|
32
|
+
"internalType": "address",
|
|
33
|
+
"name": "newBeneficiary",
|
|
34
|
+
"type": "address"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"name": "BeneficiaryChanged",
|
|
38
|
+
"type": "event"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"anonymous": false,
|
|
42
|
+
"inputs": [
|
|
43
|
+
{
|
|
44
|
+
"indexed": true,
|
|
45
|
+
"internalType": "address",
|
|
46
|
+
"name": "beneficiary",
|
|
47
|
+
"type": "address"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"indexed": true,
|
|
51
|
+
"internalType": "address",
|
|
52
|
+
"name": "token",
|
|
53
|
+
"type": "address"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"indexed": false,
|
|
57
|
+
"internalType": "uint256",
|
|
58
|
+
"name": "amount",
|
|
59
|
+
"type": "uint256"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"name": "ERC20Released",
|
|
63
|
+
"type": "event"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"anonymous": false,
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"indexed": true,
|
|
70
|
+
"internalType": "address",
|
|
71
|
+
"name": "beneficiary",
|
|
72
|
+
"type": "address"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"indexed": false,
|
|
76
|
+
"internalType": "uint256",
|
|
77
|
+
"name": "amount",
|
|
78
|
+
"type": "uint256"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"name": "EtherReleased",
|
|
82
|
+
"type": "event"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anonymous": false,
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"indexed": true,
|
|
89
|
+
"internalType": "address",
|
|
90
|
+
"name": "previousOwner",
|
|
91
|
+
"type": "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"indexed": true,
|
|
95
|
+
"internalType": "address",
|
|
96
|
+
"name": "newOwner",
|
|
97
|
+
"type": "address"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "OwnershipTransferred",
|
|
101
|
+
"type": "event"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"anonymous": false,
|
|
105
|
+
"inputs": [
|
|
106
|
+
{
|
|
107
|
+
"indexed": true,
|
|
108
|
+
"internalType": "address",
|
|
109
|
+
"name": "token",
|
|
110
|
+
"type": "address"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"indexed": true,
|
|
114
|
+
"internalType": "address",
|
|
115
|
+
"name": "owner",
|
|
116
|
+
"type": "address"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"indexed": false,
|
|
120
|
+
"internalType": "uint256",
|
|
121
|
+
"name": "amount",
|
|
122
|
+
"type": "uint256"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"name": "RenounceVesting",
|
|
126
|
+
"type": "event"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"inputs": [],
|
|
130
|
+
"name": "beneficiary",
|
|
131
|
+
"outputs": [
|
|
132
|
+
{
|
|
133
|
+
"internalType": "address",
|
|
134
|
+
"name": "",
|
|
135
|
+
"type": "address"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"stateMutability": "view",
|
|
139
|
+
"type": "function"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"inputs": [
|
|
143
|
+
{
|
|
144
|
+
"internalType": "address",
|
|
145
|
+
"name": "beneficiary",
|
|
146
|
+
"type": "address"
|
|
147
|
+
}
|
|
148
|
+
],
|
|
149
|
+
"name": "changeBeneficiary",
|
|
150
|
+
"outputs": [],
|
|
151
|
+
"stateMutability": "nonpayable",
|
|
152
|
+
"type": "function"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"inputs": [],
|
|
156
|
+
"name": "duration",
|
|
157
|
+
"outputs": [
|
|
158
|
+
{
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"stateMutability": "view",
|
|
165
|
+
"type": "function"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"inputs": [],
|
|
169
|
+
"name": "owner",
|
|
170
|
+
"outputs": [
|
|
171
|
+
{
|
|
172
|
+
"internalType": "address",
|
|
173
|
+
"name": "",
|
|
174
|
+
"type": "address"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"stateMutability": "view",
|
|
178
|
+
"type": "function"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"inputs": [
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "token",
|
|
185
|
+
"type": "address"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"name": "releasable",
|
|
189
|
+
"outputs": [
|
|
190
|
+
{
|
|
191
|
+
"internalType": "uint256",
|
|
192
|
+
"name": "",
|
|
193
|
+
"type": "uint256"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"stateMutability": "view",
|
|
197
|
+
"type": "function"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [],
|
|
201
|
+
"name": "releasable",
|
|
202
|
+
"outputs": [
|
|
203
|
+
{
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "",
|
|
206
|
+
"type": "uint256"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"stateMutability": "view",
|
|
210
|
+
"type": "function"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"inputs": [
|
|
214
|
+
{
|
|
215
|
+
"internalType": "address",
|
|
216
|
+
"name": "token",
|
|
217
|
+
"type": "address"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"name": "release",
|
|
221
|
+
"outputs": [],
|
|
222
|
+
"stateMutability": "nonpayable",
|
|
223
|
+
"type": "function"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"inputs": [],
|
|
227
|
+
"name": "release",
|
|
228
|
+
"outputs": [],
|
|
229
|
+
"stateMutability": "nonpayable",
|
|
230
|
+
"type": "function"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "released",
|
|
235
|
+
"outputs": [
|
|
236
|
+
{
|
|
237
|
+
"internalType": "uint256",
|
|
238
|
+
"name": "",
|
|
239
|
+
"type": "uint256"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"stateMutability": "view",
|
|
243
|
+
"type": "function"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"inputs": [
|
|
247
|
+
{
|
|
248
|
+
"internalType": "address",
|
|
249
|
+
"name": "token",
|
|
250
|
+
"type": "address"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"name": "released",
|
|
254
|
+
"outputs": [
|
|
255
|
+
{
|
|
256
|
+
"internalType": "uint256",
|
|
257
|
+
"name": "",
|
|
258
|
+
"type": "uint256"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"stateMutability": "view",
|
|
262
|
+
"type": "function"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"inputs": [],
|
|
266
|
+
"name": "renounceOwnership",
|
|
267
|
+
"outputs": [],
|
|
268
|
+
"stateMutability": "nonpayable",
|
|
269
|
+
"type": "function"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"inputs": [
|
|
273
|
+
{
|
|
274
|
+
"internalType": "address",
|
|
275
|
+
"name": "token",
|
|
276
|
+
"type": "address"
|
|
277
|
+
}
|
|
278
|
+
],
|
|
279
|
+
"name": "renounceVesting",
|
|
280
|
+
"outputs": [],
|
|
281
|
+
"stateMutability": "nonpayable",
|
|
282
|
+
"type": "function"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"inputs": [],
|
|
286
|
+
"name": "start",
|
|
287
|
+
"outputs": [
|
|
288
|
+
{
|
|
289
|
+
"internalType": "uint256",
|
|
290
|
+
"name": "",
|
|
291
|
+
"type": "uint256"
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"stateMutability": "view",
|
|
295
|
+
"type": "function"
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"inputs": [
|
|
299
|
+
{
|
|
300
|
+
"internalType": "address",
|
|
301
|
+
"name": "newOwner",
|
|
302
|
+
"type": "address"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"name": "transferOwnership",
|
|
306
|
+
"outputs": [],
|
|
307
|
+
"stateMutability": "nonpayable",
|
|
308
|
+
"type": "function"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"inputs": [
|
|
312
|
+
{
|
|
313
|
+
"internalType": "uint64",
|
|
314
|
+
"name": "timestamp",
|
|
315
|
+
"type": "uint64"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"name": "vestedAmount",
|
|
319
|
+
"outputs": [
|
|
320
|
+
{
|
|
321
|
+
"internalType": "uint256",
|
|
322
|
+
"name": "",
|
|
323
|
+
"type": "uint256"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
"stateMutability": "view",
|
|
327
|
+
"type": "function"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"inputs": [
|
|
331
|
+
{
|
|
332
|
+
"internalType": "address",
|
|
333
|
+
"name": "token",
|
|
334
|
+
"type": "address"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"internalType": "uint64",
|
|
338
|
+
"name": "timestamp",
|
|
339
|
+
"type": "uint64"
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
"name": "vestedAmount",
|
|
343
|
+
"outputs": [
|
|
344
|
+
{
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"stateMutability": "view",
|
|
351
|
+
"type": "function"
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
"stateMutability": "payable",
|
|
355
|
+
"type": "receive"
|
|
356
|
+
}
|
|
357
|
+
],
|
|
358
|
+
"bytecode": "0x60c06040526040516111803803806111808339810160408190526100229161013c565b61002b336100d0565b6001600160a01b0383166100985760405162461bcd60e51b815260206004820152602a60248201527f56657374696e6757616c6c65743a2062656e6566696369617279206973207a65604482015269726f206164647265737360b01b606482015260840160405180910390fd5b600380546001600160a01b0319166001600160a01b0394909416939093179092556001600160401b039081166080521660a05261018d565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80516001600160401b038116811461013757600080fd5b919050565b60008060006060848603121561015157600080fd5b83516001600160a01b038116811461016857600080fd5b925061017660208501610120565b915061018460408501610120565b90509250925092565b60805160a051610fc06101c06000396000818161016701528181610835015261088a015260006106dc0152610fc06000f3fe6080604052600436106100f75760003560e01c80638da5cb5b1161008a578063be9a655511610059578063be9a6555146102ba578063dc070657146102cf578063f2fde38b146102ef578063fbccedae1461030f57600080fd5b80638da5cb5b14610231578063961325211461024f5780639852595c14610264578063a3f8eace1461029a57600080fd5b806338af3eed116100c657806338af3eed146101b5578063715018a6146101e7578063810ec23b146101fc57806386d1a69f1461021c57600080fd5b80630a17b06b146101035780630b2adfa0146101365780630fb5a6b414610158578063191655871461019557600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004610d80565b610324565b6040519081526020015b60405180910390f35b34801561014257600080fd5b50610156610151366004610db2565b610348565b005b34801561016457600080fd5b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff16610123565b3480156101a157600080fd5b506101566101b0366004610db2565b61043b565b3480156101c157600080fd5b506003546001600160a01b03165b6040516001600160a01b03909116815260200161012d565b3480156101f357600080fd5b50610156610530565b34801561020857600080fd5b50610123610217366004610dcd565b610544565b34801561022857600080fd5b506101566105da565b34801561023d57600080fd5b506000546001600160a01b03166101cf565b34801561025b57600080fd5b50600154610123565b34801561027057600080fd5b5061012361027f366004610db2565b6001600160a01b031660009081526002602052604090205490565b3480156102a657600080fd5b506101236102b5366004610db2565b6106a4565b3480156102c657600080fd5b506101236106d1565b3480156102db57600080fd5b506101566102ea366004610db2565b6106ff565b3480156102fb57600080fd5b5061015661030a366004610db2565b610777565b34801561031b57600080fd5b506101236107ed565b600061034261033260015490565b61033c9047610e16565b83610810565b92915050565b6103506108ea565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bb9190610e2e565b90506103cf6000546001600160a01b031690565b6001600160a01b0316826001600160a01b03167f4f24c9e2f4102cdf43eccb2de7fe2e6080081d3c899cd16a6804aaaa4b412c788360405161041391815260200190565b60405180910390a3610437826104316000546001600160a01b031690565b83610944565b5050565b600061044f6003546001600160a01b031690565b6001600160a01b0316141561047f5760405162461bcd60e51b815260040161047690610e47565b60405180910390fd5b600061048a826106a4565b6001600160a01b0383166000908152600260205260408120805492935083929091906104b7908490610e16565b90915550506001600160a01b0382166104d86003546001600160a01b031690565b6001600160a01b03167f1998e30db89daf293a52c4fc4c4470cd506aafc3f9683e8e5daddad80cd6f4a48360405161051291815260200190565b60405180910390a3610437826104316003546001600160a01b031690565b6105386108ea565b610542600061099b565b565b6001600160a01b0382166000908152600260205260408120546105d3906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156105a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c99190610e2e565b61033c9190610e16565b9392505050565b60006105ee6003546001600160a01b031690565b6001600160a01b031614156106155760405162461bcd60e51b815260040161047690610e47565b600061061f6107ed565b905080600160008282546106339190610e16565b90915550506003546001600160a01b03166001600160a01b03167f7b9f77d35803cd201eac9c4ed739bc1fcd3f1be6ab8877d925d1e55517b6fd6e8260405161067e91815260200190565b60405180910390a26106a161069b6003546001600160a01b031690565b826109eb565b50565b6001600160a01b0381166000908152600260205260408120546106c78342610544565b6103429190610e91565b67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690565b6107076108ea565b6001600160a01b03811661072d5760405162461bcd60e51b815260040161047690610e47565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d90600090a250565b61077f6108ea565b6001600160a01b0381166107e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610476565b6106a18161099b565b60006107f860015490565b61080142610324565b61080b9190610e91565b905090565b600061081a6106d1565b8267ffffffffffffffff16101561083357506000610342565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166108666106d1565b6108709190610e16565b8267ffffffffffffffff161115610888575081610342565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166108bb6106d1565b6108cf9067ffffffffffffffff8516610e91565b6108d99085610ea8565b6108e39190610ec7565b9050610342565b6000546001600160a01b031633146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610476565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610996908490610b04565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80471015610a3b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610476565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a88576040519150601f19603f3d011682016040523d82523d6000602084013e610a8d565b606091505b50509050806109965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610476565b6000610b59826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bd69092919063ffffffff16565b8051909150156109965780806020019051810190610b779190610ee9565b6109965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610476565b6060610be58484600085610bed565b949350505050565b606082471015610c4e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610476565b600080866001600160a01b03168587604051610c6a9190610f3b565b60006040518083038185875af1925050503d8060008114610ca7576040519150601f19603f3d011682016040523d82523d6000602084013e610cac565b606091505b5091509150610cbd87838387610cc8565b979650505050505050565b60608315610d34578251610d2d576001600160a01b0385163b610d2d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610476565b5081610be5565b610be58383815115610d495781518083602001fd5b8060405162461bcd60e51b81526004016104769190610f57565b803567ffffffffffffffff81168114610d7b57600080fd5b919050565b600060208284031215610d9257600080fd5b6105d382610d63565b80356001600160a01b0381168114610d7b57600080fd5b600060208284031215610dc457600080fd5b6105d382610d9b565b60008060408385031215610de057600080fd5b610de983610d9b565b9150610df760208401610d63565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e2957610e29610e00565b500190565b600060208284031215610e4057600080fd5b5051919050565b6020808252602a908201527f56657374696e6757616c6c65743a2062656e6566696369617279206973207a65604082015269726f206164647265737360b01b606082015260800190565b600082821015610ea357610ea3610e00565b500390565b6000816000190483118215151615610ec257610ec2610e00565b500290565b600082610ee457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610efb57600080fd5b815180151581146105d357600080fd5b60005b83811015610f26578181015183820152602001610f0e565b83811115610f35576000848401525b50505050565b60008251610f4d818460208701610f0b565b9190910192915050565b6020815260008251806020840152610f76816040850160208701610f0b565b601f01601f1916919091016040019291505056fea2646970667358221220f7e564b49e53c8da2b7a4f4eca9e605bf61b0215965bcbef293da0e07872beb764736f6c634300080c0033",
|
|
359
|
+
"deployedBytecode": "0x6080604052600436106100f75760003560e01c80638da5cb5b1161008a578063be9a655511610059578063be9a6555146102ba578063dc070657146102cf578063f2fde38b146102ef578063fbccedae1461030f57600080fd5b80638da5cb5b14610231578063961325211461024f5780639852595c14610264578063a3f8eace1461029a57600080fd5b806338af3eed116100c657806338af3eed146101b5578063715018a6146101e7578063810ec23b146101fc57806386d1a69f1461021c57600080fd5b80630a17b06b146101035780630b2adfa0146101365780630fb5a6b414610158578063191655871461019557600080fd5b366100fe57005b600080fd5b34801561010f57600080fd5b5061012361011e366004610d80565b610324565b6040519081526020015b60405180910390f35b34801561014257600080fd5b50610156610151366004610db2565b610348565b005b34801561016457600080fd5b507f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff16610123565b3480156101a157600080fd5b506101566101b0366004610db2565b61043b565b3480156101c157600080fd5b506003546001600160a01b03165b6040516001600160a01b03909116815260200161012d565b3480156101f357600080fd5b50610156610530565b34801561020857600080fd5b50610123610217366004610dcd565b610544565b34801561022857600080fd5b506101566105da565b34801561023d57600080fd5b506000546001600160a01b03166101cf565b34801561025b57600080fd5b50600154610123565b34801561027057600080fd5b5061012361027f366004610db2565b6001600160a01b031660009081526002602052604090205490565b3480156102a657600080fd5b506101236102b5366004610db2565b6106a4565b3480156102c657600080fd5b506101236106d1565b3480156102db57600080fd5b506101566102ea366004610db2565b6106ff565b3480156102fb57600080fd5b5061015661030a366004610db2565b610777565b34801561031b57600080fd5b506101236107ed565b600061034261033260015490565b61033c9047610e16565b83610810565b92915050565b6103506108ea565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610397573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bb9190610e2e565b90506103cf6000546001600160a01b031690565b6001600160a01b0316826001600160a01b03167f4f24c9e2f4102cdf43eccb2de7fe2e6080081d3c899cd16a6804aaaa4b412c788360405161041391815260200190565b60405180910390a3610437826104316000546001600160a01b031690565b83610944565b5050565b600061044f6003546001600160a01b031690565b6001600160a01b0316141561047f5760405162461bcd60e51b815260040161047690610e47565b60405180910390fd5b600061048a826106a4565b6001600160a01b0383166000908152600260205260408120805492935083929091906104b7908490610e16565b90915550506001600160a01b0382166104d86003546001600160a01b031690565b6001600160a01b03167f1998e30db89daf293a52c4fc4c4470cd506aafc3f9683e8e5daddad80cd6f4a48360405161051291815260200190565b60405180910390a3610437826104316003546001600160a01b031690565b6105386108ea565b610542600061099b565b565b6001600160a01b0382166000908152600260205260408120546105d3906040516370a0823160e01b81523060048201526001600160a01b038616906370a0823190602401602060405180830381865afa1580156105a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c99190610e2e565b61033c9190610e16565b9392505050565b60006105ee6003546001600160a01b031690565b6001600160a01b031614156106155760405162461bcd60e51b815260040161047690610e47565b600061061f6107ed565b905080600160008282546106339190610e16565b90915550506003546001600160a01b03166001600160a01b03167f7b9f77d35803cd201eac9c4ed739bc1fcd3f1be6ab8877d925d1e55517b6fd6e8260405161067e91815260200190565b60405180910390a26106a161069b6003546001600160a01b031690565b826109eb565b50565b6001600160a01b0381166000908152600260205260408120546106c78342610544565b6103429190610e91565b67ffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690565b6107076108ea565b6001600160a01b03811661072d5760405162461bcd60e51b815260040161047690610e47565b600380546001600160a01b0319166001600160a01b0383169081179091556040517f373c72efabe4ef3e552ff77838be729f3bc3d8c586df0012902d1baa2377fa1d90600090a250565b61077f6108ea565b6001600160a01b0381166107e45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610476565b6106a18161099b565b60006107f860015490565b61080142610324565b61080b9190610e91565b905090565b600061081a6106d1565b8267ffffffffffffffff16101561083357506000610342565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166108666106d1565b6108709190610e16565b8267ffffffffffffffff161115610888575081610342565b7f000000000000000000000000000000000000000000000000000000000000000067ffffffffffffffff166108bb6106d1565b6108cf9067ffffffffffffffff8516610e91565b6108d99085610ea8565b6108e39190610ec7565b9050610342565b6000546001600160a01b031633146105425760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610476565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610996908490610b04565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80471015610a3b5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610476565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610a88576040519150601f19603f3d011682016040523d82523d6000602084013e610a8d565b606091505b50509050806109965760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610476565b6000610b59826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610bd69092919063ffffffff16565b8051909150156109965780806020019051810190610b779190610ee9565b6109965760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610476565b6060610be58484600085610bed565b949350505050565b606082471015610c4e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610476565b600080866001600160a01b03168587604051610c6a9190610f3b565b60006040518083038185875af1925050503d8060008114610ca7576040519150601f19603f3d011682016040523d82523d6000602084013e610cac565b606091505b5091509150610cbd87838387610cc8565b979650505050505050565b60608315610d34578251610d2d576001600160a01b0385163b610d2d5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610476565b5081610be5565b610be58383815115610d495781518083602001fd5b8060405162461bcd60e51b81526004016104769190610f57565b803567ffffffffffffffff81168114610d7b57600080fd5b919050565b600060208284031215610d9257600080fd5b6105d382610d63565b80356001600160a01b0381168114610d7b57600080fd5b600060208284031215610dc457600080fd5b6105d382610d9b565b60008060408385031215610de057600080fd5b610de983610d9b565b9150610df760208401610d63565b90509250929050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610e2957610e29610e00565b500190565b600060208284031215610e4057600080fd5b5051919050565b6020808252602a908201527f56657374696e6757616c6c65743a2062656e6566696369617279206973207a65604082015269726f206164647265737360b01b606082015260800190565b600082821015610ea357610ea3610e00565b500390565b6000816000190483118215151615610ec257610ec2610e00565b500290565b600082610ee457634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215610efb57600080fd5b815180151581146105d357600080fd5b60005b83811015610f26578181015183820152602001610f0e565b83811115610f35576000848401525b50505050565b60008251610f4d818460208701610f0b565b9190910192915050565b6020815260008251806020840152610f76816040850160208701610f0b565b601f01601f1916919091016040019291505056fea2646970667358221220f7e564b49e53c8da2b7a4f4eca9e605bf61b0215965bcbef293da0e07872beb764736f6c634300080c0033",
|
|
360
|
+
"linkReferences": {},
|
|
361
|
+
"deployedLinkReferences": {}
|
|
362
|
+
}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_format": "hh-sol-artifact-1",
|
|
3
|
+
"contractName": "veFeeDistributorOwner",
|
|
4
|
+
"sourceName": "contracts/ve/veFeeDistributorOwner.sol",
|
|
5
|
+
"abi": [
|
|
6
|
+
{
|
|
7
|
+
"inputs": [
|
|
8
|
+
{
|
|
9
|
+
"internalType": "address",
|
|
10
|
+
"name": "_veFeeDistributor",
|
|
11
|
+
"type": "address"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"stateMutability": "payable",
|
|
15
|
+
"type": "constructor"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"anonymous": false,
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"indexed": false,
|
|
22
|
+
"internalType": "address",
|
|
23
|
+
"name": "admin",
|
|
24
|
+
"type": "address"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"name": "ApplyAdmin",
|
|
28
|
+
"type": "event"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"anonymous": false,
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"indexed": false,
|
|
35
|
+
"internalType": "uint256",
|
|
36
|
+
"name": "time",
|
|
37
|
+
"type": "uint256"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"indexed": false,
|
|
41
|
+
"internalType": "uint256",
|
|
42
|
+
"name": "tokens",
|
|
43
|
+
"type": "uint256"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"name": "CheckpointToken",
|
|
47
|
+
"type": "event"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"anonymous": false,
|
|
51
|
+
"inputs": [
|
|
52
|
+
{
|
|
53
|
+
"indexed": false,
|
|
54
|
+
"internalType": "address",
|
|
55
|
+
"name": "admin",
|
|
56
|
+
"type": "address"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"name": "CommitAdmin",
|
|
60
|
+
"type": "event"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"anonymous": false,
|
|
64
|
+
"inputs": [
|
|
65
|
+
{
|
|
66
|
+
"indexed": true,
|
|
67
|
+
"internalType": "address",
|
|
68
|
+
"name": "previousOwner",
|
|
69
|
+
"type": "address"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"indexed": true,
|
|
73
|
+
"internalType": "address",
|
|
74
|
+
"name": "newOwner",
|
|
75
|
+
"type": "address"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"name": "OwnershipTransferred",
|
|
79
|
+
"type": "event"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"anonymous": false,
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"indexed": false,
|
|
86
|
+
"internalType": "bool",
|
|
87
|
+
"name": "toogle_flag",
|
|
88
|
+
"type": "bool"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"name": "ToggleAllowCheckpointToken",
|
|
92
|
+
"type": "event"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"inputs": [],
|
|
96
|
+
"name": "apply_admin",
|
|
97
|
+
"outputs": [],
|
|
98
|
+
"stateMutability": "nonpayable",
|
|
99
|
+
"type": "function"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"inputs": [],
|
|
103
|
+
"name": "checkpoint",
|
|
104
|
+
"outputs": [],
|
|
105
|
+
"stateMutability": "nonpayable",
|
|
106
|
+
"type": "function"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"inputs": [],
|
|
110
|
+
"name": "checkpoint_token",
|
|
111
|
+
"outputs": [],
|
|
112
|
+
"stateMutability": "nonpayable",
|
|
113
|
+
"type": "function"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"inputs": [],
|
|
117
|
+
"name": "checkpoint_total_supply",
|
|
118
|
+
"outputs": [],
|
|
119
|
+
"stateMutability": "nonpayable",
|
|
120
|
+
"type": "function"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"inputs": [
|
|
124
|
+
{
|
|
125
|
+
"internalType": "address",
|
|
126
|
+
"name": "admin",
|
|
127
|
+
"type": "address"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"name": "commit_admin",
|
|
131
|
+
"outputs": [],
|
|
132
|
+
"stateMutability": "nonpayable",
|
|
133
|
+
"type": "function"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"inputs": [],
|
|
137
|
+
"name": "kill_me",
|
|
138
|
+
"outputs": [],
|
|
139
|
+
"stateMutability": "nonpayable",
|
|
140
|
+
"type": "function"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"inputs": [],
|
|
144
|
+
"name": "owner",
|
|
145
|
+
"outputs": [
|
|
146
|
+
{
|
|
147
|
+
"internalType": "address",
|
|
148
|
+
"name": "",
|
|
149
|
+
"type": "address"
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"stateMutability": "view",
|
|
153
|
+
"type": "function"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"inputs": [
|
|
157
|
+
{
|
|
158
|
+
"internalType": "address",
|
|
159
|
+
"name": "token",
|
|
160
|
+
"type": "address"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
"name": "recover_balance",
|
|
164
|
+
"outputs": [],
|
|
165
|
+
"stateMutability": "nonpayable",
|
|
166
|
+
"type": "function"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"inputs": [],
|
|
170
|
+
"name": "renounceOwnership",
|
|
171
|
+
"outputs": [],
|
|
172
|
+
"stateMutability": "nonpayable",
|
|
173
|
+
"type": "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [],
|
|
177
|
+
"name": "toggle_allow_checkpoint_token",
|
|
178
|
+
"outputs": [],
|
|
179
|
+
"stateMutability": "nonpayable",
|
|
180
|
+
"type": "function"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"inputs": [
|
|
184
|
+
{
|
|
185
|
+
"internalType": "address",
|
|
186
|
+
"name": "newOwner",
|
|
187
|
+
"type": "address"
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
"name": "transferOwnership",
|
|
191
|
+
"outputs": [],
|
|
192
|
+
"stateMutability": "nonpayable",
|
|
193
|
+
"type": "function"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"inputs": [],
|
|
197
|
+
"name": "veFeeDistributorContract",
|
|
198
|
+
"outputs": [
|
|
199
|
+
{
|
|
200
|
+
"internalType": "address",
|
|
201
|
+
"name": "",
|
|
202
|
+
"type": "address"
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
"stateMutability": "view",
|
|
206
|
+
"type": "function"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"inputs": [],
|
|
210
|
+
"name": "veFeeDistributorToken",
|
|
211
|
+
"outputs": [
|
|
212
|
+
{
|
|
213
|
+
"internalType": "address",
|
|
214
|
+
"name": "",
|
|
215
|
+
"type": "address"
|
|
216
|
+
}
|
|
217
|
+
],
|
|
218
|
+
"stateMutability": "view",
|
|
219
|
+
"type": "function"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
"bytecode": "0x60c0604052604051610e64380380610e64833981016040819052610022916101be565b61002b3361016e565b6001600160a01b0381166100905760405162461bcd60e51b815260206004820152602160248201527f5f76654665654469737472696275746f72206973207a65726f206164647265736044820152607360f81b60648201526084015b60405180910390fd5b6001600160a01b03811660a081905260408051637e062a3560e11b8152905163fc0c546a916004808201926020929091908290030181865afa1580156100da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100fe91906101be565b6001600160a01b031660808190526101685760405162461bcd60e51b815260206004820152602760248201527f5f76654665654469737472696275746f7220746f6b656e206973207a65726f206044820152666164647265737360c81b6064820152608401610087565b506101ee565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156101d057600080fd5b81516001600160a01b03811681146101e757600080fd5b9392505050565b60805160a051610c0461026060003960008181610147015281816101c801528181610251015281816102d10152818161033201528181610395015281816103f001528181610463015281816104e301526105d601526000818161019c0152818161065e01526106d90152610c046000f3fe608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063c0e991a61161008c578063db2f5f7911610066578063db2f5f7914610169578063e36988531461017c578063f2fde38b14610184578063fda064dc1461019757600080fd5b8063c0e991a614610132578063c2c4c5c11461013a578063d6ff9a521461014257600080fd5b80632121bfc3146100d4578063715018a6146100de578063811a40fe146100e65780638da5cb5b146100ee578063b1d3db7514610117578063b21ed5021461012a575b600080fd5b6100dc6101be565b005b6100dc61023b565b6100dc61024f565b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100dc610125366004610ae8565b6102aa565b6100dc610330565b6100dc61038b565b6100dc6103ee565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6100dc610177366004610ae8565b6104bc565b6100dc6105cc565b6100dc610192366004610ae8565b61070d565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6101c6610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632121bfc36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b50505050565b610243610788565b61024d60006107e2565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663811a40fe6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b6102b2610788565b60405163b1d3db7560e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063b1d3db7590602401600060405180830381600087803b15801561031557600080fd5b505af1158015610329573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b21ed5026040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b610393610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c0e991a66040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663811a40fe6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561044957600080fd5b505af115801561045d573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b21ed5026040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b6104c4610788565b60405163db2f5f7960e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063db2f5f7990602401600060405180830381600087803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092506001600160a01b03841691506370a0823190602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa9190610b18565b90506105c8826105c26000546001600160a01b031690565b83610832565b5050565b6105d4610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e36988536040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a0823190602401602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190610b18565b905061070a7f00000000000000000000000000000000000000000000000000000000000000006105c26000546001600160a01b031690565b50565b610715610788565b6001600160a01b03811661077f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61070a816107e2565b6000546001600160a01b0316331461024d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610776565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610884908490610889565b505050565b60006108de826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661095b9092919063ffffffff16565b80519091501561088457808060200190518101906108fc9190610b31565b6108845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610776565b606061096a8484600085610972565b949350505050565b6060824710156109d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610776565b600080866001600160a01b031685876040516109ef9190610b7f565b60006040518083038185875af1925050503d8060008114610a2c576040519150601f19603f3d011682016040523d82523d6000602084013e610a31565b606091505b5091509150610a4287838387610a4d565b979650505050505050565b60608315610ab9578251610ab2576001600160a01b0385163b610ab25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610776565b508161096a565b61096a8383815115610ace5781518083602001fd5b8060405162461bcd60e51b81526004016107769190610b9b565b600060208284031215610afa57600080fd5b81356001600160a01b0381168114610b1157600080fd5b9392505050565b600060208284031215610b2a57600080fd5b5051919050565b600060208284031215610b4357600080fd5b81518015158114610b1157600080fd5b60005b83811015610b6e578181015183820152602001610b56565b838111156102355750506000910152565b60008251610b91818460208701610b53565b9190910192915050565b6020815260008251806020840152610bba816040850160208701610b53565b601f01601f1916919091016040019291505056fea264697066735822122093cdba66243473d2c461d2058fc3dc30640b5793e7edd56c13165ca7c34302ab64736f6c634300080c0033",
|
|
223
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100cf5760003560e01c8063c0e991a61161008c578063db2f5f7911610066578063db2f5f7914610169578063e36988531461017c578063f2fde38b14610184578063fda064dc1461019757600080fd5b8063c0e991a614610132578063c2c4c5c11461013a578063d6ff9a521461014257600080fd5b80632121bfc3146100d4578063715018a6146100de578063811a40fe146100e65780638da5cb5b146100ee578063b1d3db7514610117578063b21ed5021461012a575b600080fd5b6100dc6101be565b005b6100dc61023b565b6100dc61024f565b6000546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b6100dc610125366004610ae8565b6102aa565b6100dc610330565b6100dc61038b565b6100dc6103ee565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6100dc610177366004610ae8565b6104bc565b6100dc6105cc565b6100dc610192366004610ae8565b61070d565b6100fb7f000000000000000000000000000000000000000000000000000000000000000081565b6101c6610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316632121bfc36040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b505af1158015610235573d6000803e3d6000fd5b50505050565b610243610788565b61024d60006107e2565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663811a40fe6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b6102b2610788565b60405163b1d3db7560e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063b1d3db7590602401600060405180830381600087803b15801561031557600080fd5b505af1158015610329573d6000803e3d6000fd5b5050505050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b21ed5026040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b610393610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663c0e991a66040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663811a40fe6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561044957600080fd5b505af115801561045d573d6000803e3d6000fd5b505050507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663b21ed5026040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561022157600080fd5b6104c4610788565b60405163db2f5f7960e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063db2f5f7990602401600060405180830381600087803b15801561052757600080fd5b505af115801561053b573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092506001600160a01b03841691506370a0823190602401602060405180830381865afa158015610586573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105aa9190610b18565b90506105c8826105c26000546001600160a01b031690565b83610832565b5050565b6105d4610788565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663e36988536040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561062f57600080fd5b505af1158015610643573d6000803e3d6000fd5b50506040516370a0823160e01b8152306004820152600092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031691506370a0823190602401602060405180830381865afa1580156106ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d29190610b18565b905061070a7f00000000000000000000000000000000000000000000000000000000000000006105c26000546001600160a01b031690565b50565b610715610788565b6001600160a01b03811661077f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61070a816107e2565b6000546001600160a01b0316331461024d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610776565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610884908490610889565b505050565b60006108de826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661095b9092919063ffffffff16565b80519091501561088457808060200190518101906108fc9190610b31565b6108845760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610776565b606061096a8484600085610972565b949350505050565b6060824710156109d35760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610776565b600080866001600160a01b031685876040516109ef9190610b7f565b60006040518083038185875af1925050503d8060008114610a2c576040519150601f19603f3d011682016040523d82523d6000602084013e610a31565b606091505b5091509150610a4287838387610a4d565b979650505050505050565b60608315610ab9578251610ab2576001600160a01b0385163b610ab25760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610776565b508161096a565b61096a8383815115610ace5781518083602001fd5b8060405162461bcd60e51b81526004016107769190610b9b565b600060208284031215610afa57600080fd5b81356001600160a01b0381168114610b1157600080fd5b9392505050565b600060208284031215610b2a57600080fd5b5051919050565b600060208284031215610b4357600080fd5b81518015158114610b1157600080fd5b60005b83811015610b6e578181015183820152602001610b56565b838111156102355750506000910152565b60008251610b91818460208701610b53565b9190910192915050565b6020815260008251806020840152610bba816040850160208701610b53565b601f01601f1916919091016040019291505056fea264697066735822122093cdba66243473d2c461d2058fc3dc30640b5793e7edd56c13165ca7c34302ab64736f6c634300080c0033",
|
|
224
|
+
"linkReferences": {},
|
|
225
|
+
"deployedLinkReferences": {}
|
|
226
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ocean-contracts
|
|
3
|
-
Version:
|
|
3
|
+
Version: 2.0.0
|
|
4
4
|
Summary: 🐳 Ocean Protocol L1 - v4
|
|
5
5
|
Home-page: https://github.com/oceanprotocol/contracts
|
|
6
6
|
Author: leucothia
|
|
@@ -74,12 +74,11 @@ from artifacts import address
|
|
|
74
74
|
|
|
75
75
|
- Base IP is now represented by an [NFT](https://blog.oceanprotocol.com/what-is-a-data-nft-5804a2d88671), from which a datapublisher can create multiple ERC20s representing different type of access for the same dataset.
|
|
76
76
|
|
|
77
|
-
- An automated Datatoken [Staking](https://blog.oceanprotocol.com/ocean-v4-one-sided-staking-93988f65e378) helps with the initial DTs distribution and price stability. Goodbye rug pulls!
|
|
78
|
-
|
|
79
77
|
- Help [Ocean Community Monetize](https://blog.oceanprotocol.com/how-to-make-money-from-ocean-v4-477b3decad51): there's a swap fee for the Ocean Community, if Ocean or allied tokens are the basetoken in a pool, Ocean Community will receive 0.1% swap fee, otherwhise it will be 0.2%.
|
|
80
78
|
|
|
81
79
|
#### Flexibility
|
|
82
80
|
|
|
81
|
+
- Based on ERC721 and ERC20 [templates](contracts/templates/README.md) to provide different features
|
|
83
82
|
- Introduce an advanced [Fee Structure](https://docs.oceanprotocol.com/core-concepts/fees) both for Market and Provider runners.
|
|
84
83
|
|
|
85
84
|
- Roles Administration: there are now multiple roles for a more flexible administation both at NFT and ERC20 levels
|