aiia-vault-sdk 1.1.30 → 1.2.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.
@@ -0,0 +1,753 @@
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 interface FairLaunchInterface extends Interface {
4
+ getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "OPERATOR_ROLE" | "addLiquidity" | "claimInitial" | "claimVested" | "claimingEnabled" | "contribute" | "contributors" | "dexRouter" | "earlyParticipationWindow" | "enableClaiming" | "endSale" | "endTime" | "fundingToken" | "fundingTokenPrice" | "getContributorAt" | "getContributorsCount" | "getRoleAdmin" | "getSaleInfo" | "getUserInfo" | "grantRole" | "hasRole" | "initialClaimPercent" | "initialize" | "liquidityAdded" | "liquidityPercent" | "liquidityTokens" | "owner" | "projectToken" | "renounceOwnership" | "renounceRole" | "revokeRole" | "saleEnded" | "startTime" | "supportsInterface" | "tokenPrice" | "totalRaised" | "totalTokensForSale" | "tradingVault" | "transferOwnership" | "updateEarlyParticipationWindow" | "updateFundingTokenPrice" | "updateInitialClaimPercent" | "updateLiquidityPercent" | "updateLiquidityTokens" | "updateVestingDuration" | "userContributions" | "vestingDuration" | "vestingStartTime" | "withdrawERC20" | "withdrawETH" | "withdrawLPTokens"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "ClaimingEnabled" | "Contributed" | "ETHWithdrawn" | "InitialClaimed" | "Initialized" | "LiquidityAdded" | "OwnershipTransferred" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SaleEnded" | "TradingVaultPositionCreated" | "VestedClaimed"): EventFragment;
6
+ encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "OPERATOR_ROLE", values?: undefined): string;
8
+ encodeFunctionData(functionFragment: "addLiquidity", values?: undefined): string;
9
+ encodeFunctionData(functionFragment: "claimInitial", values?: undefined): string;
10
+ encodeFunctionData(functionFragment: "claimVested", values?: undefined): string;
11
+ encodeFunctionData(functionFragment: "claimingEnabled", values?: undefined): string;
12
+ encodeFunctionData(functionFragment: "contribute", values: [BigNumberish, AddressLike]): string;
13
+ encodeFunctionData(functionFragment: "contributors", values: [BigNumberish]): string;
14
+ encodeFunctionData(functionFragment: "dexRouter", values?: undefined): string;
15
+ encodeFunctionData(functionFragment: "earlyParticipationWindow", values?: undefined): string;
16
+ encodeFunctionData(functionFragment: "enableClaiming", values?: undefined): string;
17
+ encodeFunctionData(functionFragment: "endSale", values?: undefined): string;
18
+ encodeFunctionData(functionFragment: "endTime", values?: undefined): string;
19
+ encodeFunctionData(functionFragment: "fundingToken", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "fundingTokenPrice", values?: undefined): string;
21
+ encodeFunctionData(functionFragment: "getContributorAt", values: [BigNumberish]): string;
22
+ encodeFunctionData(functionFragment: "getContributorsCount", values?: undefined): string;
23
+ encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
24
+ encodeFunctionData(functionFragment: "getSaleInfo", values?: undefined): string;
25
+ encodeFunctionData(functionFragment: "getUserInfo", values: [AddressLike]): string;
26
+ encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
27
+ encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
28
+ encodeFunctionData(functionFragment: "initialClaimPercent", values?: undefined): string;
29
+ encodeFunctionData(functionFragment: "initialize", values: [
30
+ AddressLike,
31
+ AddressLike,
32
+ AddressLike,
33
+ AddressLike,
34
+ BigNumberish,
35
+ BigNumberish,
36
+ BigNumberish,
37
+ BigNumberish,
38
+ BigNumberish,
39
+ BigNumberish,
40
+ BigNumberish,
41
+ BigNumberish,
42
+ BigNumberish
43
+ ]): string;
44
+ encodeFunctionData(functionFragment: "liquidityAdded", values?: undefined): string;
45
+ encodeFunctionData(functionFragment: "liquidityPercent", values?: undefined): string;
46
+ encodeFunctionData(functionFragment: "liquidityTokens", values?: undefined): string;
47
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
48
+ encodeFunctionData(functionFragment: "projectToken", values?: undefined): string;
49
+ encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
50
+ encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
51
+ encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
52
+ encodeFunctionData(functionFragment: "saleEnded", values?: undefined): string;
53
+ encodeFunctionData(functionFragment: "startTime", values?: undefined): string;
54
+ encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
55
+ encodeFunctionData(functionFragment: "tokenPrice", values?: undefined): string;
56
+ encodeFunctionData(functionFragment: "totalRaised", values?: undefined): string;
57
+ encodeFunctionData(functionFragment: "totalTokensForSale", values?: undefined): string;
58
+ encodeFunctionData(functionFragment: "tradingVault", values?: undefined): string;
59
+ encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
60
+ encodeFunctionData(functionFragment: "updateEarlyParticipationWindow", values: [BigNumberish]): string;
61
+ encodeFunctionData(functionFragment: "updateFundingTokenPrice", values: [BigNumberish]): string;
62
+ encodeFunctionData(functionFragment: "updateInitialClaimPercent", values: [BigNumberish]): string;
63
+ encodeFunctionData(functionFragment: "updateLiquidityPercent", values: [BigNumberish]): string;
64
+ encodeFunctionData(functionFragment: "updateLiquidityTokens", values: [BigNumberish]): string;
65
+ encodeFunctionData(functionFragment: "updateVestingDuration", values: [BigNumberish]): string;
66
+ encodeFunctionData(functionFragment: "userContributions", values: [AddressLike]): string;
67
+ encodeFunctionData(functionFragment: "vestingDuration", values?: undefined): string;
68
+ encodeFunctionData(functionFragment: "vestingStartTime", values?: undefined): string;
69
+ encodeFunctionData(functionFragment: "withdrawERC20", values: [AddressLike, BigNumberish]): string;
70
+ encodeFunctionData(functionFragment: "withdrawETH", values: [BigNumberish, AddressLike]): string;
71
+ encodeFunctionData(functionFragment: "withdrawLPTokens", values: [AddressLike, AddressLike]): string;
72
+ decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
73
+ decodeFunctionResult(functionFragment: "OPERATOR_ROLE", data: BytesLike): Result;
74
+ decodeFunctionResult(functionFragment: "addLiquidity", data: BytesLike): Result;
75
+ decodeFunctionResult(functionFragment: "claimInitial", data: BytesLike): Result;
76
+ decodeFunctionResult(functionFragment: "claimVested", data: BytesLike): Result;
77
+ decodeFunctionResult(functionFragment: "claimingEnabled", data: BytesLike): Result;
78
+ decodeFunctionResult(functionFragment: "contribute", data: BytesLike): Result;
79
+ decodeFunctionResult(functionFragment: "contributors", data: BytesLike): Result;
80
+ decodeFunctionResult(functionFragment: "dexRouter", data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: "earlyParticipationWindow", data: BytesLike): Result;
82
+ decodeFunctionResult(functionFragment: "enableClaiming", data: BytesLike): Result;
83
+ decodeFunctionResult(functionFragment: "endSale", data: BytesLike): Result;
84
+ decodeFunctionResult(functionFragment: "endTime", data: BytesLike): Result;
85
+ decodeFunctionResult(functionFragment: "fundingToken", data: BytesLike): Result;
86
+ decodeFunctionResult(functionFragment: "fundingTokenPrice", data: BytesLike): Result;
87
+ decodeFunctionResult(functionFragment: "getContributorAt", data: BytesLike): Result;
88
+ decodeFunctionResult(functionFragment: "getContributorsCount", data: BytesLike): Result;
89
+ decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
90
+ decodeFunctionResult(functionFragment: "getSaleInfo", data: BytesLike): Result;
91
+ decodeFunctionResult(functionFragment: "getUserInfo", data: BytesLike): Result;
92
+ decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
93
+ decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
94
+ decodeFunctionResult(functionFragment: "initialClaimPercent", data: BytesLike): Result;
95
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
96
+ decodeFunctionResult(functionFragment: "liquidityAdded", data: BytesLike): Result;
97
+ decodeFunctionResult(functionFragment: "liquidityPercent", data: BytesLike): Result;
98
+ decodeFunctionResult(functionFragment: "liquidityTokens", data: BytesLike): Result;
99
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
100
+ decodeFunctionResult(functionFragment: "projectToken", data: BytesLike): Result;
101
+ decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
102
+ decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
103
+ decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
104
+ decodeFunctionResult(functionFragment: "saleEnded", data: BytesLike): Result;
105
+ decodeFunctionResult(functionFragment: "startTime", data: BytesLike): Result;
106
+ decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
107
+ decodeFunctionResult(functionFragment: "tokenPrice", data: BytesLike): Result;
108
+ decodeFunctionResult(functionFragment: "totalRaised", data: BytesLike): Result;
109
+ decodeFunctionResult(functionFragment: "totalTokensForSale", data: BytesLike): Result;
110
+ decodeFunctionResult(functionFragment: "tradingVault", data: BytesLike): Result;
111
+ decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
112
+ decodeFunctionResult(functionFragment: "updateEarlyParticipationWindow", data: BytesLike): Result;
113
+ decodeFunctionResult(functionFragment: "updateFundingTokenPrice", data: BytesLike): Result;
114
+ decodeFunctionResult(functionFragment: "updateInitialClaimPercent", data: BytesLike): Result;
115
+ decodeFunctionResult(functionFragment: "updateLiquidityPercent", data: BytesLike): Result;
116
+ decodeFunctionResult(functionFragment: "updateLiquidityTokens", data: BytesLike): Result;
117
+ decodeFunctionResult(functionFragment: "updateVestingDuration", data: BytesLike): Result;
118
+ decodeFunctionResult(functionFragment: "userContributions", data: BytesLike): Result;
119
+ decodeFunctionResult(functionFragment: "vestingDuration", data: BytesLike): Result;
120
+ decodeFunctionResult(functionFragment: "vestingStartTime", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "withdrawERC20", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "withdrawETH", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "withdrawLPTokens", data: BytesLike): Result;
124
+ }
125
+ export declare namespace ClaimingEnabledEvent {
126
+ type InputTuple = [];
127
+ type OutputTuple = [];
128
+ interface OutputObject {
129
+ }
130
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
131
+ type Filter = TypedDeferredTopicFilter<Event>;
132
+ type Log = TypedEventLog<Event>;
133
+ type LogDescription = TypedLogDescription<Event>;
134
+ }
135
+ export declare namespace ContributedEvent {
136
+ type InputTuple = [user: AddressLike, amount: BigNumberish];
137
+ type OutputTuple = [user: string, amount: bigint];
138
+ interface OutputObject {
139
+ user: string;
140
+ amount: bigint;
141
+ }
142
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
143
+ type Filter = TypedDeferredTopicFilter<Event>;
144
+ type Log = TypedEventLog<Event>;
145
+ type LogDescription = TypedLogDescription<Event>;
146
+ }
147
+ export declare namespace ETHWithdrawnEvent {
148
+ type InputTuple = [recipient: AddressLike, amount: BigNumberish];
149
+ type OutputTuple = [recipient: string, amount: bigint];
150
+ interface OutputObject {
151
+ recipient: string;
152
+ amount: bigint;
153
+ }
154
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
155
+ type Filter = TypedDeferredTopicFilter<Event>;
156
+ type Log = TypedEventLog<Event>;
157
+ type LogDescription = TypedLogDescription<Event>;
158
+ }
159
+ export declare namespace InitialClaimedEvent {
160
+ type InputTuple = [user: AddressLike, amount: BigNumberish];
161
+ type OutputTuple = [user: string, amount: bigint];
162
+ interface OutputObject {
163
+ user: string;
164
+ amount: bigint;
165
+ }
166
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
167
+ type Filter = TypedDeferredTopicFilter<Event>;
168
+ type Log = TypedEventLog<Event>;
169
+ type LogDescription = TypedLogDescription<Event>;
170
+ }
171
+ export declare namespace InitializedEvent {
172
+ type InputTuple = [version: BigNumberish];
173
+ type OutputTuple = [version: bigint];
174
+ interface OutputObject {
175
+ version: bigint;
176
+ }
177
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
178
+ type Filter = TypedDeferredTopicFilter<Event>;
179
+ type Log = TypedEventLog<Event>;
180
+ type LogDescription = TypedLogDescription<Event>;
181
+ }
182
+ export declare namespace LiquidityAddedEvent {
183
+ type InputTuple = [
184
+ tokenAmount: BigNumberish,
185
+ fundingTokenAmount: BigNumberish
186
+ ];
187
+ type OutputTuple = [tokenAmount: bigint, fundingTokenAmount: bigint];
188
+ interface OutputObject {
189
+ tokenAmount: bigint;
190
+ fundingTokenAmount: bigint;
191
+ }
192
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
193
+ type Filter = TypedDeferredTopicFilter<Event>;
194
+ type Log = TypedEventLog<Event>;
195
+ type LogDescription = TypedLogDescription<Event>;
196
+ }
197
+ export declare namespace OwnershipTransferredEvent {
198
+ type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
199
+ type OutputTuple = [previousOwner: string, newOwner: string];
200
+ interface OutputObject {
201
+ previousOwner: string;
202
+ newOwner: string;
203
+ }
204
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
205
+ type Filter = TypedDeferredTopicFilter<Event>;
206
+ type Log = TypedEventLog<Event>;
207
+ type LogDescription = TypedLogDescription<Event>;
208
+ }
209
+ export declare namespace RoleAdminChangedEvent {
210
+ type InputTuple = [
211
+ role: BytesLike,
212
+ previousAdminRole: BytesLike,
213
+ newAdminRole: BytesLike
214
+ ];
215
+ type OutputTuple = [
216
+ role: string,
217
+ previousAdminRole: string,
218
+ newAdminRole: string
219
+ ];
220
+ interface OutputObject {
221
+ role: string;
222
+ previousAdminRole: string;
223
+ newAdminRole: string;
224
+ }
225
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
226
+ type Filter = TypedDeferredTopicFilter<Event>;
227
+ type Log = TypedEventLog<Event>;
228
+ type LogDescription = TypedLogDescription<Event>;
229
+ }
230
+ export declare namespace RoleGrantedEvent {
231
+ type InputTuple = [
232
+ role: BytesLike,
233
+ account: AddressLike,
234
+ sender: AddressLike
235
+ ];
236
+ type OutputTuple = [role: string, account: string, sender: string];
237
+ interface OutputObject {
238
+ role: string;
239
+ account: string;
240
+ sender: string;
241
+ }
242
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
243
+ type Filter = TypedDeferredTopicFilter<Event>;
244
+ type Log = TypedEventLog<Event>;
245
+ type LogDescription = TypedLogDescription<Event>;
246
+ }
247
+ export declare namespace RoleRevokedEvent {
248
+ type InputTuple = [
249
+ role: BytesLike,
250
+ account: AddressLike,
251
+ sender: AddressLike
252
+ ];
253
+ type OutputTuple = [role: string, account: string, sender: string];
254
+ interface OutputObject {
255
+ role: string;
256
+ account: string;
257
+ sender: string;
258
+ }
259
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
260
+ type Filter = TypedDeferredTopicFilter<Event>;
261
+ type Log = TypedEventLog<Event>;
262
+ type LogDescription = TypedLogDescription<Event>;
263
+ }
264
+ export declare namespace SaleEndedEvent {
265
+ type InputTuple = [
266
+ totalRaised: BigNumberish,
267
+ tokenPrice: BigNumberish
268
+ ];
269
+ type OutputTuple = [totalRaised: bigint, tokenPrice: bigint];
270
+ interface OutputObject {
271
+ totalRaised: bigint;
272
+ tokenPrice: bigint;
273
+ }
274
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
275
+ type Filter = TypedDeferredTopicFilter<Event>;
276
+ type Log = TypedEventLog<Event>;
277
+ type LogDescription = TypedLogDescription<Event>;
278
+ }
279
+ export declare namespace TradingVaultPositionCreatedEvent {
280
+ type InputTuple = [
281
+ user: AddressLike,
282
+ positionId: BigNumberish,
283
+ amount: BigNumberish
284
+ ];
285
+ type OutputTuple = [user: string, positionId: bigint, amount: bigint];
286
+ interface OutputObject {
287
+ user: string;
288
+ positionId: bigint;
289
+ amount: 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 declare namespace VestedClaimedEvent {
297
+ type InputTuple = [user: AddressLike, amount: BigNumberish];
298
+ type OutputTuple = [user: string, amount: bigint];
299
+ interface OutputObject {
300
+ user: string;
301
+ amount: 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 interface FairLaunch extends BaseContract {
309
+ connect(runner?: ContractRunner | null): FairLaunch;
310
+ waitForDeployment(): Promise<this>;
311
+ interface: FairLaunchInterface;
312
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
313
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
314
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
315
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
316
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
317
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
318
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
319
+ listeners(eventName?: string): Promise<Array<Listener>>;
320
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
321
+ DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
322
+ OPERATOR_ROLE: TypedContractMethod<[], [string], "view">;
323
+ addLiquidity: TypedContractMethod<[], [void], "payable">;
324
+ claimInitial: TypedContractMethod<[], [void], "nonpayable">;
325
+ claimVested: TypedContractMethod<[], [void], "nonpayable">;
326
+ claimingEnabled: TypedContractMethod<[], [boolean], "view">;
327
+ contribute: TypedContractMethod<[
328
+ _amount: BigNumberish,
329
+ _recipient: AddressLike
330
+ ], [
331
+ void
332
+ ], "payable">;
333
+ contributors: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
334
+ dexRouter: TypedContractMethod<[], [string], "view">;
335
+ earlyParticipationWindow: TypedContractMethod<[], [bigint], "view">;
336
+ enableClaiming: TypedContractMethod<[], [void], "nonpayable">;
337
+ endSale: TypedContractMethod<[], [void], "nonpayable">;
338
+ endTime: TypedContractMethod<[], [bigint], "view">;
339
+ fundingToken: TypedContractMethod<[], [string], "view">;
340
+ fundingTokenPrice: TypedContractMethod<[], [bigint], "view">;
341
+ getContributorAt: TypedContractMethod<[
342
+ _index: BigNumberish
343
+ ], [
344
+ string
345
+ ], "view">;
346
+ getContributorsCount: TypedContractMethod<[], [bigint], "view">;
347
+ getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
348
+ getSaleInfo: TypedContractMethod<[
349
+ ], [
350
+ [
351
+ bigint,
352
+ bigint,
353
+ bigint,
354
+ bigint,
355
+ bigint,
356
+ boolean,
357
+ boolean,
358
+ boolean
359
+ ] & {
360
+ _startTime: bigint;
361
+ _endTime: bigint;
362
+ _totalTokensForSale: bigint;
363
+ _totalRaised: bigint;
364
+ _tokenPrice: bigint;
365
+ _saleEnded: boolean;
366
+ _claimingEnabled: boolean;
367
+ _liquidityAdded: boolean;
368
+ }
369
+ ], "view">;
370
+ getUserInfo: TypedContractMethod<[
371
+ _user: AddressLike
372
+ ], [
373
+ [
374
+ bigint,
375
+ bigint,
376
+ boolean,
377
+ bigint,
378
+ bigint,
379
+ bigint,
380
+ bigint
381
+ ] & {
382
+ amount: bigint;
383
+ tokenAllocation: bigint;
384
+ hasClaimedInitial: boolean;
385
+ vestedClaimed: bigint;
386
+ tradingVaultId: bigint;
387
+ claimableInitial: bigint;
388
+ claimableVested: bigint;
389
+ }
390
+ ], "view">;
391
+ grantRole: TypedContractMethod<[
392
+ role: BytesLike,
393
+ account: AddressLike
394
+ ], [
395
+ void
396
+ ], "nonpayable">;
397
+ hasRole: TypedContractMethod<[
398
+ role: BytesLike,
399
+ account: AddressLike
400
+ ], [
401
+ boolean
402
+ ], "view">;
403
+ initialClaimPercent: TypedContractMethod<[], [bigint], "view">;
404
+ initialize: TypedContractMethod<[
405
+ _projectToken: AddressLike,
406
+ _fundingToken: AddressLike,
407
+ _tradingVault: AddressLike,
408
+ _dexRouter: AddressLike,
409
+ _startTime: BigNumberish,
410
+ _endTime: BigNumberish,
411
+ _totalTokensForSale: BigNumberish,
412
+ _liquidityTokens: BigNumberish,
413
+ _liquidityPercent: BigNumberish,
414
+ _initialClaimPercent: BigNumberish,
415
+ _vestingDuration: BigNumberish,
416
+ _earlyParticipationWindow: BigNumberish,
417
+ _fundingTokenPrice: BigNumberish
418
+ ], [
419
+ void
420
+ ], "nonpayable">;
421
+ liquidityAdded: TypedContractMethod<[], [boolean], "view">;
422
+ liquidityPercent: TypedContractMethod<[], [bigint], "view">;
423
+ liquidityTokens: TypedContractMethod<[], [bigint], "view">;
424
+ owner: TypedContractMethod<[], [string], "view">;
425
+ projectToken: TypedContractMethod<[], [string], "view">;
426
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
427
+ renounceRole: TypedContractMethod<[
428
+ role: BytesLike,
429
+ callerConfirmation: AddressLike
430
+ ], [
431
+ void
432
+ ], "nonpayable">;
433
+ revokeRole: TypedContractMethod<[
434
+ role: BytesLike,
435
+ account: AddressLike
436
+ ], [
437
+ void
438
+ ], "nonpayable">;
439
+ saleEnded: TypedContractMethod<[], [boolean], "view">;
440
+ startTime: TypedContractMethod<[], [bigint], "view">;
441
+ supportsInterface: TypedContractMethod<[
442
+ interfaceId: BytesLike
443
+ ], [
444
+ boolean
445
+ ], "view">;
446
+ tokenPrice: TypedContractMethod<[], [bigint], "view">;
447
+ totalRaised: TypedContractMethod<[], [bigint], "view">;
448
+ totalTokensForSale: TypedContractMethod<[], [bigint], "view">;
449
+ tradingVault: TypedContractMethod<[], [string], "view">;
450
+ transferOwnership: TypedContractMethod<[
451
+ newOwner: AddressLike
452
+ ], [
453
+ void
454
+ ], "nonpayable">;
455
+ updateEarlyParticipationWindow: TypedContractMethod<[
456
+ _earlyParticipationWindow: BigNumberish
457
+ ], [
458
+ void
459
+ ], "nonpayable">;
460
+ updateFundingTokenPrice: TypedContractMethod<[
461
+ _fundingTokenPrice: BigNumberish
462
+ ], [
463
+ void
464
+ ], "nonpayable">;
465
+ updateInitialClaimPercent: TypedContractMethod<[
466
+ _initialClaimPercent: BigNumberish
467
+ ], [
468
+ void
469
+ ], "nonpayable">;
470
+ updateLiquidityPercent: TypedContractMethod<[
471
+ _liquidityPercent: BigNumberish
472
+ ], [
473
+ void
474
+ ], "nonpayable">;
475
+ updateLiquidityTokens: TypedContractMethod<[
476
+ _liquidityTokens: BigNumberish
477
+ ], [
478
+ void
479
+ ], "nonpayable">;
480
+ updateVestingDuration: TypedContractMethod<[
481
+ _vestingDuration: BigNumberish
482
+ ], [
483
+ void
484
+ ], "nonpayable">;
485
+ userContributions: TypedContractMethod<[
486
+ arg0: AddressLike
487
+ ], [
488
+ [
489
+ bigint,
490
+ bigint,
491
+ boolean,
492
+ bigint,
493
+ bigint
494
+ ] & {
495
+ amount: bigint;
496
+ tokenAllocation: bigint;
497
+ hasClaimedInitial: boolean;
498
+ vestedClaimed: bigint;
499
+ tradingVaultId: bigint;
500
+ }
501
+ ], "view">;
502
+ vestingDuration: TypedContractMethod<[], [bigint], "view">;
503
+ vestingStartTime: TypedContractMethod<[], [bigint], "view">;
504
+ withdrawERC20: TypedContractMethod<[
505
+ _token: AddressLike,
506
+ _amount: BigNumberish
507
+ ], [
508
+ void
509
+ ], "nonpayable">;
510
+ withdrawETH: TypedContractMethod<[
511
+ _amount: BigNumberish,
512
+ _recipient: AddressLike
513
+ ], [
514
+ void
515
+ ], "nonpayable">;
516
+ withdrawLPTokens: TypedContractMethod<[
517
+ _lpToken: AddressLike,
518
+ _recipient: AddressLike
519
+ ], [
520
+ void
521
+ ], "nonpayable">;
522
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
523
+ getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
524
+ getFunction(nameOrSignature: "OPERATOR_ROLE"): TypedContractMethod<[], [string], "view">;
525
+ getFunction(nameOrSignature: "addLiquidity"): TypedContractMethod<[], [void], "payable">;
526
+ getFunction(nameOrSignature: "claimInitial"): TypedContractMethod<[], [void], "nonpayable">;
527
+ getFunction(nameOrSignature: "claimVested"): TypedContractMethod<[], [void], "nonpayable">;
528
+ getFunction(nameOrSignature: "claimingEnabled"): TypedContractMethod<[], [boolean], "view">;
529
+ getFunction(nameOrSignature: "contribute"): TypedContractMethod<[
530
+ _amount: BigNumberish,
531
+ _recipient: AddressLike
532
+ ], [
533
+ void
534
+ ], "payable">;
535
+ getFunction(nameOrSignature: "contributors"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
536
+ getFunction(nameOrSignature: "dexRouter"): TypedContractMethod<[], [string], "view">;
537
+ getFunction(nameOrSignature: "earlyParticipationWindow"): TypedContractMethod<[], [bigint], "view">;
538
+ getFunction(nameOrSignature: "enableClaiming"): TypedContractMethod<[], [void], "nonpayable">;
539
+ getFunction(nameOrSignature: "endSale"): TypedContractMethod<[], [void], "nonpayable">;
540
+ getFunction(nameOrSignature: "endTime"): TypedContractMethod<[], [bigint], "view">;
541
+ getFunction(nameOrSignature: "fundingToken"): TypedContractMethod<[], [string], "view">;
542
+ getFunction(nameOrSignature: "fundingTokenPrice"): TypedContractMethod<[], [bigint], "view">;
543
+ getFunction(nameOrSignature: "getContributorAt"): TypedContractMethod<[_index: BigNumberish], [string], "view">;
544
+ getFunction(nameOrSignature: "getContributorsCount"): TypedContractMethod<[], [bigint], "view">;
545
+ getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
546
+ getFunction(nameOrSignature: "getSaleInfo"): TypedContractMethod<[
547
+ ], [
548
+ [
549
+ bigint,
550
+ bigint,
551
+ bigint,
552
+ bigint,
553
+ bigint,
554
+ boolean,
555
+ boolean,
556
+ boolean
557
+ ] & {
558
+ _startTime: bigint;
559
+ _endTime: bigint;
560
+ _totalTokensForSale: bigint;
561
+ _totalRaised: bigint;
562
+ _tokenPrice: bigint;
563
+ _saleEnded: boolean;
564
+ _claimingEnabled: boolean;
565
+ _liquidityAdded: boolean;
566
+ }
567
+ ], "view">;
568
+ getFunction(nameOrSignature: "getUserInfo"): TypedContractMethod<[
569
+ _user: AddressLike
570
+ ], [
571
+ [
572
+ bigint,
573
+ bigint,
574
+ boolean,
575
+ bigint,
576
+ bigint,
577
+ bigint,
578
+ bigint
579
+ ] & {
580
+ amount: bigint;
581
+ tokenAllocation: bigint;
582
+ hasClaimedInitial: boolean;
583
+ vestedClaimed: bigint;
584
+ tradingVaultId: bigint;
585
+ claimableInitial: bigint;
586
+ claimableVested: bigint;
587
+ }
588
+ ], "view">;
589
+ getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
590
+ role: BytesLike,
591
+ account: AddressLike
592
+ ], [
593
+ void
594
+ ], "nonpayable">;
595
+ getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
596
+ role: BytesLike,
597
+ account: AddressLike
598
+ ], [
599
+ boolean
600
+ ], "view">;
601
+ getFunction(nameOrSignature: "initialClaimPercent"): TypedContractMethod<[], [bigint], "view">;
602
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
603
+ _projectToken: AddressLike,
604
+ _fundingToken: AddressLike,
605
+ _tradingVault: AddressLike,
606
+ _dexRouter: AddressLike,
607
+ _startTime: BigNumberish,
608
+ _endTime: BigNumberish,
609
+ _totalTokensForSale: BigNumberish,
610
+ _liquidityTokens: BigNumberish,
611
+ _liquidityPercent: BigNumberish,
612
+ _initialClaimPercent: BigNumberish,
613
+ _vestingDuration: BigNumberish,
614
+ _earlyParticipationWindow: BigNumberish,
615
+ _fundingTokenPrice: BigNumberish
616
+ ], [
617
+ void
618
+ ], "nonpayable">;
619
+ getFunction(nameOrSignature: "liquidityAdded"): TypedContractMethod<[], [boolean], "view">;
620
+ getFunction(nameOrSignature: "liquidityPercent"): TypedContractMethod<[], [bigint], "view">;
621
+ getFunction(nameOrSignature: "liquidityTokens"): TypedContractMethod<[], [bigint], "view">;
622
+ getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
623
+ getFunction(nameOrSignature: "projectToken"): TypedContractMethod<[], [string], "view">;
624
+ getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
625
+ getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
626
+ role: BytesLike,
627
+ callerConfirmation: AddressLike
628
+ ], [
629
+ void
630
+ ], "nonpayable">;
631
+ getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
632
+ role: BytesLike,
633
+ account: AddressLike
634
+ ], [
635
+ void
636
+ ], "nonpayable">;
637
+ getFunction(nameOrSignature: "saleEnded"): TypedContractMethod<[], [boolean], "view">;
638
+ getFunction(nameOrSignature: "startTime"): TypedContractMethod<[], [bigint], "view">;
639
+ getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
640
+ getFunction(nameOrSignature: "tokenPrice"): TypedContractMethod<[], [bigint], "view">;
641
+ getFunction(nameOrSignature: "totalRaised"): TypedContractMethod<[], [bigint], "view">;
642
+ getFunction(nameOrSignature: "totalTokensForSale"): TypedContractMethod<[], [bigint], "view">;
643
+ getFunction(nameOrSignature: "tradingVault"): TypedContractMethod<[], [string], "view">;
644
+ getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
645
+ getFunction(nameOrSignature: "updateEarlyParticipationWindow"): TypedContractMethod<[
646
+ _earlyParticipationWindow: BigNumberish
647
+ ], [
648
+ void
649
+ ], "nonpayable">;
650
+ getFunction(nameOrSignature: "updateFundingTokenPrice"): TypedContractMethod<[
651
+ _fundingTokenPrice: BigNumberish
652
+ ], [
653
+ void
654
+ ], "nonpayable">;
655
+ getFunction(nameOrSignature: "updateInitialClaimPercent"): TypedContractMethod<[
656
+ _initialClaimPercent: BigNumberish
657
+ ], [
658
+ void
659
+ ], "nonpayable">;
660
+ getFunction(nameOrSignature: "updateLiquidityPercent"): TypedContractMethod<[
661
+ _liquidityPercent: BigNumberish
662
+ ], [
663
+ void
664
+ ], "nonpayable">;
665
+ getFunction(nameOrSignature: "updateLiquidityTokens"): TypedContractMethod<[
666
+ _liquidityTokens: BigNumberish
667
+ ], [
668
+ void
669
+ ], "nonpayable">;
670
+ getFunction(nameOrSignature: "updateVestingDuration"): TypedContractMethod<[
671
+ _vestingDuration: BigNumberish
672
+ ], [
673
+ void
674
+ ], "nonpayable">;
675
+ getFunction(nameOrSignature: "userContributions"): TypedContractMethod<[
676
+ arg0: AddressLike
677
+ ], [
678
+ [
679
+ bigint,
680
+ bigint,
681
+ boolean,
682
+ bigint,
683
+ bigint
684
+ ] & {
685
+ amount: bigint;
686
+ tokenAllocation: bigint;
687
+ hasClaimedInitial: boolean;
688
+ vestedClaimed: bigint;
689
+ tradingVaultId: bigint;
690
+ }
691
+ ], "view">;
692
+ getFunction(nameOrSignature: "vestingDuration"): TypedContractMethod<[], [bigint], "view">;
693
+ getFunction(nameOrSignature: "vestingStartTime"): TypedContractMethod<[], [bigint], "view">;
694
+ getFunction(nameOrSignature: "withdrawERC20"): TypedContractMethod<[
695
+ _token: AddressLike,
696
+ _amount: BigNumberish
697
+ ], [
698
+ void
699
+ ], "nonpayable">;
700
+ getFunction(nameOrSignature: "withdrawETH"): TypedContractMethod<[
701
+ _amount: BigNumberish,
702
+ _recipient: AddressLike
703
+ ], [
704
+ void
705
+ ], "nonpayable">;
706
+ getFunction(nameOrSignature: "withdrawLPTokens"): TypedContractMethod<[
707
+ _lpToken: AddressLike,
708
+ _recipient: AddressLike
709
+ ], [
710
+ void
711
+ ], "nonpayable">;
712
+ getEvent(key: "ClaimingEnabled"): TypedContractEvent<ClaimingEnabledEvent.InputTuple, ClaimingEnabledEvent.OutputTuple, ClaimingEnabledEvent.OutputObject>;
713
+ getEvent(key: "Contributed"): TypedContractEvent<ContributedEvent.InputTuple, ContributedEvent.OutputTuple, ContributedEvent.OutputObject>;
714
+ getEvent(key: "ETHWithdrawn"): TypedContractEvent<ETHWithdrawnEvent.InputTuple, ETHWithdrawnEvent.OutputTuple, ETHWithdrawnEvent.OutputObject>;
715
+ getEvent(key: "InitialClaimed"): TypedContractEvent<InitialClaimedEvent.InputTuple, InitialClaimedEvent.OutputTuple, InitialClaimedEvent.OutputObject>;
716
+ getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
717
+ getEvent(key: "LiquidityAdded"): TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
718
+ getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
719
+ getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
720
+ getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
721
+ getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
722
+ getEvent(key: "SaleEnded"): TypedContractEvent<SaleEndedEvent.InputTuple, SaleEndedEvent.OutputTuple, SaleEndedEvent.OutputObject>;
723
+ getEvent(key: "TradingVaultPositionCreated"): TypedContractEvent<TradingVaultPositionCreatedEvent.InputTuple, TradingVaultPositionCreatedEvent.OutputTuple, TradingVaultPositionCreatedEvent.OutputObject>;
724
+ getEvent(key: "VestedClaimed"): TypedContractEvent<VestedClaimedEvent.InputTuple, VestedClaimedEvent.OutputTuple, VestedClaimedEvent.OutputObject>;
725
+ filters: {
726
+ "ClaimingEnabled()": TypedContractEvent<ClaimingEnabledEvent.InputTuple, ClaimingEnabledEvent.OutputTuple, ClaimingEnabledEvent.OutputObject>;
727
+ ClaimingEnabled: TypedContractEvent<ClaimingEnabledEvent.InputTuple, ClaimingEnabledEvent.OutputTuple, ClaimingEnabledEvent.OutputObject>;
728
+ "Contributed(address,uint256)": TypedContractEvent<ContributedEvent.InputTuple, ContributedEvent.OutputTuple, ContributedEvent.OutputObject>;
729
+ Contributed: TypedContractEvent<ContributedEvent.InputTuple, ContributedEvent.OutputTuple, ContributedEvent.OutputObject>;
730
+ "ETHWithdrawn(address,uint256)": TypedContractEvent<ETHWithdrawnEvent.InputTuple, ETHWithdrawnEvent.OutputTuple, ETHWithdrawnEvent.OutputObject>;
731
+ ETHWithdrawn: TypedContractEvent<ETHWithdrawnEvent.InputTuple, ETHWithdrawnEvent.OutputTuple, ETHWithdrawnEvent.OutputObject>;
732
+ "InitialClaimed(address,uint256)": TypedContractEvent<InitialClaimedEvent.InputTuple, InitialClaimedEvent.OutputTuple, InitialClaimedEvent.OutputObject>;
733
+ InitialClaimed: TypedContractEvent<InitialClaimedEvent.InputTuple, InitialClaimedEvent.OutputTuple, InitialClaimedEvent.OutputObject>;
734
+ "Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
735
+ Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
736
+ "LiquidityAdded(uint256,uint256)": TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
737
+ LiquidityAdded: TypedContractEvent<LiquidityAddedEvent.InputTuple, LiquidityAddedEvent.OutputTuple, LiquidityAddedEvent.OutputObject>;
738
+ "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
739
+ OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
740
+ "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
741
+ RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
742
+ "RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
743
+ RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
744
+ "RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
745
+ RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
746
+ "SaleEnded(uint256,uint256)": TypedContractEvent<SaleEndedEvent.InputTuple, SaleEndedEvent.OutputTuple, SaleEndedEvent.OutputObject>;
747
+ SaleEnded: TypedContractEvent<SaleEndedEvent.InputTuple, SaleEndedEvent.OutputTuple, SaleEndedEvent.OutputObject>;
748
+ "TradingVaultPositionCreated(address,uint256,uint256)": TypedContractEvent<TradingVaultPositionCreatedEvent.InputTuple, TradingVaultPositionCreatedEvent.OutputTuple, TradingVaultPositionCreatedEvent.OutputObject>;
749
+ TradingVaultPositionCreated: TypedContractEvent<TradingVaultPositionCreatedEvent.InputTuple, TradingVaultPositionCreatedEvent.OutputTuple, TradingVaultPositionCreatedEvent.OutputObject>;
750
+ "VestedClaimed(address,uint256)": TypedContractEvent<VestedClaimedEvent.InputTuple, VestedClaimedEvent.OutputTuple, VestedClaimedEvent.OutputObject>;
751
+ VestedClaimed: TypedContractEvent<VestedClaimedEvent.InputTuple, VestedClaimedEvent.OutputTuple, VestedClaimedEvent.OutputObject>;
752
+ };
753
+ }