@zebec-network/exchange-card-sdk 1.3.0 → 1.4.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.
@@ -1,557 +0,0 @@
1
- import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
- import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common";
3
- export declare namespace ZebecCard {
4
- type FeeTierStruct = {
5
- minAmount: BigNumberish;
6
- maxAmount: BigNumberish;
7
- fee: BigNumberish;
8
- };
9
- type FeeTierStructOutput = [minAmount: bigint, maxAmount: bigint, fee: bigint] & {
10
- minAmount: bigint;
11
- maxAmount: bigint;
12
- fee: bigint;
13
- };
14
- type CardConfigStruct = {
15
- nativeFee: BigNumberish;
16
- nonNativeFee: BigNumberish;
17
- revenueFee: BigNumberish;
18
- counter: BigNumberish;
19
- cardVault: AddressLike;
20
- revenueVault: AddressLike;
21
- commissionVault: AddressLike;
22
- usdcAddress: AddressLike;
23
- minCardAmount: BigNumberish;
24
- maxCardAmount: BigNumberish;
25
- dailyCardBuyLimit: BigNumberish;
26
- };
27
- type CardConfigStructOutput = [
28
- nativeFee: bigint,
29
- nonNativeFee: bigint,
30
- revenueFee: bigint,
31
- counter: bigint,
32
- cardVault: string,
33
- revenueVault: string,
34
- commissionVault: string,
35
- usdcAddress: string,
36
- minCardAmount: bigint,
37
- maxCardAmount: bigint,
38
- dailyCardBuyLimit: bigint
39
- ] & {
40
- nativeFee: bigint;
41
- nonNativeFee: bigint;
42
- revenueFee: bigint;
43
- counter: bigint;
44
- cardVault: string;
45
- revenueVault: string;
46
- commissionVault: string;
47
- usdcAddress: string;
48
- minCardAmount: bigint;
49
- maxCardAmount: bigint;
50
- dailyCardBuyLimit: bigint;
51
- };
52
- }
53
- export declare namespace IAggregationRouterV6 {
54
- type SwapDescriptionStruct = {
55
- srcToken: AddressLike;
56
- dstToken: AddressLike;
57
- srcReceiver: AddressLike;
58
- dstReceiver: AddressLike;
59
- amount: BigNumberish;
60
- minReturnAmount: BigNumberish;
61
- flags: BigNumberish;
62
- };
63
- type SwapDescriptionStructOutput = [
64
- srcToken: string,
65
- dstToken: string,
66
- srcReceiver: string,
67
- dstReceiver: string,
68
- amount: bigint,
69
- minReturnAmount: bigint,
70
- flags: bigint
71
- ] & {
72
- srcToken: string;
73
- dstToken: string;
74
- srcReceiver: string;
75
- dstReceiver: string;
76
- amount: bigint;
77
- minReturnAmount: bigint;
78
- flags: bigint;
79
- };
80
- }
81
- export interface ZebecCardInterface extends Interface {
82
- getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION" | "aavePool" | "buyCard" | "cardBalances" | "cardConfig" | "cardPurchases" | "depositUsdc" | "feeTiers" | "generateYield" | "getFee" | "getFeeTiers" | "initialize" | "oneInchRouter" | "owner" | "proxiableUUID" | "renounceOwnership" | "setCardVault" | "setComissionVault" | "setDailyCardBuyLimit" | "setFee" | "setFeeArray" | "setMaxCardAmount" | "setMinCardAmount" | "setNativeFee" | "setNonNativeFee" | "setRevenueFee" | "setRevenueVault" | "setUsdcAddress" | "swapAndDeposit" | "transferOwnership" | "upgradeToAndCall" | "wEth" | "withdraw" | "withdrawYield" | "zebecToken"): FunctionFragment;
83
- getEvent(nameOrSignatureOrTopic: "CardPurchased" | "Deposited" | "Initialized" | "OwnershipTransferred" | "Swapped" | "Upgraded" | "WithdrawYield" | "Withdrawn"): EventFragment;
84
- encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
85
- encodeFunctionData(functionFragment: "aavePool", values?: undefined): string;
86
- encodeFunctionData(functionFragment: "buyCard", values: [BigNumberish, string, string]): string;
87
- encodeFunctionData(functionFragment: "cardBalances", values: [AddressLike]): string;
88
- encodeFunctionData(functionFragment: "cardConfig", values?: undefined): string;
89
- encodeFunctionData(functionFragment: "cardPurchases", values: [AddressLike]): string;
90
- encodeFunctionData(functionFragment: "depositUsdc", values: [BigNumberish]): string;
91
- encodeFunctionData(functionFragment: "feeTiers", values: [BigNumberish]): string;
92
- encodeFunctionData(functionFragment: "generateYield", values: [BigNumberish]): string;
93
- encodeFunctionData(functionFragment: "getFee", values: [BigNumberish]): string;
94
- encodeFunctionData(functionFragment: "getFeeTiers", values?: undefined): string;
95
- encodeFunctionData(functionFragment: "initialize", values: [
96
- ZebecCard.CardConfigStruct,
97
- ZebecCard.FeeTierStruct[],
98
- AddressLike,
99
- AddressLike,
100
- AddressLike,
101
- AddressLike
102
- ]): string;
103
- encodeFunctionData(functionFragment: "oneInchRouter", values?: undefined): string;
104
- encodeFunctionData(functionFragment: "owner", values?: undefined): string;
105
- encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
106
- encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
107
- encodeFunctionData(functionFragment: "setCardVault", values: [AddressLike]): string;
108
- encodeFunctionData(functionFragment: "setComissionVault", values: [AddressLike]): string;
109
- encodeFunctionData(functionFragment: "setDailyCardBuyLimit", values: [BigNumberish]): string;
110
- encodeFunctionData(functionFragment: "setFee", values: [BigNumberish, BigNumberish, BigNumberish]): string;
111
- encodeFunctionData(functionFragment: "setFeeArray", values: [ZebecCard.FeeTierStruct[]]): string;
112
- encodeFunctionData(functionFragment: "setMaxCardAmount", values: [BigNumberish]): string;
113
- encodeFunctionData(functionFragment: "setMinCardAmount", values: [BigNumberish]): string;
114
- encodeFunctionData(functionFragment: "setNativeFee", values: [BigNumberish]): string;
115
- encodeFunctionData(functionFragment: "setNonNativeFee", values: [BigNumberish]): string;
116
- encodeFunctionData(functionFragment: "setRevenueFee", values: [BigNumberish]): string;
117
- encodeFunctionData(functionFragment: "setRevenueVault", values: [AddressLike]): string;
118
- encodeFunctionData(functionFragment: "setUsdcAddress", values: [AddressLike]): string;
119
- encodeFunctionData(functionFragment: "swapAndDeposit", values: [AddressLike, IAggregationRouterV6.SwapDescriptionStruct, BytesLike]): string;
120
- encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
121
- encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
122
- encodeFunctionData(functionFragment: "wEth", values?: undefined): string;
123
- encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
124
- encodeFunctionData(functionFragment: "withdrawYield", values: [BigNumberish]): string;
125
- encodeFunctionData(functionFragment: "zebecToken", values?: undefined): string;
126
- decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
127
- decodeFunctionResult(functionFragment: "aavePool", data: BytesLike): Result;
128
- decodeFunctionResult(functionFragment: "buyCard", data: BytesLike): Result;
129
- decodeFunctionResult(functionFragment: "cardBalances", data: BytesLike): Result;
130
- decodeFunctionResult(functionFragment: "cardConfig", data: BytesLike): Result;
131
- decodeFunctionResult(functionFragment: "cardPurchases", data: BytesLike): Result;
132
- decodeFunctionResult(functionFragment: "depositUsdc", data: BytesLike): Result;
133
- decodeFunctionResult(functionFragment: "feeTiers", data: BytesLike): Result;
134
- decodeFunctionResult(functionFragment: "generateYield", data: BytesLike): Result;
135
- decodeFunctionResult(functionFragment: "getFee", data: BytesLike): Result;
136
- decodeFunctionResult(functionFragment: "getFeeTiers", data: BytesLike): Result;
137
- decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
138
- decodeFunctionResult(functionFragment: "oneInchRouter", data: BytesLike): Result;
139
- decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
140
- decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
141
- decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
142
- decodeFunctionResult(functionFragment: "setCardVault", data: BytesLike): Result;
143
- decodeFunctionResult(functionFragment: "setComissionVault", data: BytesLike): Result;
144
- decodeFunctionResult(functionFragment: "setDailyCardBuyLimit", data: BytesLike): Result;
145
- decodeFunctionResult(functionFragment: "setFee", data: BytesLike): Result;
146
- decodeFunctionResult(functionFragment: "setFeeArray", data: BytesLike): Result;
147
- decodeFunctionResult(functionFragment: "setMaxCardAmount", data: BytesLike): Result;
148
- decodeFunctionResult(functionFragment: "setMinCardAmount", data: BytesLike): Result;
149
- decodeFunctionResult(functionFragment: "setNativeFee", data: BytesLike): Result;
150
- decodeFunctionResult(functionFragment: "setNonNativeFee", data: BytesLike): Result;
151
- decodeFunctionResult(functionFragment: "setRevenueFee", data: BytesLike): Result;
152
- decodeFunctionResult(functionFragment: "setRevenueVault", data: BytesLike): Result;
153
- decodeFunctionResult(functionFragment: "setUsdcAddress", data: BytesLike): Result;
154
- decodeFunctionResult(functionFragment: "swapAndDeposit", data: BytesLike): Result;
155
- decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
156
- decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
157
- decodeFunctionResult(functionFragment: "wEth", data: BytesLike): Result;
158
- decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
159
- decodeFunctionResult(functionFragment: "withdrawYield", data: BytesLike): Result;
160
- decodeFunctionResult(functionFragment: "zebecToken", data: BytesLike): Result;
161
- }
162
- export declare namespace CardPurchasedEvent {
163
- type InputTuple = [
164
- from: AddressLike,
165
- id: BigNumberish,
166
- amount: BigNumberish,
167
- cardType: string,
168
- userEmail: string,
169
- purchasedAt: BigNumberish
170
- ];
171
- type OutputTuple = [
172
- from: string,
173
- id: bigint,
174
- amount: bigint,
175
- cardType: string,
176
- userEmail: string,
177
- purchasedAt: bigint
178
- ];
179
- interface OutputObject {
180
- from: string;
181
- id: bigint;
182
- amount: bigint;
183
- cardType: string;
184
- userEmail: string;
185
- purchasedAt: bigint;
186
- }
187
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
188
- type Filter = TypedDeferredTopicFilter<Event>;
189
- type Log = TypedEventLog<Event>;
190
- type LogDescription = TypedLogDescription<Event>;
191
- }
192
- export declare namespace DepositedEvent {
193
- type InputTuple = [from: AddressLike, amount: BigNumberish];
194
- type OutputTuple = [from: string, amount: bigint];
195
- interface OutputObject {
196
- from: string;
197
- amount: bigint;
198
- }
199
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
200
- type Filter = TypedDeferredTopicFilter<Event>;
201
- type Log = TypedEventLog<Event>;
202
- type LogDescription = TypedLogDescription<Event>;
203
- }
204
- export declare namespace InitializedEvent {
205
- type InputTuple = [version: BigNumberish];
206
- type OutputTuple = [version: bigint];
207
- interface OutputObject {
208
- version: bigint;
209
- }
210
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
211
- type Filter = TypedDeferredTopicFilter<Event>;
212
- type Log = TypedEventLog<Event>;
213
- type LogDescription = TypedLogDescription<Event>;
214
- }
215
- export declare namespace OwnershipTransferredEvent {
216
- type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
217
- type OutputTuple = [previousOwner: string, newOwner: string];
218
- interface OutputObject {
219
- previousOwner: string;
220
- newOwner: string;
221
- }
222
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
223
- type Filter = TypedDeferredTopicFilter<Event>;
224
- type Log = TypedEventLog<Event>;
225
- type LogDescription = TypedLogDescription<Event>;
226
- }
227
- export declare namespace SwappedEvent {
228
- type InputTuple = [
229
- from: AddressLike,
230
- srcToken: AddressLike,
231
- amount: BigNumberish,
232
- spentAmount: BigNumberish,
233
- returnAmount: BigNumberish,
234
- feeAmount: BigNumberish
235
- ];
236
- type OutputTuple = [
237
- from: string,
238
- srcToken: string,
239
- amount: bigint,
240
- spentAmount: bigint,
241
- returnAmount: bigint,
242
- feeAmount: bigint
243
- ];
244
- interface OutputObject {
245
- from: string;
246
- srcToken: string;
247
- amount: bigint;
248
- spentAmount: bigint;
249
- returnAmount: bigint;
250
- feeAmount: bigint;
251
- }
252
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
253
- type Filter = TypedDeferredTopicFilter<Event>;
254
- type Log = TypedEventLog<Event>;
255
- type LogDescription = TypedLogDescription<Event>;
256
- }
257
- export declare namespace UpgradedEvent {
258
- type InputTuple = [implementation: AddressLike];
259
- type OutputTuple = [implementation: string];
260
- interface OutputObject {
261
- implementation: string;
262
- }
263
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
264
- type Filter = TypedDeferredTopicFilter<Event>;
265
- type Log = TypedEventLog<Event>;
266
- type LogDescription = TypedLogDescription<Event>;
267
- }
268
- export declare namespace WithdrawYieldEvent {
269
- type InputTuple = [from: AddressLike, withdrawnAmount: BigNumberish];
270
- type OutputTuple = [from: string, withdrawnAmount: bigint];
271
- interface OutputObject {
272
- from: string;
273
- withdrawnAmount: bigint;
274
- }
275
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
276
- type Filter = TypedDeferredTopicFilter<Event>;
277
- type Log = TypedEventLog<Event>;
278
- type LogDescription = TypedLogDescription<Event>;
279
- }
280
- export declare namespace WithdrawnEvent {
281
- type InputTuple = [from: AddressLike, withdrawnAmount: BigNumberish];
282
- type OutputTuple = [from: string, withdrawnAmount: bigint];
283
- interface OutputObject {
284
- from: string;
285
- withdrawnAmount: bigint;
286
- }
287
- type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
288
- type Filter = TypedDeferredTopicFilter<Event>;
289
- type Log = TypedEventLog<Event>;
290
- type LogDescription = TypedLogDescription<Event>;
291
- }
292
- export interface ZebecCard extends BaseContract {
293
- connect(runner?: ContractRunner | null): ZebecCard;
294
- waitForDeployment(): Promise<this>;
295
- interface: ZebecCardInterface;
296
- queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
297
- queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
298
- on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
299
- on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
300
- once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
301
- once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
302
- listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
303
- listeners(eventName?: string): Promise<Array<Listener>>;
304
- removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
305
- UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
306
- aavePool: TypedContractMethod<[], [string], "view">;
307
- buyCard: TypedContractMethod<[
308
- amount: BigNumberish,
309
- cardType: string,
310
- userEmail: string
311
- ], [
312
- void
313
- ], "nonpayable">;
314
- cardBalances: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
315
- cardConfig: TypedContractMethod<[
316
- ], [
317
- [
318
- bigint,
319
- bigint,
320
- bigint,
321
- bigint,
322
- string,
323
- string,
324
- string,
325
- string,
326
- bigint,
327
- bigint,
328
- bigint
329
- ] & {
330
- nativeFee: bigint;
331
- nonNativeFee: bigint;
332
- revenueFee: bigint;
333
- counter: bigint;
334
- cardVault: string;
335
- revenueVault: string;
336
- commissionVault: string;
337
- usdcAddress: string;
338
- minCardAmount: bigint;
339
- maxCardAmount: bigint;
340
- dailyCardBuyLimit: bigint;
341
- }
342
- ], "view">;
343
- cardPurchases: TypedContractMethod<[
344
- arg0: AddressLike
345
- ], [
346
- [bigint, bigint] & {
347
- unixInRecord: bigint;
348
- totalCardBoughtPerDay: bigint;
349
- }
350
- ], "view">;
351
- depositUsdc: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
352
- feeTiers: TypedContractMethod<[
353
- arg0: BigNumberish
354
- ], [
355
- [
356
- bigint,
357
- bigint,
358
- bigint
359
- ] & {
360
- minAmount: bigint;
361
- maxAmount: bigint;
362
- fee: bigint;
363
- }
364
- ], "view">;
365
- generateYield: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
366
- getFee: TypedContractMethod<[amount: BigNumberish], [bigint], "view">;
367
- getFeeTiers: TypedContractMethod<[], [ZebecCard.FeeTierStructOutput[]], "view">;
368
- initialize: TypedContractMethod<[
369
- card_config: ZebecCard.CardConfigStruct,
370
- fee_tiers: ZebecCard.FeeTierStruct[],
371
- inch_router: AddressLike,
372
- weth: AddressLike,
373
- zbc_token: AddressLike,
374
- aave_pool: AddressLike
375
- ], [
376
- void
377
- ], "nonpayable">;
378
- oneInchRouter: TypedContractMethod<[], [string], "view">;
379
- owner: TypedContractMethod<[], [string], "view">;
380
- proxiableUUID: TypedContractMethod<[], [string], "view">;
381
- renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
382
- setCardVault: TypedContractMethod<[cardVault: AddressLike], [void], "nonpayable">;
383
- setComissionVault: TypedContractMethod<[commissionVault: AddressLike], [void], "nonpayable">;
384
- setDailyCardBuyLimit: TypedContractMethod<[
385
- dailyCardBuyLimit: BigNumberish
386
- ], [
387
- void
388
- ], "nonpayable">;
389
- setFee: TypedContractMethod<[
390
- minAmount: BigNumberish,
391
- maxAmount: BigNumberish,
392
- fee: BigNumberish
393
- ], [
394
- void
395
- ], "nonpayable">;
396
- setFeeArray: TypedContractMethod<[newTiers: ZebecCard.FeeTierStruct[]], [void], "nonpayable">;
397
- setMaxCardAmount: TypedContractMethod<[maxAmount: BigNumberish], [void], "nonpayable">;
398
- setMinCardAmount: TypedContractMethod<[minAmount: BigNumberish], [void], "nonpayable">;
399
- setNativeFee: TypedContractMethod<[nativeFee: BigNumberish], [void], "nonpayable">;
400
- setNonNativeFee: TypedContractMethod<[nonNativeFee: BigNumberish], [void], "nonpayable">;
401
- setRevenueFee: TypedContractMethod<[revenueFee: BigNumberish], [void], "nonpayable">;
402
- setRevenueVault: TypedContractMethod<[revenueVault: AddressLike], [void], "nonpayable">;
403
- setUsdcAddress: TypedContractMethod<[usdcAddress: AddressLike], [void], "nonpayable">;
404
- swapAndDeposit: TypedContractMethod<[
405
- executor: AddressLike,
406
- desc: IAggregationRouterV6.SwapDescriptionStruct,
407
- routeData: BytesLike
408
- ], [
409
- void
410
- ], "payable">;
411
- transferOwnership: TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
412
- upgradeToAndCall: TypedContractMethod<[
413
- newImplementation: AddressLike,
414
- data: BytesLike
415
- ], [
416
- void
417
- ], "payable">;
418
- wEth: TypedContractMethod<[], [string], "view">;
419
- withdraw: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
420
- withdrawYield: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
421
- zebecToken: TypedContractMethod<[], [string], "view">;
422
- getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
423
- getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
424
- getFunction(nameOrSignature: "aavePool"): TypedContractMethod<[], [string], "view">;
425
- getFunction(nameOrSignature: "buyCard"): TypedContractMethod<[
426
- amount: BigNumberish,
427
- cardType: string,
428
- userEmail: string
429
- ], [
430
- void
431
- ], "nonpayable">;
432
- getFunction(nameOrSignature: "cardBalances"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
433
- getFunction(nameOrSignature: "cardConfig"): TypedContractMethod<[
434
- ], [
435
- [
436
- bigint,
437
- bigint,
438
- bigint,
439
- bigint,
440
- string,
441
- string,
442
- string,
443
- string,
444
- bigint,
445
- bigint,
446
- bigint
447
- ] & {
448
- nativeFee: bigint;
449
- nonNativeFee: bigint;
450
- revenueFee: bigint;
451
- counter: bigint;
452
- cardVault: string;
453
- revenueVault: string;
454
- commissionVault: string;
455
- usdcAddress: string;
456
- minCardAmount: bigint;
457
- maxCardAmount: bigint;
458
- dailyCardBuyLimit: bigint;
459
- }
460
- ], "view">;
461
- getFunction(nameOrSignature: "cardPurchases"): TypedContractMethod<[
462
- arg0: AddressLike
463
- ], [
464
- [bigint, bigint] & {
465
- unixInRecord: bigint;
466
- totalCardBoughtPerDay: bigint;
467
- }
468
- ], "view">;
469
- getFunction(nameOrSignature: "depositUsdc"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
470
- getFunction(nameOrSignature: "feeTiers"): TypedContractMethod<[
471
- arg0: BigNumberish
472
- ], [
473
- [
474
- bigint,
475
- bigint,
476
- bigint
477
- ] & {
478
- minAmount: bigint;
479
- maxAmount: bigint;
480
- fee: bigint;
481
- }
482
- ], "view">;
483
- getFunction(nameOrSignature: "generateYield"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
484
- getFunction(nameOrSignature: "getFee"): TypedContractMethod<[amount: BigNumberish], [bigint], "view">;
485
- getFunction(nameOrSignature: "getFeeTiers"): TypedContractMethod<[], [ZebecCard.FeeTierStructOutput[]], "view">;
486
- getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
487
- card_config: ZebecCard.CardConfigStruct,
488
- fee_tiers: ZebecCard.FeeTierStruct[],
489
- inch_router: AddressLike,
490
- weth: AddressLike,
491
- zbc_token: AddressLike,
492
- aave_pool: AddressLike
493
- ], [
494
- void
495
- ], "nonpayable">;
496
- getFunction(nameOrSignature: "oneInchRouter"): TypedContractMethod<[], [string], "view">;
497
- getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
498
- getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
499
- getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
500
- getFunction(nameOrSignature: "setCardVault"): TypedContractMethod<[cardVault: AddressLike], [void], "nonpayable">;
501
- getFunction(nameOrSignature: "setComissionVault"): TypedContractMethod<[commissionVault: AddressLike], [void], "nonpayable">;
502
- getFunction(nameOrSignature: "setDailyCardBuyLimit"): TypedContractMethod<[dailyCardBuyLimit: BigNumberish], [void], "nonpayable">;
503
- getFunction(nameOrSignature: "setFee"): TypedContractMethod<[
504
- minAmount: BigNumberish,
505
- maxAmount: BigNumberish,
506
- fee: BigNumberish
507
- ], [
508
- void
509
- ], "nonpayable">;
510
- getFunction(nameOrSignature: "setFeeArray"): TypedContractMethod<[newTiers: ZebecCard.FeeTierStruct[]], [void], "nonpayable">;
511
- getFunction(nameOrSignature: "setMaxCardAmount"): TypedContractMethod<[maxAmount: BigNumberish], [void], "nonpayable">;
512
- getFunction(nameOrSignature: "setMinCardAmount"): TypedContractMethod<[minAmount: BigNumberish], [void], "nonpayable">;
513
- getFunction(nameOrSignature: "setNativeFee"): TypedContractMethod<[nativeFee: BigNumberish], [void], "nonpayable">;
514
- getFunction(nameOrSignature: "setNonNativeFee"): TypedContractMethod<[nonNativeFee: BigNumberish], [void], "nonpayable">;
515
- getFunction(nameOrSignature: "setRevenueFee"): TypedContractMethod<[revenueFee: BigNumberish], [void], "nonpayable">;
516
- getFunction(nameOrSignature: "setRevenueVault"): TypedContractMethod<[revenueVault: AddressLike], [void], "nonpayable">;
517
- getFunction(nameOrSignature: "setUsdcAddress"): TypedContractMethod<[usdcAddress: AddressLike], [void], "nonpayable">;
518
- getFunction(nameOrSignature: "swapAndDeposit"): TypedContractMethod<[
519
- executor: AddressLike,
520
- desc: IAggregationRouterV6.SwapDescriptionStruct,
521
- routeData: BytesLike
522
- ], [
523
- void
524
- ], "payable">;
525
- getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
526
- getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], "payable">;
527
- getFunction(nameOrSignature: "wEth"): TypedContractMethod<[], [string], "view">;
528
- getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
529
- getFunction(nameOrSignature: "withdrawYield"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
530
- getFunction(nameOrSignature: "zebecToken"): TypedContractMethod<[], [string], "view">;
531
- getEvent(key: "CardPurchased"): TypedContractEvent<CardPurchasedEvent.InputTuple, CardPurchasedEvent.OutputTuple, CardPurchasedEvent.OutputObject>;
532
- getEvent(key: "Deposited"): TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
533
- getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
534
- getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
535
- getEvent(key: "Swapped"): TypedContractEvent<SwappedEvent.InputTuple, SwappedEvent.OutputTuple, SwappedEvent.OutputObject>;
536
- getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
537
- getEvent(key: "WithdrawYield"): TypedContractEvent<WithdrawYieldEvent.InputTuple, WithdrawYieldEvent.OutputTuple, WithdrawYieldEvent.OutputObject>;
538
- getEvent(key: "Withdrawn"): TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
539
- filters: {
540
- "CardPurchased(address,uint256,uint256,string,string,uint256)": TypedContractEvent<CardPurchasedEvent.InputTuple, CardPurchasedEvent.OutputTuple, CardPurchasedEvent.OutputObject>;
541
- CardPurchased: TypedContractEvent<CardPurchasedEvent.InputTuple, CardPurchasedEvent.OutputTuple, CardPurchasedEvent.OutputObject>;
542
- "Deposited(address,uint256)": TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
543
- Deposited: TypedContractEvent<DepositedEvent.InputTuple, DepositedEvent.OutputTuple, DepositedEvent.OutputObject>;
544
- "Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
545
- Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
546
- "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
547
- OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
548
- "Swapped(address,address,uint256,uint256,uint256,uint256)": TypedContractEvent<SwappedEvent.InputTuple, SwappedEvent.OutputTuple, SwappedEvent.OutputObject>;
549
- Swapped: TypedContractEvent<SwappedEvent.InputTuple, SwappedEvent.OutputTuple, SwappedEvent.OutputObject>;
550
- "Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
551
- Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
552
- "WithdrawYield(address,uint256)": TypedContractEvent<WithdrawYieldEvent.InputTuple, WithdrawYieldEvent.OutputTuple, WithdrawYieldEvent.OutputObject>;
553
- WithdrawYield: TypedContractEvent<WithdrawYieldEvent.InputTuple, WithdrawYieldEvent.OutputTuple, WithdrawYieldEvent.OutputObject>;
554
- "Withdrawn(address,uint256)": TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
555
- Withdrawn: TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
556
- };
557
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });