Skip to content

Commit 8cce782

Browse files
authored
Merge pull request #175 from 0xPolygon/update/migration
update: PolygonMigration
2 parents 3edf280 + ce7aecc commit 8cce782

4 files changed

Lines changed: 393 additions & 4 deletions

File tree

Lines changed: 390 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,390 @@
1-
{"abi":[{"inputs":[{"internalType":"address","name":"matic_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidAddress","type":"error"},{"inputs":[],"name":"InvalidAddressOrAlreadySet","type":"error"},{"inputs":[],"name":"UnmigrationLocked","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Migrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Unmigrated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"lock","type":"bool"}],"name":"UnmigrationLockUpdated","type":"event"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"matic","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"polygon","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"polygon_","type":"address"}],"name":"setPolygonToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unmigrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"unmigrateTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"unmigrateWithPermit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unmigrationLocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"unmigrationLocked_","type":"bool"}],"name":"updateUnmigrationLock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"}]}
1+
{
2+
"abi": [
3+
{
4+
"type": "constructor",
5+
"inputs": [
6+
{
7+
"name": "matic_",
8+
"type": "address",
9+
"internalType": "address"
10+
}
11+
],
12+
"stateMutability": "nonpayable"
13+
},
14+
{
15+
"type": "function",
16+
"name": "acceptOwnership",
17+
"inputs": [],
18+
"outputs": [],
19+
"stateMutability": "nonpayable"
20+
},
21+
{
22+
"type": "function",
23+
"name": "burn",
24+
"inputs": [
25+
{
26+
"name": "amount",
27+
"type": "uint256",
28+
"internalType": "uint256"
29+
}
30+
],
31+
"outputs": [],
32+
"stateMutability": "nonpayable"
33+
},
34+
{
35+
"type": "function",
36+
"name": "initialize",
37+
"inputs": [],
38+
"outputs": [],
39+
"stateMutability": "nonpayable"
40+
},
41+
{
42+
"type": "function",
43+
"name": "matic",
44+
"inputs": [],
45+
"outputs": [
46+
{
47+
"name": "",
48+
"type": "address",
49+
"internalType": "contract IERC20"
50+
}
51+
],
52+
"stateMutability": "view"
53+
},
54+
{
55+
"type": "function",
56+
"name": "migrate",
57+
"inputs": [
58+
{
59+
"name": "amount",
60+
"type": "uint256",
61+
"internalType": "uint256"
62+
}
63+
],
64+
"outputs": [],
65+
"stateMutability": "nonpayable"
66+
},
67+
{
68+
"type": "function",
69+
"name": "migrateTo",
70+
"inputs": [
71+
{
72+
"name": "recipient",
73+
"type": "address",
74+
"internalType": "address"
75+
},
76+
{
77+
"name": "amount",
78+
"type": "uint256",
79+
"internalType": "uint256"
80+
}
81+
],
82+
"outputs": [],
83+
"stateMutability": "nonpayable"
84+
},
85+
{
86+
"type": "function",
87+
"name": "owner",
88+
"inputs": [],
89+
"outputs": [
90+
{
91+
"name": "",
92+
"type": "address",
93+
"internalType": "address"
94+
}
95+
],
96+
"stateMutability": "view"
97+
},
98+
{
99+
"type": "function",
100+
"name": "pendingOwner",
101+
"inputs": [],
102+
"outputs": [
103+
{
104+
"name": "",
105+
"type": "address",
106+
"internalType": "address"
107+
}
108+
],
109+
"stateMutability": "view"
110+
},
111+
{
112+
"type": "function",
113+
"name": "polygon",
114+
"inputs": [],
115+
"outputs": [
116+
{
117+
"name": "",
118+
"type": "address",
119+
"internalType": "contract IERC20"
120+
}
121+
],
122+
"stateMutability": "view"
123+
},
124+
{
125+
"type": "function",
126+
"name": "renounceOwnership",
127+
"inputs": [],
128+
"outputs": [],
129+
"stateMutability": "nonpayable"
130+
},
131+
{
132+
"type": "function",
133+
"name": "setPolygonToken",
134+
"inputs": [
135+
{
136+
"name": "polygon_",
137+
"type": "address",
138+
"internalType": "address"
139+
}
140+
],
141+
"outputs": [],
142+
"stateMutability": "nonpayable"
143+
},
144+
{
145+
"type": "function",
146+
"name": "transferOwnership",
147+
"inputs": [
148+
{
149+
"name": "newOwner",
150+
"type": "address",
151+
"internalType": "address"
152+
}
153+
],
154+
"outputs": [],
155+
"stateMutability": "nonpayable"
156+
},
157+
{
158+
"type": "function",
159+
"name": "unmigrate",
160+
"inputs": [
161+
{
162+
"name": "amount",
163+
"type": "uint256",
164+
"internalType": "uint256"
165+
}
166+
],
167+
"outputs": [],
168+
"stateMutability": "nonpayable"
169+
},
170+
{
171+
"type": "function",
172+
"name": "unmigrateTo",
173+
"inputs": [
174+
{
175+
"name": "recipient",
176+
"type": "address",
177+
"internalType": "address"
178+
},
179+
{
180+
"name": "amount",
181+
"type": "uint256",
182+
"internalType": "uint256"
183+
}
184+
],
185+
"outputs": [],
186+
"stateMutability": "nonpayable"
187+
},
188+
{
189+
"type": "function",
190+
"name": "unmigrateWithPermit",
191+
"inputs": [
192+
{
193+
"name": "amount",
194+
"type": "uint256",
195+
"internalType": "uint256"
196+
},
197+
{
198+
"name": "deadline",
199+
"type": "uint256",
200+
"internalType": "uint256"
201+
},
202+
{
203+
"name": "v",
204+
"type": "uint8",
205+
"internalType": "uint8"
206+
},
207+
{
208+
"name": "r",
209+
"type": "bytes32",
210+
"internalType": "bytes32"
211+
},
212+
{
213+
"name": "s",
214+
"type": "bytes32",
215+
"internalType": "bytes32"
216+
}
217+
],
218+
"outputs": [],
219+
"stateMutability": "nonpayable"
220+
},
221+
{
222+
"type": "function",
223+
"name": "unmigrationLocked",
224+
"inputs": [],
225+
"outputs": [
226+
{
227+
"name": "",
228+
"type": "bool",
229+
"internalType": "bool"
230+
}
231+
],
232+
"stateMutability": "view"
233+
},
234+
{
235+
"type": "function",
236+
"name": "updateUnmigrationLock",
237+
"inputs": [
238+
{
239+
"name": "unmigrationLocked_",
240+
"type": "bool",
241+
"internalType": "bool"
242+
}
243+
],
244+
"outputs": [],
245+
"stateMutability": "nonpayable"
246+
},
247+
{
248+
"type": "function",
249+
"name": "version",
250+
"inputs": [],
251+
"outputs": [
252+
{
253+
"name": "",
254+
"type": "string",
255+
"internalType": "string"
256+
}
257+
],
258+
"stateMutability": "pure"
259+
},
260+
{
261+
"type": "event",
262+
"name": "Initialized",
263+
"inputs": [
264+
{
265+
"name": "version",
266+
"type": "uint8",
267+
"indexed": false,
268+
"internalType": "uint8"
269+
}
270+
],
271+
"anonymous": false
272+
},
273+
{
274+
"type": "event",
275+
"name": "Migrated",
276+
"inputs": [
277+
{
278+
"name": "account",
279+
"type": "address",
280+
"indexed": true,
281+
"internalType": "address"
282+
},
283+
{
284+
"name": "recipient",
285+
"type": "address",
286+
"indexed": false,
287+
"internalType": "address"
288+
},
289+
{
290+
"name": "amount",
291+
"type": "uint256",
292+
"indexed": false,
293+
"internalType": "uint256"
294+
}
295+
],
296+
"anonymous": false
297+
},
298+
{
299+
"type": "event",
300+
"name": "OwnershipTransferStarted",
301+
"inputs": [
302+
{
303+
"name": "previousOwner",
304+
"type": "address",
305+
"indexed": true,
306+
"internalType": "address"
307+
},
308+
{
309+
"name": "newOwner",
310+
"type": "address",
311+
"indexed": true,
312+
"internalType": "address"
313+
}
314+
],
315+
"anonymous": false
316+
},
317+
{
318+
"type": "event",
319+
"name": "OwnershipTransferred",
320+
"inputs": [
321+
{
322+
"name": "previousOwner",
323+
"type": "address",
324+
"indexed": true,
325+
"internalType": "address"
326+
},
327+
{
328+
"name": "newOwner",
329+
"type": "address",
330+
"indexed": true,
331+
"internalType": "address"
332+
}
333+
],
334+
"anonymous": false
335+
},
336+
{
337+
"type": "event",
338+
"name": "Unmigrated",
339+
"inputs": [
340+
{
341+
"name": "account",
342+
"type": "address",
343+
"indexed": true,
344+
"internalType": "address"
345+
},
346+
{
347+
"name": "recipient",
348+
"type": "address",
349+
"indexed": true,
350+
"internalType": "address"
351+
},
352+
{
353+
"name": "amount",
354+
"type": "uint256",
355+
"indexed": false,
356+
"internalType": "uint256"
357+
}
358+
],
359+
"anonymous": false
360+
},
361+
{
362+
"type": "event",
363+
"name": "UnmigrationLockUpdated",
364+
"inputs": [
365+
{
366+
"name": "lock",
367+
"type": "bool",
368+
"indexed": false,
369+
"internalType": "bool"
370+
}
371+
],
372+
"anonymous": false
373+
},
374+
{
375+
"type": "error",
376+
"name": "InvalidAddress",
377+
"inputs": []
378+
},
379+
{
380+
"type": "error",
381+
"name": "InvalidAddressOrAlreadySet",
382+
"inputs": []
383+
},
384+
{
385+
"type": "error",
386+
"name": "UnmigrationLocked",
387+
"inputs": []
388+
}
389+
]
390+
}

0 commit comments

Comments
 (0)