|
1 | 1 | import { AbiItem } from 'web3-utils'
|
2 | 2 |
|
3 |
| -export const withdrawAbi = [ |
| 3 | +export const erc20Abi = [ |
4 | 4 | {
|
5 | 5 | anonymous: false,
|
6 | 6 | inputs: [
|
7 | 7 | {
|
8 | 8 | indexed: true,
|
9 | 9 | internalType: 'address',
|
10 |
| - name: '_property', |
| 10 | + name: 'owner', |
11 | 11 | type: 'address',
|
12 | 12 | },
|
13 | 13 | {
|
14 |
| - indexed: false, |
| 14 | + indexed: true, |
15 | 15 | internalType: 'address',
|
16 |
| - name: '_from', |
| 16 | + name: 'spender', |
17 | 17 | type: 'address',
|
18 | 18 | },
|
19 | 19 | {
|
20 | 20 | indexed: false,
|
21 |
| - internalType: 'address', |
22 |
| - name: '_to', |
23 |
| - type: 'address', |
| 21 | + internalType: 'uint256', |
| 22 | + name: 'value', |
| 23 | + type: 'uint256', |
24 | 24 | },
|
25 | 25 | ],
|
26 |
| - name: 'PropertyTransfer', |
| 26 | + name: 'Approval', |
27 | 27 | type: 'event',
|
28 | 28 | },
|
29 | 29 | {
|
| 30 | + anonymous: false, |
30 | 31 | inputs: [
|
31 | 32 | {
|
| 33 | + indexed: true, |
32 | 34 | internalType: 'address',
|
33 |
| - name: '', |
| 35 | + name: 'from', |
34 | 36 | type: 'address',
|
35 | 37 | },
|
| 38 | + { |
| 39 | + indexed: true, |
| 40 | + internalType: 'address', |
| 41 | + name: 'to', |
| 42 | + type: 'address', |
| 43 | + }, |
| 44 | + { |
| 45 | + indexed: false, |
| 46 | + internalType: 'uint256', |
| 47 | + name: 'value', |
| 48 | + type: 'uint256', |
| 49 | + }, |
36 | 50 | ],
|
37 |
| - name: 'cumulativeWithdrawnReward', |
| 51 | + name: 'Transfer', |
| 52 | + type: 'event', |
| 53 | + }, |
| 54 | + { |
| 55 | + constant: true, |
| 56 | + inputs: [], |
| 57 | + name: 'totalSupply', |
38 | 58 | outputs: [
|
39 | 59 | {
|
40 | 60 | internalType: 'uint256',
|
41 | 61 | name: '',
|
42 | 62 | type: 'uint256',
|
43 | 63 | },
|
44 | 64 | ],
|
| 65 | + payable: false, |
45 | 66 | stateMutability: 'view',
|
46 | 67 | type: 'function',
|
47 | 68 | },
|
48 | 69 | {
|
| 70 | + constant: true, |
49 | 71 | inputs: [
|
50 | 72 | {
|
51 | 73 | internalType: 'address',
|
52 |
| - name: '', |
53 |
| - type: 'address', |
54 |
| - }, |
55 |
| - { |
56 |
| - internalType: 'address', |
57 |
| - name: '', |
| 74 | + name: 'account', |
58 | 75 | type: 'address',
|
59 | 76 | },
|
60 | 77 | ],
|
61 |
| - name: 'lastWithdrawnRewardCapPrice', |
| 78 | + name: 'balanceOf', |
62 | 79 | outputs: [
|
63 | 80 | {
|
64 | 81 | internalType: 'uint256',
|
65 | 82 | name: '',
|
66 | 83 | type: 'uint256',
|
67 | 84 | },
|
68 | 85 | ],
|
| 86 | + payable: false, |
69 | 87 | stateMutability: 'view',
|
70 | 88 | type: 'function',
|
71 | 89 | },
|
72 | 90 | {
|
| 91 | + constant: false, |
73 | 92 | inputs: [
|
74 | 93 | {
|
75 | 94 | internalType: 'address',
|
76 |
| - name: '', |
| 95 | + name: 'recipient', |
77 | 96 | type: 'address',
|
78 | 97 | },
|
79 | 98 | {
|
80 |
| - internalType: 'address', |
81 |
| - name: '', |
82 |
| - type: 'address', |
| 99 | + internalType: 'uint256', |
| 100 | + name: 'amount', |
| 101 | + type: 'uint256', |
83 | 102 | },
|
84 | 103 | ],
|
85 |
| - name: 'lastWithdrawnRewardPrice', |
| 104 | + name: 'transfer', |
86 | 105 | outputs: [
|
87 | 106 | {
|
88 |
| - internalType: 'uint256', |
| 107 | + internalType: 'bool', |
89 | 108 | name: '',
|
90 |
| - type: 'uint256', |
| 109 | + type: 'bool', |
91 | 110 | },
|
92 | 111 | ],
|
93 |
| - stateMutability: 'view', |
| 112 | + payable: false, |
| 113 | + stateMutability: 'nonpayable', |
94 | 114 | type: 'function',
|
95 | 115 | },
|
96 | 116 | {
|
| 117 | + constant: true, |
97 | 118 | inputs: [
|
98 | 119 | {
|
99 | 120 | internalType: 'address',
|
100 |
| - name: '', |
| 121 | + name: 'owner', |
101 | 122 | type: 'address',
|
102 | 123 | },
|
103 | 124 | {
|
104 | 125 | internalType: 'address',
|
105 |
| - name: '', |
| 126 | + name: 'spender', |
106 | 127 | type: 'address',
|
107 | 128 | },
|
108 | 129 | ],
|
109 |
| - name: 'pendingWithdrawal', |
| 130 | + name: 'allowance', |
110 | 131 | outputs: [
|
111 | 132 | {
|
112 | 133 | internalType: 'uint256',
|
113 | 134 | name: '',
|
114 | 135 | type: 'uint256',
|
115 | 136 | },
|
116 | 137 | ],
|
| 138 | + payable: false, |
117 | 139 | stateMutability: 'view',
|
118 | 140 | type: 'function',
|
119 | 141 | },
|
120 | 142 | {
|
121 |
| - inputs: [], |
122 |
| - name: 'registryAddress', |
123 |
| - outputs: [ |
| 143 | + constant: false, |
| 144 | + inputs: [ |
124 | 145 | {
|
125 | 146 | internalType: 'address',
|
126 |
| - name: '', |
| 147 | + name: 'spender', |
127 | 148 | type: 'address',
|
128 | 149 | },
|
129 |
| - ], |
130 |
| - stateMutability: 'view', |
131 |
| - type: 'function', |
132 |
| - }, |
133 |
| - { |
134 |
| - inputs: [ |
135 | 150 | {
|
136 |
| - internalType: 'address', |
137 |
| - name: '_registry', |
138 |
| - type: 'address', |
| 151 | + internalType: 'uint256', |
| 152 | + name: 'amount', |
| 153 | + type: 'uint256', |
139 | 154 | },
|
140 | 155 | ],
|
141 |
| - name: 'initialize', |
142 |
| - outputs: [], |
143 |
| - stateMutability: 'nonpayable', |
144 |
| - type: 'function', |
145 |
| - }, |
146 |
| - { |
147 |
| - inputs: [ |
| 156 | + name: 'approve', |
| 157 | + outputs: [ |
148 | 158 | {
|
149 |
| - internalType: 'address', |
150 |
| - name: '_property', |
151 |
| - type: 'address', |
| 159 | + internalType: 'bool', |
| 160 | + name: '', |
| 161 | + type: 'bool', |
152 | 162 | },
|
153 | 163 | ],
|
154 |
| - name: 'withdraw', |
155 |
| - outputs: [], |
| 164 | + payable: false, |
156 | 165 | stateMutability: 'nonpayable',
|
157 | 166 | type: 'function',
|
158 | 167 | },
|
159 | 168 | {
|
| 169 | + constant: false, |
160 | 170 | inputs: [
|
161 | 171 | {
|
162 | 172 | internalType: 'address',
|
163 |
| - name: '_from', |
| 173 | + name: 'sender', |
164 | 174 | type: 'address',
|
165 | 175 | },
|
166 | 176 | {
|
167 | 177 | internalType: 'address',
|
168 |
| - name: '_to', |
| 178 | + name: 'recipient', |
169 | 179 | type: 'address',
|
170 | 180 | },
|
| 181 | + { |
| 182 | + internalType: 'uint256', |
| 183 | + name: 'amount', |
| 184 | + type: 'uint256', |
| 185 | + }, |
| 186 | + ], |
| 187 | + name: 'transferFrom', |
| 188 | + outputs: [ |
| 189 | + { |
| 190 | + internalType: 'bool', |
| 191 | + name: '', |
| 192 | + type: 'bool', |
| 193 | + }, |
171 | 194 | ],
|
172 |
| - name: 'beforeBalanceChange', |
173 |
| - outputs: [], |
| 195 | + payable: false, |
174 | 196 | stateMutability: 'nonpayable',
|
175 | 197 | type: 'function',
|
176 | 198 | },
|
177 | 199 | {
|
| 200 | + constant: false, |
178 | 201 | inputs: [
|
179 | 202 | {
|
180 | 203 | internalType: 'address',
|
181 |
| - name: '_property', |
| 204 | + name: 'spender', |
182 | 205 | type: 'address',
|
183 | 206 | },
|
184 | 207 | {
|
185 |
| - internalType: 'address', |
186 |
| - name: '_user', |
187 |
| - type: 'address', |
| 208 | + internalType: 'uint256', |
| 209 | + name: 'addedValue', |
| 210 | + type: 'uint256', |
188 | 211 | },
|
189 | 212 | ],
|
190 |
| - name: 'calculateRewardAmount', |
| 213 | + name: 'increaseAllowance', |
191 | 214 | outputs: [
|
192 | 215 | {
|
193 |
| - internalType: 'uint256', |
194 |
| - name: '_amount', |
195 |
| - type: 'uint256', |
| 216 | + internalType: 'bool', |
| 217 | + name: '', |
| 218 | + type: 'bool', |
196 | 219 | },
|
| 220 | + ], |
| 221 | + payable: false, |
| 222 | + stateMutability: 'nonpayable', |
| 223 | + type: 'function', |
| 224 | + }, |
| 225 | + { |
| 226 | + constant: false, |
| 227 | + inputs: [ |
197 | 228 | {
|
198 |
| - internalType: 'uint256', |
199 |
| - name: '_price', |
200 |
| - type: 'uint256', |
| 229 | + internalType: 'address', |
| 230 | + name: 'spender', |
| 231 | + type: 'address', |
201 | 232 | },
|
202 | 233 | {
|
203 | 234 | internalType: 'uint256',
|
204 |
| - name: '_cap', |
| 235 | + name: 'subtractedValue', |
205 | 236 | type: 'uint256',
|
206 | 237 | },
|
| 238 | + ], |
| 239 | + name: 'decreaseAllowance', |
| 240 | + outputs: [ |
207 | 241 | {
|
208 |
| - internalType: 'uint256', |
209 |
| - name: '_allReward', |
210 |
| - type: 'uint256', |
| 242 | + internalType: 'bool', |
| 243 | + name: '', |
| 244 | + type: 'bool', |
211 | 245 | },
|
212 | 246 | ],
|
213 |
| - stateMutability: 'view', |
| 247 | + payable: false, |
| 248 | + stateMutability: 'nonpayable', |
214 | 249 | type: 'function',
|
215 | 250 | },
|
216 | 251 | ] as readonly AbiItem[]
|
0 commit comments