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