aiia-vault-sdk 1.4.1 → 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" | "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" | "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" | "transferFrom" | "transferOwnership" | "treasury" | "updateEntryPrice" | "updateRewardConfigs"): 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"): 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,8 @@ 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;
40
+ encodeFunctionData(functionFragment: "batchUpdateUserDebt", values: [AddressLike[], BigNumberish[]]): string;
39
41
  encodeFunctionData(functionFragment: "borrowCurrency", values: [BigNumberish]): string;
40
42
  encodeFunctionData(functionFragment: "claimERC20", values: [AddressLike, BigNumberish]): string;
41
43
  encodeFunctionData(functionFragment: "closeExpiredPosition", values: [BigNumberish, BigNumberish]): string;
@@ -61,6 +63,7 @@ export interface TradingVaultInterface extends Interface {
61
63
  encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
62
64
  encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
63
65
  encodeFunctionData(functionFragment: "repayCurrency", values: [BigNumberish]): string;
66
+ encodeFunctionData(functionFragment: "repayUserDebt", values: [BigNumberish]): string;
64
67
  encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
65
68
  encodeFunctionData(functionFragment: "rewardConfigs", values: [BigNumberish]): string;
66
69
  encodeFunctionData(functionFragment: "rewardToken", values?: undefined): string;
@@ -80,11 +83,13 @@ export interface TradingVaultInterface extends Interface {
80
83
  encodeFunctionData(functionFragment: "totalBorrowed", values?: undefined): string;
81
84
  encodeFunctionData(functionFragment: "totalRewardsAdded", values?: undefined): string;
82
85
  encodeFunctionData(functionFragment: "totalRewardsHarvested", values?: undefined): string;
86
+ encodeFunctionData(functionFragment: "totalUserDebt", values?: undefined): string;
83
87
  encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
84
88
  encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
85
89
  encodeFunctionData(functionFragment: "treasury", values?: undefined): string;
86
90
  encodeFunctionData(functionFragment: "updateEntryPrice", values: [BigNumberish, BigNumberish]): string;
87
91
  encodeFunctionData(functionFragment: "updateRewardConfigs", values: [TradingVault.RewardConfigStruct[]]): string;
92
+ encodeFunctionData(functionFragment: "userDebt", values: [AddressLike]): string;
88
93
  decodeFunctionResult(functionFragment: "BASE_WEIGHT", data: BytesLike): Result;
89
94
  decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
90
95
  decodeFunctionResult(functionFragment: "EXPO", data: BytesLike): Result;
@@ -100,6 +105,8 @@ export interface TradingVaultInterface extends Interface {
100
105
  decodeFunctionResult(functionFragment: "batchEmitPriceUpdated", data: BytesLike): Result;
101
106
  decodeFunctionResult(functionFragment: "batchSetPositionExpiration", data: BytesLike): Result;
102
107
  decodeFunctionResult(functionFragment: "batchUpdateEntryPrice", data: BytesLike): Result;
108
+ decodeFunctionResult(functionFragment: "batchUpdatePositionCurrency", data: BytesLike): Result;
109
+ decodeFunctionResult(functionFragment: "batchUpdateUserDebt", data: BytesLike): Result;
103
110
  decodeFunctionResult(functionFragment: "borrowCurrency", data: BytesLike): Result;
104
111
  decodeFunctionResult(functionFragment: "claimERC20", data: BytesLike): Result;
105
112
  decodeFunctionResult(functionFragment: "closeExpiredPosition", data: BytesLike): Result;
@@ -125,6 +132,7 @@ export interface TradingVaultInterface extends Interface {
125
132
  decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
126
133
  decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
127
134
  decodeFunctionResult(functionFragment: "repayCurrency", data: BytesLike): Result;
135
+ decodeFunctionResult(functionFragment: "repayUserDebt", data: BytesLike): Result;
128
136
  decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
129
137
  decodeFunctionResult(functionFragment: "rewardConfigs", data: BytesLike): Result;
130
138
  decodeFunctionResult(functionFragment: "rewardToken", data: BytesLike): Result;
@@ -144,11 +152,13 @@ export interface TradingVaultInterface extends Interface {
144
152
  decodeFunctionResult(functionFragment: "totalBorrowed", data: BytesLike): Result;
145
153
  decodeFunctionResult(functionFragment: "totalRewardsAdded", data: BytesLike): Result;
146
154
  decodeFunctionResult(functionFragment: "totalRewardsHarvested", data: BytesLike): Result;
155
+ decodeFunctionResult(functionFragment: "totalUserDebt", data: BytesLike): Result;
147
156
  decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
148
157
  decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
149
158
  decodeFunctionResult(functionFragment: "treasury", data: BytesLike): Result;
150
159
  decodeFunctionResult(functionFragment: "updateEntryPrice", data: BytesLike): Result;
151
160
  decodeFunctionResult(functionFragment: "updateRewardConfigs", data: BytesLike): Result;
161
+ decodeFunctionResult(functionFragment: "userDebt", data: BytesLike): Result;
152
162
  }
153
163
  export declare namespace ApprovalEvent {
154
164
  type InputTuple = [
@@ -301,6 +311,27 @@ export declare namespace PositionCreatedEvent {
301
311
  type Log = TypedEventLog<Event>;
302
312
  type LogDescription = TypedLogDescription<Event>;
303
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
+ }
304
335
  export declare namespace PositionExpirationUpdatedEvent {
305
336
  type InputTuple = [tokenId: BigNumberish, expiredAt: BigNumberish];
306
337
  type OutputTuple = [tokenId: bigint, expiredAt: bigint];
@@ -543,6 +574,44 @@ export declare namespace TreasuryUpdatedEvent {
543
574
  type Log = TypedEventLog<Event>;
544
575
  type LogDescription = TypedLogDescription<Event>;
545
576
  }
577
+ export declare namespace UserDebtRepaidEvent {
578
+ type InputTuple = [
579
+ user: AddressLike,
580
+ debtAmount: BigNumberish,
581
+ remainingDebt: BigNumberish
582
+ ];
583
+ type OutputTuple = [
584
+ user: string,
585
+ debtAmount: bigint,
586
+ remainingDebt: bigint
587
+ ];
588
+ interface OutputObject {
589
+ user: string;
590
+ debtAmount: bigint;
591
+ remainingDebt: bigint;
592
+ }
593
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
594
+ type Filter = TypedDeferredTopicFilter<Event>;
595
+ type Log = TypedEventLog<Event>;
596
+ type LogDescription = TypedLogDescription<Event>;
597
+ }
598
+ export declare namespace UserDebtUpdatedEvent {
599
+ type InputTuple = [
600
+ user: AddressLike,
601
+ oldDebt: BigNumberish,
602
+ newDebt: BigNumberish
603
+ ];
604
+ type OutputTuple = [user: string, oldDebt: bigint, newDebt: bigint];
605
+ interface OutputObject {
606
+ user: string;
607
+ oldDebt: bigint;
608
+ newDebt: bigint;
609
+ }
610
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
611
+ type Filter = TypedDeferredTopicFilter<Event>;
612
+ type Log = TypedEventLog<Event>;
613
+ type LogDescription = TypedLogDescription<Event>;
614
+ }
546
615
  export interface TradingVault extends BaseContract {
547
616
  connect(runner?: ContractRunner | null): TradingVault;
548
617
  waitForDeployment(): Promise<this>;
@@ -594,6 +663,18 @@ export interface TradingVault extends BaseContract {
594
663
  ], [
595
664
  void
596
665
  ], "nonpayable">;
666
+ batchUpdatePositionCurrency: TypedContractMethod<[
667
+ _tokenIds: BigNumberish[],
668
+ _newCurrencies: AddressLike[]
669
+ ], [
670
+ void
671
+ ], "nonpayable">;
672
+ batchUpdateUserDebt: TypedContractMethod<[
673
+ _users: AddressLike[],
674
+ _debts: BigNumberish[]
675
+ ], [
676
+ void
677
+ ], "nonpayable">;
597
678
  borrowCurrency: TypedContractMethod<[
598
679
  _amount: BigNumberish
599
680
  ], [
@@ -714,6 +795,11 @@ export interface TradingVault extends BaseContract {
714
795
  ], [
715
796
  void
716
797
  ], "nonpayable">;
798
+ repayUserDebt: TypedContractMethod<[
799
+ _amount: BigNumberish
800
+ ], [
801
+ void
802
+ ], "nonpayable">;
717
803
  revokeRole: TypedContractMethod<[
718
804
  role: BytesLike,
719
805
  account: AddressLike
@@ -792,6 +878,7 @@ export interface TradingVault extends BaseContract {
792
878
  totalBorrowed: TypedContractMethod<[], [bigint], "view">;
793
879
  totalRewardsAdded: TypedContractMethod<[], [bigint], "view">;
794
880
  totalRewardsHarvested: TypedContractMethod<[], [bigint], "view">;
881
+ totalUserDebt: TypedContractMethod<[], [bigint], "view">;
795
882
  transferFrom: TypedContractMethod<[
796
883
  from: AddressLike,
797
884
  to: AddressLike,
@@ -816,6 +903,7 @@ export interface TradingVault extends BaseContract {
816
903
  ], [
817
904
  void
818
905
  ], "nonpayable">;
906
+ userDebt: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
819
907
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
820
908
  getFunction(nameOrSignature: "BASE_WEIGHT"): TypedContractMethod<[], [bigint], "view">;
821
909
  getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
@@ -851,6 +939,18 @@ export interface TradingVault extends BaseContract {
851
939
  ], [
852
940
  void
853
941
  ], "nonpayable">;
942
+ getFunction(nameOrSignature: "batchUpdatePositionCurrency"): TypedContractMethod<[
943
+ _tokenIds: BigNumberish[],
944
+ _newCurrencies: AddressLike[]
945
+ ], [
946
+ void
947
+ ], "nonpayable">;
948
+ getFunction(nameOrSignature: "batchUpdateUserDebt"): TypedContractMethod<[
949
+ _users: AddressLike[],
950
+ _debts: BigNumberish[]
951
+ ], [
952
+ void
953
+ ], "nonpayable">;
854
954
  getFunction(nameOrSignature: "borrowCurrency"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
855
955
  getFunction(nameOrSignature: "claimERC20"): TypedContractMethod<[
856
956
  _token: AddressLike,
@@ -955,6 +1055,7 @@ export interface TradingVault extends BaseContract {
955
1055
  void
956
1056
  ], "nonpayable">;
957
1057
  getFunction(nameOrSignature: "repayCurrency"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
1058
+ getFunction(nameOrSignature: "repayUserDebt"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
958
1059
  getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
959
1060
  role: BytesLike,
960
1061
  account: AddressLike
@@ -1009,6 +1110,7 @@ export interface TradingVault extends BaseContract {
1009
1110
  getFunction(nameOrSignature: "totalBorrowed"): TypedContractMethod<[], [bigint], "view">;
1010
1111
  getFunction(nameOrSignature: "totalRewardsAdded"): TypedContractMethod<[], [bigint], "view">;
1011
1112
  getFunction(nameOrSignature: "totalRewardsHarvested"): TypedContractMethod<[], [bigint], "view">;
1113
+ getFunction(nameOrSignature: "totalUserDebt"): TypedContractMethod<[], [bigint], "view">;
1012
1114
  getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
1013
1115
  from: AddressLike,
1014
1116
  to: AddressLike,
@@ -1029,6 +1131,7 @@ export interface TradingVault extends BaseContract {
1029
1131
  ], [
1030
1132
  void
1031
1133
  ], "nonpayable">;
1134
+ getFunction(nameOrSignature: "userDebt"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
1032
1135
  getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
1033
1136
  getEvent(key: "ApprovalForAll"): TypedContractEvent<ApprovalForAllEvent.InputTuple, ApprovalForAllEvent.OutputTuple, ApprovalForAllEvent.OutputObject>;
1034
1137
  getEvent(key: "CurrencyBorrowed"): TypedContractEvent<CurrencyBorrowedEvent.InputTuple, CurrencyBorrowedEvent.OutputTuple, CurrencyBorrowedEvent.OutputObject>;
@@ -1038,6 +1141,7 @@ export interface TradingVault extends BaseContract {
1038
1141
  getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
1039
1142
  getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
1040
1143
  getEvent(key: "PositionCreated"): TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
1144
+ getEvent(key: "PositionCurrencyUpdated"): TypedContractEvent<PositionCurrencyUpdatedEvent.InputTuple, PositionCurrencyUpdatedEvent.OutputTuple, PositionCurrencyUpdatedEvent.OutputObject>;
1041
1145
  getEvent(key: "PositionExpirationUpdated"): TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1042
1146
  getEvent(key: "PositionReduced"): TypedContractEvent<PositionReducedEvent.InputTuple, PositionReducedEvent.OutputTuple, PositionReducedEvent.OutputObject>;
1043
1147
  getEvent(key: "PriceUpdated"): TypedContractEvent<PriceUpdatedEvent.InputTuple, PriceUpdatedEvent.OutputTuple, PriceUpdatedEvent.OutputObject>;
@@ -1052,6 +1156,8 @@ export interface TradingVault extends BaseContract {
1052
1156
  getEvent(key: "TotalRewardsUpdated"): TypedContractEvent<TotalRewardsUpdatedEvent.InputTuple, TotalRewardsUpdatedEvent.OutputTuple, TotalRewardsUpdatedEvent.OutputObject>;
1053
1157
  getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
1054
1158
  getEvent(key: "TreasuryUpdated"): TypedContractEvent<TreasuryUpdatedEvent.InputTuple, TreasuryUpdatedEvent.OutputTuple, TreasuryUpdatedEvent.OutputObject>;
1159
+ getEvent(key: "UserDebtRepaid"): TypedContractEvent<UserDebtRepaidEvent.InputTuple, UserDebtRepaidEvent.OutputTuple, UserDebtRepaidEvent.OutputObject>;
1160
+ getEvent(key: "UserDebtUpdated"): TypedContractEvent<UserDebtUpdatedEvent.InputTuple, UserDebtUpdatedEvent.OutputTuple, UserDebtUpdatedEvent.OutputObject>;
1055
1161
  filters: {
1056
1162
  "Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
1057
1163
  Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
@@ -1071,6 +1177,8 @@ export interface TradingVault extends BaseContract {
1071
1177
  OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
1072
1178
  "PositionCreated(address,uint256,uint256,uint256,uint256,address,uint256)": TypedContractEvent<PositionCreatedEvent.InputTuple, PositionCreatedEvent.OutputTuple, PositionCreatedEvent.OutputObject>;
1073
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>;
1074
1182
  "PositionExpirationUpdated(uint256,uint256)": TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1075
1183
  PositionExpirationUpdated: TypedContractEvent<PositionExpirationUpdatedEvent.InputTuple, PositionExpirationUpdatedEvent.OutputTuple, PositionExpirationUpdatedEvent.OutputObject>;
1076
1184
  "PositionReduced(address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,address)": TypedContractEvent<PositionReducedEvent.InputTuple, PositionReducedEvent.OutputTuple, PositionReducedEvent.OutputObject>;
@@ -1099,5 +1207,9 @@ export interface TradingVault extends BaseContract {
1099
1207
  Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
1100
1208
  "TreasuryUpdated(address,address)": TypedContractEvent<TreasuryUpdatedEvent.InputTuple, TreasuryUpdatedEvent.OutputTuple, TreasuryUpdatedEvent.OutputObject>;
1101
1209
  TreasuryUpdated: TypedContractEvent<TreasuryUpdatedEvent.InputTuple, TreasuryUpdatedEvent.OutputTuple, TreasuryUpdatedEvent.OutputObject>;
1210
+ "UserDebtRepaid(address,uint256,uint256)": TypedContractEvent<UserDebtRepaidEvent.InputTuple, UserDebtRepaidEvent.OutputTuple, UserDebtRepaidEvent.OutputObject>;
1211
+ UserDebtRepaid: TypedContractEvent<UserDebtRepaidEvent.InputTuple, UserDebtRepaidEvent.OutputTuple, UserDebtRepaidEvent.OutputObject>;
1212
+ "UserDebtUpdated(address,uint256,uint256)": TypedContractEvent<UserDebtUpdatedEvent.InputTuple, UserDebtUpdatedEvent.OutputTuple, UserDebtUpdatedEvent.OutputObject>;
1213
+ UserDebtUpdated: TypedContractEvent<UserDebtUpdatedEvent.InputTuple, UserDebtUpdatedEvent.OutputTuple, UserDebtUpdatedEvent.OutputObject>;
1102
1214
  };
1103
1215
  }