Skip to content

Commit 5de7f30

Browse files
authored
Supports Withdraw.TransferHistory and its related functions (#1464)
* Supports Withdraw.TransferHistory and its related functions
1 parent 0c47612 commit 5de7f30

18 files changed

+1105
-6
lines changed

lib/l2/withdraw/abi.ts

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

0 commit comments

Comments
 (0)