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