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 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -0,0 +1,368 @@
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 MultiLevelReferralNFTInterface extends Interface {
4
+ getFunction(nameOrSignature: "approve" | "balanceOf" | "buy" | "getApproved" | "initialize" | "isApprovedForAll" | "maxReferralLevels" | "name" | "owner" | "ownerOf" | "price" | "referralCodes" | "referrers" | "renounceOwnership" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setPrice" | "sharePercent" | "supportsInterface" | "symbol" | "tokenURI" | "transferFrom" | "transferOwnership" | "userReferralCodes" | "withdraw"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "Initialized" | "NFTMinted" | "OwnershipTransferred" | "ReferralPaid" | "ReferrerSet" | "Transfer"): EventFragment;
6
+ encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
7
+ encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
8
+ encodeFunctionData(functionFragment: "buy", values: [string]): string;
9
+ encodeFunctionData(functionFragment: "getApproved", values: [BigNumberish]): string;
10
+ encodeFunctionData(functionFragment: "initialize", values: [AddressLike, string, string]): string;
11
+ encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
12
+ encodeFunctionData(functionFragment: "maxReferralLevels", values?: undefined): string;
13
+ encodeFunctionData(functionFragment: "name", values?: undefined): string;
14
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
15
+ encodeFunctionData(functionFragment: "ownerOf", values: [BigNumberish]): string;
16
+ encodeFunctionData(functionFragment: "price", values?: undefined): string;
17
+ encodeFunctionData(functionFragment: "referralCodes", values: [string]): string;
18
+ encodeFunctionData(functionFragment: "referrers", values: [AddressLike]): string;
19
+ encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
21
+ encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
22
+ encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
23
+ encodeFunctionData(functionFragment: "setPrice", values: [BigNumberish]): string;
24
+ encodeFunctionData(functionFragment: "sharePercent", values?: undefined): string;
25
+ encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
26
+ encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
27
+ encodeFunctionData(functionFragment: "tokenURI", values: [BigNumberish]): string;
28
+ encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
29
+ encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
30
+ encodeFunctionData(functionFragment: "userReferralCodes", values: [AddressLike]): string;
31
+ encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
32
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
33
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
34
+ decodeFunctionResult(functionFragment: "buy", data: BytesLike): Result;
35
+ decodeFunctionResult(functionFragment: "getApproved", data: BytesLike): Result;
36
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
37
+ decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
38
+ decodeFunctionResult(functionFragment: "maxReferralLevels", data: BytesLike): Result;
39
+ decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
40
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
41
+ decodeFunctionResult(functionFragment: "ownerOf", data: BytesLike): Result;
42
+ decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
43
+ decodeFunctionResult(functionFragment: "referralCodes", data: BytesLike): Result;
44
+ decodeFunctionResult(functionFragment: "referrers", data: BytesLike): Result;
45
+ decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
46
+ decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
47
+ decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
48
+ decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
49
+ decodeFunctionResult(functionFragment: "setPrice", data: BytesLike): Result;
50
+ decodeFunctionResult(functionFragment: "sharePercent", data: BytesLike): Result;
51
+ decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
52
+ decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
53
+ decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
54
+ decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
55
+ decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "userReferralCodes", data: BytesLike): Result;
57
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
58
+ }
59
+ export declare namespace ApprovalEvent {
60
+ type InputTuple = [
61
+ owner: AddressLike,
62
+ approved: AddressLike,
63
+ tokenId: BigNumberish
64
+ ];
65
+ type OutputTuple = [owner: string, approved: string, tokenId: bigint];
66
+ interface OutputObject {
67
+ owner: string;
68
+ approved: string;
69
+ tokenId: bigint;
70
+ }
71
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
72
+ type Filter = TypedDeferredTopicFilter<Event>;
73
+ type Log = TypedEventLog<Event>;
74
+ type LogDescription = TypedLogDescription<Event>;
75
+ }
76
+ export declare namespace ApprovalForAllEvent {
77
+ type InputTuple = [
78
+ owner: AddressLike,
79
+ operator: AddressLike,
80
+ approved: boolean
81
+ ];
82
+ type OutputTuple = [
83
+ owner: string,
84
+ operator: string,
85
+ approved: boolean
86
+ ];
87
+ interface OutputObject {
88
+ owner: string;
89
+ operator: string;
90
+ approved: boolean;
91
+ }
92
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
93
+ type Filter = TypedDeferredTopicFilter<Event>;
94
+ type Log = TypedEventLog<Event>;
95
+ type LogDescription = TypedLogDescription<Event>;
96
+ }
97
+ export declare namespace InitializedEvent {
98
+ type InputTuple = [version: BigNumberish];
99
+ type OutputTuple = [version: bigint];
100
+ interface OutputObject {
101
+ version: bigint;
102
+ }
103
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
104
+ type Filter = TypedDeferredTopicFilter<Event>;
105
+ type Log = TypedEventLog<Event>;
106
+ type LogDescription = TypedLogDescription<Event>;
107
+ }
108
+ export declare namespace NFTMintedEvent {
109
+ type InputTuple = [owner: AddressLike, tokenId: BigNumberish];
110
+ type OutputTuple = [owner: string, tokenId: bigint];
111
+ interface OutputObject {
112
+ owner: string;
113
+ tokenId: bigint;
114
+ }
115
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
116
+ type Filter = TypedDeferredTopicFilter<Event>;
117
+ type Log = TypedEventLog<Event>;
118
+ type LogDescription = TypedLogDescription<Event>;
119
+ }
120
+ export declare namespace OwnershipTransferredEvent {
121
+ type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
122
+ type OutputTuple = [previousOwner: string, newOwner: string];
123
+ interface OutputObject {
124
+ previousOwner: string;
125
+ newOwner: string;
126
+ }
127
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
128
+ type Filter = TypedDeferredTopicFilter<Event>;
129
+ type Log = TypedEventLog<Event>;
130
+ type LogDescription = TypedLogDescription<Event>;
131
+ }
132
+ export declare namespace ReferralPaidEvent {
133
+ type InputTuple = [
134
+ receiver: AddressLike,
135
+ buyer: AddressLike,
136
+ amount: BigNumberish,
137
+ level: BigNumberish,
138
+ originalAmount: BigNumberish
139
+ ];
140
+ type OutputTuple = [
141
+ receiver: string,
142
+ buyer: string,
143
+ amount: bigint,
144
+ level: bigint,
145
+ originalAmount: bigint
146
+ ];
147
+ interface OutputObject {
148
+ receiver: string;
149
+ buyer: string;
150
+ amount: bigint;
151
+ level: bigint;
152
+ originalAmount: 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 ReferrerSetEvent {
160
+ type InputTuple = [referrer: AddressLike, referee: AddressLike];
161
+ type OutputTuple = [referrer: string, referee: string];
162
+ interface OutputObject {
163
+ referrer: string;
164
+ referee: string;
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 TransferEvent {
172
+ type InputTuple = [
173
+ from: AddressLike,
174
+ to: AddressLike,
175
+ tokenId: BigNumberish
176
+ ];
177
+ type OutputTuple = [from: string, to: string, tokenId: bigint];
178
+ interface OutputObject {
179
+ from: string;
180
+ to: string;
181
+ tokenId: bigint;
182
+ }
183
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
184
+ type Filter = TypedDeferredTopicFilter<Event>;
185
+ type Log = TypedEventLog<Event>;
186
+ type LogDescription = TypedLogDescription<Event>;
187
+ }
188
+ export interface MultiLevelReferralNFT extends BaseContract {
189
+ connect(runner?: ContractRunner | null): MultiLevelReferralNFT;
190
+ waitForDeployment(): Promise<this>;
191
+ interface: MultiLevelReferralNFTInterface;
192
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
193
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
194
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
195
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
196
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
197
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
198
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
199
+ listeners(eventName?: string): Promise<Array<Listener>>;
200
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
201
+ approve: TypedContractMethod<[
202
+ to: AddressLike,
203
+ tokenId: BigNumberish
204
+ ], [
205
+ void
206
+ ], "nonpayable">;
207
+ balanceOf: TypedContractMethod<[owner: AddressLike], [bigint], "view">;
208
+ buy: TypedContractMethod<[_referralCode: string], [void], "payable">;
209
+ getApproved: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
210
+ initialize: TypedContractMethod<[
211
+ owner: AddressLike,
212
+ name: string,
213
+ symbol: string
214
+ ], [
215
+ void
216
+ ], "nonpayable">;
217
+ isApprovedForAll: TypedContractMethod<[
218
+ owner: AddressLike,
219
+ operator: AddressLike
220
+ ], [
221
+ boolean
222
+ ], "view">;
223
+ maxReferralLevels: TypedContractMethod<[], [bigint], "view">;
224
+ name: TypedContractMethod<[], [string], "view">;
225
+ owner: TypedContractMethod<[], [string], "view">;
226
+ ownerOf: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
227
+ price: TypedContractMethod<[], [bigint], "view">;
228
+ referralCodes: TypedContractMethod<[arg0: string], [string], "view">;
229
+ referrers: TypedContractMethod<[arg0: AddressLike], [string], "view">;
230
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
231
+ "safeTransferFrom(address,address,uint256)": TypedContractMethod<[
232
+ from: AddressLike,
233
+ to: AddressLike,
234
+ tokenId: BigNumberish
235
+ ], [
236
+ void
237
+ ], "nonpayable">;
238
+ "safeTransferFrom(address,address,uint256,bytes)": TypedContractMethod<[
239
+ from: AddressLike,
240
+ to: AddressLike,
241
+ tokenId: BigNumberish,
242
+ data: BytesLike
243
+ ], [
244
+ void
245
+ ], "nonpayable">;
246
+ setApprovalForAll: TypedContractMethod<[
247
+ operator: AddressLike,
248
+ approved: boolean
249
+ ], [
250
+ void
251
+ ], "nonpayable">;
252
+ setPrice: TypedContractMethod<[_price: BigNumberish], [void], "nonpayable">;
253
+ sharePercent: TypedContractMethod<[], [bigint], "view">;
254
+ supportsInterface: TypedContractMethod<[
255
+ interfaceId: BytesLike
256
+ ], [
257
+ boolean
258
+ ], "view">;
259
+ symbol: TypedContractMethod<[], [string], "view">;
260
+ tokenURI: TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
261
+ transferFrom: TypedContractMethod<[
262
+ from: AddressLike,
263
+ to: AddressLike,
264
+ tokenId: BigNumberish
265
+ ], [
266
+ void
267
+ ], "nonpayable">;
268
+ transferOwnership: TypedContractMethod<[
269
+ newOwner: AddressLike
270
+ ], [
271
+ void
272
+ ], "nonpayable">;
273
+ userReferralCodes: TypedContractMethod<[arg0: AddressLike], [string], "view">;
274
+ withdraw: TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
275
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
276
+ getFunction(nameOrSignature: "approve"): TypedContractMethod<[
277
+ to: AddressLike,
278
+ tokenId: BigNumberish
279
+ ], [
280
+ void
281
+ ], "nonpayable">;
282
+ getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[owner: AddressLike], [bigint], "view">;
283
+ getFunction(nameOrSignature: "buy"): TypedContractMethod<[_referralCode: string], [void], "payable">;
284
+ getFunction(nameOrSignature: "getApproved"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
285
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
286
+ owner: AddressLike,
287
+ name: string,
288
+ symbol: string
289
+ ], [
290
+ void
291
+ ], "nonpayable">;
292
+ getFunction(nameOrSignature: "isApprovedForAll"): TypedContractMethod<[
293
+ owner: AddressLike,
294
+ operator: AddressLike
295
+ ], [
296
+ boolean
297
+ ], "view">;
298
+ getFunction(nameOrSignature: "maxReferralLevels"): TypedContractMethod<[], [bigint], "view">;
299
+ getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
300
+ getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
301
+ getFunction(nameOrSignature: "ownerOf"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
302
+ getFunction(nameOrSignature: "price"): TypedContractMethod<[], [bigint], "view">;
303
+ getFunction(nameOrSignature: "referralCodes"): TypedContractMethod<[arg0: string], [string], "view">;
304
+ getFunction(nameOrSignature: "referrers"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
305
+ getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
306
+ getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
307
+ from: AddressLike,
308
+ to: AddressLike,
309
+ tokenId: BigNumberish
310
+ ], [
311
+ void
312
+ ], "nonpayable">;
313
+ getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256,bytes)"): TypedContractMethod<[
314
+ from: AddressLike,
315
+ to: AddressLike,
316
+ tokenId: BigNumberish,
317
+ data: BytesLike
318
+ ], [
319
+ void
320
+ ], "nonpayable">;
321
+ getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
322
+ operator: AddressLike,
323
+ approved: boolean
324
+ ], [
325
+ void
326
+ ], "nonpayable">;
327
+ getFunction(nameOrSignature: "setPrice"): TypedContractMethod<[_price: BigNumberish], [void], "nonpayable">;
328
+ getFunction(nameOrSignature: "sharePercent"): TypedContractMethod<[], [bigint], "view">;
329
+ getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
330
+ getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
331
+ getFunction(nameOrSignature: "tokenURI"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
332
+ getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
333
+ from: AddressLike,
334
+ to: AddressLike,
335
+ tokenId: BigNumberish
336
+ ], [
337
+ void
338
+ ], "nonpayable">;
339
+ getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
340
+ getFunction(nameOrSignature: "userReferralCodes"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
341
+ getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
342
+ getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
343
+ getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
344
+ getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
345
+ getEvent(key: "NFTMinted"): TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
346
+ getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
347
+ getEvent(key: "ReferralPaid"): TypedContractEvent<ReferralPaidEvent.InputTuple, ReferralPaidEvent.OutputTuple, ReferralPaidEvent.OutputObject>;
348
+ getEvent(key: "ReferrerSet"): TypedContractEvent<ReferrerSetEvent.InputTuple, ReferrerSetEvent.OutputTuple, ReferrerSetEvent.OutputObject>;
349
+ getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
350
+ filters: {
351
+ "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
352
+ Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
353
+ "ApprovalForAll(address,address,bool)": TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
354
+ ApprovalForAll: TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
355
+ "Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
356
+ Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
357
+ "NFTMinted(address,uint256)": TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
358
+ NFTMinted: TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
359
+ "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
360
+ OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
361
+ "ReferralPaid(address,address,uint256,uint256,uint256)": TypedContractEvent<ReferralPaidEvent.InputTuple, ReferralPaidEvent.OutputTuple, ReferralPaidEvent.OutputObject>;
362
+ ReferralPaid: TypedContractEvent<ReferralPaidEvent.InputTuple, ReferralPaidEvent.OutputTuple, ReferralPaidEvent.OutputObject>;
363
+ "ReferrerSet(address,address)": TypedContractEvent<ReferrerSetEvent.InputTuple, ReferrerSetEvent.OutputTuple, ReferrerSetEvent.OutputObject>;
364
+ ReferrerSet: TypedContractEvent<ReferrerSetEvent.InputTuple, ReferrerSetEvent.OutputTuple, ReferrerSetEvent.OutputObject>;
365
+ "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
366
+ Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
367
+ };
368
+ }
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});
@@ -29,7 +29,15 @@
29
29
  "USDC": "0xDd33fEeD5D44D9e89b69C8E9397292E0D6554a66",
30
30
  "TradingVault": "0xDAA0505313b7448374DB560c46584b4c85432e4E",
31
31
  "TradingVault-implemented": "0x1e888AAD1DECC7a6F4d1f6962D63e4A793EF5104",
32
- "TradingVault-implemented-old": "0xEe8D777729B5D8239FF18E77B04cf47a73FfE516"
32
+ "TradingVault-implemented-old": "0xEe8D777729B5D8239FF18E77B04cf47a73FfE516",
33
+ "UniswapV2Factory": "0xF64C66999F62b7B86aDF3477d426c8A26b1111be",
34
+ "UniswapV2Router02": "0x4e3671ea1DdaeFa9eBB160e0fBC5D8785E0833Ab",
35
+ "PTK": "0x7A526040174f47581B7a5dEf81E65045541Bbfc6",
36
+ "USDT": "0x4127a3682c9Df86907AD62FC2ae7B5DD1A57991b",
37
+ "FairLaunch": "0xe13b4638aE2542Aa9893DC863C02D8d2d50E2035",
38
+ "FairLaunch-implemented": "0xeA220B32271b7ded1B3D079A7a6A88499Fd6790f",
39
+ "MultiLevelReferralNFT": "0xB183748cEb1060162e1ac95D59C82298e9Ef43D9",
40
+ "MultiLevelReferralNFT-implemented": "0xe432279c60ee5024853E28936f897C4c4E9C2Cb9"
33
41
  },
34
42
  "base": {
35
43
  "SeedRoundFundraiser": "0x3e7b414cAd1011c757dBA1a58212Db561dc9feeB"
package/dist/types.d.ts CHANGED
@@ -292,3 +292,131 @@ export type ParsedSeedRoundFundraiserEvent = {
292
292
  };
293
293
  }[keyof SeedRoundFundraiserEventTypes];
294
294
  export type AnyEvent = ParsedEvent;
295
+ export interface RawFairLaunchEventTypes {
296
+ Contributed: {
297
+ user: string;
298
+ amount: bigint;
299
+ };
300
+ SaleEnded: {
301
+ totalRaised: bigint;
302
+ tokenPrice: bigint;
303
+ };
304
+ InitialClaimed: {
305
+ user: string;
306
+ amount: bigint;
307
+ };
308
+ VestedClaimed: {
309
+ user: string;
310
+ amount: bigint;
311
+ };
312
+ TradingVaultPositionCreated: {
313
+ user: string;
314
+ positionId: bigint;
315
+ amount: bigint;
316
+ };
317
+ LiquidityAdded: {
318
+ tokenAmount: bigint;
319
+ fundingTokenAmount: bigint;
320
+ };
321
+ ClaimingEnabled: Record<string, never>;
322
+ }
323
+ export interface FairLaunchEventTypes {
324
+ Contributed: {
325
+ user: string;
326
+ amount: number;
327
+ };
328
+ SaleEnded: {
329
+ totalRaised: number;
330
+ tokenPrice: number;
331
+ };
332
+ InitialClaimed: {
333
+ user: string;
334
+ amount: number;
335
+ };
336
+ VestedClaimed: {
337
+ user: string;
338
+ amount: number;
339
+ };
340
+ TradingVaultPositionCreated: {
341
+ user: string;
342
+ positionId: number;
343
+ amount: number;
344
+ };
345
+ LiquidityAdded: {
346
+ tokenAmount: number;
347
+ fundingTokenAmount: number;
348
+ };
349
+ ClaimingEnabled: Record<string, never>;
350
+ }
351
+ export type ParsedFairLaunchEventRaw = {
352
+ [K in keyof RawFairLaunchEventTypes]: BaseEventRaw & {
353
+ eventName: K;
354
+ args: RawFairLaunchEventTypes[K];
355
+ };
356
+ }[keyof RawFairLaunchEventTypes];
357
+ export type ParsedFairLaunchEvent = {
358
+ [K in keyof FairLaunchEventTypes]: {
359
+ eventName: K;
360
+ blockNumber: number;
361
+ transactionHash: string;
362
+ args: FairLaunchEventTypes[K];
363
+ timestamp: number | null;
364
+ };
365
+ }[keyof FairLaunchEventTypes];
366
+ export interface RawMultiLevelReferralNFTEventTypes {
367
+ NFTMinted: {
368
+ owner: string;
369
+ tokenId: bigint;
370
+ };
371
+ ReferrerSet: {
372
+ referrer: string;
373
+ referee: string;
374
+ };
375
+ ReferralPaid: {
376
+ receiver: string;
377
+ buyer: string;
378
+ amount: bigint;
379
+ level: bigint;
380
+ originalAmount: bigint;
381
+ };
382
+ }
383
+ export interface MultiLevelReferralNFTEventTypes {
384
+ NFTMinted: {
385
+ owner: string;
386
+ tokenId: number;
387
+ };
388
+ ReferrerSet: {
389
+ referrer: string;
390
+ referee: string;
391
+ };
392
+ ReferralPaid: {
393
+ receiver: string;
394
+ buyer: string;
395
+ amount: number;
396
+ level: number;
397
+ originalAmount: number;
398
+ };
399
+ }
400
+ export type ParsedMultiLevelReferralNFTEventRaw = {
401
+ [K in keyof RawMultiLevelReferralNFTEventTypes]: BaseEventRaw & {
402
+ eventName: K;
403
+ args: RawMultiLevelReferralNFTEventTypes[K];
404
+ address: string;
405
+ transactionIndex: number;
406
+ logIndex: number;
407
+ blockHash: string;
408
+ };
409
+ }[keyof RawMultiLevelReferralNFTEventTypes];
410
+ export type ParsedMultiLevelReferralNFTEvent = {
411
+ [K in keyof MultiLevelReferralNFTEventTypes]: {
412
+ eventName: K;
413
+ blockNumber: number;
414
+ transactionHash: string;
415
+ args: MultiLevelReferralNFTEventTypes[K];
416
+ timestamp: number | null;
417
+ address: string;
418
+ transactionIndex: number;
419
+ logIndex: number;
420
+ blockHash: string;
421
+ };
422
+ }[keyof MultiLevelReferralNFTEventTypes];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiia-vault-sdk",
3
- "version": "1.1.30",
3
+ "version": "1.2.0",
4
4
  "description": "SDK for AIIA Vault Contract",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",