aiia-vault-sdk 1.4.2 → 1.4.3

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.
@@ -1,8 +1,10 @@
1
1
  import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
2
  import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
3
3
  export interface NFTTicketInterface extends Interface {
4
- getFunction(nameOrSignature: "approve" | "balanceOf" | "baseURI" | "batchBuy" | "batchMint" | "buy" | "generateReferralCode" | "generateReferralCodeForUser" | "getApproved" | "initialize" | "isApprovedForAll" | "maxReferralLevels" | "mintTo" | "name" | "owner" | "ownerOf" | "price" | "referralCodes" | "referrers" | "renounceOwnership" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setBaseURI" | "setMaxReferralLevels" | "setPrice" | "setSharePercent" | "sharePercent" | "supportsInterface" | "symbol" | "tokenURI" | "transferFrom" | "transferOwnership" | "userReferralCodes" | "withdraw"): FunctionFragment;
5
- getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "BaseURIChanged" | "Initialized" | "MaxReferralLevelsUpdated" | "NFTMinted" | "OwnershipTransferred" | "ReferralCodeSet" | "ReferralPaid" | "ReferrerSet" | "SharePercentUpdated" | "Transfer"): EventFragment;
4
+ getFunction(nameOrSignature: "SIGNER_ROLE" | "addSigner" | "approve" | "balanceOf" | "baseURI" | "batchBuy" | "batchMint" | "buy" | "generateReferralCode" | "generateReferralCodeForUser" | "getApproved" | "initialize" | "isApprovedForAll" | "maxReferralLevels" | "maxReward" | "mintTo" | "name" | "owner" | "ownerOf" | "price" | "referralCodes" | "referrers" | "removeSigner" | "renounceOwnership" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "sell" | "setApprovalForAll" | "setBaseURI" | "setMaxReferralLevels" | "setMaxReward" | "setPrice" | "setSharePercent" | "sharePercent" | "signers" | "supportsInterface" | "symbol" | "tokenURI" | "transferFrom" | "transferOwnership" | "userNonces" | "userReferralCodes" | "withdraw"): FunctionFragment;
5
+ getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "BaseURIChanged" | "Initialized" | "MaxReferralLevelsUpdated" | "MaxRewardUpdated" | "NFTMinted" | "NFTSold" | "OwnershipTransferred" | "ReferralCodeSet" | "ReferralPaid" | "ReferrerSet" | "SharePercentUpdated" | "SignerAdded" | "SignerRemoved" | "Transfer"): EventFragment;
6
+ encodeFunctionData(functionFragment: "SIGNER_ROLE", values?: undefined): string;
7
+ encodeFunctionData(functionFragment: "addSigner", values: [AddressLike]): string;
6
8
  encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
7
9
  encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
8
10
  encodeFunctionData(functionFragment: "baseURI", values?: undefined): string;
@@ -15,6 +17,7 @@ export interface NFTTicketInterface extends Interface {
15
17
  encodeFunctionData(functionFragment: "initialize", values: [AddressLike, string, string, string]): string;
16
18
  encodeFunctionData(functionFragment: "isApprovedForAll", values: [AddressLike, AddressLike]): string;
17
19
  encodeFunctionData(functionFragment: "maxReferralLevels", values?: undefined): string;
20
+ encodeFunctionData(functionFragment: "maxReward", values?: undefined): string;
18
21
  encodeFunctionData(functionFragment: "mintTo", values: [AddressLike]): string;
19
22
  encodeFunctionData(functionFragment: "name", values?: undefined): string;
20
23
  encodeFunctionData(functionFragment: "owner", values?: undefined): string;
@@ -22,22 +25,35 @@ export interface NFTTicketInterface extends Interface {
22
25
  encodeFunctionData(functionFragment: "price", values?: undefined): string;
23
26
  encodeFunctionData(functionFragment: "referralCodes", values: [string]): string;
24
27
  encodeFunctionData(functionFragment: "referrers", values: [AddressLike]): string;
28
+ encodeFunctionData(functionFragment: "removeSigner", values: [AddressLike]): string;
25
29
  encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
26
30
  encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256)", values: [AddressLike, AddressLike, BigNumberish]): string;
27
31
  encodeFunctionData(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", values: [AddressLike, AddressLike, BigNumberish, BytesLike]): string;
32
+ encodeFunctionData(functionFragment: "sell", values: [
33
+ BigNumberish[],
34
+ BigNumberish,
35
+ BigNumberish,
36
+ BigNumberish,
37
+ BytesLike
38
+ ]): string;
28
39
  encodeFunctionData(functionFragment: "setApprovalForAll", values: [AddressLike, boolean]): string;
29
40
  encodeFunctionData(functionFragment: "setBaseURI", values: [string]): string;
30
41
  encodeFunctionData(functionFragment: "setMaxReferralLevels", values: [BigNumberish]): string;
42
+ encodeFunctionData(functionFragment: "setMaxReward", values: [BigNumberish]): string;
31
43
  encodeFunctionData(functionFragment: "setPrice", values: [BigNumberish]): string;
32
44
  encodeFunctionData(functionFragment: "setSharePercent", values: [BigNumberish]): string;
33
45
  encodeFunctionData(functionFragment: "sharePercent", values?: undefined): string;
46
+ encodeFunctionData(functionFragment: "signers", values: [AddressLike]): string;
34
47
  encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
35
48
  encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
36
49
  encodeFunctionData(functionFragment: "tokenURI", values: [BigNumberish]): string;
37
50
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
38
51
  encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
52
+ encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
39
53
  encodeFunctionData(functionFragment: "userReferralCodes", values: [AddressLike]): string;
40
54
  encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
55
+ decodeFunctionResult(functionFragment: "SIGNER_ROLE", data: BytesLike): Result;
56
+ decodeFunctionResult(functionFragment: "addSigner", data: BytesLike): Result;
41
57
  decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
42
58
  decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
43
59
  decodeFunctionResult(functionFragment: "baseURI", data: BytesLike): Result;
@@ -50,6 +66,7 @@ export interface NFTTicketInterface extends Interface {
50
66
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
51
67
  decodeFunctionResult(functionFragment: "isApprovedForAll", data: BytesLike): Result;
52
68
  decodeFunctionResult(functionFragment: "maxReferralLevels", data: BytesLike): Result;
69
+ decodeFunctionResult(functionFragment: "maxReward", data: BytesLike): Result;
53
70
  decodeFunctionResult(functionFragment: "mintTo", data: BytesLike): Result;
54
71
  decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
55
72
  decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
@@ -57,20 +74,25 @@ export interface NFTTicketInterface extends Interface {
57
74
  decodeFunctionResult(functionFragment: "price", data: BytesLike): Result;
58
75
  decodeFunctionResult(functionFragment: "referralCodes", data: BytesLike): Result;
59
76
  decodeFunctionResult(functionFragment: "referrers", data: BytesLike): Result;
77
+ decodeFunctionResult(functionFragment: "removeSigner", data: BytesLike): Result;
60
78
  decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
61
79
  decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256)", data: BytesLike): Result;
62
80
  decodeFunctionResult(functionFragment: "safeTransferFrom(address,address,uint256,bytes)", data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: "sell", data: BytesLike): Result;
63
82
  decodeFunctionResult(functionFragment: "setApprovalForAll", data: BytesLike): Result;
64
83
  decodeFunctionResult(functionFragment: "setBaseURI", data: BytesLike): Result;
65
84
  decodeFunctionResult(functionFragment: "setMaxReferralLevels", data: BytesLike): Result;
85
+ decodeFunctionResult(functionFragment: "setMaxReward", data: BytesLike): Result;
66
86
  decodeFunctionResult(functionFragment: "setPrice", data: BytesLike): Result;
67
87
  decodeFunctionResult(functionFragment: "setSharePercent", data: BytesLike): Result;
68
88
  decodeFunctionResult(functionFragment: "sharePercent", data: BytesLike): Result;
89
+ decodeFunctionResult(functionFragment: "signers", data: BytesLike): Result;
69
90
  decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
70
91
  decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
71
92
  decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
72
93
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
73
94
  decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
95
+ decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
74
96
  decodeFunctionResult(functionFragment: "userReferralCodes", data: BytesLike): Result;
75
97
  decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
76
98
  }
@@ -146,6 +168,18 @@ export declare namespace MaxReferralLevelsUpdatedEvent {
146
168
  type Log = TypedEventLog<Event>;
147
169
  type LogDescription = TypedLogDescription<Event>;
148
170
  }
171
+ export declare namespace MaxRewardUpdatedEvent {
172
+ type InputTuple = [oldValue: BigNumberish, newValue: BigNumberish];
173
+ type OutputTuple = [oldValue: bigint, newValue: bigint];
174
+ interface OutputObject {
175
+ oldValue: bigint;
176
+ newValue: bigint;
177
+ }
178
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
179
+ type Filter = TypedDeferredTopicFilter<Event>;
180
+ type Log = TypedEventLog<Event>;
181
+ type LogDescription = TypedLogDescription<Event>;
182
+ }
149
183
  export declare namespace NFTMintedEvent {
150
184
  type InputTuple = [owner: AddressLike, tokenId: BigNumberish];
151
185
  type OutputTuple = [owner: string, tokenId: bigint];
@@ -158,6 +192,30 @@ export declare namespace NFTMintedEvent {
158
192
  type Log = TypedEventLog<Event>;
159
193
  type LogDescription = TypedLogDescription<Event>;
160
194
  }
195
+ export declare namespace NFTSoldEvent {
196
+ type InputTuple = [
197
+ seller: AddressLike,
198
+ tokenIds: BigNumberish[],
199
+ reward: BigNumberish,
200
+ timestamp: BigNumberish
201
+ ];
202
+ type OutputTuple = [
203
+ seller: string,
204
+ tokenIds: bigint[],
205
+ reward: bigint,
206
+ timestamp: bigint
207
+ ];
208
+ interface OutputObject {
209
+ seller: string;
210
+ tokenIds: bigint[];
211
+ reward: bigint;
212
+ timestamp: bigint;
213
+ }
214
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
215
+ type Filter = TypedDeferredTopicFilter<Event>;
216
+ type Log = TypedEventLog<Event>;
217
+ type LogDescription = TypedLogDescription<Event>;
218
+ }
161
219
  export declare namespace OwnershipTransferredEvent {
162
220
  type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
163
221
  type OutputTuple = [previousOwner: string, newOwner: string];
@@ -236,6 +294,28 @@ export declare namespace SharePercentUpdatedEvent {
236
294
  type Log = TypedEventLog<Event>;
237
295
  type LogDescription = TypedLogDescription<Event>;
238
296
  }
297
+ export declare namespace SignerAddedEvent {
298
+ type InputTuple = [signer: AddressLike];
299
+ type OutputTuple = [signer: string];
300
+ interface OutputObject {
301
+ signer: string;
302
+ }
303
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
304
+ type Filter = TypedDeferredTopicFilter<Event>;
305
+ type Log = TypedEventLog<Event>;
306
+ type LogDescription = TypedLogDescription<Event>;
307
+ }
308
+ export declare namespace SignerRemovedEvent {
309
+ type InputTuple = [signer: AddressLike];
310
+ type OutputTuple = [signer: string];
311
+ interface OutputObject {
312
+ signer: string;
313
+ }
314
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
315
+ type Filter = TypedDeferredTopicFilter<Event>;
316
+ type Log = TypedEventLog<Event>;
317
+ type LogDescription = TypedLogDescription<Event>;
318
+ }
239
319
  export declare namespace TransferEvent {
240
320
  type InputTuple = [
241
321
  from: AddressLike,
@@ -266,6 +346,8 @@ export interface NFTTicket extends BaseContract {
266
346
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
267
347
  listeners(eventName?: string): Promise<Array<Listener>>;
268
348
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
349
+ SIGNER_ROLE: TypedContractMethod<[], [string], "view">;
350
+ addSigner: TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
269
351
  approve: TypedContractMethod<[
270
352
  to: AddressLike,
271
353
  tokenId: BigNumberish
@@ -309,6 +391,7 @@ export interface NFTTicket extends BaseContract {
309
391
  boolean
310
392
  ], "view">;
311
393
  maxReferralLevels: TypedContractMethod<[], [bigint], "view">;
394
+ maxReward: TypedContractMethod<[], [bigint], "view">;
312
395
  mintTo: TypedContractMethod<[recipient: AddressLike], [void], "nonpayable">;
313
396
  name: TypedContractMethod<[], [string], "view">;
314
397
  owner: TypedContractMethod<[], [string], "view">;
@@ -316,6 +399,11 @@ export interface NFTTicket extends BaseContract {
316
399
  price: TypedContractMethod<[], [bigint], "view">;
317
400
  referralCodes: TypedContractMethod<[arg0: string], [string], "view">;
318
401
  referrers: TypedContractMethod<[arg0: AddressLike], [string], "view">;
402
+ removeSigner: TypedContractMethod<[
403
+ _signer: AddressLike
404
+ ], [
405
+ void
406
+ ], "nonpayable">;
319
407
  renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
320
408
  "safeTransferFrom(address,address,uint256)": TypedContractMethod<[
321
409
  from: AddressLike,
@@ -332,6 +420,15 @@ export interface NFTTicket extends BaseContract {
332
420
  ], [
333
421
  void
334
422
  ], "nonpayable">;
423
+ sell: TypedContractMethod<[
424
+ _tokenIds: BigNumberish[],
425
+ _reward: BigNumberish,
426
+ _nonce: BigNumberish,
427
+ _deadline: BigNumberish,
428
+ _signature: BytesLike
429
+ ], [
430
+ void
431
+ ], "nonpayable">;
335
432
  setApprovalForAll: TypedContractMethod<[
336
433
  operator: AddressLike,
337
434
  approved: boolean
@@ -344,6 +441,11 @@ export interface NFTTicket extends BaseContract {
344
441
  ], [
345
442
  void
346
443
  ], "nonpayable">;
444
+ setMaxReward: TypedContractMethod<[
445
+ _maxReward: BigNumberish
446
+ ], [
447
+ void
448
+ ], "nonpayable">;
347
449
  setPrice: TypedContractMethod<[_price: BigNumberish], [void], "nonpayable">;
348
450
  setSharePercent: TypedContractMethod<[
349
451
  _sharePercent: BigNumberish
@@ -351,6 +453,7 @@ export interface NFTTicket extends BaseContract {
351
453
  void
352
454
  ], "nonpayable">;
353
455
  sharePercent: TypedContractMethod<[], [bigint], "view">;
456
+ signers: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
354
457
  supportsInterface: TypedContractMethod<[
355
458
  interfaceId: BytesLike
356
459
  ], [
@@ -370,9 +473,12 @@ export interface NFTTicket extends BaseContract {
370
473
  ], [
371
474
  void
372
475
  ], "nonpayable">;
476
+ userNonces: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
373
477
  userReferralCodes: TypedContractMethod<[arg0: AddressLike], [string], "view">;
374
478
  withdraw: TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
375
479
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
480
+ getFunction(nameOrSignature: "SIGNER_ROLE"): TypedContractMethod<[], [string], "view">;
481
+ getFunction(nameOrSignature: "addSigner"): TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
376
482
  getFunction(nameOrSignature: "approve"): TypedContractMethod<[
377
483
  to: AddressLike,
378
484
  tokenId: BigNumberish
@@ -412,6 +518,7 @@ export interface NFTTicket extends BaseContract {
412
518
  boolean
413
519
  ], "view">;
414
520
  getFunction(nameOrSignature: "maxReferralLevels"): TypedContractMethod<[], [bigint], "view">;
521
+ getFunction(nameOrSignature: "maxReward"): TypedContractMethod<[], [bigint], "view">;
415
522
  getFunction(nameOrSignature: "mintTo"): TypedContractMethod<[recipient: AddressLike], [void], "nonpayable">;
416
523
  getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
417
524
  getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
@@ -419,6 +526,7 @@ export interface NFTTicket extends BaseContract {
419
526
  getFunction(nameOrSignature: "price"): TypedContractMethod<[], [bigint], "view">;
420
527
  getFunction(nameOrSignature: "referralCodes"): TypedContractMethod<[arg0: string], [string], "view">;
421
528
  getFunction(nameOrSignature: "referrers"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
529
+ getFunction(nameOrSignature: "removeSigner"): TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
422
530
  getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
423
531
  getFunction(nameOrSignature: "safeTransferFrom(address,address,uint256)"): TypedContractMethod<[
424
532
  from: AddressLike,
@@ -435,6 +543,15 @@ export interface NFTTicket extends BaseContract {
435
543
  ], [
436
544
  void
437
545
  ], "nonpayable">;
546
+ getFunction(nameOrSignature: "sell"): TypedContractMethod<[
547
+ _tokenIds: BigNumberish[],
548
+ _reward: BigNumberish,
549
+ _nonce: BigNumberish,
550
+ _deadline: BigNumberish,
551
+ _signature: BytesLike
552
+ ], [
553
+ void
554
+ ], "nonpayable">;
438
555
  getFunction(nameOrSignature: "setApprovalForAll"): TypedContractMethod<[
439
556
  operator: AddressLike,
440
557
  approved: boolean
@@ -447,9 +564,11 @@ export interface NFTTicket extends BaseContract {
447
564
  ], [
448
565
  void
449
566
  ], "nonpayable">;
567
+ getFunction(nameOrSignature: "setMaxReward"): TypedContractMethod<[_maxReward: BigNumberish], [void], "nonpayable">;
450
568
  getFunction(nameOrSignature: "setPrice"): TypedContractMethod<[_price: BigNumberish], [void], "nonpayable">;
451
569
  getFunction(nameOrSignature: "setSharePercent"): TypedContractMethod<[_sharePercent: BigNumberish], [void], "nonpayable">;
452
570
  getFunction(nameOrSignature: "sharePercent"): TypedContractMethod<[], [bigint], "view">;
571
+ getFunction(nameOrSignature: "signers"): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
453
572
  getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
454
573
  getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
455
574
  getFunction(nameOrSignature: "tokenURI"): TypedContractMethod<[tokenId: BigNumberish], [string], "view">;
@@ -461,6 +580,7 @@ export interface NFTTicket extends BaseContract {
461
580
  void
462
581
  ], "nonpayable">;
463
582
  getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
583
+ getFunction(nameOrSignature: "userNonces"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
464
584
  getFunction(nameOrSignature: "userReferralCodes"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
465
585
  getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
466
586
  getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
@@ -468,12 +588,16 @@ export interface NFTTicket extends BaseContract {
468
588
  getEvent(key: "BaseURIChanged"): TypedContractEvent<BaseURIChangedEvent.InputTuple, BaseURIChangedEvent.OutputTuple, BaseURIChangedEvent.OutputObject>;
469
589
  getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
470
590
  getEvent(key: "MaxReferralLevelsUpdated"): TypedContractEvent<MaxReferralLevelsUpdatedEvent.InputTuple, MaxReferralLevelsUpdatedEvent.OutputTuple, MaxReferralLevelsUpdatedEvent.OutputObject>;
591
+ getEvent(key: "MaxRewardUpdated"): TypedContractEvent<MaxRewardUpdatedEvent.InputTuple, MaxRewardUpdatedEvent.OutputTuple, MaxRewardUpdatedEvent.OutputObject>;
471
592
  getEvent(key: "NFTMinted"): TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
593
+ getEvent(key: "NFTSold"): TypedContractEvent<NFTSoldEvent.InputTuple, NFTSoldEvent.OutputTuple, NFTSoldEvent.OutputObject>;
472
594
  getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
473
595
  getEvent(key: "ReferralCodeSet"): TypedContractEvent<ReferralCodeSetEvent.InputTuple, ReferralCodeSetEvent.OutputTuple, ReferralCodeSetEvent.OutputObject>;
474
596
  getEvent(key: "ReferralPaid"): TypedContractEvent<ReferralPaidEvent.InputTuple, ReferralPaidEvent.OutputTuple, ReferralPaidEvent.OutputObject>;
475
597
  getEvent(key: "ReferrerSet"): TypedContractEvent<ReferrerSetEvent.InputTuple, ReferrerSetEvent.OutputTuple, ReferrerSetEvent.OutputObject>;
476
598
  getEvent(key: "SharePercentUpdated"): TypedContractEvent<SharePercentUpdatedEvent.InputTuple, SharePercentUpdatedEvent.OutputTuple, SharePercentUpdatedEvent.OutputObject>;
599
+ getEvent(key: "SignerAdded"): TypedContractEvent<SignerAddedEvent.InputTuple, SignerAddedEvent.OutputTuple, SignerAddedEvent.OutputObject>;
600
+ getEvent(key: "SignerRemoved"): TypedContractEvent<SignerRemovedEvent.InputTuple, SignerRemovedEvent.OutputTuple, SignerRemovedEvent.OutputObject>;
477
601
  getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
478
602
  filters: {
479
603
  "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
@@ -486,8 +610,12 @@ export interface NFTTicket extends BaseContract {
486
610
  Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
487
611
  "MaxReferralLevelsUpdated(uint256,uint256)": TypedContractEvent<MaxReferralLevelsUpdatedEvent.InputTuple, MaxReferralLevelsUpdatedEvent.OutputTuple, MaxReferralLevelsUpdatedEvent.OutputObject>;
488
612
  MaxReferralLevelsUpdated: TypedContractEvent<MaxReferralLevelsUpdatedEvent.InputTuple, MaxReferralLevelsUpdatedEvent.OutputTuple, MaxReferralLevelsUpdatedEvent.OutputObject>;
613
+ "MaxRewardUpdated(uint256,uint256)": TypedContractEvent<MaxRewardUpdatedEvent.InputTuple, MaxRewardUpdatedEvent.OutputTuple, MaxRewardUpdatedEvent.OutputObject>;
614
+ MaxRewardUpdated: TypedContractEvent<MaxRewardUpdatedEvent.InputTuple, MaxRewardUpdatedEvent.OutputTuple, MaxRewardUpdatedEvent.OutputObject>;
489
615
  "NFTMinted(address,uint256)": TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
490
616
  NFTMinted: TypedContractEvent<NFTMintedEvent.InputTuple, NFTMintedEvent.OutputTuple, NFTMintedEvent.OutputObject>;
617
+ "NFTSold(address,uint256[],uint256,uint256)": TypedContractEvent<NFTSoldEvent.InputTuple, NFTSoldEvent.OutputTuple, NFTSoldEvent.OutputObject>;
618
+ NFTSold: TypedContractEvent<NFTSoldEvent.InputTuple, NFTSoldEvent.OutputTuple, NFTSoldEvent.OutputObject>;
491
619
  "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
492
620
  OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
493
621
  "ReferralCodeSet(address,string)": TypedContractEvent<ReferralCodeSetEvent.InputTuple, ReferralCodeSetEvent.OutputTuple, ReferralCodeSetEvent.OutputObject>;
@@ -498,6 +626,10 @@ export interface NFTTicket extends BaseContract {
498
626
  ReferrerSet: TypedContractEvent<ReferrerSetEvent.InputTuple, ReferrerSetEvent.OutputTuple, ReferrerSetEvent.OutputObject>;
499
627
  "SharePercentUpdated(uint256,uint256)": TypedContractEvent<SharePercentUpdatedEvent.InputTuple, SharePercentUpdatedEvent.OutputTuple, SharePercentUpdatedEvent.OutputObject>;
500
628
  SharePercentUpdated: TypedContractEvent<SharePercentUpdatedEvent.InputTuple, SharePercentUpdatedEvent.OutputTuple, SharePercentUpdatedEvent.OutputObject>;
629
+ "SignerAdded(address)": TypedContractEvent<SignerAddedEvent.InputTuple, SignerAddedEvent.OutputTuple, SignerAddedEvent.OutputObject>;
630
+ SignerAdded: TypedContractEvent<SignerAddedEvent.InputTuple, SignerAddedEvent.OutputTuple, SignerAddedEvent.OutputObject>;
631
+ "SignerRemoved(address)": TypedContractEvent<SignerRemovedEvent.InputTuple, SignerRemovedEvent.OutputTuple, SignerRemovedEvent.OutputObject>;
632
+ SignerRemoved: TypedContractEvent<SignerRemovedEvent.InputTuple, SignerRemovedEvent.OutputTuple, SignerRemovedEvent.OutputObject>;
501
633
  "Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
502
634
  Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
503
635
  };
@@ -19,8 +19,8 @@ export declare namespace TradingVault {
19
19
  };
20
20
  }
21
21
  export interface TradingVaultInterface extends Interface {
22
- getFunction(nameOrSignature: "BASE_WEIGHT" | "DEFAULT_ADMIN_ROLE" | "EXPO" | "MAX_BATCH_SIZE" | "MAX_PRICE_PERCENTAGE" | "MIN_PRICE_PERCENTAGE" | "OPERATOR_ROLE" | "PERCENTAGE_BASE" | "PRICE_SETTER_ROLE" | "addReward" | "approve" | "balanceOf" | "batchEmitPriceUpdated" | "batchSetPositionExpiration" | "batchUpdateEntryPrice" | "batchUpdateUserDebt" | "borrowCurrency" | "claimERC20" | "closeExpiredPosition" | "createPosition" | "currency" | "getApproved" | "getRewardConfigsLength" | "getRoleAdmin" | "grantOperatorRole" | "grantPriceSetterRole" | "grantRole" | "hasRole" | "initialize" | "isApprovedForAll" | "isReduceEnabled" | "name" | "owner" | "ownerOf" | "positions" | "price" | "reducePosition" | "reducePositions" | "renounceOwnership" | "renounceRole" | "repayCurrency" | "repayUserDebt" | "revokeRole" | "rewardConfigs" | "rewardToken" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setCurrency" | "setPositionExpiration" | "setPrice" | "setReduceEnabled" | "setRewardToken" | "setTreasury" | "supportsInterface" | "symbol" | "tokenURI" | "totalAmount" | "totalBorrowed" | "totalRewardsAdded" | "totalRewardsHarvested" | "totalUserDebt" | "transferFrom" | "transferOwnership" | "treasury" | "updateEntryPrice" | "updateRewardConfigs" | "userDebt"): FunctionFragment;
23
- getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "CurrencyBorrowed" | "CurrencyRepaid" | "CurrencyUpdated" | "EntryPriceUpdated" | "Initialized" | "OwnershipTransferred" | "PositionCreated" | "PositionExpirationUpdated" | "PositionReduced" | "PriceUpdated" | "ReduceEnabledUpdated" | "RewardConfigsUpdated" | "RewardTokenUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TotalAmountUpdated" | "TotalRewardsHarvestedUpdated" | "TotalRewardsUpdated" | "Transfer" | "TreasuryUpdated" | "UserDebtRepaid" | "UserDebtUpdated"): EventFragment;
22
+ getFunction(nameOrSignature: "BASE_WEIGHT" | "DEFAULT_ADMIN_ROLE" | "EXPO" | "MAX_BATCH_SIZE" | "MAX_PRICE_PERCENTAGE" | "MIN_PRICE_PERCENTAGE" | "OPERATOR_ROLE" | "PERCENTAGE_BASE" | "PRICE_SETTER_ROLE" | "addReward" | "approve" | "balanceOf" | "batchEmitPriceUpdated" | "batchSetPositionExpiration" | "batchUpdateEntryPrice" | "batchUpdatePositionCurrency" | "batchUpdateUserDebt" | "borrowCurrency" | "claimERC20" | "closeExpiredPosition" | "createPosition" | "currency" | "getApproved" | "getRewardConfigsLength" | "getRoleAdmin" | "grantOperatorRole" | "grantPriceSetterRole" | "grantRole" | "hasRole" | "initialize" | "isApprovedForAll" | "isReduceEnabled" | "name" | "owner" | "ownerOf" | "positions" | "price" | "reducePosition" | "reducePositions" | "renounceOwnership" | "renounceRole" | "repayCurrency" | "repayUserDebt" | "revokeRole" | "rewardConfigs" | "rewardToken" | "safeTransferFrom(address,address,uint256)" | "safeTransferFrom(address,address,uint256,bytes)" | "setApprovalForAll" | "setCurrency" | "setPositionExpiration" | "setPrice" | "setReduceEnabled" | "setRewardToken" | "setTreasury" | "supportsInterface" | "symbol" | "tokenURI" | "totalAmount" | "totalBorrowed" | "totalRewardsAdded" | "totalRewardsHarvested" | "totalUserDebt" | "transferFrom" | "transferOwnership" | "treasury" | "updateEntryPrice" | "updateRewardConfigs" | "userDebt"): FunctionFragment;
23
+ getEvent(nameOrSignatureOrTopic: "Approval" | "ApprovalForAll" | "CurrencyBorrowed" | "CurrencyRepaid" | "CurrencyUpdated" | "EntryPriceUpdated" | "Initialized" | "OwnershipTransferred" | "PositionCreated" | "PositionCurrencyUpdated" | "PositionExpirationUpdated" | "PositionReduced" | "PriceUpdated" | "ReduceEnabledUpdated" | "RewardConfigsUpdated" | "RewardTokenUpdated" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "TotalAmountUpdated" | "TotalRewardsHarvestedUpdated" | "TotalRewardsUpdated" | "Transfer" | "TreasuryUpdated" | "UserDebtRepaid" | "UserDebtUpdated"): EventFragment;
24
24
  encodeFunctionData(functionFragment: "BASE_WEIGHT", values?: undefined): string;
25
25
  encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
26
26
  encodeFunctionData(functionFragment: "EXPO", values?: undefined): string;
@@ -36,6 +36,7 @@ export interface TradingVaultInterface extends Interface {
36
36
  encodeFunctionData(functionFragment: "batchEmitPriceUpdated", values: [TradingVault.PriceDataStruct[]]): string;
37
37
  encodeFunctionData(functionFragment: "batchSetPositionExpiration", values: [BigNumberish[], BigNumberish[]]): string;
38
38
  encodeFunctionData(functionFragment: "batchUpdateEntryPrice", values: [BigNumberish[], BigNumberish[]]): string;
39
+ encodeFunctionData(functionFragment: "batchUpdatePositionCurrency", values: [BigNumberish[], AddressLike[]]): string;
39
40
  encodeFunctionData(functionFragment: "batchUpdateUserDebt", values: [AddressLike[], BigNumberish[]]): string;
40
41
  encodeFunctionData(functionFragment: "borrowCurrency", values: [BigNumberish]): string;
41
42
  encodeFunctionData(functionFragment: "claimERC20", values: [AddressLike, BigNumberish]): string;
@@ -104,6 +105,7 @@ export interface TradingVaultInterface extends Interface {
104
105
  decodeFunctionResult(functionFragment: "batchEmitPriceUpdated", data: BytesLike): Result;
105
106
  decodeFunctionResult(functionFragment: "batchSetPositionExpiration", data: BytesLike): Result;
106
107
  decodeFunctionResult(functionFragment: "batchUpdateEntryPrice", data: BytesLike): Result;
108
+ decodeFunctionResult(functionFragment: "batchUpdatePositionCurrency", data: BytesLike): Result;
107
109
  decodeFunctionResult(functionFragment: "batchUpdateUserDebt", data: BytesLike): Result;
108
110
  decodeFunctionResult(functionFragment: "borrowCurrency", data: BytesLike): Result;
109
111
  decodeFunctionResult(functionFragment: "claimERC20", data: BytesLike): Result;
@@ -309,6 +311,27 @@ export declare namespace PositionCreatedEvent {
309
311
  type Log = TypedEventLog<Event>;
310
312
  type LogDescription = TypedLogDescription<Event>;
311
313
  }
314
+ export declare namespace PositionCurrencyUpdatedEvent {
315
+ type InputTuple = [
316
+ tokenId: BigNumberish,
317
+ oldCurrency: AddressLike,
318
+ newCurrency: AddressLike
319
+ ];
320
+ type OutputTuple = [
321
+ tokenId: bigint,
322
+ oldCurrency: string,
323
+ newCurrency: string
324
+ ];
325
+ interface OutputObject {
326
+ tokenId: bigint;
327
+ oldCurrency: string;
328
+ newCurrency: string;
329
+ }
330
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
331
+ type Filter = TypedDeferredTopicFilter<Event>;
332
+ type Log = TypedEventLog<Event>;
333
+ type LogDescription = TypedLogDescription<Event>;
334
+ }
312
335
  export declare namespace PositionExpirationUpdatedEvent {
313
336
  type InputTuple = [tokenId: BigNumberish, expiredAt: BigNumberish];
314
337
  type OutputTuple = [tokenId: bigint, expiredAt: bigint];
@@ -640,6 +663,12 @@ export interface TradingVault extends BaseContract {
640
663
  ], [
641
664
  void
642
665
  ], "nonpayable">;
666
+ batchUpdatePositionCurrency: TypedContractMethod<[
667
+ _tokenIds: BigNumberish[],
668
+ _newCurrencies: AddressLike[]
669
+ ], [
670
+ void
671
+ ], "nonpayable">;
643
672
  batchUpdateUserDebt: TypedContractMethod<[
644
673
  _users: AddressLike[],
645
674
  _debts: BigNumberish[]
@@ -910,6 +939,12 @@ export interface TradingVault extends BaseContract {
910
939
  ], [
911
940
  void
912
941
  ], "nonpayable">;
942
+ getFunction(nameOrSignature: "batchUpdatePositionCurrency"): TypedContractMethod<[
943
+ _tokenIds: BigNumberish[],
944
+ _newCurrencies: AddressLike[]
945
+ ], [
946
+ void
947
+ ], "nonpayable">;
913
948
  getFunction(nameOrSignature: "batchUpdateUserDebt"): TypedContractMethod<[
914
949
  _users: AddressLike[],
915
950
  _debts: BigNumberish[]
@@ -1106,6 +1141,7 @@ export interface TradingVault extends BaseContract {
1106
1141
  getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
1107
1142
  getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
1108
1143
  getEvent(key: "PositionCreated"): TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
1144
+ getEvent(key: "PositionCurrencyUpdated"): TypedContractEvent<PositionCurrencyUpdatedEvent.InputTuple, PositionCurrencyUpdatedEvent.OutputTuple, PositionCurrencyUpdatedEvent.OutputObject>;
1109
1145
  getEvent(key: "PositionExpirationUpdated"): TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1110
1146
  getEvent(key: "PositionReduced"): TypedContractEvent<PositionReducedEvent.InputTuple, PositionReducedEvent.OutputTuple, PositionReducedEvent.OutputObject>;
1111
1147
  getEvent(key: "PriceUpdated"): TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
@@ -1141,6 +1177,8 @@ export interface TradingVault extends BaseContract {
1141
1177
  OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
1142
1178
  "PositionCreated(address,uint256,uint256,uint256,uint256,address,uint256)": TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
1143
1179
  PositionCreated: TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
1180
+ "PositionCurrencyUpdated(uint256,address,address)": TypedContractEvent<PositionCurrencyUpdatedEvent.InputTuple, PositionCurrencyUpdatedEvent.OutputTuple, PositionCurrencyUpdatedEvent.OutputObject>;
1181
+ PositionCurrencyUpdated: TypedContractEvent<PositionCurrencyUpdatedEvent.InputTuple, PositionCurrencyUpdatedEvent.OutputTuple, PositionCurrencyUpdatedEvent.OutputObject>;
1144
1182
  "PositionExpirationUpdated(uint256,uint256)": TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1145
1183
  PositionExpirationUpdated: TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1146
1184
  "PositionReduced(address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address)": TypedContractEvent<PositionReducedEvent.InputTuple, PositionReducedEvent.OutputTuple, PositionReducedEvent.OutputObject>;
@@ -28,8 +28,8 @@
28
28
  "TradingVault-implemented-deprecated": "0xEe8D777729B5D8239FF18E77B04cf47a73FfE516",
29
29
  "USDC": "0xDd33fEeD5D44D9e89b69C8E9397292E0D6554a66",
30
30
  "TradingVault": "0xDAA0505313b7448374DB560c46584b4c85432e4E",
31
- "TradingVault-implemented": "0x65Be0a72f8BD657F22fC109CD6419c17978bd8b8",
32
- "TradingVault-implemented-old": "0xFCC0495c471700B9200178b0458D9259b562ffE6",
31
+ "TradingVault-implemented": "0xc0f56c51D8Eb033e31D2aAF5D94755B1da407dba",
32
+ "TradingVault-implemented-old": "0x65Be0a72f8BD657F22fC109CD6419c17978bd8b8",
33
33
  "UniswapV2Factory": "0xF64C66999F62b7B86aDF3477d426c8A26b1111be",
34
34
  "UniswapV2Router02": "0x4e3671ea1DdaeFa9eBB160e0fBC5D8785E0833Ab",
35
35
  "PTK": "0x7A526040174f47581B7a5dEf81E65045541Bbfc6",
@@ -40,8 +40,8 @@
40
40
  "MultiLevelReferralNFT-implemented": "0x8012522547Febe8daf9C23509A3BC97d8CCE8161",
41
41
  "MultiLevelReferralNFT-implemented-old": "0xBeb206dE71c26B51557a48665F53d8Ef08399Fe9",
42
42
  "NFTTicket": "0x3f1AC66384593AAF4d99B51776E1d7df00d2C271",
43
- "NFTTicket-implemented": "0x5099f248392C336186AA438BC871c6d3E0886b0C",
44
- "NFTTicket-implemented-old": "0x8915d96Ae316b321e8B3A00Ba21e4F5D41FF526C",
43
+ "NFTTicket-implemented": "0xcd1b2A525443d143EACecE0d44cf83c2F1933B8b",
44
+ "NFTTicket-implemented-old": "0x5099f248392C336186AA438BC871c6d3E0886b0C",
45
45
  "EthStaking": "0x65535DCF365B6dDb16E48e59476c289a07Cd4284",
46
46
  "EthStaking-implemented": "0x18897940594eBcF2cb4BD2E38d59F7FA79Dc406b",
47
47
  "Erc20Staking": "0x6Ff554aeBaaf4a31d3c7a60915d4fCACC3dD570b",
@@ -62,6 +62,12 @@
62
62
  "NFTTicket-implemented-old": "0xec38C132724BF909416bc3F222DD9c3357E70C39",
63
63
  "TradingVault": "0x4F6CAb6b514F7920fb41A8EbD54A7CF6B4293D1F",
64
64
  "Erc20Staking": "0x094131B2fEdF0bd0f60e0336d675Af484E8d58bF",
65
- "Erc20Staking-implemented": "0x0d6566A68024020Fcb5B7E4781Bb744e0F9BADE1"
65
+ "Erc20Staking-implemented": "0x0d6566A68024020Fcb5B7E4781Bb744e0F9BADE1",
66
+ "RestrictedErc20-deprecated": "0xFde1C006C364fA9CfB0BF529E46D9c9030Df7a81",
67
+ "RestrictedErc20-implemented": "0x623383e77360B717c9ef4cedC319DF2635B9Da4D",
68
+ "RestrictedErc20-implemented-old": "0x6059594c31A2DdfBe91f58EB3F947db5EE4cc541",
69
+ "TradingVault-implemented-old": "0x29C0AF3796cf91525A97a270bb9e319adEcf3187",
70
+ "TradingVault-implemented": "0xa830085Dc1B7B89266CD66510dDD0F60C3Cb81aF",
71
+ "RestrictedErc20": "0xb9E7D7A77B5Ac2ca61e496D497e4F7867107eD14"
66
72
  }
67
73
  }
package/dist/types.d.ts CHANGED
@@ -423,6 +423,26 @@ export interface RawMultiLevelReferralNFTEventTypes {
423
423
  oldValue: bigint;
424
424
  newValue: bigint;
425
425
  };
426
+ SharePercentUpdated: {
427
+ oldValue: bigint;
428
+ newValue: bigint;
429
+ };
430
+ MaxRewardUpdated: {
431
+ oldValue: bigint;
432
+ newValue: bigint;
433
+ };
434
+ NFTSold: {
435
+ seller: string;
436
+ tokenIds: bigint[];
437
+ reward: bigint;
438
+ timestamp: bigint;
439
+ };
440
+ SignerAdded: {
441
+ signer: string;
442
+ };
443
+ SignerRemoved: {
444
+ signer: string;
445
+ };
426
446
  Transfer: {
427
447
  from: string;
428
448
  to: string;
@@ -479,6 +499,26 @@ export interface MultiLevelReferralNFTEventTypes {
479
499
  oldValue: number;
480
500
  newValue: number;
481
501
  };
502
+ SharePercentUpdated: {
503
+ oldValue: number;
504
+ newValue: number;
505
+ };
506
+ MaxRewardUpdated: {
507
+ oldValue: number;
508
+ newValue: number;
509
+ };
510
+ NFTSold: {
511
+ seller: string;
512
+ tokenIds: number[];
513
+ reward: number;
514
+ timestamp: number;
515
+ };
516
+ SignerAdded: {
517
+ signer: string;
518
+ };
519
+ SignerRemoved: {
520
+ signer: string;
521
+ };
482
522
  Transfer: {
483
523
  from: string;
484
524
  to: string;
@@ -510,6 +550,20 @@ export interface EthStakingEventTypes {
510
550
  newAmount: number;
511
551
  };
512
552
  }
553
+ export type ParsedMultiLevelReferralNFTEvent = {
554
+ [K in keyof MultiLevelReferralNFTEventTypes]: {
555
+ eventName: K;
556
+ blockNumber: number;
557
+ transactionHash: string;
558
+ args: MultiLevelReferralNFTEventTypes[K];
559
+ timestamp: number | null;
560
+ address: string;
561
+ transactionIndex: number;
562
+ logIndex: number;
563
+ blockHash: string;
564
+ sender: string | null;
565
+ };
566
+ }[keyof MultiLevelReferralNFTEventTypes];
513
567
  export type ParsedMultiLevelReferralNFTEventRaw = {
514
568
  [K in keyof RawMultiLevelReferralNFTEventTypes]: BaseEventRaw & {
515
569
  eventName: K;
@@ -532,20 +586,6 @@ export type ParsedEthStakingEventRaw = {
532
586
  sender: string | null;
533
587
  };
534
588
  }[keyof RawEthStakingEventTypes];
535
- export type ParsedMultiLevelReferralNFTEvent = {
536
- [K in keyof MultiLevelReferralNFTEventTypes]: {
537
- eventName: K;
538
- blockNumber: number;
539
- transactionHash: string;
540
- args: MultiLevelReferralNFTEventTypes[K];
541
- timestamp: number | null;
542
- address: string;
543
- transactionIndex: number;
544
- logIndex: number;
545
- blockHash: string;
546
- sender: string | null;
547
- };
548
- }[keyof MultiLevelReferralNFTEventTypes];
549
589
  export type ParsedEthStakingEvent = {
550
590
  [K in keyof EthStakingEventTypes]: {
551
591
  eventName: K;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiia-vault-sdk",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "SDK for AIIA Vault Contract",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",