@zebec-network/admin-sdk 1.0.0
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.
- package/LICENSE +21 -0
- package/README.md +730 -0
- package/dist/artifacts/abi/index.d.ts +161 -0
- package/dist/artifacts/abi/index.js +7 -0
- package/dist/artifacts/abi/token.json +350 -0
- package/dist/artifacts/abi/weth.json +153 -0
- package/dist/artifacts/abi/zebecCard.json +1229 -0
- package/dist/artifacts/index.d.ts +11 -0
- package/dist/artifacts/index.js +11 -0
- package/dist/artifacts/typechain-types/OdysseyZebecCard.d.ts +559 -0
- package/dist/artifacts/typechain-types/OdysseyZebecCard.js +1 -0
- package/dist/artifacts/typechain-types/Token.d.ts +149 -0
- package/dist/artifacts/typechain-types/Token.js +1 -0
- package/dist/artifacts/typechain-types/Weth.d.ts +179 -0
- package/dist/artifacts/typechain-types/Weth.js +1 -0
- package/dist/artifacts/typechain-types/ZebecCard.d.ts +723 -0
- package/dist/artifacts/typechain-types/ZebecCard.js +1 -0
- package/dist/artifacts/typechain-types/common.d.ts +50 -0
- package/dist/artifacts/typechain-types/common.js +1 -0
- package/dist/artifacts/typechain-types/factories/OdysseyZebecCard__factory.d.ts +735 -0
- package/dist/artifacts/typechain-types/factories/OdysseyZebecCard__factory.js +959 -0
- package/dist/artifacts/typechain-types/factories/Token__factory.d.ts +280 -0
- package/dist/artifacts/typechain-types/factories/Token__factory.js +374 -0
- package/dist/artifacts/typechain-types/factories/Weth__factory.d.ts +219 -0
- package/dist/artifacts/typechain-types/factories/Weth__factory.js +292 -0
- package/dist/artifacts/typechain-types/factories/ZebecCard__factory.d.ts +966 -0
- package/dist/artifacts/typechain-types/factories/ZebecCard__factory.js +1253 -0
- package/dist/artifacts/typechain-types/factories/index.d.ts +4 -0
- package/dist/artifacts/typechain-types/factories/index.js +7 -0
- package/dist/artifacts/typechain-types/index.d.ts +9 -0
- package/dist/artifacts/typechain-types/index.js +8 -0
- package/dist/artifacts/zebec_instant_card.d.ts +3683 -0
- package/dist/artifacts/zebec_instant_card.js +1 -0
- package/dist/artifacts/zebec_instant_card.json +2801 -0
- package/dist/artifacts/zebec_proxy_stream.d.ts +1933 -0
- package/dist/artifacts/zebec_proxy_stream.js +1 -0
- package/dist/artifacts/zebec_proxy_stream.json +1497 -0
- package/dist/artifacts/zebec_stake_v1.d.ts +1679 -0
- package/dist/artifacts/zebec_stake_v1.js +1 -0
- package/dist/artifacts/zebec_stake_v1.json +1255 -0
- package/dist/artifacts/zebec_stream.d.ts +1481 -0
- package/dist/artifacts/zebec_stream.js +1 -0
- package/dist/artifacts/zebec_stream.json +1243 -0
- package/dist/constants.d.ts +32 -0
- package/dist/constants.js +115 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +6 -0
- package/dist/pda.d.ts +23 -0
- package/dist/pda.js +125 -0
- package/dist/services/evmCardService.d.ts +189 -0
- package/dist/services/evmCardService.js +322 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.js +6 -0
- package/dist/services/proxyStreamService.d.ts +72 -0
- package/dist/services/proxyStreamService.js +302 -0
- package/dist/services/solanaCardV2Service.d.ts +50 -0
- package/dist/services/solanaCardV2Service.js +717 -0
- package/dist/services/stakingService.d.ts +39 -0
- package/dist/services/stakingService.js +265 -0
- package/dist/services/streamServices.d.ts +50 -0
- package/dist/services/streamServices.js +322 -0
- package/dist/services/suiCardService.d.ts +91 -0
- package/dist/services/suiCardService.js +487 -0
- package/dist/types.d.ts +433 -0
- package/dist/types.js +1 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +39 -0
- package/package.json +57 -0
|
@@ -0,0 +1,1253 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [
|
|
8
|
+
{
|
|
9
|
+
internalType: "address",
|
|
10
|
+
name: "target",
|
|
11
|
+
type: "address",
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
name: "AddressEmptyCode",
|
|
15
|
+
type: "error",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
inputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "account",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
name: "AddressInsufficientBalance",
|
|
26
|
+
type: "error",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "address",
|
|
32
|
+
name: "implementation",
|
|
33
|
+
type: "address",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "ERC1967InvalidImplementation",
|
|
37
|
+
type: "error",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
inputs: [],
|
|
41
|
+
name: "ERC1967NonPayable",
|
|
42
|
+
type: "error",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
inputs: [],
|
|
46
|
+
name: "FailedInnerCall",
|
|
47
|
+
type: "error",
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
inputs: [],
|
|
51
|
+
name: "InvalidInitialization",
|
|
52
|
+
type: "error",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
internalType: "uint256",
|
|
58
|
+
name: "requiredBalance",
|
|
59
|
+
type: "uint256",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
internalType: "uint256",
|
|
63
|
+
name: "currentBalance",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
name: "NotEnoughBalance",
|
|
68
|
+
type: "error",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
inputs: [],
|
|
72
|
+
name: "NotInitializing",
|
|
73
|
+
type: "error",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [
|
|
77
|
+
{
|
|
78
|
+
internalType: "address",
|
|
79
|
+
name: "owner",
|
|
80
|
+
type: "address",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "OwnableInvalidOwner",
|
|
84
|
+
type: "error",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
inputs: [
|
|
88
|
+
{
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "account",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: "OwnableUnauthorizedAccount",
|
|
95
|
+
type: "error",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
inputs: [
|
|
99
|
+
{
|
|
100
|
+
internalType: "address",
|
|
101
|
+
name: "token",
|
|
102
|
+
type: "address",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
name: "SafeERC20FailedOperation",
|
|
106
|
+
type: "error",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
inputs: [],
|
|
110
|
+
name: "UUPSUnauthorizedCallContext",
|
|
111
|
+
type: "error",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
inputs: [
|
|
115
|
+
{
|
|
116
|
+
internalType: "bytes32",
|
|
117
|
+
name: "slot",
|
|
118
|
+
type: "bytes32",
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
122
|
+
type: "error",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
anonymous: false,
|
|
126
|
+
inputs: [
|
|
127
|
+
{
|
|
128
|
+
indexed: true,
|
|
129
|
+
internalType: "address",
|
|
130
|
+
name: "from",
|
|
131
|
+
type: "address",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
indexed: true,
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "id",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
indexed: false,
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "amount",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
indexed: false,
|
|
147
|
+
internalType: "string",
|
|
148
|
+
name: "cardType",
|
|
149
|
+
type: "string",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
indexed: false,
|
|
153
|
+
internalType: "string",
|
|
154
|
+
name: "userEmail",
|
|
155
|
+
type: "string",
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
indexed: false,
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "purchasedAt",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
name: "CardPurchased",
|
|
165
|
+
type: "event",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
anonymous: false,
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
indexed: true,
|
|
172
|
+
internalType: "address",
|
|
173
|
+
name: "from",
|
|
174
|
+
type: "address",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
indexed: false,
|
|
178
|
+
internalType: "uint256",
|
|
179
|
+
name: "amount",
|
|
180
|
+
type: "uint256",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
name: "Deposited",
|
|
184
|
+
type: "event",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
anonymous: false,
|
|
188
|
+
inputs: [
|
|
189
|
+
{
|
|
190
|
+
indexed: false,
|
|
191
|
+
internalType: "uint64",
|
|
192
|
+
name: "version",
|
|
193
|
+
type: "uint64",
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
name: "Initialized",
|
|
197
|
+
type: "event",
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
anonymous: false,
|
|
201
|
+
inputs: [
|
|
202
|
+
{
|
|
203
|
+
indexed: true,
|
|
204
|
+
internalType: "address",
|
|
205
|
+
name: "previousOwner",
|
|
206
|
+
type: "address",
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
indexed: true,
|
|
210
|
+
internalType: "address",
|
|
211
|
+
name: "newOwner",
|
|
212
|
+
type: "address",
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
name: "OwnershipTransferred",
|
|
216
|
+
type: "event",
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
anonymous: false,
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
indexed: true,
|
|
223
|
+
internalType: "address",
|
|
224
|
+
name: "from",
|
|
225
|
+
type: "address",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
indexed: true,
|
|
229
|
+
internalType: "address",
|
|
230
|
+
name: "srcToken",
|
|
231
|
+
type: "address",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
indexed: false,
|
|
235
|
+
internalType: "uint256",
|
|
236
|
+
name: "amount",
|
|
237
|
+
type: "uint256",
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
indexed: false,
|
|
241
|
+
internalType: "uint256",
|
|
242
|
+
name: "spentAmount",
|
|
243
|
+
type: "uint256",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
indexed: false,
|
|
247
|
+
internalType: "uint256",
|
|
248
|
+
name: "returnAmount",
|
|
249
|
+
type: "uint256",
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
indexed: false,
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "feeAmount",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
name: "Swapped",
|
|
259
|
+
type: "event",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
anonymous: false,
|
|
263
|
+
inputs: [
|
|
264
|
+
{
|
|
265
|
+
indexed: true,
|
|
266
|
+
internalType: "address",
|
|
267
|
+
name: "implementation",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
name: "Upgraded",
|
|
272
|
+
type: "event",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
anonymous: false,
|
|
276
|
+
inputs: [
|
|
277
|
+
{
|
|
278
|
+
indexed: true,
|
|
279
|
+
internalType: "address",
|
|
280
|
+
name: "from",
|
|
281
|
+
type: "address",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
indexed: false,
|
|
285
|
+
internalType: "uint256",
|
|
286
|
+
name: "withdrawnAmount",
|
|
287
|
+
type: "uint256",
|
|
288
|
+
},
|
|
289
|
+
],
|
|
290
|
+
name: "WithdrawYield",
|
|
291
|
+
type: "event",
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
anonymous: false,
|
|
295
|
+
inputs: [
|
|
296
|
+
{
|
|
297
|
+
indexed: true,
|
|
298
|
+
internalType: "address",
|
|
299
|
+
name: "from",
|
|
300
|
+
type: "address",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
indexed: false,
|
|
304
|
+
internalType: "uint256",
|
|
305
|
+
name: "withdrawnAmount",
|
|
306
|
+
type: "uint256",
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
name: "Withdrawn",
|
|
310
|
+
type: "event",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
inputs: [],
|
|
314
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
315
|
+
outputs: [
|
|
316
|
+
{
|
|
317
|
+
internalType: "string",
|
|
318
|
+
name: "",
|
|
319
|
+
type: "string",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
inputs: [],
|
|
327
|
+
name: "aavePool",
|
|
328
|
+
outputs: [
|
|
329
|
+
{
|
|
330
|
+
internalType: "address",
|
|
331
|
+
name: "",
|
|
332
|
+
type: "address",
|
|
333
|
+
},
|
|
334
|
+
],
|
|
335
|
+
stateMutability: "view",
|
|
336
|
+
type: "function",
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
inputs: [
|
|
340
|
+
{
|
|
341
|
+
internalType: "uint256",
|
|
342
|
+
name: "amount",
|
|
343
|
+
type: "uint256",
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
internalType: "string",
|
|
347
|
+
name: "cardType",
|
|
348
|
+
type: "string",
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
internalType: "string",
|
|
352
|
+
name: "userEmail",
|
|
353
|
+
type: "string",
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
name: "buyCard",
|
|
357
|
+
outputs: [],
|
|
358
|
+
stateMutability: "nonpayable",
|
|
359
|
+
type: "function",
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
inputs: [
|
|
363
|
+
{
|
|
364
|
+
internalType: "uint256",
|
|
365
|
+
name: "amount",
|
|
366
|
+
type: "uint256",
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
internalType: "string",
|
|
370
|
+
name: "cardType",
|
|
371
|
+
type: "string",
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
internalType: "string",
|
|
375
|
+
name: "userEmail",
|
|
376
|
+
type: "string",
|
|
377
|
+
},
|
|
378
|
+
],
|
|
379
|
+
name: "buyCardDirect",
|
|
380
|
+
outputs: [],
|
|
381
|
+
stateMutability: "nonpayable",
|
|
382
|
+
type: "function",
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
inputs: [
|
|
386
|
+
{
|
|
387
|
+
internalType: "address",
|
|
388
|
+
name: "",
|
|
389
|
+
type: "address",
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
name: "cardBalances",
|
|
393
|
+
outputs: [
|
|
394
|
+
{
|
|
395
|
+
internalType: "uint256",
|
|
396
|
+
name: "",
|
|
397
|
+
type: "uint256",
|
|
398
|
+
},
|
|
399
|
+
],
|
|
400
|
+
stateMutability: "view",
|
|
401
|
+
type: "function",
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
inputs: [],
|
|
405
|
+
name: "cardConfig",
|
|
406
|
+
outputs: [
|
|
407
|
+
{
|
|
408
|
+
internalType: "uint256",
|
|
409
|
+
name: "nativeFee",
|
|
410
|
+
type: "uint256",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
internalType: "uint256",
|
|
414
|
+
name: "nonNativeFee",
|
|
415
|
+
type: "uint256",
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
internalType: "uint256",
|
|
419
|
+
name: "revenueFee",
|
|
420
|
+
type: "uint256",
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
internalType: "uint256",
|
|
424
|
+
name: "counter",
|
|
425
|
+
type: "uint256",
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
internalType: "address",
|
|
429
|
+
name: "cardVault",
|
|
430
|
+
type: "address",
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
internalType: "address",
|
|
434
|
+
name: "revenueVault",
|
|
435
|
+
type: "address",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
internalType: "address",
|
|
439
|
+
name: "commissionVault",
|
|
440
|
+
type: "address",
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
internalType: "address",
|
|
444
|
+
name: "usdcAddress",
|
|
445
|
+
type: "address",
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
internalType: "uint256",
|
|
449
|
+
name: "minCardAmount",
|
|
450
|
+
type: "uint256",
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
internalType: "uint256",
|
|
454
|
+
name: "maxCardAmount",
|
|
455
|
+
type: "uint256",
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
internalType: "uint256",
|
|
459
|
+
name: "dailyCardBuyLimit",
|
|
460
|
+
type: "uint256",
|
|
461
|
+
},
|
|
462
|
+
],
|
|
463
|
+
stateMutability: "view",
|
|
464
|
+
type: "function",
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
inputs: [
|
|
468
|
+
{
|
|
469
|
+
internalType: "address",
|
|
470
|
+
name: "",
|
|
471
|
+
type: "address",
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
name: "cardPurchases",
|
|
475
|
+
outputs: [
|
|
476
|
+
{
|
|
477
|
+
internalType: "uint256",
|
|
478
|
+
name: "unixInRecord",
|
|
479
|
+
type: "uint256",
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
internalType: "uint256",
|
|
483
|
+
name: "totalCardBoughtPerDay",
|
|
484
|
+
type: "uint256",
|
|
485
|
+
},
|
|
486
|
+
],
|
|
487
|
+
stateMutability: "view",
|
|
488
|
+
type: "function",
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
inputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "uint256",
|
|
494
|
+
name: "amount",
|
|
495
|
+
type: "uint256",
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
name: "depositUsdc",
|
|
499
|
+
outputs: [],
|
|
500
|
+
stateMutability: "nonpayable",
|
|
501
|
+
type: "function",
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
inputs: [
|
|
505
|
+
{
|
|
506
|
+
internalType: "uint256",
|
|
507
|
+
name: "",
|
|
508
|
+
type: "uint256",
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
name: "feeTiers",
|
|
512
|
+
outputs: [
|
|
513
|
+
{
|
|
514
|
+
internalType: "uint256",
|
|
515
|
+
name: "minAmount",
|
|
516
|
+
type: "uint256",
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
internalType: "uint256",
|
|
520
|
+
name: "maxAmount",
|
|
521
|
+
type: "uint256",
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
internalType: "uint256",
|
|
525
|
+
name: "fee",
|
|
526
|
+
type: "uint256",
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
stateMutability: "view",
|
|
530
|
+
type: "function",
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
inputs: [
|
|
534
|
+
{
|
|
535
|
+
internalType: "uint256",
|
|
536
|
+
name: "amount",
|
|
537
|
+
type: "uint256",
|
|
538
|
+
},
|
|
539
|
+
],
|
|
540
|
+
name: "generateYield",
|
|
541
|
+
outputs: [],
|
|
542
|
+
stateMutability: "nonpayable",
|
|
543
|
+
type: "function",
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
inputs: [
|
|
547
|
+
{
|
|
548
|
+
internalType: "address",
|
|
549
|
+
name: "tokenAddress",
|
|
550
|
+
type: "address",
|
|
551
|
+
},
|
|
552
|
+
],
|
|
553
|
+
name: "getCustomTokenFee",
|
|
554
|
+
outputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "uint256",
|
|
557
|
+
name: "customizedFee",
|
|
558
|
+
type: "uint256",
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
stateMutability: "view",
|
|
562
|
+
type: "function",
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
inputs: [
|
|
566
|
+
{
|
|
567
|
+
internalType: "uint256",
|
|
568
|
+
name: "amount",
|
|
569
|
+
type: "uint256",
|
|
570
|
+
},
|
|
571
|
+
],
|
|
572
|
+
name: "getFee",
|
|
573
|
+
outputs: [
|
|
574
|
+
{
|
|
575
|
+
internalType: "uint256",
|
|
576
|
+
name: "",
|
|
577
|
+
type: "uint256",
|
|
578
|
+
},
|
|
579
|
+
],
|
|
580
|
+
stateMutability: "view",
|
|
581
|
+
type: "function",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
inputs: [],
|
|
585
|
+
name: "getFeeTiers",
|
|
586
|
+
outputs: [
|
|
587
|
+
{
|
|
588
|
+
components: [
|
|
589
|
+
{
|
|
590
|
+
internalType: "uint256",
|
|
591
|
+
name: "minAmount",
|
|
592
|
+
type: "uint256",
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
internalType: "uint256",
|
|
596
|
+
name: "maxAmount",
|
|
597
|
+
type: "uint256",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
internalType: "uint256",
|
|
601
|
+
name: "fee",
|
|
602
|
+
type: "uint256",
|
|
603
|
+
},
|
|
604
|
+
],
|
|
605
|
+
internalType: "struct ZebecCard.FeeTier[]",
|
|
606
|
+
name: "",
|
|
607
|
+
type: "tuple[]",
|
|
608
|
+
},
|
|
609
|
+
],
|
|
610
|
+
stateMutability: "view",
|
|
611
|
+
type: "function",
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
inputs: [],
|
|
615
|
+
name: "getReloadableFee",
|
|
616
|
+
outputs: [
|
|
617
|
+
{
|
|
618
|
+
internalType: "uint256",
|
|
619
|
+
name: "",
|
|
620
|
+
type: "uint256",
|
|
621
|
+
},
|
|
622
|
+
],
|
|
623
|
+
stateMutability: "view",
|
|
624
|
+
type: "function",
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
inputs: [
|
|
628
|
+
{
|
|
629
|
+
components: [
|
|
630
|
+
{
|
|
631
|
+
internalType: "uint256",
|
|
632
|
+
name: "nativeFee",
|
|
633
|
+
type: "uint256",
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
internalType: "uint256",
|
|
637
|
+
name: "nonNativeFee",
|
|
638
|
+
type: "uint256",
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
internalType: "uint256",
|
|
642
|
+
name: "revenueFee",
|
|
643
|
+
type: "uint256",
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
internalType: "uint256",
|
|
647
|
+
name: "counter",
|
|
648
|
+
type: "uint256",
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
internalType: "address",
|
|
652
|
+
name: "cardVault",
|
|
653
|
+
type: "address",
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
internalType: "address",
|
|
657
|
+
name: "revenueVault",
|
|
658
|
+
type: "address",
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
internalType: "address",
|
|
662
|
+
name: "commissionVault",
|
|
663
|
+
type: "address",
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
internalType: "address",
|
|
667
|
+
name: "usdcAddress",
|
|
668
|
+
type: "address",
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
internalType: "uint256",
|
|
672
|
+
name: "minCardAmount",
|
|
673
|
+
type: "uint256",
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
internalType: "uint256",
|
|
677
|
+
name: "maxCardAmount",
|
|
678
|
+
type: "uint256",
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
internalType: "uint256",
|
|
682
|
+
name: "dailyCardBuyLimit",
|
|
683
|
+
type: "uint256",
|
|
684
|
+
},
|
|
685
|
+
],
|
|
686
|
+
internalType: "struct ZebecCard.CardConfig",
|
|
687
|
+
name: "card_config",
|
|
688
|
+
type: "tuple",
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
components: [
|
|
692
|
+
{
|
|
693
|
+
internalType: "uint256",
|
|
694
|
+
name: "minAmount",
|
|
695
|
+
type: "uint256",
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
internalType: "uint256",
|
|
699
|
+
name: "maxAmount",
|
|
700
|
+
type: "uint256",
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
internalType: "uint256",
|
|
704
|
+
name: "fee",
|
|
705
|
+
type: "uint256",
|
|
706
|
+
},
|
|
707
|
+
],
|
|
708
|
+
internalType: "struct ZebecCard.FeeTier[]",
|
|
709
|
+
name: "fee_tiers",
|
|
710
|
+
type: "tuple[]",
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
internalType: "address",
|
|
714
|
+
name: "inch_router",
|
|
715
|
+
type: "address",
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
internalType: "address",
|
|
719
|
+
name: "weth",
|
|
720
|
+
type: "address",
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
internalType: "address",
|
|
724
|
+
name: "zbc_token",
|
|
725
|
+
type: "address",
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
internalType: "address",
|
|
729
|
+
name: "aave_pool",
|
|
730
|
+
type: "address",
|
|
731
|
+
},
|
|
732
|
+
],
|
|
733
|
+
name: "initialize",
|
|
734
|
+
outputs: [],
|
|
735
|
+
stateMutability: "nonpayable",
|
|
736
|
+
type: "function",
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
inputs: [],
|
|
740
|
+
name: "oneInchRouter",
|
|
741
|
+
outputs: [
|
|
742
|
+
{
|
|
743
|
+
internalType: "address",
|
|
744
|
+
name: "",
|
|
745
|
+
type: "address",
|
|
746
|
+
},
|
|
747
|
+
],
|
|
748
|
+
stateMutability: "view",
|
|
749
|
+
type: "function",
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
inputs: [],
|
|
753
|
+
name: "owner",
|
|
754
|
+
outputs: [
|
|
755
|
+
{
|
|
756
|
+
internalType: "address",
|
|
757
|
+
name: "",
|
|
758
|
+
type: "address",
|
|
759
|
+
},
|
|
760
|
+
],
|
|
761
|
+
stateMutability: "view",
|
|
762
|
+
type: "function",
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
inputs: [],
|
|
766
|
+
name: "proxiableUUID",
|
|
767
|
+
outputs: [
|
|
768
|
+
{
|
|
769
|
+
internalType: "bytes32",
|
|
770
|
+
name: "",
|
|
771
|
+
type: "bytes32",
|
|
772
|
+
},
|
|
773
|
+
],
|
|
774
|
+
stateMutability: "view",
|
|
775
|
+
type: "function",
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
inputs: [],
|
|
779
|
+
name: "reloadableFee",
|
|
780
|
+
outputs: [
|
|
781
|
+
{
|
|
782
|
+
internalType: "uint256",
|
|
783
|
+
name: "",
|
|
784
|
+
type: "uint256",
|
|
785
|
+
},
|
|
786
|
+
],
|
|
787
|
+
stateMutability: "view",
|
|
788
|
+
type: "function",
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
inputs: [],
|
|
792
|
+
name: "renounceOwnership",
|
|
793
|
+
outputs: [],
|
|
794
|
+
stateMutability: "nonpayable",
|
|
795
|
+
type: "function",
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
inputs: [
|
|
799
|
+
{
|
|
800
|
+
internalType: "address",
|
|
801
|
+
name: "cardVault",
|
|
802
|
+
type: "address",
|
|
803
|
+
},
|
|
804
|
+
],
|
|
805
|
+
name: "setCardVault",
|
|
806
|
+
outputs: [],
|
|
807
|
+
stateMutability: "nonpayable",
|
|
808
|
+
type: "function",
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
inputs: [
|
|
812
|
+
{
|
|
813
|
+
internalType: "address",
|
|
814
|
+
name: "commissionVault",
|
|
815
|
+
type: "address",
|
|
816
|
+
},
|
|
817
|
+
],
|
|
818
|
+
name: "setComissionVault",
|
|
819
|
+
outputs: [],
|
|
820
|
+
stateMutability: "nonpayable",
|
|
821
|
+
type: "function",
|
|
822
|
+
},
|
|
823
|
+
{
|
|
824
|
+
inputs: [
|
|
825
|
+
{
|
|
826
|
+
internalType: "address",
|
|
827
|
+
name: "tokenAddress",
|
|
828
|
+
type: "address",
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
internalType: "uint256",
|
|
832
|
+
name: "customizedFee",
|
|
833
|
+
type: "uint256",
|
|
834
|
+
},
|
|
835
|
+
],
|
|
836
|
+
name: "setCustomTokenFee",
|
|
837
|
+
outputs: [],
|
|
838
|
+
stateMutability: "nonpayable",
|
|
839
|
+
type: "function",
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
inputs: [
|
|
843
|
+
{
|
|
844
|
+
internalType: "uint256",
|
|
845
|
+
name: "dailyCardBuyLimit",
|
|
846
|
+
type: "uint256",
|
|
847
|
+
},
|
|
848
|
+
],
|
|
849
|
+
name: "setDailyCardBuyLimit",
|
|
850
|
+
outputs: [],
|
|
851
|
+
stateMutability: "nonpayable",
|
|
852
|
+
type: "function",
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
inputs: [
|
|
856
|
+
{
|
|
857
|
+
internalType: "uint256",
|
|
858
|
+
name: "minAmount",
|
|
859
|
+
type: "uint256",
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
internalType: "uint256",
|
|
863
|
+
name: "maxAmount",
|
|
864
|
+
type: "uint256",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
internalType: "uint256",
|
|
868
|
+
name: "fee",
|
|
869
|
+
type: "uint256",
|
|
870
|
+
},
|
|
871
|
+
],
|
|
872
|
+
name: "setFee",
|
|
873
|
+
outputs: [],
|
|
874
|
+
stateMutability: "nonpayable",
|
|
875
|
+
type: "function",
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
inputs: [
|
|
879
|
+
{
|
|
880
|
+
components: [
|
|
881
|
+
{
|
|
882
|
+
internalType: "uint256",
|
|
883
|
+
name: "minAmount",
|
|
884
|
+
type: "uint256",
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
internalType: "uint256",
|
|
888
|
+
name: "maxAmount",
|
|
889
|
+
type: "uint256",
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
internalType: "uint256",
|
|
893
|
+
name: "fee",
|
|
894
|
+
type: "uint256",
|
|
895
|
+
},
|
|
896
|
+
],
|
|
897
|
+
internalType: "struct ZebecCard.FeeTier[]",
|
|
898
|
+
name: "newTiers",
|
|
899
|
+
type: "tuple[]",
|
|
900
|
+
},
|
|
901
|
+
],
|
|
902
|
+
name: "setFeeArray",
|
|
903
|
+
outputs: [],
|
|
904
|
+
stateMutability: "nonpayable",
|
|
905
|
+
type: "function",
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
inputs: [
|
|
909
|
+
{
|
|
910
|
+
internalType: "uint256",
|
|
911
|
+
name: "maxAmount",
|
|
912
|
+
type: "uint256",
|
|
913
|
+
},
|
|
914
|
+
],
|
|
915
|
+
name: "setMaxCardAmount",
|
|
916
|
+
outputs: [],
|
|
917
|
+
stateMutability: "nonpayable",
|
|
918
|
+
type: "function",
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
inputs: [
|
|
922
|
+
{
|
|
923
|
+
internalType: "uint256",
|
|
924
|
+
name: "minAmount",
|
|
925
|
+
type: "uint256",
|
|
926
|
+
},
|
|
927
|
+
],
|
|
928
|
+
name: "setMinCardAmount",
|
|
929
|
+
outputs: [],
|
|
930
|
+
stateMutability: "nonpayable",
|
|
931
|
+
type: "function",
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
inputs: [
|
|
935
|
+
{
|
|
936
|
+
internalType: "uint256",
|
|
937
|
+
name: "nativeFee",
|
|
938
|
+
type: "uint256",
|
|
939
|
+
},
|
|
940
|
+
],
|
|
941
|
+
name: "setNativeFee",
|
|
942
|
+
outputs: [],
|
|
943
|
+
stateMutability: "nonpayable",
|
|
944
|
+
type: "function",
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
inputs: [
|
|
948
|
+
{
|
|
949
|
+
internalType: "uint256",
|
|
950
|
+
name: "nonNativeFee",
|
|
951
|
+
type: "uint256",
|
|
952
|
+
},
|
|
953
|
+
],
|
|
954
|
+
name: "setNonNativeFee",
|
|
955
|
+
outputs: [],
|
|
956
|
+
stateMutability: "nonpayable",
|
|
957
|
+
type: "function",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
inputs: [
|
|
961
|
+
{
|
|
962
|
+
internalType: "uint256",
|
|
963
|
+
name: "fee",
|
|
964
|
+
type: "uint256",
|
|
965
|
+
},
|
|
966
|
+
],
|
|
967
|
+
name: "setReloadableFee",
|
|
968
|
+
outputs: [],
|
|
969
|
+
stateMutability: "nonpayable",
|
|
970
|
+
type: "function",
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
inputs: [
|
|
974
|
+
{
|
|
975
|
+
internalType: "uint256",
|
|
976
|
+
name: "revenueFee",
|
|
977
|
+
type: "uint256",
|
|
978
|
+
},
|
|
979
|
+
],
|
|
980
|
+
name: "setRevenueFee",
|
|
981
|
+
outputs: [],
|
|
982
|
+
stateMutability: "nonpayable",
|
|
983
|
+
type: "function",
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
inputs: [
|
|
987
|
+
{
|
|
988
|
+
internalType: "address",
|
|
989
|
+
name: "revenueVault",
|
|
990
|
+
type: "address",
|
|
991
|
+
},
|
|
992
|
+
],
|
|
993
|
+
name: "setRevenueVault",
|
|
994
|
+
outputs: [],
|
|
995
|
+
stateMutability: "nonpayable",
|
|
996
|
+
type: "function",
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
inputs: [
|
|
1000
|
+
{
|
|
1001
|
+
internalType: "address",
|
|
1002
|
+
name: "usdcAddress",
|
|
1003
|
+
type: "address",
|
|
1004
|
+
},
|
|
1005
|
+
],
|
|
1006
|
+
name: "setUsdcAddress",
|
|
1007
|
+
outputs: [],
|
|
1008
|
+
stateMutability: "nonpayable",
|
|
1009
|
+
type: "function",
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
inputs: [
|
|
1013
|
+
{
|
|
1014
|
+
internalType: "contract IAggregationExecutor",
|
|
1015
|
+
name: "executor",
|
|
1016
|
+
type: "address",
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
components: [
|
|
1020
|
+
{
|
|
1021
|
+
internalType: "contract IERC20",
|
|
1022
|
+
name: "srcToken",
|
|
1023
|
+
type: "address",
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
internalType: "contract IERC20",
|
|
1027
|
+
name: "dstToken",
|
|
1028
|
+
type: "address",
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
internalType: "address payable",
|
|
1032
|
+
name: "srcReceiver",
|
|
1033
|
+
type: "address",
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
internalType: "address payable",
|
|
1037
|
+
name: "dstReceiver",
|
|
1038
|
+
type: "address",
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
internalType: "uint256",
|
|
1042
|
+
name: "amount",
|
|
1043
|
+
type: "uint256",
|
|
1044
|
+
},
|
|
1045
|
+
{
|
|
1046
|
+
internalType: "uint256",
|
|
1047
|
+
name: "minReturnAmount",
|
|
1048
|
+
type: "uint256",
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
internalType: "uint256",
|
|
1052
|
+
name: "flags",
|
|
1053
|
+
type: "uint256",
|
|
1054
|
+
},
|
|
1055
|
+
],
|
|
1056
|
+
internalType: "struct IAggregationRouterV6.SwapDescription",
|
|
1057
|
+
name: "desc",
|
|
1058
|
+
type: "tuple",
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
internalType: "bytes",
|
|
1062
|
+
name: "routeData",
|
|
1063
|
+
type: "bytes",
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
internalType: "string",
|
|
1067
|
+
name: "cardType",
|
|
1068
|
+
type: "string",
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
internalType: "string",
|
|
1072
|
+
name: "userEmail",
|
|
1073
|
+
type: "string",
|
|
1074
|
+
},
|
|
1075
|
+
],
|
|
1076
|
+
name: "swapAndBuy",
|
|
1077
|
+
outputs: [],
|
|
1078
|
+
stateMutability: "payable",
|
|
1079
|
+
type: "function",
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
inputs: [
|
|
1083
|
+
{
|
|
1084
|
+
internalType: "contract IAggregationExecutor",
|
|
1085
|
+
name: "executor",
|
|
1086
|
+
type: "address",
|
|
1087
|
+
},
|
|
1088
|
+
{
|
|
1089
|
+
components: [
|
|
1090
|
+
{
|
|
1091
|
+
internalType: "contract IERC20",
|
|
1092
|
+
name: "srcToken",
|
|
1093
|
+
type: "address",
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
internalType: "contract IERC20",
|
|
1097
|
+
name: "dstToken",
|
|
1098
|
+
type: "address",
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
internalType: "address payable",
|
|
1102
|
+
name: "srcReceiver",
|
|
1103
|
+
type: "address",
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
internalType: "address payable",
|
|
1107
|
+
name: "dstReceiver",
|
|
1108
|
+
type: "address",
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
internalType: "uint256",
|
|
1112
|
+
name: "amount",
|
|
1113
|
+
type: "uint256",
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
internalType: "uint256",
|
|
1117
|
+
name: "minReturnAmount",
|
|
1118
|
+
type: "uint256",
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
internalType: "uint256",
|
|
1122
|
+
name: "flags",
|
|
1123
|
+
type: "uint256",
|
|
1124
|
+
},
|
|
1125
|
+
],
|
|
1126
|
+
internalType: "struct IAggregationRouterV6.SwapDescription",
|
|
1127
|
+
name: "desc",
|
|
1128
|
+
type: "tuple",
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
internalType: "bytes",
|
|
1132
|
+
name: "routeData",
|
|
1133
|
+
type: "bytes",
|
|
1134
|
+
},
|
|
1135
|
+
],
|
|
1136
|
+
name: "swapAndDeposit",
|
|
1137
|
+
outputs: [],
|
|
1138
|
+
stateMutability: "payable",
|
|
1139
|
+
type: "function",
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
inputs: [
|
|
1143
|
+
{
|
|
1144
|
+
internalType: "address",
|
|
1145
|
+
name: "newOwner",
|
|
1146
|
+
type: "address",
|
|
1147
|
+
},
|
|
1148
|
+
],
|
|
1149
|
+
name: "transferOwnership",
|
|
1150
|
+
outputs: [],
|
|
1151
|
+
stateMutability: "nonpayable",
|
|
1152
|
+
type: "function",
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
inputs: [
|
|
1156
|
+
{
|
|
1157
|
+
internalType: "address",
|
|
1158
|
+
name: "newImplementation",
|
|
1159
|
+
type: "address",
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
internalType: "bytes",
|
|
1163
|
+
name: "data",
|
|
1164
|
+
type: "bytes",
|
|
1165
|
+
},
|
|
1166
|
+
],
|
|
1167
|
+
name: "upgradeToAndCall",
|
|
1168
|
+
outputs: [],
|
|
1169
|
+
stateMutability: "payable",
|
|
1170
|
+
type: "function",
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
inputs: [],
|
|
1174
|
+
name: "wEth",
|
|
1175
|
+
outputs: [
|
|
1176
|
+
{
|
|
1177
|
+
internalType: "address",
|
|
1178
|
+
name: "",
|
|
1179
|
+
type: "address",
|
|
1180
|
+
},
|
|
1181
|
+
],
|
|
1182
|
+
stateMutability: "view",
|
|
1183
|
+
type: "function",
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
inputs: [
|
|
1187
|
+
{
|
|
1188
|
+
internalType: "uint256",
|
|
1189
|
+
name: "amount",
|
|
1190
|
+
type: "uint256",
|
|
1191
|
+
},
|
|
1192
|
+
],
|
|
1193
|
+
name: "withdraw",
|
|
1194
|
+
outputs: [],
|
|
1195
|
+
stateMutability: "nonpayable",
|
|
1196
|
+
type: "function",
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
inputs: [
|
|
1200
|
+
{
|
|
1201
|
+
internalType: "uint256",
|
|
1202
|
+
name: "amount",
|
|
1203
|
+
type: "uint256",
|
|
1204
|
+
},
|
|
1205
|
+
],
|
|
1206
|
+
name: "withdrawYield",
|
|
1207
|
+
outputs: [],
|
|
1208
|
+
stateMutability: "nonpayable",
|
|
1209
|
+
type: "function",
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
inputs: [],
|
|
1213
|
+
name: "zebecToken",
|
|
1214
|
+
outputs: [
|
|
1215
|
+
{
|
|
1216
|
+
internalType: "address",
|
|
1217
|
+
name: "",
|
|
1218
|
+
type: "address",
|
|
1219
|
+
},
|
|
1220
|
+
],
|
|
1221
|
+
stateMutability: "view",
|
|
1222
|
+
type: "function",
|
|
1223
|
+
},
|
|
1224
|
+
];
|
|
1225
|
+
const _bytecode = "0x60a0806040523461002a57306080526135b49081610030823960805181818161153201526115ec0152f35b600080fdfe6080604052600436101561001257600080fd5b6000803560e01c8063144354451461272d578063145096d5146122ec578063166dbb73146121b857806318aae52c1461185a5780631d4247ab14612179578063230ed44a1461212d5780632357928e14611fdb5780632661572414611b835780632e1a7d4d14611ac557806337cf533114611a3f578063444cc65914611a1c578063458e551e1461187857806346a842181461185a57806348455ff0146118375780634d68e925146117f85780634f1ef286146115ac57806352d1902d146115175780635b65b9ab146114015780636ca035d3146113ab5780636ca75e9514610fd957806371036a4914610d51578063715018a614610cd55780638da5cb5b14610c8f578063a03e4bc314610c68578063a53ebd8a14610a82578063a5b7ac7e14610a40578063ab31978f146105e5578063ac3af208146105be578063ad3cb1cc1461055c578063b0d097de14610539578063b573dca714610512578063b91a1e8f146104f0578063bea9c43e146104cd578063cdec976f14610436578063d38bcdee146103f7578063d895a46b146103b8578063df6d921214610391578063e591f2ff1461036e578063e9a4d24f14610279578063f076a84614610241578063f2fde38b146102145763fcee45f4146101eb57600080fd5b34610211576020366003190112610211576020610209600435612f8e565b604051908152f35b80fd5b50346102115760203660031901126102115761023e6102316127aa565b61023961302b565b612ef0565b80f35b50346102115760203660031901126102115760406020916001600160a01b036102686127aa565b168152601183522054604051908152f35b5034610211578060031936011261021157601254610296816127c0565b906102a46040519283612788565b8082526012835260209182810191847fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444845b83831061032e57505050506040519280840191818552518092526040840192945b8281106103045784840385f35b855180518552808301518584015260409081015190850152948101946060909301926001016102f7565b60038760019260409a9997989a5161034581612750565b8554815284860154838201526002860154604082015281520192019201919096949395966102d6565b50346102115760203660031901126102115761038861302b565b60043560015580f35b503461021157806003193601126102115760206001600160a01b03600c5416604051908152f35b5034610211576020366003190112610211576001600160a01b036103da6127aa565b6103e261302b565b166001600160a01b0319600454161760045580f35b5034610211576020366003190112610211576001600160a01b036104196127aa565b61042161302b565b166001600160a01b0319600754161760075580f35b5034610211576040366003190112610211576104506127aa565b61045861302b565b60405190604082019082821067ffffffffffffffff8311176104b7576001916040526001600160a01b03809116908184526020840191602435835285526014602052604085209351166001600160a01b03198454161783555191015580f35b634e487b7160e01b600052604160045260246000fd5b5034610211576020366003190112610211576104e761302b565b600435600a5580f35b50346102115760203660031901126102115761050a61302b565b600435815580f35b503461021157806003193601126102115760206001600160a01b03600d5416604051908152f35b50346102115760203660031901126102115761055361302b565b60043560095580f35b50346102115780600319360112610211576105ba60405161057c8161276c565b600581527f352e302e300000000000000000000000000000000000000000000000000000006020820152604051918291602083526020830190612a13565b0390f35b503461021157806003193601126102115760206001600160a01b03600b5416604051908152f35b503461021157602080600319360112610a3c5760043590610607331515612b8b565b610612821515612af5565b6001600160a01b039182600e541683600754166040519182917f35ea6a7500000000000000000000000000000000000000000000000000000000835260048301528160246101e09485935afa9081156108b657859287926108c1575b50506101000151163385526011835261069561068e8360408820546130e1565b9190612b40565b338087526011855260408088209290925590516323b872dd60e01b8152600481019190915230602482015260448101839052838160648189865af19081156108b6578691610899575b501561085557600e5460405163095ea7b360e01b81529085166001600160a01b03166004820152602481018390529190839083908188816044810103925af191821561084a57839261073791879161081d575b50612e74565b606484600e541694600754168660405196879485937f69328dec000000000000000000000000000000000000000000000000000000008552600485015260248401523060448401525af19182156108125783926107be575b507ff09b3678dd1b265d3e2d9f681481c92d1cdd81b6e19fa43651707dedf99263a8906040519283523392a280f35b9080925081813d831161080b575b6107d68183612788565b810103126108065751907ff09b3678dd1b265d3e2d9f681481c92d1cdd81b6e19fa43651707dedf99263a861078f565b600080fd5b503d6107cc565b6040513d85823e3d90fd5b61083d9150843d8611610843575b6108358183612788565b810190612c6c565b38610731565b503d61082b565b6040513d87823e3d90fd5b6064836040519062461bcd60e51b82526004820152601660248201527f61546f6b656e207472616e73666572206661696c6564000000000000000000006044820152fd5b6108b09150843d8611610843576108358183612788565b386106de565b6040513d88823e3d90fd5b8193508092503d8311610a35575b6108d98183612788565b810103818112610a2d576040519182019067ffffffffffffffff90838310828411176104b75786908360405212610a31576102008301908111828210176104b75760405282518152815261092e848301612ebf565b8482015261093e60408301612ebf565b604082015261094f60608301612ebf565b606082015261096060808301612ebf565b608082015261097160a08301612ebf565b60a082015260c082015164ffffffffff81168103610a2d5760c082015260e08201519061ffff82168203610a2d5785926101009260e0830152826109b6818301612edc565b908301526101206109c8818301612edc565b908301526101406109da818301612edc565b908301526101606109ec818301612edc565b908301526101806109fe818301612ebf565b908301526101a0610a10818301612ebf565b90830152610a226101c0809201612ebf565b90820152903861066e565b8680fd5b8780fd5b503d6108cf565b5080fd5b503461021157602036600319011261021157604080916001600160a01b03610a666127aa565b1681526010602052206001815491015482519182526020820152f35b503461021157610a91366129a6565b916001600160a01b03806007541690610aab331515612b8b565b60085483101580610c5c575b610ac090612d9c565b338652602060118152604087205490848210610c3e5792610bf692610bec610b3a9360108897610b4660408e610b3f8c6127107f7747419eb85d2a64ce5c3fd1bf01b54b47cdcfb621ac43741f8460d4f3ed40cb9f610b21610b2791612f8e565b83612a38565b0497610b3389836130fa565b9d90612b40565b6130fa565b9390612b40565b338152601184522055610b5a600354612de7565b6003558c89610b6842613165565b919091338552868652610b7e6040862054613165565b93919091149384610c34575b505082610c2a575b505015610c13575060016040610bbe92338152858552610bb78d8484842001546130e1565b9490612b40565b3381528585522001555b338d5252610be1600160408d200154600a541015612df6565b826005541684613113565b6004541690613113565b60035493610c0d6040519283923396429285612e41565b0390a380f35b906040600191338152858552204281550155610bc8565b1490503880610b92565b1492503880610b8a565b6044858360405191634787a10360e11b835260048301526024820152fd5b50600954831115610ab7565b503461021157806003193601126102115760206001600160a01b03600e5416604051908152f35b503461021157806003193601126102115760206001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005416604051908152f35b5034610211578060031936011261021157610cee61302b565b60006001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993008054906001600160a01b031982169055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b503461021157610d60366129a6565b916001600160a01b03806007541690610d7a331515612b8b565b60085483101580610fcd575b610d8f90612d9c565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523360048201526020908181602481875afa908115610fc2578891610f95575b50848110610f7757508392610bf692610f2a610e9393610e147f7747419eb85d2a64ce5c3fd1bf01b54b47cdcfb621ac43741f8460d4f3ed40cb98612f8e565b5088604051610e3f838281610e3281830196878151938492016129f0565b8101038084520182612788565b519020604051828101906972656c6f616461626c6560b01b8252600a8152610e668161276c565b51902003610f61576010612710610e80600f545b8a612a38565b0491610e8c838a6130fa565b9790612b40565b610e9e600354612de7565b6003558c89610eac42613165565b919091338552868652610ec26040862054613165565b93919091149384610f57575b505082610f4d575b505015610f36575060016040610efb92338152858552610bb78d8484842001546130e1565b3381528585522001555b338d5252610f1e600160408d200154600a541015612df6565b8260055416338561308e565b6004541690339061308e565b906040600191338152858552204281550155610f05565b1490503880610ed6565b1492503880610ece565b6010612710610e80610f728a612f8e565b610e7a565b8460449160405191634787a10360e11b835260048301526024820152fd5b90508181813d8311610fbb575b610fac8183612788565b81010312610806575138610dd4565b503d610fa2565b6040513d8a823e3d90fd5b50600954831115610d86565b5061012036600319011261021157610fef6127aa565b90610ff9366128b5565b67ffffffffffffffff9290610104358481116113a75761101d90369060040161295f565b916001600160a01b039160209561103e848884015116856007541614612bd6565b61104f846060840151163014612c21565b838251169484600c541686141593608084019361106f855130338b61308e565b600b54855160405163095ea7b360e01b81529189166001600160a01b0316600483015260248201528a816044818d8d5af190811561139c57916110c6604094926110e899989796948e8e9261137f575b5050612c84565b88600b5416918451988994859384936307ed237960e01b855260048501612ce5565b039134905af19283156113745787948894611339575b509061111a9161110f861515612d51565b610b3f8585516130fa565b826111ea575b505050610c0d906111ae60118899610b3f61118f61119e6127106111828d9e9d8d9e9d60407fd8066379a11f110d1eb579110571ce47b1557c623d7ae29f423d92cd6dd953be9f60015493815260148a5220908154166111de575b508c612a38565b04809c610bb7828d6130fa565b60075460055482169116613113565b338d5283835260408d20546130e1565b338b5252604089205551946040519384933397859094939260609260808301968352602083015260408201520152565b6001915001543861117b565b156112555750906111ae60118899610b3f61118f61119e6127106111828d9e9d8d9e9d60407fd8066379a11f110d1eb579110571ce47b1557c623d7ae29f423d92cd6dd953be9f61123f610c0d9e3386613113565b5050505050505050509998979650829350611120565b60405189810192918311818410176104b7578289939284809493819460405252335af16112806133a1565b50156112cf57610c0d906111ae60118899610b3f61118f61119e6127106111828d9e9d8d9e9d60407fd8066379a11f110d1eb579110571ce47b1557c623d7ae29f423d92cd6dd953be9f61123f565b6084876040519062461bcd60e51b82526004820152602660248201527f5472616e7366657248656c7065723a204e41544956455f5452414e534645525f60448201527f4641494c454400000000000000000000000000000000000000000000000000006064820152fd5b61111a92955061136291945060403d60401161136d575b61135a8183612788565b810190612ccf565b9490949390916110fe565b503d611350565b6040513d89823e3d90fd5b6113959250803d10610843576108358183612788565b388e6110bf565b6040513d8c823e3d90fd5b8380fd5b50346102115760203660031901126102115760406113c76127aa565b916001600160a01b03809316815260146020522090815416156000146113f557506020600154604051908152f35b60016020910154610209565b50346102115760603660031901126102115760443560043561142161302b565b8291835b60125481101561150f5761143881612864565b5054831015806114f8575b61144f57600101611425565b8192935061145e600291612864565b50015560015b1561146d578280f35b6040519161147a83612750565b825260243560208301526040820152601254680100000000000000008110156114e4578060016114ad9201601255612864565b6114d157815181556020820151600182015560409091015160029091015538808280f35b602483634e487b7160e01b815280600452fd5b602483634e487b7160e01b81526041600452fd5b50600161150482612864565b500154831115611443565b509091611464565b50346102115780600319360112610211576001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001630036115825760206040517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc8152f35b60046040517fe07c8dba000000000000000000000000000000000000000000000000000000008152fd5b506040366003190112610211576115c16127aa565b60243567ffffffffffffffff81116117f4576115e190369060040161295f565b6001600160a01b03807f0000000000000000000000000000000000000000000000000000000000000000168030149081156117c6575b506115825761162461302b565b8216916040517f52d1902d000000000000000000000000000000000000000000000000000000008152602081600481875afa85918161178e575b5061167b5760248460405190634c9c8ce360e01b82526004820152fd5b9284937f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc9081810361175d5750823b156117455780546001600160a01b0319168217905560405184917fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8380a283511561171057508083602061170c95519101845af46117066133a1565b916134eb565b5080f35b925050503461171d575080f35b807fb398979f0000000000000000000000000000000000000000000000000000000060049252fd5b60248260405190634c9c8ce360e01b82526004820152fd5b602490604051907faa1d49a40000000000000000000000000000000000000000000000000000000082526004820152fd5b9091506020813d6020116117be575b816117aa60209383612788565b810103126117ba5751903861165e565b8580fd5b3d915061179d565b9050817f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc5416141538611617565b8280fd5b5034610211576020366003190112610211576001600160a01b0361181a6127aa565b61182261302b565b166001600160a01b0319600554161760055580f35b50346102115760203660031901126102115761185161302b565b60043560085580f35b50346102115780600319360112610211576020600f54604051908152f35b503461021157602080600319360112610a3c576004356001600160a01b039182600754166118a7331515612b8b565b6118b2831515612af5565b3385526011825260408520548381106119fe5782848094936118db61068e8a9861191f966130fa565b33885260118452604088205587600e54168760405180968195829463095ea7b360e01b845260048401602090939291936001600160a01b0360408201951681520152565b03925af19081156119f35761193c9285926119d6575b5050612e74565b82600e54169260075416833b156117f4576084908360405195869485937f617ba037000000000000000000000000000000000000000000000000000000008552600485015260248401523360448401528160648401525af180156119cb576119a2575080f35b67ffffffffffffffff81116119b75760405280f35b602482634e487b7160e01b81526041600452fd5b6040513d84823e3d90fd5b6119ec9250803d10610843576108358183612788565b3880611935565b6040513d86823e3d90fd5b8360449160405191634787a10360e11b835260048301526024820152fd5b503461021157602036600319011261021157611a3661302b565b600435600f5580f35b503461021157806003193601126102115761016090546001546002546003546001600160a01b03806004541690806005541681600654169160075416926008549460095496600a54986040519a8b5260208b015260408a01526060890152608088015260a087015260c086015260e0850152610100840152610120830152610140820152f35b5034610211576020366003190112610211576004356001600160a01b0360075416611af1821515612af5565b611afc331515612b8b565b33835260116020526040832054828110611b6557611b3691611b2261068e8580946130fa565b338652601160205260408620553390613113565b6040519081527f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d560203392a280f35b8260449160405191634787a10360e11b835260048301526024820152fd5b5061016036600319011261021157611b996127aa565b611ba2366128b5565b67ffffffffffffffff61010435818111611fd757611bc490369060040161295f565b91610124358281116117ba57611bde90369060040161295f565b92610144359283116117ba57611bfb611c9793369060040161295f565b94611c07331515612b8b565b611c2a6001600160a01b036020850151166001600160a01b036007541614612bd6565b611c426001600160a01b036060850151163014612c21565b6001600160a01b0383511691611c5e608085015130338661308e565b600b54608085015160405163095ea7b360e01b81526001600160a01b039092166004830152602482015294602090869081906044820190565b03818b875af1918215610fc257611cbb604093611ce5978b91611fb8575b50612c84565b846001600160a01b03600b5416918451978894859384936307ed237960e01b855260048501612ce5565b039134905af180156108b65786938791611f93575b50611d06841515612d51565b84611d30600154848a52601460205260408a206001600160a01b03815416611f87575b5086612a38565b612710900494859289611d4385846130fa565b97611d4f899692612b40565b600854861015611e507f7747419eb85d2a64ce5c3fd1bf01b54b47cdcfb621ac43741f8460d4f3ed40cb9b611ee97fd8066379a11f110d1eb579110571ce47b1557c623d7ae29f423d92cd6dd953be99611ed760016040611f239a60809a89611efb9a611f7b575b611dc090612d9c565b611de26001600160a01b0360075416986001600160a01b03600554168a613113565b8251611dfe60208281610e3281830196878151938492016129f0565b519020825160208101906972656c6f616461626c6560b01b8252600a8152611e258161276c565b51902003611f6757612710611e3d600f545b87612a38565b0494611e4986826130fa565b9990612b40565b611e5b600354612de7565b600355611e6742613165565b9190913385526010602052611e7e86862054613165565b93919091149384611f5d575b505082611f53575b505015611f3d5761068e611eb39133845260106020528585852001546130e1565b33825260106020528383832001555b3381526010602052200154600a541015612df6565b6001600160a01b036005541683613113565b6001600160a01b036004541690613113565b0151946040519384933397859094939260609260808301968352602083015260408201520152565b0390a360035493610c0d6040519283923396429285612e41565b3382526010602052838383204281550155611ec2565b1490503880611e92565b1492503880611e8a565b612710611e3d611f7687612f8e565b611e37565b50600954861115611db7565b60019150015438611d29565b9050611faf91935060403d60401161136d5761135a8183612788565b92909238611cfa565b611fd1915060203d602011610843576108358183612788565b38611cb5565b8480fd5b503461021157602080600319360112610a3c57600435906001600160a01b03600754166040517fdd62ed3e0000000000000000000000000000000000000000000000000000000081523360048201523060248201528281604481855afa801561084a57849186916120fc575b50106120b85790612088837f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49361207f821515612af5565b3090339061308e565b338452601181526120a061068e8460408720546130e1565b3385526011825260408520556040519283523392a280f35b6064826040519062461bcd60e51b82526004820152601660248201527f496e73756666696369656e7420616c6c6f77616e6365000000000000000000006044820152fd5b809250848092503d8311612126575b6121158183612788565b81010312611fd75783905138612047565b503d61210b565b5034610211576020366003190112610211576004359060125482101561021157606061215883612864565b50805490600260018201549101549060405192835260208301526040820152f35b5034610211576020366003190112610211576001600160a01b0361219b6127aa565b6121a361302b565b166001600160a01b0319600654161760065580f35b503461021157602080600319360112610a3c5760043567ffffffffffffffff81116117f4576121eb9036906004016127d8565b906121f461302b565b6012548360125580612278575b50602082519261221084612a61565b0190601284527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344484925b848410612245578580f35b6003838261226c600194518690604060029180518455602081015160018501550151910155565b0192019301929061223a565b600390806003029060038204036122d857601285527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec3444908101905b8181106122c1575050612201565b8086849255866001820155866002820155016122b3565b602485634e487b7160e01b81526011600452fd5b50346102115736600319016102008112610a3c57610160809112610a3c5760405190810181811067ffffffffffffffff8211176114e45760405260043581526024356020820152604435604082015260643560608201526084356001600160a01b03811681036117f457608082015260a4356001600160a01b03811681036117f45760a082015260c4356001600160a01b03811681036117f45760c082015260e4356001600160a01b03811681036117f45760e08201526101043561010082015261012435610120820152610144356101408201526101643567ffffffffffffffff81116117f4576123e29036906004016127d8565b61018435916001600160a01b03831683036113a7576101a435926001600160a01b0384168403611fd7576101c435936001600160a01b03851685036117ba576101e435906001600160a01b0382168203610a2d577ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00549567ffffffffffffffff8716158061271f575b600167ffffffffffffffff8916149081612715575b15908161270c575b506126e2576001600160a01b03809492818094600167ffffffffffffffff198c16177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005560ff8b60401c16156126a3575b88518c556020890151600155604089015160025560608901516003556101408260808b015116996001600160a01b03199a8b60045416176004558360a0820151168b60055416176005558360c0820151168b60065416176006558360e0820151168b60075416176007556101008101516008556101208101516009550151600a556125626133d1565b61256a6133d1565b6125726133d1565b61257b33612ef0565b1687600b541617600b551685600c541617600c551683600d541617600d551690600e541617600e5560208151916125b183612a61565b01601284527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344484915b83831061266f578560ff8660401c16156125f15780f35b68ff0000000000000000197ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a0054167ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6003602082612697600194518690604060029180518455602081015160018501550151910155565b019201920191906125da565b68ffffffffffffffffff198b1668010000000000000001177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00556124d9565b60046040517ff92ee8a9000000000000000000000000000000000000000000000000000000008152fd5b90501538612488565b303b159150612480565b5060ff8760401c161561246b565b50346102115760203660031901126102115761274761302b565b60043560025580f35b6060810190811067ffffffffffffffff8211176104b757604052565b6040810190811067ffffffffffffffff8211176104b757604052565b90601f8019910116810190811067ffffffffffffffff8211176104b757604052565b600435906001600160a01b038216820361080657565b67ffffffffffffffff81116104b75760051b60200190565b81601f820112156108065780359060206127f1836127c0565b9360406128016040519687612788565b8486528286019183606080970286010194818611610806578401925b85841061282e575050505050505090565b868483031261080657848791845161284581612750565b863581528287013583820152858701358682015281520193019261281d565b60125481101561289f576003906012600052027fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec34440190600090565b634e487b7160e01b600052603260045260246000fd5b60e0906023190112610806576040519060e0820182811067ffffffffffffffff8211176104b757604052816001600160a01b03602435818116810361080657825260443581811681036108065760208301526064358181168103610806576040830152608435908116810361080657606082015260a435608082015260c43560a082015260c060e435910152565b67ffffffffffffffff81116104b757601f01601f191660200190565b81601f820112156108065780359061297682612943565b926129846040519485612788565b8284526020838301011161080657816000926020809301838601378301015290565b6060600319820112610806576004359167ffffffffffffffff60243581811161080657836129d69160040161295f565b92604435918211610806576129ed9160040161295f565b90565b60005b838110612a035750506000910152565b81810151838201526020016129f3565b90602091612a2c815180928185528580860191016129f0565b601f01601f1916010190565b81810292918115918404141715612a4b57565b634e487b7160e01b600052601160045260246000fd5b6801000000000000000081116104b75760125481601255808210612a83575050565b60039181600302916003830403612a4b5780600302906003820403612a4b5760009060126000527fbb8a6a4669ba250d26cd7a459eca9d215f8307e33aebe50379bc5a3617ec344492830192015b828110612ade5750505050565b808285925582600182015582600282015501612ad1565b15612afc57565b606460405162461bcd60e51b815260206004820152600e60248201527f496e76616c696420616d6f756e740000000000000000000000000000000000006044820152fd5b15612b4757565b606460405162461bcd60e51b815260206004820152601460248201527f41726974686d65746963204f766572666c6f77210000000000000000000000006044820152fd5b15612b9257565b606460405162461bcd60e51b815260206004820152600f60248201527f496e76616c6964206164647265737300000000000000000000000000000000006044820152fd5b15612bdd57565b606460405162461bcd60e51b815260206004820152601960248201527f496e76616c69642064657374696e6174696f6e20746f6b656e000000000000006044820152fd5b15612c2857565b606460405162461bcd60e51b815260206004820152601c60248201527f496e76616c69642064657374696e6174696f6e207265636569766572000000006044820152fd5b90816020910312610806575180151581036108065790565b15612c8b57565b606460405162461bcd60e51b815260206004820152600f60248201527f417070726f76616c206661696c656400000000000000000000000000000000006044820152fd5b9190826040910312610806576020825192015190565b60c06129ed9493610120936001600160a01b0380911684528082511660208501528060208301511660408501528060408301511660608501526060820151166080840152608081015160a084015260a081015182840152015160e0820152816101008201520190612a13565b15612d5857565b606460405162461bcd60e51b815260206004820152601260248201527f537761704f6e31696e6368206661696c656400000000000000000000000000006044820152fd5b15612da357565b606460405162461bcd60e51b815260206004820152601f60248201527f416d6f756e74206e6f742077697468696e20627579696e672072616e676521006044820152fd5b6000198114612a4b5760010190565b15612dfd57565b606460405162461bcd60e51b815260206004820152601e60248201527f4461696c79204361726420427579204c696d69742045786365656465642100006044820152fd5b949392612e61606093612e6f938852608060208901526080880190612a13565b908682036040880152612a13565b930152565b15612e7b57565b606460405162461bcd60e51b815260206004820152601860248201527f61617665506f6f6c20417070726f76616c206661696c656400000000000000006044820152fd5b51906fffffffffffffffffffffffffffffffff8216820361080657565b51906001600160a01b038216820361080657565b6001600160a01b03809116908115612f5d577f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805490836001600160a01b03198316179055167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3565b60246040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260006004820152fd5b6012549060005b828110612fe057606460405162461bcd60e51b815260206004820152601360248201527f416d6f756e74206f7574206f662072616e6765000000000000000000000000006044820152fd5b612fe981612864565b505482101580613014575b61300057600101612f95565b6002925061300e9150612864565b50015490565b50600161302082612864565b500154821115612ff4565b6001600160a01b037f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c1993005416330361305e57565b60246040517f118cdaa7000000000000000000000000000000000000000000000000000000008152336004820152fd5b6040516323b872dd60e01b60208201526001600160a01b03928316602482015292909116604483015260648201929092526130df916130da82608481015b03601f198101845283612788565b61342a565b565b919082019182106130f25760019190565b600091508190565b919082811161310a576001920390565b50600091508190565b6040517fa9059cbb0000000000000000000000000000000000000000000000000000000060208201526001600160a01b03909216602483015260448201929092526130df916130da82606481016130cc565b62015180900462010bd98082019081129160009283821290801582169115161761338d576226496501908262253d8c83129112908015821691151617613379578060021b60049182820581036133665762023ab1809205918281029081058303613353576003810190856003831291129080158216911516176133535790836131ef9205906134d2565b600181016001811285831290801582169115161761335357610fa090808202918205036133535762164b099005906105b582810290810583036133405790846132399205906134d2565b91601f83019285601f851291129080158216911516176133535782605002926050840581036133405761098f80940593848102908105850361332d579060506132839205906134d2565b94600b84059360028101908260028312911290801582169115161761331a5784600c0290600c8205860361330757906132bb916134d2565b9460301983019283136001166132f457826064029260648405036132f45750506132ee92916132e9916134b6565b6134b6565b91909192565b906011602492634e487b7160e01b835252fd5b602483601189634e487b7160e01b835252fd5b602482601188634e487b7160e01b835252fd5b602487601188634e487b7160e01b835252fd5b602486601187634e487b7160e01b835252fd5b602485601186634e487b7160e01b835252fd5b602484601185634e487b7160e01b835252fd5b602482634e487b7160e01b81526011600452fd5b602483634e487b7160e01b81526011600452fd5b3d156133cc573d906133b282612943565b916133c06040519384612788565b82523d6000602084013e565b606090565b60ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c161561340057565b60046040517fd7e6bcf8000000000000000000000000000000000000000000000000000000008152fd5b6000806001600160a01b0361345493169360208151910182865af161344d6133a1565b90836134eb565b805190811515918261349b575b505061346a5750565b602490604051907f5274afe70000000000000000000000000000000000000000000000000000000082526004820152fd5b6134ae9250602080918301019101612c6c565b153880613461565b91909160008382019384129112908015821691151617612a4b57565b81810392916000138015828513169184121617612a4b57565b9061352a575080511561350057805190602001fd5b60046040517f1425ea42000000000000000000000000000000000000000000000000000000008152fd5b81511580613575575b61353b575090565b6024906001600160a01b03604051917f9996b315000000000000000000000000000000000000000000000000000000008352166004820152fd5b50803b1561353356fea264697066735822122082a93b1f65c8577eb364d75d16eb7caa0023f209057de2e35346fce295ed235e64736f6c63430008180033";
|
|
1226
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
1227
|
+
export class ZebecCard__factory extends ContractFactory {
|
|
1228
|
+
constructor(...args) {
|
|
1229
|
+
if (isSuperArgs(args)) {
|
|
1230
|
+
super(...args);
|
|
1231
|
+
}
|
|
1232
|
+
else {
|
|
1233
|
+
super(_abi, _bytecode, args[0]);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
getDeployTransaction(overrides) {
|
|
1237
|
+
return super.getDeployTransaction(overrides || {});
|
|
1238
|
+
}
|
|
1239
|
+
deploy(overrides) {
|
|
1240
|
+
return super.deploy(overrides || {});
|
|
1241
|
+
}
|
|
1242
|
+
connect(runner) {
|
|
1243
|
+
return super.connect(runner);
|
|
1244
|
+
}
|
|
1245
|
+
static bytecode = _bytecode;
|
|
1246
|
+
static abi = _abi;
|
|
1247
|
+
static createInterface() {
|
|
1248
|
+
return new Interface(_abi);
|
|
1249
|
+
}
|
|
1250
|
+
static connect(address, runner) {
|
|
1251
|
+
return new Contract(address, _abi, runner);
|
|
1252
|
+
}
|
|
1253
|
+
}
|