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