WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 1b719d2

Browse files
authored
Merge pull request #650 from VenusProtocol/vip/vpd-280
feat: update the vip num to avoid conflict
2 parents 45f45fe + 00f9698 commit 1b719d2

16 files changed

+11012
-0
lines changed

simulations/vip-778/abi/Prime.json

Lines changed: 1787 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 385 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,385 @@
1+
[
2+
{
3+
"inputs": [
4+
{ "internalType": "bool", "name": "_timeBased", "type": "bool" },
5+
{ "internalType": "uint256", "name": "_blocksPerYear", "type": "uint256" }
6+
],
7+
"stateMutability": "nonpayable",
8+
"type": "constructor"
9+
},
10+
{ "inputs": [], "name": "AddressesMustDiffer", "type": "error" },
11+
{ "inputs": [], "name": "FundsTransferIsPaused", "type": "error" },
12+
{
13+
"inputs": [
14+
{ "internalType": "uint256", "name": "sweepAmount", "type": "uint256" },
15+
{ "internalType": "uint256", "name": "balance", "type": "uint256" }
16+
],
17+
"name": "InsufficientBalance",
18+
"type": "error"
19+
},
20+
{ "inputs": [], "name": "InvalidArguments", "type": "error" },
21+
{ "inputs": [], "name": "InvalidBlocksPerYear", "type": "error" },
22+
{ "inputs": [], "name": "InvalidCaller", "type": "error" },
23+
{
24+
"inputs": [
25+
{ "internalType": "uint256", "name": "speed", "type": "uint256" },
26+
{ "internalType": "uint256", "name": "maxSpeed", "type": "uint256" }
27+
],
28+
"name": "InvalidDistributionSpeed",
29+
"type": "error"
30+
},
31+
{ "inputs": [], "name": "InvalidTimeBasedConfiguration", "type": "error" },
32+
{
33+
"inputs": [
34+
{ "internalType": "uint256", "name": "loopsLimit", "type": "uint256" },
35+
{ "internalType": "uint256", "name": "requiredLoops", "type": "uint256" }
36+
],
37+
"name": "MaxLoopsLimitExceeded",
38+
"type": "error"
39+
},
40+
{
41+
"inputs": [{ "internalType": "address", "name": "token", "type": "address" }],
42+
"name": "TokenAlreadyInitialized",
43+
"type": "error"
44+
},
45+
{
46+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
47+
"name": "TokenNotInitialized",
48+
"type": "error"
49+
},
50+
{
51+
"inputs": [
52+
{ "internalType": "address", "name": "sender", "type": "address" },
53+
{ "internalType": "address", "name": "calledContract", "type": "address" },
54+
{ "internalType": "string", "name": "methodSignature", "type": "string" }
55+
],
56+
"name": "Unauthorized",
57+
"type": "error"
58+
},
59+
{
60+
"anonymous": false,
61+
"inputs": [{ "indexed": false, "internalType": "uint8", "name": "version", "type": "uint8" }],
62+
"name": "Initialized",
63+
"type": "event"
64+
},
65+
{
66+
"anonymous": false,
67+
"inputs": [
68+
{ "indexed": false, "internalType": "uint256", "name": "oldMaxLoopsLimit", "type": "uint256" },
69+
{ "indexed": false, "internalType": "uint256", "name": "newmaxLoopsLimit", "type": "uint256" }
70+
],
71+
"name": "MaxLoopsLimitUpdated",
72+
"type": "event"
73+
},
74+
{
75+
"anonymous": false,
76+
"inputs": [
77+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
78+
{ "indexed": false, "internalType": "uint256", "name": "oldSpeed", "type": "uint256" },
79+
{ "indexed": false, "internalType": "uint256", "name": "newSpeed", "type": "uint256" }
80+
],
81+
"name": "MaxTokenDistributionSpeedUpdated",
82+
"type": "event"
83+
},
84+
{
85+
"anonymous": false,
86+
"inputs": [
87+
{ "indexed": false, "internalType": "address", "name": "oldAccessControlManager", "type": "address" },
88+
{ "indexed": false, "internalType": "address", "name": "newAccessControlManager", "type": "address" }
89+
],
90+
"name": "NewAccessControlManager",
91+
"type": "event"
92+
},
93+
{
94+
"anonymous": false,
95+
"inputs": [
96+
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
97+
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
98+
],
99+
"name": "OwnershipTransferStarted",
100+
"type": "event"
101+
},
102+
{
103+
"anonymous": false,
104+
"inputs": [
105+
{ "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" },
106+
{ "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" }
107+
],
108+
"name": "OwnershipTransferred",
109+
"type": "event"
110+
},
111+
{
112+
"anonymous": false,
113+
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
114+
"name": "Paused",
115+
"type": "event"
116+
},
117+
{
118+
"anonymous": false,
119+
"inputs": [
120+
{ "indexed": true, "internalType": "address", "name": "oldPrimeToken", "type": "address" },
121+
{ "indexed": true, "internalType": "address", "name": "newPrimeToken", "type": "address" }
122+
],
123+
"name": "PrimeTokenUpdated",
124+
"type": "event"
125+
},
126+
{
127+
"anonymous": false,
128+
"inputs": [
129+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
130+
{ "indexed": true, "internalType": "address", "name": "to", "type": "address" },
131+
{ "indexed": false, "internalType": "uint256", "name": "sweepAmount", "type": "uint256" }
132+
],
133+
"name": "SweepToken",
134+
"type": "event"
135+
},
136+
{
137+
"anonymous": false,
138+
"inputs": [{ "indexed": true, "internalType": "address", "name": "token", "type": "address" }],
139+
"name": "TokenDistributionInitialized",
140+
"type": "event"
141+
},
142+
{
143+
"anonymous": false,
144+
"inputs": [
145+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
146+
{ "indexed": false, "internalType": "uint256", "name": "oldSpeed", "type": "uint256" },
147+
{ "indexed": false, "internalType": "uint256", "name": "newSpeed", "type": "uint256" }
148+
],
149+
"name": "TokenDistributionSpeedUpdated",
150+
"type": "event"
151+
},
152+
{
153+
"anonymous": false,
154+
"inputs": [
155+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
156+
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
157+
],
158+
"name": "TokenTransferredToPrime",
159+
"type": "event"
160+
},
161+
{
162+
"anonymous": false,
163+
"inputs": [
164+
{ "indexed": true, "internalType": "address", "name": "token", "type": "address" },
165+
{ "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }
166+
],
167+
"name": "TokensAccrued",
168+
"type": "event"
169+
},
170+
{
171+
"anonymous": false,
172+
"inputs": [{ "indexed": false, "internalType": "address", "name": "account", "type": "address" }],
173+
"name": "Unpaused",
174+
"type": "event"
175+
},
176+
{
177+
"inputs": [],
178+
"name": "DEFAULT_MAX_DISTRIBUTION_SPEED",
179+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
180+
"stateMutability": "view",
181+
"type": "function"
182+
},
183+
{ "inputs": [], "name": "acceptOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
184+
{
185+
"inputs": [],
186+
"name": "accessControlManager",
187+
"outputs": [{ "internalType": "contract IAccessControlManagerV8", "name": "", "type": "address" }],
188+
"stateMutability": "view",
189+
"type": "function"
190+
},
191+
{
192+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
193+
"name": "accrueTokens",
194+
"outputs": [],
195+
"stateMutability": "nonpayable",
196+
"type": "function"
197+
},
198+
{
199+
"inputs": [],
200+
"name": "blocksOrSecondsPerYear",
201+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
202+
"stateMutability": "view",
203+
"type": "function"
204+
},
205+
{
206+
"inputs": [],
207+
"name": "getBlockNumberOrTimestamp",
208+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
209+
"stateMutability": "view",
210+
"type": "function"
211+
},
212+
{
213+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
214+
"name": "getEffectiveDistributionSpeed",
215+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
216+
"stateMutability": "view",
217+
"type": "function"
218+
},
219+
{
220+
"inputs": [
221+
{ "internalType": "address", "name": "accessControlManager_", "type": "address" },
222+
{ "internalType": "address[]", "name": "tokens_", "type": "address[]" },
223+
{ "internalType": "uint256[]", "name": "distributionSpeeds_", "type": "uint256[]" },
224+
{ "internalType": "uint256[]", "name": "maxDistributionSpeeds_", "type": "uint256[]" },
225+
{ "internalType": "uint256", "name": "loopsLimit_", "type": "uint256" }
226+
],
227+
"name": "initialize",
228+
"outputs": [],
229+
"stateMutability": "nonpayable",
230+
"type": "function"
231+
},
232+
{
233+
"inputs": [{ "internalType": "address[]", "name": "tokens_", "type": "address[]" }],
234+
"name": "initializeTokens",
235+
"outputs": [],
236+
"stateMutability": "nonpayable",
237+
"type": "function"
238+
},
239+
{
240+
"inputs": [],
241+
"name": "isTimeBased",
242+
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
243+
"stateMutability": "view",
244+
"type": "function"
245+
},
246+
{
247+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
248+
"name": "lastAccruedBlock",
249+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
250+
"stateMutability": "view",
251+
"type": "function"
252+
},
253+
{
254+
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
255+
"name": "lastAccruedBlockOrSecond",
256+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
257+
"stateMutability": "view",
258+
"type": "function"
259+
},
260+
{
261+
"inputs": [],
262+
"name": "maxLoopsLimit",
263+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
264+
"stateMutability": "view",
265+
"type": "function"
266+
},
267+
{
268+
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
269+
"name": "maxTokenDistributionSpeeds",
270+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
271+
"stateMutability": "view",
272+
"type": "function"
273+
},
274+
{
275+
"inputs": [],
276+
"name": "owner",
277+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
278+
"stateMutability": "view",
279+
"type": "function"
280+
},
281+
{ "inputs": [], "name": "pauseFundsTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
282+
{
283+
"inputs": [],
284+
"name": "paused",
285+
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
286+
"stateMutability": "view",
287+
"type": "function"
288+
},
289+
{
290+
"inputs": [],
291+
"name": "pendingOwner",
292+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
293+
"stateMutability": "view",
294+
"type": "function"
295+
},
296+
{
297+
"inputs": [],
298+
"name": "prime",
299+
"outputs": [{ "internalType": "address", "name": "", "type": "address" }],
300+
"stateMutability": "view",
301+
"type": "function"
302+
},
303+
{
304+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
305+
"name": "releaseFunds",
306+
"outputs": [],
307+
"stateMutability": "nonpayable",
308+
"type": "function"
309+
},
310+
{ "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
311+
{ "inputs": [], "name": "resumeFundsTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
312+
{
313+
"inputs": [{ "internalType": "address", "name": "accessControlManager_", "type": "address" }],
314+
"name": "setAccessControlManager",
315+
"outputs": [],
316+
"stateMutability": "nonpayable",
317+
"type": "function"
318+
},
319+
{
320+
"inputs": [{ "internalType": "uint256", "name": "loopsLimit", "type": "uint256" }],
321+
"name": "setMaxLoopsLimit",
322+
"outputs": [],
323+
"stateMutability": "nonpayable",
324+
"type": "function"
325+
},
326+
{
327+
"inputs": [
328+
{ "internalType": "address[]", "name": "tokens_", "type": "address[]" },
329+
{ "internalType": "uint256[]", "name": "maxDistributionSpeeds_", "type": "uint256[]" }
330+
],
331+
"name": "setMaxTokensDistributionSpeed",
332+
"outputs": [],
333+
"stateMutability": "nonpayable",
334+
"type": "function"
335+
},
336+
{
337+
"inputs": [{ "internalType": "address", "name": "prime_", "type": "address" }],
338+
"name": "setPrimeToken",
339+
"outputs": [],
340+
"stateMutability": "nonpayable",
341+
"type": "function"
342+
},
343+
{
344+
"inputs": [
345+
{ "internalType": "address[]", "name": "tokens_", "type": "address[]" },
346+
{ "internalType": "uint256[]", "name": "distributionSpeeds_", "type": "uint256[]" }
347+
],
348+
"name": "setTokensDistributionSpeed",
349+
"outputs": [],
350+
"stateMutability": "nonpayable",
351+
"type": "function"
352+
},
353+
{
354+
"inputs": [
355+
{ "internalType": "contract IERC20Upgradeable", "name": "token_", "type": "address" },
356+
{ "internalType": "address", "name": "to_", "type": "address" },
357+
{ "internalType": "uint256", "name": "amount_", "type": "uint256" }
358+
],
359+
"name": "sweepToken",
360+
"outputs": [],
361+
"stateMutability": "nonpayable",
362+
"type": "function"
363+
},
364+
{
365+
"inputs": [{ "internalType": "address", "name": "token_", "type": "address" }],
366+
"name": "tokenAmountAccrued",
367+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
368+
"stateMutability": "view",
369+
"type": "function"
370+
},
371+
{
372+
"inputs": [{ "internalType": "address", "name": "", "type": "address" }],
373+
"name": "tokenDistributionSpeeds",
374+
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
375+
"stateMutability": "view",
376+
"type": "function"
377+
},
378+
{
379+
"inputs": [{ "internalType": "address", "name": "newOwner", "type": "address" }],
380+
"name": "transferOwnership",
381+
"outputs": [],
382+
"stateMutability": "nonpayable",
383+
"type": "function"
384+
}
385+
]

0 commit comments

Comments
 (0)