avantis-trader-sdk 0.8.2__py3-none-any.whl → 0.8.3__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 (39) hide show
  1. avantis_trader_sdk/__init__.py +5 -5
  2. avantis_trader_sdk/abis/AggregatorV3Interface.json +606 -606
  3. avantis_trader_sdk/abis/IPyth.sol/IPyth.dbg.json +4 -4
  4. avantis_trader_sdk/abis/Referral.sol/ReferralStorage.json +7132 -7132
  5. avantis_trader_sdk/abis/Sanctions.json +190 -190
  6. avantis_trader_sdk/abis/USDC.sol/USDC.dbg.json +4 -4
  7. avantis_trader_sdk/abis/interfaces/ICallbacks.sol/ICallbacks.json +2637 -2637
  8. avantis_trader_sdk/abis/interfaces/IExecute.sol/IExecute.json +1628 -1628
  9. avantis_trader_sdk/abis/interfaces/IPairInfos.sol/IPairInfos.json +2781 -2781
  10. avantis_trader_sdk/abis/interfaces/IPairStorage.sol/IPairStorage.json +3729 -3729
  11. avantis_trader_sdk/abis/interfaces/IPriceAggregator.sol/IPriceAggregator.json +2330 -2330
  12. avantis_trader_sdk/abis/interfaces/IReferral.sol/IReferral.json +1890 -1890
  13. avantis_trader_sdk/abis/interfaces/ITradingStorage.sol/ITradingStorage.json +7022 -7022
  14. avantis_trader_sdk/abis/interfaces/ITranche.sol/ITranche.json +1283 -1283
  15. avantis_trader_sdk/abis/interfaces/IVaultManager.sol/IVaultManager.json +2424 -2424
  16. avantis_trader_sdk/abis/interfaces/IVeTranche.sol/IVeTranche.json +855 -855
  17. avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.dbg.json +4 -4
  18. avantis_trader_sdk/abis/library/PositionMath.sol/PositionMath.json +10 -10
  19. avantis_trader_sdk/abis/testnet/USDC.sol/USDC.dbg.json +4 -4
  20. avantis_trader_sdk/abis/testnet/USDC.sol/USDC.json +320 -320
  21. avantis_trader_sdk/client.py +369 -367
  22. avantis_trader_sdk/config.py +14 -14
  23. avantis_trader_sdk/feed/feed_client.py +263 -261
  24. avantis_trader_sdk/rpc/asset_parameters.py +499 -499
  25. avantis_trader_sdk/rpc/blended.py +71 -71
  26. avantis_trader_sdk/rpc/category_parameters.py +216 -216
  27. avantis_trader_sdk/rpc/fee_parameters.py +237 -237
  28. avantis_trader_sdk/rpc/pairs_cache.py +130 -130
  29. avantis_trader_sdk/rpc/rpc_helpers.py +8 -8
  30. avantis_trader_sdk/rpc/snapshot.py +142 -142
  31. avantis_trader_sdk/rpc/trade.py +701 -710
  32. avantis_trader_sdk/rpc/trading_parameters.py +139 -139
  33. avantis_trader_sdk/types.py +462 -462
  34. avantis_trader_sdk/utils.py +78 -78
  35. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/METADATA +124 -113
  36. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/RECORD +38 -39
  37. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/WHEEL +1 -1
  38. avantis_trader_sdk/feed/feedIds.json +0 -214
  39. {avantis_trader_sdk-0.8.2.dist-info → avantis_trader_sdk-0.8.3.dist-info}/top_level.txt +0 -0
@@ -1,855 +1,855 @@
1
- {
2
- "abi": [
3
- {
4
- "type": "function",
5
- "name": "distributeRewards",
6
- "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
7
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
8
- "stateMutability": "nonpayable"
9
- },
10
- {
11
- "type": "function",
12
- "name": "getLockPoints",
13
- "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
14
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
15
- "stateMutability": "nonpayable"
16
- },
17
- {
18
- "type": "function",
19
- "name": "getTotalLockPoints",
20
- "inputs": [],
21
- "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
22
- "stateMutability": "nonpayable"
23
- },
24
- {
25
- "type": "event",
26
- "name": "Locked",
27
- "inputs": [
28
- { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
29
- { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
30
- { "name": "shares", "type": "uint256", "indexed": false, "internalType": "uint256" },
31
- { "name": "lockTime", "type": "uint256", "indexed": false, "internalType": "uint256" },
32
- { "name": "lockMultiplier", "type": "uint256", "indexed": false, "internalType": "uint256" }
33
- ],
34
- "anonymous": false
35
- },
36
- {
37
- "type": "event",
38
- "name": "NumberUpdated",
39
- "inputs": [
40
- { "name": "name", "type": "string", "indexed": false, "internalType": "string" },
41
- { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
42
- ],
43
- "anonymous": false
44
- },
45
- {
46
- "type": "event",
47
- "name": "RewardClaimed",
48
- "inputs": [
49
- { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
50
- { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
51
- { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
52
- ],
53
- "anonymous": false
54
- },
55
- {
56
- "type": "event",
57
- "name": "RewardsDistributed",
58
- "inputs": [
59
- { "name": "totalRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
60
- { "name": "totalLockPoints", "type": "uint256", "indexed": false, "internalType": "uint256" }
61
- ],
62
- "anonymous": false
63
- },
64
- {
65
- "type": "event",
66
- "name": "Unlocked",
67
- "inputs": [
68
- { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
69
- { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
70
- { "name": "shares", "type": "uint256", "indexed": false, "internalType": "uint256" },
71
- { "name": "fee", "type": "uint256", "indexed": false, "internalType": "uint256" }
72
- ],
73
- "anonymous": false
74
- }
75
- ],
76
- "bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
77
- "deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
78
- "methodIdentifiers": {
79
- "distributeRewards(uint256)": "59974e38",
80
- "getLockPoints(uint256)": "cce5fe66",
81
- "getTotalLockPoints()": "a4ba87e3"
82
- },
83
- "rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockMultiplier\",\"type\":\"uint256\"}],\"name\":\"Locked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalLockPoints\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"Unlocked\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"distributeRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getLockPoints\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalLockPoints\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IVeTranche.sol\":\"IVeTranche\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"src/interfaces/IVeTranche.sol\":{\"keccak256\":\"0xaf8310961e8ee8c3fdaf0ee4220dcd0479d191c82f7f28f273c778ccbfd6c7bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a087bb6c6ea77db112f3c5966d10aad370c2adfe2ceb235af109bc0a9da2079e\",\"dweb:/ipfs/QmdS2YKYC37iWCeijxqEUikq9RJmtzRwQMjaiNweVvbMNZ\"]}},\"version\":1}",
84
- "metadata": {
85
- "compiler": { "version": "0.8.7+commit.e28d00a7" },
86
- "language": "Solidity",
87
- "output": {
88
- "abi": [
89
- {
90
- "inputs": [
91
- { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
92
- { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
93
- { "internalType": "uint256", "name": "shares", "type": "uint256", "indexed": false },
94
- { "internalType": "uint256", "name": "lockTime", "type": "uint256", "indexed": false },
95
- { "internalType": "uint256", "name": "lockMultiplier", "type": "uint256", "indexed": false }
96
- ],
97
- "type": "event",
98
- "name": "Locked",
99
- "anonymous": false
100
- },
101
- {
102
- "inputs": [
103
- { "internalType": "string", "name": "name", "type": "string", "indexed": false },
104
- { "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
105
- ],
106
- "type": "event",
107
- "name": "NumberUpdated",
108
- "anonymous": false
109
- },
110
- {
111
- "inputs": [
112
- { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
113
- { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
114
- { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
115
- ],
116
- "type": "event",
117
- "name": "RewardClaimed",
118
- "anonymous": false
119
- },
120
- {
121
- "inputs": [
122
- { "internalType": "uint256", "name": "totalRewards", "type": "uint256", "indexed": false },
123
- { "internalType": "uint256", "name": "totalLockPoints", "type": "uint256", "indexed": false }
124
- ],
125
- "type": "event",
126
- "name": "RewardsDistributed",
127
- "anonymous": false
128
- },
129
- {
130
- "inputs": [
131
- { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
132
- { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
133
- { "internalType": "uint256", "name": "shares", "type": "uint256", "indexed": false },
134
- { "internalType": "uint256", "name": "fee", "type": "uint256", "indexed": false }
135
- ],
136
- "type": "event",
137
- "name": "Unlocked",
138
- "anonymous": false
139
- },
140
- {
141
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
142
- "stateMutability": "nonpayable",
143
- "type": "function",
144
- "name": "distributeRewards",
145
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
146
- },
147
- {
148
- "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
149
- "stateMutability": "nonpayable",
150
- "type": "function",
151
- "name": "getLockPoints",
152
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
153
- },
154
- {
155
- "inputs": [],
156
- "stateMutability": "nonpayable",
157
- "type": "function",
158
- "name": "getTotalLockPoints",
159
- "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
160
- }
161
- ],
162
- "devdoc": { "kind": "dev", "methods": {}, "version": 1 },
163
- "userdoc": { "kind": "user", "methods": {}, "version": 1 }
164
- },
165
- "settings": {
166
- "remappings": [
167
- "@chainlink/=lib/chainlink/",
168
- "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
169
- "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
170
- "chainlink/=lib/chainlink/",
171
- "ds-test/=lib/forge-std/lib/ds-test/src/",
172
- "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
173
- "forge-std/=lib/forge-std/src/",
174
- "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
175
- "openzeppelin-contracts/=lib/openzeppelin-contracts/",
176
- "openzeppelin/=lib/openzeppelin-contracts/contracts/",
177
- "pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
178
- ],
179
- "optimizer": { "enabled": true, "runs": 200 },
180
- "metadata": { "bytecodeHash": "ipfs" },
181
- "compilationTarget": { "src/interfaces/IVeTranche.sol": "IVeTranche" },
182
- "libraries": {}
183
- },
184
- "sources": {
185
- "src/interfaces/IVeTranche.sol": {
186
- "keccak256": "0xaf8310961e8ee8c3fdaf0ee4220dcd0479d191c82f7f28f273c778ccbfd6c7bc",
187
- "urls": [
188
- "bzz-raw://a087bb6c6ea77db112f3c5966d10aad370c2adfe2ceb235af109bc0a9da2079e",
189
- "dweb:/ipfs/QmdS2YKYC37iWCeijxqEUikq9RJmtzRwQMjaiNweVvbMNZ"
190
- ],
191
- "license": "MIT"
192
- }
193
- },
194
- "version": 1
195
- },
196
- "ast": {
197
- "absolutePath": "src/interfaces/IVeTranche.sol",
198
- "id": 74837,
199
- "exportedSymbols": { "IVeTranche": [74836] },
200
- "nodeType": "SourceUnit",
201
- "src": "32:754:97",
202
- "nodes": [
203
- {
204
- "id": 74774,
205
- "nodeType": "PragmaDirective",
206
- "src": "32:22:97",
207
- "nodes": [],
208
- "literals": ["solidity", "0.8", ".7"]
209
- },
210
- {
211
- "id": 74836,
212
- "nodeType": "ContractDefinition",
213
- "src": "56:729:97",
214
- "nodes": [
215
- {
216
- "id": 74786,
217
- "nodeType": "EventDefinition",
218
- "src": "104:165:97",
219
- "nodes": [],
220
- "anonymous": false,
221
- "name": "Locked",
222
- "nameLocation": "110:6:97",
223
- "parameters": {
224
- "id": 74785,
225
- "nodeType": "ParameterList",
226
- "parameters": [
227
- {
228
- "constant": false,
229
- "id": 74776,
230
- "indexed": true,
231
- "mutability": "mutable",
232
- "name": "tokenId",
233
- "nameLocation": "142:7:97",
234
- "nodeType": "VariableDeclaration",
235
- "scope": 74786,
236
- "src": "126:23:97",
237
- "stateVariable": false,
238
- "storageLocation": "default",
239
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
240
- "typeName": {
241
- "id": 74775,
242
- "name": "uint256",
243
- "nodeType": "ElementaryTypeName",
244
- "src": "126:7:97",
245
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
246
- },
247
- "visibility": "internal"
248
- },
249
- {
250
- "constant": false,
251
- "id": 74778,
252
- "indexed": true,
253
- "mutability": "mutable",
254
- "name": "owner",
255
- "nameLocation": "175:5:97",
256
- "nodeType": "VariableDeclaration",
257
- "scope": 74786,
258
- "src": "159:21:97",
259
- "stateVariable": false,
260
- "storageLocation": "default",
261
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
262
- "typeName": {
263
- "id": 74777,
264
- "name": "address",
265
- "nodeType": "ElementaryTypeName",
266
- "src": "159:7:97",
267
- "stateMutability": "nonpayable",
268
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
269
- },
270
- "visibility": "internal"
271
- },
272
- {
273
- "constant": false,
274
- "id": 74780,
275
- "indexed": false,
276
- "mutability": "mutable",
277
- "name": "shares",
278
- "nameLocation": "198:6:97",
279
- "nodeType": "VariableDeclaration",
280
- "scope": 74786,
281
- "src": "190:14:97",
282
- "stateVariable": false,
283
- "storageLocation": "default",
284
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
285
- "typeName": {
286
- "id": 74779,
287
- "name": "uint256",
288
- "nodeType": "ElementaryTypeName",
289
- "src": "190:7:97",
290
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
291
- },
292
- "visibility": "internal"
293
- },
294
- {
295
- "constant": false,
296
- "id": 74782,
297
- "indexed": false,
298
- "mutability": "mutable",
299
- "name": "lockTime",
300
- "nameLocation": "222:8:97",
301
- "nodeType": "VariableDeclaration",
302
- "scope": 74786,
303
- "src": "214:16:97",
304
- "stateVariable": false,
305
- "storageLocation": "default",
306
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
307
- "typeName": {
308
- "id": 74781,
309
- "name": "uint256",
310
- "nodeType": "ElementaryTypeName",
311
- "src": "214:7:97",
312
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
313
- },
314
- "visibility": "internal"
315
- },
316
- {
317
- "constant": false,
318
- "id": 74784,
319
- "indexed": false,
320
- "mutability": "mutable",
321
- "name": "lockMultiplier",
322
- "nameLocation": "248:14:97",
323
- "nodeType": "VariableDeclaration",
324
- "scope": 74786,
325
- "src": "240:22:97",
326
- "stateVariable": false,
327
- "storageLocation": "default",
328
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
329
- "typeName": {
330
- "id": 74783,
331
- "name": "uint256",
332
- "nodeType": "ElementaryTypeName",
333
- "src": "240:7:97",
334
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
335
- },
336
- "visibility": "internal"
337
- }
338
- ],
339
- "src": "116:152:97"
340
- }
341
- },
342
- {
343
- "id": 74796,
344
- "nodeType": "EventDefinition",
345
- "src": "274:92:97",
346
- "nodes": [],
347
- "anonymous": false,
348
- "name": "Unlocked",
349
- "nameLocation": "280:8:97",
350
- "parameters": {
351
- "id": 74795,
352
- "nodeType": "ParameterList",
353
- "parameters": [
354
- {
355
- "constant": false,
356
- "id": 74788,
357
- "indexed": true,
358
- "mutability": "mutable",
359
- "name": "tokenId",
360
- "nameLocation": "305:7:97",
361
- "nodeType": "VariableDeclaration",
362
- "scope": 74796,
363
- "src": "289:23:97",
364
- "stateVariable": false,
365
- "storageLocation": "default",
366
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
367
- "typeName": {
368
- "id": 74787,
369
- "name": "uint256",
370
- "nodeType": "ElementaryTypeName",
371
- "src": "289:7:97",
372
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
373
- },
374
- "visibility": "internal"
375
- },
376
- {
377
- "constant": false,
378
- "id": 74790,
379
- "indexed": true,
380
- "mutability": "mutable",
381
- "name": "owner",
382
- "nameLocation": "330:5:97",
383
- "nodeType": "VariableDeclaration",
384
- "scope": 74796,
385
- "src": "314:21:97",
386
- "stateVariable": false,
387
- "storageLocation": "default",
388
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
389
- "typeName": {
390
- "id": 74789,
391
- "name": "address",
392
- "nodeType": "ElementaryTypeName",
393
- "src": "314:7:97",
394
- "stateMutability": "nonpayable",
395
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
396
- },
397
- "visibility": "internal"
398
- },
399
- {
400
- "constant": false,
401
- "id": 74792,
402
- "indexed": false,
403
- "mutability": "mutable",
404
- "name": "shares",
405
- "nameLocation": "345:6:97",
406
- "nodeType": "VariableDeclaration",
407
- "scope": 74796,
408
- "src": "337:14:97",
409
- "stateVariable": false,
410
- "storageLocation": "default",
411
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
412
- "typeName": {
413
- "id": 74791,
414
- "name": "uint256",
415
- "nodeType": "ElementaryTypeName",
416
- "src": "337:7:97",
417
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
418
- },
419
- "visibility": "internal"
420
- },
421
- {
422
- "constant": false,
423
- "id": 74794,
424
- "indexed": false,
425
- "mutability": "mutable",
426
- "name": "fee",
427
- "nameLocation": "361:3:97",
428
- "nodeType": "VariableDeclaration",
429
- "scope": 74796,
430
- "src": "353:11:97",
431
- "stateVariable": false,
432
- "storageLocation": "default",
433
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
434
- "typeName": {
435
- "id": 74793,
436
- "name": "uint256",
437
- "nodeType": "ElementaryTypeName",
438
- "src": "353:7:97",
439
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
440
- },
441
- "visibility": "internal"
442
- }
443
- ],
444
- "src": "288:77:97"
445
- }
446
- },
447
- {
448
- "id": 74802,
449
- "nodeType": "EventDefinition",
450
- "src": "371:72:97",
451
- "nodes": [],
452
- "anonymous": false,
453
- "name": "RewardsDistributed",
454
- "nameLocation": "377:18:97",
455
- "parameters": {
456
- "id": 74801,
457
- "nodeType": "ParameterList",
458
- "parameters": [
459
- {
460
- "constant": false,
461
- "id": 74798,
462
- "indexed": false,
463
- "mutability": "mutable",
464
- "name": "totalRewards",
465
- "nameLocation": "404:12:97",
466
- "nodeType": "VariableDeclaration",
467
- "scope": 74802,
468
- "src": "396:20:97",
469
- "stateVariable": false,
470
- "storageLocation": "default",
471
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
472
- "typeName": {
473
- "id": 74797,
474
- "name": "uint256",
475
- "nodeType": "ElementaryTypeName",
476
- "src": "396:7:97",
477
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
478
- },
479
- "visibility": "internal"
480
- },
481
- {
482
- "constant": false,
483
- "id": 74800,
484
- "indexed": false,
485
- "mutability": "mutable",
486
- "name": "totalLockPoints",
487
- "nameLocation": "426:15:97",
488
- "nodeType": "VariableDeclaration",
489
- "scope": 74802,
490
- "src": "418:23:97",
491
- "stateVariable": false,
492
- "storageLocation": "default",
493
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
494
- "typeName": {
495
- "id": 74799,
496
- "name": "uint256",
497
- "nodeType": "ElementaryTypeName",
498
- "src": "418:7:97",
499
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
500
- },
501
- "visibility": "internal"
502
- }
503
- ],
504
- "src": "395:47:97"
505
- }
506
- },
507
- {
508
- "id": 74810,
509
- "nodeType": "EventDefinition",
510
- "src": "448:84:97",
511
- "nodes": [],
512
- "anonymous": false,
513
- "name": "RewardClaimed",
514
- "nameLocation": "454:13:97",
515
- "parameters": {
516
- "id": 74809,
517
- "nodeType": "ParameterList",
518
- "parameters": [
519
- {
520
- "constant": false,
521
- "id": 74804,
522
- "indexed": true,
523
- "mutability": "mutable",
524
- "name": "tokenId",
525
- "nameLocation": "484:7:97",
526
- "nodeType": "VariableDeclaration",
527
- "scope": 74810,
528
- "src": "468:23:97",
529
- "stateVariable": false,
530
- "storageLocation": "default",
531
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
532
- "typeName": {
533
- "id": 74803,
534
- "name": "uint256",
535
- "nodeType": "ElementaryTypeName",
536
- "src": "468:7:97",
537
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
538
- },
539
- "visibility": "internal"
540
- },
541
- {
542
- "constant": false,
543
- "id": 74806,
544
- "indexed": true,
545
- "mutability": "mutable",
546
- "name": "owner",
547
- "nameLocation": "509:5:97",
548
- "nodeType": "VariableDeclaration",
549
- "scope": 74810,
550
- "src": "493:21:97",
551
- "stateVariable": false,
552
- "storageLocation": "default",
553
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
554
- "typeName": {
555
- "id": 74805,
556
- "name": "address",
557
- "nodeType": "ElementaryTypeName",
558
- "src": "493:7:97",
559
- "stateMutability": "nonpayable",
560
- "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
561
- },
562
- "visibility": "internal"
563
- },
564
- {
565
- "constant": false,
566
- "id": 74808,
567
- "indexed": false,
568
- "mutability": "mutable",
569
- "name": "amount",
570
- "nameLocation": "524:6:97",
571
- "nodeType": "VariableDeclaration",
572
- "scope": 74810,
573
- "src": "516:14:97",
574
- "stateVariable": false,
575
- "storageLocation": "default",
576
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
577
- "typeName": {
578
- "id": 74807,
579
- "name": "uint256",
580
- "nodeType": "ElementaryTypeName",
581
- "src": "516:7:97",
582
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
583
- },
584
- "visibility": "internal"
585
- }
586
- ],
587
- "src": "467:64:97"
588
- }
589
- },
590
- {
591
- "id": 74816,
592
- "nodeType": "EventDefinition",
593
- "src": "537:45:97",
594
- "nodes": [],
595
- "anonymous": false,
596
- "name": "NumberUpdated",
597
- "nameLocation": "543:13:97",
598
- "parameters": {
599
- "id": 74815,
600
- "nodeType": "ParameterList",
601
- "parameters": [
602
- {
603
- "constant": false,
604
- "id": 74812,
605
- "indexed": false,
606
- "mutability": "mutable",
607
- "name": "name",
608
- "nameLocation": "564:4:97",
609
- "nodeType": "VariableDeclaration",
610
- "scope": 74816,
611
- "src": "557:11:97",
612
- "stateVariable": false,
613
- "storageLocation": "default",
614
- "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
615
- "typeName": {
616
- "id": 74811,
617
- "name": "string",
618
- "nodeType": "ElementaryTypeName",
619
- "src": "557:6:97",
620
- "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
621
- },
622
- "visibility": "internal"
623
- },
624
- {
625
- "constant": false,
626
- "id": 74814,
627
- "indexed": false,
628
- "mutability": "mutable",
629
- "name": "value",
630
- "nameLocation": "575:5:97",
631
- "nodeType": "VariableDeclaration",
632
- "scope": 74816,
633
- "src": "570:10:97",
634
- "stateVariable": false,
635
- "storageLocation": "default",
636
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
637
- "typeName": {
638
- "id": 74813,
639
- "name": "uint",
640
- "nodeType": "ElementaryTypeName",
641
- "src": "570:4:97",
642
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
643
- },
644
- "visibility": "internal"
645
- }
646
- ],
647
- "src": "556:25:97"
648
- }
649
- },
650
- {
651
- "id": 74823,
652
- "nodeType": "FunctionDefinition",
653
- "src": "592:63:97",
654
- "nodes": [],
655
- "functionSelector": "59974e38",
656
- "implemented": false,
657
- "kind": "function",
658
- "modifiers": [],
659
- "name": "distributeRewards",
660
- "nameLocation": "601:17:97",
661
- "parameters": {
662
- "id": 74819,
663
- "nodeType": "ParameterList",
664
- "parameters": [
665
- {
666
- "constant": false,
667
- "id": 74818,
668
- "mutability": "mutable",
669
- "name": "",
670
- "nameLocation": "-1:-1:-1",
671
- "nodeType": "VariableDeclaration",
672
- "scope": 74823,
673
- "src": "619:7:97",
674
- "stateVariable": false,
675
- "storageLocation": "default",
676
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
677
- "typeName": {
678
- "id": 74817,
679
- "name": "uint256",
680
- "nodeType": "ElementaryTypeName",
681
- "src": "619:7:97",
682
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
683
- },
684
- "visibility": "internal"
685
- }
686
- ],
687
- "src": "618:9:97"
688
- },
689
- "returnParameters": {
690
- "id": 74822,
691
- "nodeType": "ParameterList",
692
- "parameters": [
693
- {
694
- "constant": false,
695
- "id": 74821,
696
- "mutability": "mutable",
697
- "name": "",
698
- "nameLocation": "-1:-1:-1",
699
- "nodeType": "VariableDeclaration",
700
- "scope": 74823,
701
- "src": "646:7:97",
702
- "stateVariable": false,
703
- "storageLocation": "default",
704
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
705
- "typeName": {
706
- "id": 74820,
707
- "name": "uint256",
708
- "nodeType": "ElementaryTypeName",
709
- "src": "646:7:97",
710
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
711
- },
712
- "visibility": "internal"
713
- }
714
- ],
715
- "src": "645:9:97"
716
- },
717
- "scope": 74836,
718
- "stateMutability": "nonpayable",
719
- "virtual": false,
720
- "visibility": "external"
721
- },
722
- {
723
- "id": 74828,
724
- "nodeType": "FunctionDefinition",
725
- "src": "661:57:97",
726
- "nodes": [],
727
- "functionSelector": "a4ba87e3",
728
- "implemented": false,
729
- "kind": "function",
730
- "modifiers": [],
731
- "name": "getTotalLockPoints",
732
- "nameLocation": "670:18:97",
733
- "parameters": { "id": 74824, "nodeType": "ParameterList", "parameters": [], "src": "688:2:97" },
734
- "returnParameters": {
735
- "id": 74827,
736
- "nodeType": "ParameterList",
737
- "parameters": [
738
- {
739
- "constant": false,
740
- "id": 74826,
741
- "mutability": "mutable",
742
- "name": "",
743
- "nameLocation": "-1:-1:-1",
744
- "nodeType": "VariableDeclaration",
745
- "scope": 74828,
746
- "src": "709:7:97",
747
- "stateVariable": false,
748
- "storageLocation": "default",
749
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
750
- "typeName": {
751
- "id": 74825,
752
- "name": "uint256",
753
- "nodeType": "ElementaryTypeName",
754
- "src": "709:7:97",
755
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
756
- },
757
- "visibility": "internal"
758
- }
759
- ],
760
- "src": "708:9:97"
761
- },
762
- "scope": 74836,
763
- "stateMutability": "nonpayable",
764
- "virtual": false,
765
- "visibility": "external"
766
- },
767
- {
768
- "id": 74835,
769
- "nodeType": "FunctionDefinition",
770
- "src": "724:59:97",
771
- "nodes": [],
772
- "functionSelector": "cce5fe66",
773
- "implemented": false,
774
- "kind": "function",
775
- "modifiers": [],
776
- "name": "getLockPoints",
777
- "nameLocation": "733:13:97",
778
- "parameters": {
779
- "id": 74831,
780
- "nodeType": "ParameterList",
781
- "parameters": [
782
- {
783
- "constant": false,
784
- "id": 74830,
785
- "mutability": "mutable",
786
- "name": "",
787
- "nameLocation": "-1:-1:-1",
788
- "nodeType": "VariableDeclaration",
789
- "scope": 74835,
790
- "src": "747:7:97",
791
- "stateVariable": false,
792
- "storageLocation": "default",
793
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
794
- "typeName": {
795
- "id": 74829,
796
- "name": "uint256",
797
- "nodeType": "ElementaryTypeName",
798
- "src": "747:7:97",
799
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
800
- },
801
- "visibility": "internal"
802
- }
803
- ],
804
- "src": "746:9:97"
805
- },
806
- "returnParameters": {
807
- "id": 74834,
808
- "nodeType": "ParameterList",
809
- "parameters": [
810
- {
811
- "constant": false,
812
- "id": 74833,
813
- "mutability": "mutable",
814
- "name": "",
815
- "nameLocation": "-1:-1:-1",
816
- "nodeType": "VariableDeclaration",
817
- "scope": 74835,
818
- "src": "774:7:97",
819
- "stateVariable": false,
820
- "storageLocation": "default",
821
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
822
- "typeName": {
823
- "id": 74832,
824
- "name": "uint256",
825
- "nodeType": "ElementaryTypeName",
826
- "src": "774:7:97",
827
- "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
828
- },
829
- "visibility": "internal"
830
- }
831
- ],
832
- "src": "773:9:97"
833
- },
834
- "scope": 74836,
835
- "stateMutability": "nonpayable",
836
- "virtual": false,
837
- "visibility": "external"
838
- }
839
- ],
840
- "abstract": false,
841
- "baseContracts": [],
842
- "contractDependencies": [],
843
- "contractKind": "interface",
844
- "fullyImplemented": false,
845
- "linearizedBaseContracts": [74836],
846
- "name": "IVeTranche",
847
- "nameLocation": "66:10:97",
848
- "scope": 74837,
849
- "usedErrors": []
850
- }
851
- ],
852
- "license": "MIT"
853
- },
854
- "id": 97
855
- }
1
+ {
2
+ "abi": [
3
+ {
4
+ "type": "function",
5
+ "name": "distributeRewards",
6
+ "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
7
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
8
+ "stateMutability": "nonpayable"
9
+ },
10
+ {
11
+ "type": "function",
12
+ "name": "getLockPoints",
13
+ "inputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
14
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
15
+ "stateMutability": "nonpayable"
16
+ },
17
+ {
18
+ "type": "function",
19
+ "name": "getTotalLockPoints",
20
+ "inputs": [],
21
+ "outputs": [{ "name": "", "type": "uint256", "internalType": "uint256" }],
22
+ "stateMutability": "nonpayable"
23
+ },
24
+ {
25
+ "type": "event",
26
+ "name": "Locked",
27
+ "inputs": [
28
+ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
29
+ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
30
+ { "name": "shares", "type": "uint256", "indexed": false, "internalType": "uint256" },
31
+ { "name": "lockTime", "type": "uint256", "indexed": false, "internalType": "uint256" },
32
+ { "name": "lockMultiplier", "type": "uint256", "indexed": false, "internalType": "uint256" }
33
+ ],
34
+ "anonymous": false
35
+ },
36
+ {
37
+ "type": "event",
38
+ "name": "NumberUpdated",
39
+ "inputs": [
40
+ { "name": "name", "type": "string", "indexed": false, "internalType": "string" },
41
+ { "name": "value", "type": "uint256", "indexed": false, "internalType": "uint256" }
42
+ ],
43
+ "anonymous": false
44
+ },
45
+ {
46
+ "type": "event",
47
+ "name": "RewardClaimed",
48
+ "inputs": [
49
+ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
50
+ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
51
+ { "name": "amount", "type": "uint256", "indexed": false, "internalType": "uint256" }
52
+ ],
53
+ "anonymous": false
54
+ },
55
+ {
56
+ "type": "event",
57
+ "name": "RewardsDistributed",
58
+ "inputs": [
59
+ { "name": "totalRewards", "type": "uint256", "indexed": false, "internalType": "uint256" },
60
+ { "name": "totalLockPoints", "type": "uint256", "indexed": false, "internalType": "uint256" }
61
+ ],
62
+ "anonymous": false
63
+ },
64
+ {
65
+ "type": "event",
66
+ "name": "Unlocked",
67
+ "inputs": [
68
+ { "name": "tokenId", "type": "uint256", "indexed": true, "internalType": "uint256" },
69
+ { "name": "owner", "type": "address", "indexed": true, "internalType": "address" },
70
+ { "name": "shares", "type": "uint256", "indexed": false, "internalType": "uint256" },
71
+ { "name": "fee", "type": "uint256", "indexed": false, "internalType": "uint256" }
72
+ ],
73
+ "anonymous": false
74
+ }
75
+ ],
76
+ "bytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
77
+ "deployedBytecode": { "object": "0x", "sourceMap": "", "linkReferences": {} },
78
+ "methodIdentifiers": {
79
+ "distributeRewards(uint256)": "59974e38",
80
+ "getLockPoints(uint256)": "cce5fe66",
81
+ "getTotalLockPoints()": "a4ba87e3"
82
+ },
83
+ "rawMetadata": "{\"compiler\":{\"version\":\"0.8.7+commit.e28d00a7\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockTime\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"lockMultiplier\",\"type\":\"uint256\"}],\"name\":\"Locked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"NumberUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"RewardClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalRewards\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalLockPoints\",\"type\":\"uint256\"}],\"name\":\"RewardsDistributed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"shares\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fee\",\"type\":\"uint256\"}],\"name\":\"Unlocked\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"distributeRewards\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"getLockPoints\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getTotalLockPoints\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/interfaces/IVeTranche.sol\":\"IVeTranche\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@chainlink/=lib/chainlink/\",\":@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/\",\":@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/\",\":chainlink/=lib/chainlink/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/forge-std/src/\",\":openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/openzeppelin-contracts/contracts/\",\":pyth-sdk-solidity/=lib/pyth-sdk-solidity/\"]},\"sources\":{\"src/interfaces/IVeTranche.sol\":{\"keccak256\":\"0xaf8310961e8ee8c3fdaf0ee4220dcd0479d191c82f7f28f273c778ccbfd6c7bc\",\"license\":\"MIT\",\"urls\":[\"bzz-raw://a087bb6c6ea77db112f3c5966d10aad370c2adfe2ceb235af109bc0a9da2079e\",\"dweb:/ipfs/QmdS2YKYC37iWCeijxqEUikq9RJmtzRwQMjaiNweVvbMNZ\"]}},\"version\":1}",
84
+ "metadata": {
85
+ "compiler": { "version": "0.8.7+commit.e28d00a7" },
86
+ "language": "Solidity",
87
+ "output": {
88
+ "abi": [
89
+ {
90
+ "inputs": [
91
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
92
+ { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
93
+ { "internalType": "uint256", "name": "shares", "type": "uint256", "indexed": false },
94
+ { "internalType": "uint256", "name": "lockTime", "type": "uint256", "indexed": false },
95
+ { "internalType": "uint256", "name": "lockMultiplier", "type": "uint256", "indexed": false }
96
+ ],
97
+ "type": "event",
98
+ "name": "Locked",
99
+ "anonymous": false
100
+ },
101
+ {
102
+ "inputs": [
103
+ { "internalType": "string", "name": "name", "type": "string", "indexed": false },
104
+ { "internalType": "uint256", "name": "value", "type": "uint256", "indexed": false }
105
+ ],
106
+ "type": "event",
107
+ "name": "NumberUpdated",
108
+ "anonymous": false
109
+ },
110
+ {
111
+ "inputs": [
112
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
113
+ { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
114
+ { "internalType": "uint256", "name": "amount", "type": "uint256", "indexed": false }
115
+ ],
116
+ "type": "event",
117
+ "name": "RewardClaimed",
118
+ "anonymous": false
119
+ },
120
+ {
121
+ "inputs": [
122
+ { "internalType": "uint256", "name": "totalRewards", "type": "uint256", "indexed": false },
123
+ { "internalType": "uint256", "name": "totalLockPoints", "type": "uint256", "indexed": false }
124
+ ],
125
+ "type": "event",
126
+ "name": "RewardsDistributed",
127
+ "anonymous": false
128
+ },
129
+ {
130
+ "inputs": [
131
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256", "indexed": true },
132
+ { "internalType": "address", "name": "owner", "type": "address", "indexed": true },
133
+ { "internalType": "uint256", "name": "shares", "type": "uint256", "indexed": false },
134
+ { "internalType": "uint256", "name": "fee", "type": "uint256", "indexed": false }
135
+ ],
136
+ "type": "event",
137
+ "name": "Unlocked",
138
+ "anonymous": false
139
+ },
140
+ {
141
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
142
+ "stateMutability": "nonpayable",
143
+ "type": "function",
144
+ "name": "distributeRewards",
145
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
146
+ },
147
+ {
148
+ "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
149
+ "stateMutability": "nonpayable",
150
+ "type": "function",
151
+ "name": "getLockPoints",
152
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
153
+ },
154
+ {
155
+ "inputs": [],
156
+ "stateMutability": "nonpayable",
157
+ "type": "function",
158
+ "name": "getTotalLockPoints",
159
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }]
160
+ }
161
+ ],
162
+ "devdoc": { "kind": "dev", "methods": {}, "version": 1 },
163
+ "userdoc": { "kind": "user", "methods": {}, "version": 1 }
164
+ },
165
+ "settings": {
166
+ "remappings": [
167
+ "@chainlink/=lib/chainlink/",
168
+ "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
169
+ "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
170
+ "chainlink/=lib/chainlink/",
171
+ "ds-test/=lib/forge-std/lib/ds-test/src/",
172
+ "erc4626-tests/=lib/openzeppelin-contracts/lib/erc4626-tests/",
173
+ "forge-std/=lib/forge-std/src/",
174
+ "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
175
+ "openzeppelin-contracts/=lib/openzeppelin-contracts/",
176
+ "openzeppelin/=lib/openzeppelin-contracts/contracts/",
177
+ "pyth-sdk-solidity/=lib/pyth-sdk-solidity/"
178
+ ],
179
+ "optimizer": { "enabled": true, "runs": 200 },
180
+ "metadata": { "bytecodeHash": "ipfs" },
181
+ "compilationTarget": { "src/interfaces/IVeTranche.sol": "IVeTranche" },
182
+ "libraries": {}
183
+ },
184
+ "sources": {
185
+ "src/interfaces/IVeTranche.sol": {
186
+ "keccak256": "0xaf8310961e8ee8c3fdaf0ee4220dcd0479d191c82f7f28f273c778ccbfd6c7bc",
187
+ "urls": [
188
+ "bzz-raw://a087bb6c6ea77db112f3c5966d10aad370c2adfe2ceb235af109bc0a9da2079e",
189
+ "dweb:/ipfs/QmdS2YKYC37iWCeijxqEUikq9RJmtzRwQMjaiNweVvbMNZ"
190
+ ],
191
+ "license": "MIT"
192
+ }
193
+ },
194
+ "version": 1
195
+ },
196
+ "ast": {
197
+ "absolutePath": "src/interfaces/IVeTranche.sol",
198
+ "id": 74837,
199
+ "exportedSymbols": { "IVeTranche": [74836] },
200
+ "nodeType": "SourceUnit",
201
+ "src": "32:754:97",
202
+ "nodes": [
203
+ {
204
+ "id": 74774,
205
+ "nodeType": "PragmaDirective",
206
+ "src": "32:22:97",
207
+ "nodes": [],
208
+ "literals": ["solidity", "0.8", ".7"]
209
+ },
210
+ {
211
+ "id": 74836,
212
+ "nodeType": "ContractDefinition",
213
+ "src": "56:729:97",
214
+ "nodes": [
215
+ {
216
+ "id": 74786,
217
+ "nodeType": "EventDefinition",
218
+ "src": "104:165:97",
219
+ "nodes": [],
220
+ "anonymous": false,
221
+ "name": "Locked",
222
+ "nameLocation": "110:6:97",
223
+ "parameters": {
224
+ "id": 74785,
225
+ "nodeType": "ParameterList",
226
+ "parameters": [
227
+ {
228
+ "constant": false,
229
+ "id": 74776,
230
+ "indexed": true,
231
+ "mutability": "mutable",
232
+ "name": "tokenId",
233
+ "nameLocation": "142:7:97",
234
+ "nodeType": "VariableDeclaration",
235
+ "scope": 74786,
236
+ "src": "126:23:97",
237
+ "stateVariable": false,
238
+ "storageLocation": "default",
239
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
240
+ "typeName": {
241
+ "id": 74775,
242
+ "name": "uint256",
243
+ "nodeType": "ElementaryTypeName",
244
+ "src": "126:7:97",
245
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
246
+ },
247
+ "visibility": "internal"
248
+ },
249
+ {
250
+ "constant": false,
251
+ "id": 74778,
252
+ "indexed": true,
253
+ "mutability": "mutable",
254
+ "name": "owner",
255
+ "nameLocation": "175:5:97",
256
+ "nodeType": "VariableDeclaration",
257
+ "scope": 74786,
258
+ "src": "159:21:97",
259
+ "stateVariable": false,
260
+ "storageLocation": "default",
261
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
262
+ "typeName": {
263
+ "id": 74777,
264
+ "name": "address",
265
+ "nodeType": "ElementaryTypeName",
266
+ "src": "159:7:97",
267
+ "stateMutability": "nonpayable",
268
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
269
+ },
270
+ "visibility": "internal"
271
+ },
272
+ {
273
+ "constant": false,
274
+ "id": 74780,
275
+ "indexed": false,
276
+ "mutability": "mutable",
277
+ "name": "shares",
278
+ "nameLocation": "198:6:97",
279
+ "nodeType": "VariableDeclaration",
280
+ "scope": 74786,
281
+ "src": "190:14:97",
282
+ "stateVariable": false,
283
+ "storageLocation": "default",
284
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
285
+ "typeName": {
286
+ "id": 74779,
287
+ "name": "uint256",
288
+ "nodeType": "ElementaryTypeName",
289
+ "src": "190:7:97",
290
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
291
+ },
292
+ "visibility": "internal"
293
+ },
294
+ {
295
+ "constant": false,
296
+ "id": 74782,
297
+ "indexed": false,
298
+ "mutability": "mutable",
299
+ "name": "lockTime",
300
+ "nameLocation": "222:8:97",
301
+ "nodeType": "VariableDeclaration",
302
+ "scope": 74786,
303
+ "src": "214:16:97",
304
+ "stateVariable": false,
305
+ "storageLocation": "default",
306
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
307
+ "typeName": {
308
+ "id": 74781,
309
+ "name": "uint256",
310
+ "nodeType": "ElementaryTypeName",
311
+ "src": "214:7:97",
312
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
313
+ },
314
+ "visibility": "internal"
315
+ },
316
+ {
317
+ "constant": false,
318
+ "id": 74784,
319
+ "indexed": false,
320
+ "mutability": "mutable",
321
+ "name": "lockMultiplier",
322
+ "nameLocation": "248:14:97",
323
+ "nodeType": "VariableDeclaration",
324
+ "scope": 74786,
325
+ "src": "240:22:97",
326
+ "stateVariable": false,
327
+ "storageLocation": "default",
328
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
329
+ "typeName": {
330
+ "id": 74783,
331
+ "name": "uint256",
332
+ "nodeType": "ElementaryTypeName",
333
+ "src": "240:7:97",
334
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
335
+ },
336
+ "visibility": "internal"
337
+ }
338
+ ],
339
+ "src": "116:152:97"
340
+ }
341
+ },
342
+ {
343
+ "id": 74796,
344
+ "nodeType": "EventDefinition",
345
+ "src": "274:92:97",
346
+ "nodes": [],
347
+ "anonymous": false,
348
+ "name": "Unlocked",
349
+ "nameLocation": "280:8:97",
350
+ "parameters": {
351
+ "id": 74795,
352
+ "nodeType": "ParameterList",
353
+ "parameters": [
354
+ {
355
+ "constant": false,
356
+ "id": 74788,
357
+ "indexed": true,
358
+ "mutability": "mutable",
359
+ "name": "tokenId",
360
+ "nameLocation": "305:7:97",
361
+ "nodeType": "VariableDeclaration",
362
+ "scope": 74796,
363
+ "src": "289:23:97",
364
+ "stateVariable": false,
365
+ "storageLocation": "default",
366
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
367
+ "typeName": {
368
+ "id": 74787,
369
+ "name": "uint256",
370
+ "nodeType": "ElementaryTypeName",
371
+ "src": "289:7:97",
372
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
373
+ },
374
+ "visibility": "internal"
375
+ },
376
+ {
377
+ "constant": false,
378
+ "id": 74790,
379
+ "indexed": true,
380
+ "mutability": "mutable",
381
+ "name": "owner",
382
+ "nameLocation": "330:5:97",
383
+ "nodeType": "VariableDeclaration",
384
+ "scope": 74796,
385
+ "src": "314:21:97",
386
+ "stateVariable": false,
387
+ "storageLocation": "default",
388
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
389
+ "typeName": {
390
+ "id": 74789,
391
+ "name": "address",
392
+ "nodeType": "ElementaryTypeName",
393
+ "src": "314:7:97",
394
+ "stateMutability": "nonpayable",
395
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
396
+ },
397
+ "visibility": "internal"
398
+ },
399
+ {
400
+ "constant": false,
401
+ "id": 74792,
402
+ "indexed": false,
403
+ "mutability": "mutable",
404
+ "name": "shares",
405
+ "nameLocation": "345:6:97",
406
+ "nodeType": "VariableDeclaration",
407
+ "scope": 74796,
408
+ "src": "337:14:97",
409
+ "stateVariable": false,
410
+ "storageLocation": "default",
411
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
412
+ "typeName": {
413
+ "id": 74791,
414
+ "name": "uint256",
415
+ "nodeType": "ElementaryTypeName",
416
+ "src": "337:7:97",
417
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
418
+ },
419
+ "visibility": "internal"
420
+ },
421
+ {
422
+ "constant": false,
423
+ "id": 74794,
424
+ "indexed": false,
425
+ "mutability": "mutable",
426
+ "name": "fee",
427
+ "nameLocation": "361:3:97",
428
+ "nodeType": "VariableDeclaration",
429
+ "scope": 74796,
430
+ "src": "353:11:97",
431
+ "stateVariable": false,
432
+ "storageLocation": "default",
433
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
434
+ "typeName": {
435
+ "id": 74793,
436
+ "name": "uint256",
437
+ "nodeType": "ElementaryTypeName",
438
+ "src": "353:7:97",
439
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
440
+ },
441
+ "visibility": "internal"
442
+ }
443
+ ],
444
+ "src": "288:77:97"
445
+ }
446
+ },
447
+ {
448
+ "id": 74802,
449
+ "nodeType": "EventDefinition",
450
+ "src": "371:72:97",
451
+ "nodes": [],
452
+ "anonymous": false,
453
+ "name": "RewardsDistributed",
454
+ "nameLocation": "377:18:97",
455
+ "parameters": {
456
+ "id": 74801,
457
+ "nodeType": "ParameterList",
458
+ "parameters": [
459
+ {
460
+ "constant": false,
461
+ "id": 74798,
462
+ "indexed": false,
463
+ "mutability": "mutable",
464
+ "name": "totalRewards",
465
+ "nameLocation": "404:12:97",
466
+ "nodeType": "VariableDeclaration",
467
+ "scope": 74802,
468
+ "src": "396:20:97",
469
+ "stateVariable": false,
470
+ "storageLocation": "default",
471
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
472
+ "typeName": {
473
+ "id": 74797,
474
+ "name": "uint256",
475
+ "nodeType": "ElementaryTypeName",
476
+ "src": "396:7:97",
477
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
478
+ },
479
+ "visibility": "internal"
480
+ },
481
+ {
482
+ "constant": false,
483
+ "id": 74800,
484
+ "indexed": false,
485
+ "mutability": "mutable",
486
+ "name": "totalLockPoints",
487
+ "nameLocation": "426:15:97",
488
+ "nodeType": "VariableDeclaration",
489
+ "scope": 74802,
490
+ "src": "418:23:97",
491
+ "stateVariable": false,
492
+ "storageLocation": "default",
493
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
494
+ "typeName": {
495
+ "id": 74799,
496
+ "name": "uint256",
497
+ "nodeType": "ElementaryTypeName",
498
+ "src": "418:7:97",
499
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
500
+ },
501
+ "visibility": "internal"
502
+ }
503
+ ],
504
+ "src": "395:47:97"
505
+ }
506
+ },
507
+ {
508
+ "id": 74810,
509
+ "nodeType": "EventDefinition",
510
+ "src": "448:84:97",
511
+ "nodes": [],
512
+ "anonymous": false,
513
+ "name": "RewardClaimed",
514
+ "nameLocation": "454:13:97",
515
+ "parameters": {
516
+ "id": 74809,
517
+ "nodeType": "ParameterList",
518
+ "parameters": [
519
+ {
520
+ "constant": false,
521
+ "id": 74804,
522
+ "indexed": true,
523
+ "mutability": "mutable",
524
+ "name": "tokenId",
525
+ "nameLocation": "484:7:97",
526
+ "nodeType": "VariableDeclaration",
527
+ "scope": 74810,
528
+ "src": "468:23:97",
529
+ "stateVariable": false,
530
+ "storageLocation": "default",
531
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
532
+ "typeName": {
533
+ "id": 74803,
534
+ "name": "uint256",
535
+ "nodeType": "ElementaryTypeName",
536
+ "src": "468:7:97",
537
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
538
+ },
539
+ "visibility": "internal"
540
+ },
541
+ {
542
+ "constant": false,
543
+ "id": 74806,
544
+ "indexed": true,
545
+ "mutability": "mutable",
546
+ "name": "owner",
547
+ "nameLocation": "509:5:97",
548
+ "nodeType": "VariableDeclaration",
549
+ "scope": 74810,
550
+ "src": "493:21:97",
551
+ "stateVariable": false,
552
+ "storageLocation": "default",
553
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" },
554
+ "typeName": {
555
+ "id": 74805,
556
+ "name": "address",
557
+ "nodeType": "ElementaryTypeName",
558
+ "src": "493:7:97",
559
+ "stateMutability": "nonpayable",
560
+ "typeDescriptions": { "typeIdentifier": "t_address", "typeString": "address" }
561
+ },
562
+ "visibility": "internal"
563
+ },
564
+ {
565
+ "constant": false,
566
+ "id": 74808,
567
+ "indexed": false,
568
+ "mutability": "mutable",
569
+ "name": "amount",
570
+ "nameLocation": "524:6:97",
571
+ "nodeType": "VariableDeclaration",
572
+ "scope": 74810,
573
+ "src": "516:14:97",
574
+ "stateVariable": false,
575
+ "storageLocation": "default",
576
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
577
+ "typeName": {
578
+ "id": 74807,
579
+ "name": "uint256",
580
+ "nodeType": "ElementaryTypeName",
581
+ "src": "516:7:97",
582
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
583
+ },
584
+ "visibility": "internal"
585
+ }
586
+ ],
587
+ "src": "467:64:97"
588
+ }
589
+ },
590
+ {
591
+ "id": 74816,
592
+ "nodeType": "EventDefinition",
593
+ "src": "537:45:97",
594
+ "nodes": [],
595
+ "anonymous": false,
596
+ "name": "NumberUpdated",
597
+ "nameLocation": "543:13:97",
598
+ "parameters": {
599
+ "id": 74815,
600
+ "nodeType": "ParameterList",
601
+ "parameters": [
602
+ {
603
+ "constant": false,
604
+ "id": 74812,
605
+ "indexed": false,
606
+ "mutability": "mutable",
607
+ "name": "name",
608
+ "nameLocation": "564:4:97",
609
+ "nodeType": "VariableDeclaration",
610
+ "scope": 74816,
611
+ "src": "557:11:97",
612
+ "stateVariable": false,
613
+ "storageLocation": "default",
614
+ "typeDescriptions": { "typeIdentifier": "t_string_memory_ptr", "typeString": "string" },
615
+ "typeName": {
616
+ "id": 74811,
617
+ "name": "string",
618
+ "nodeType": "ElementaryTypeName",
619
+ "src": "557:6:97",
620
+ "typeDescriptions": { "typeIdentifier": "t_string_storage_ptr", "typeString": "string" }
621
+ },
622
+ "visibility": "internal"
623
+ },
624
+ {
625
+ "constant": false,
626
+ "id": 74814,
627
+ "indexed": false,
628
+ "mutability": "mutable",
629
+ "name": "value",
630
+ "nameLocation": "575:5:97",
631
+ "nodeType": "VariableDeclaration",
632
+ "scope": 74816,
633
+ "src": "570:10:97",
634
+ "stateVariable": false,
635
+ "storageLocation": "default",
636
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
637
+ "typeName": {
638
+ "id": 74813,
639
+ "name": "uint",
640
+ "nodeType": "ElementaryTypeName",
641
+ "src": "570:4:97",
642
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
643
+ },
644
+ "visibility": "internal"
645
+ }
646
+ ],
647
+ "src": "556:25:97"
648
+ }
649
+ },
650
+ {
651
+ "id": 74823,
652
+ "nodeType": "FunctionDefinition",
653
+ "src": "592:63:97",
654
+ "nodes": [],
655
+ "functionSelector": "59974e38",
656
+ "implemented": false,
657
+ "kind": "function",
658
+ "modifiers": [],
659
+ "name": "distributeRewards",
660
+ "nameLocation": "601:17:97",
661
+ "parameters": {
662
+ "id": 74819,
663
+ "nodeType": "ParameterList",
664
+ "parameters": [
665
+ {
666
+ "constant": false,
667
+ "id": 74818,
668
+ "mutability": "mutable",
669
+ "name": "",
670
+ "nameLocation": "-1:-1:-1",
671
+ "nodeType": "VariableDeclaration",
672
+ "scope": 74823,
673
+ "src": "619:7:97",
674
+ "stateVariable": false,
675
+ "storageLocation": "default",
676
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
677
+ "typeName": {
678
+ "id": 74817,
679
+ "name": "uint256",
680
+ "nodeType": "ElementaryTypeName",
681
+ "src": "619:7:97",
682
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
683
+ },
684
+ "visibility": "internal"
685
+ }
686
+ ],
687
+ "src": "618:9:97"
688
+ },
689
+ "returnParameters": {
690
+ "id": 74822,
691
+ "nodeType": "ParameterList",
692
+ "parameters": [
693
+ {
694
+ "constant": false,
695
+ "id": 74821,
696
+ "mutability": "mutable",
697
+ "name": "",
698
+ "nameLocation": "-1:-1:-1",
699
+ "nodeType": "VariableDeclaration",
700
+ "scope": 74823,
701
+ "src": "646:7:97",
702
+ "stateVariable": false,
703
+ "storageLocation": "default",
704
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
705
+ "typeName": {
706
+ "id": 74820,
707
+ "name": "uint256",
708
+ "nodeType": "ElementaryTypeName",
709
+ "src": "646:7:97",
710
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
711
+ },
712
+ "visibility": "internal"
713
+ }
714
+ ],
715
+ "src": "645:9:97"
716
+ },
717
+ "scope": 74836,
718
+ "stateMutability": "nonpayable",
719
+ "virtual": false,
720
+ "visibility": "external"
721
+ },
722
+ {
723
+ "id": 74828,
724
+ "nodeType": "FunctionDefinition",
725
+ "src": "661:57:97",
726
+ "nodes": [],
727
+ "functionSelector": "a4ba87e3",
728
+ "implemented": false,
729
+ "kind": "function",
730
+ "modifiers": [],
731
+ "name": "getTotalLockPoints",
732
+ "nameLocation": "670:18:97",
733
+ "parameters": { "id": 74824, "nodeType": "ParameterList", "parameters": [], "src": "688:2:97" },
734
+ "returnParameters": {
735
+ "id": 74827,
736
+ "nodeType": "ParameterList",
737
+ "parameters": [
738
+ {
739
+ "constant": false,
740
+ "id": 74826,
741
+ "mutability": "mutable",
742
+ "name": "",
743
+ "nameLocation": "-1:-1:-1",
744
+ "nodeType": "VariableDeclaration",
745
+ "scope": 74828,
746
+ "src": "709:7:97",
747
+ "stateVariable": false,
748
+ "storageLocation": "default",
749
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
750
+ "typeName": {
751
+ "id": 74825,
752
+ "name": "uint256",
753
+ "nodeType": "ElementaryTypeName",
754
+ "src": "709:7:97",
755
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
756
+ },
757
+ "visibility": "internal"
758
+ }
759
+ ],
760
+ "src": "708:9:97"
761
+ },
762
+ "scope": 74836,
763
+ "stateMutability": "nonpayable",
764
+ "virtual": false,
765
+ "visibility": "external"
766
+ },
767
+ {
768
+ "id": 74835,
769
+ "nodeType": "FunctionDefinition",
770
+ "src": "724:59:97",
771
+ "nodes": [],
772
+ "functionSelector": "cce5fe66",
773
+ "implemented": false,
774
+ "kind": "function",
775
+ "modifiers": [],
776
+ "name": "getLockPoints",
777
+ "nameLocation": "733:13:97",
778
+ "parameters": {
779
+ "id": 74831,
780
+ "nodeType": "ParameterList",
781
+ "parameters": [
782
+ {
783
+ "constant": false,
784
+ "id": 74830,
785
+ "mutability": "mutable",
786
+ "name": "",
787
+ "nameLocation": "-1:-1:-1",
788
+ "nodeType": "VariableDeclaration",
789
+ "scope": 74835,
790
+ "src": "747:7:97",
791
+ "stateVariable": false,
792
+ "storageLocation": "default",
793
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
794
+ "typeName": {
795
+ "id": 74829,
796
+ "name": "uint256",
797
+ "nodeType": "ElementaryTypeName",
798
+ "src": "747:7:97",
799
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
800
+ },
801
+ "visibility": "internal"
802
+ }
803
+ ],
804
+ "src": "746:9:97"
805
+ },
806
+ "returnParameters": {
807
+ "id": 74834,
808
+ "nodeType": "ParameterList",
809
+ "parameters": [
810
+ {
811
+ "constant": false,
812
+ "id": 74833,
813
+ "mutability": "mutable",
814
+ "name": "",
815
+ "nameLocation": "-1:-1:-1",
816
+ "nodeType": "VariableDeclaration",
817
+ "scope": 74835,
818
+ "src": "774:7:97",
819
+ "stateVariable": false,
820
+ "storageLocation": "default",
821
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" },
822
+ "typeName": {
823
+ "id": 74832,
824
+ "name": "uint256",
825
+ "nodeType": "ElementaryTypeName",
826
+ "src": "774:7:97",
827
+ "typeDescriptions": { "typeIdentifier": "t_uint256", "typeString": "uint256" }
828
+ },
829
+ "visibility": "internal"
830
+ }
831
+ ],
832
+ "src": "773:9:97"
833
+ },
834
+ "scope": 74836,
835
+ "stateMutability": "nonpayable",
836
+ "virtual": false,
837
+ "visibility": "external"
838
+ }
839
+ ],
840
+ "abstract": false,
841
+ "baseContracts": [],
842
+ "contractDependencies": [],
843
+ "contractKind": "interface",
844
+ "fullyImplemented": false,
845
+ "linearizedBaseContracts": [74836],
846
+ "name": "IVeTranche",
847
+ "nameLocation": "66:10:97",
848
+ "scope": 74837,
849
+ "usedErrors": []
850
+ }
851
+ ],
852
+ "license": "MIT"
853
+ },
854
+ "id": 97
855
+ }