@towns-protocol/generated 0.0.352 → 0.0.353

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.
@@ -31,6 +31,7 @@ export type SubscriptionStruct = {
31
31
  tokenId: PromiseOrValue<BigNumberish>;
32
32
  spent: PromiseOrValue<BigNumberish>;
33
33
  space: PromiseOrValue<string>;
34
+ installTime: PromiseOrValue<BigNumberish>;
34
35
  lastRenewalTime: PromiseOrValue<BigNumberish>;
35
36
  nextRenewalTime: PromiseOrValue<BigNumberish>;
36
37
  active: PromiseOrValue<boolean>;
@@ -42,11 +43,13 @@ export type SubscriptionStructOutput = [
42
43
  string,
43
44
  number,
44
45
  number,
46
+ number,
45
47
  boolean
46
48
  ] & {
47
49
  tokenId: BigNumber;
48
50
  spent: BigNumber;
49
51
  space: string;
52
+ installTime: number;
50
53
  lastRenewalTime: number;
51
54
  nextRenewalTime: number;
52
55
  active: boolean;
@@ -100,12 +103,17 @@ export declare namespace ISubscriptionModuleBase {
100
103
 
101
104
  export interface SubscriptionModuleFacetInterface extends utils.Interface {
102
105
  functions: {
106
+ "BUFFER_IMMEDIATE()": FunctionFragment;
107
+ "BUFFER_LONG()": FunctionFragment;
108
+ "BUFFER_MEDIUM()": FunctionFragment;
109
+ "BUFFER_SHORT()": FunctionFragment;
103
110
  "GRACE_PERIOD()": FunctionFragment;
104
111
  "MAX_BATCH_SIZE()": FunctionFragment;
105
- "RENEWAL_BUFFER()": FunctionFragment;
106
112
  "__SubscriptionModule_init()": FunctionFragment;
113
+ "activateSubscription(uint32)": FunctionFragment;
107
114
  "batchProcessRenewals((address,uint32)[])": FunctionFragment;
108
115
  "getEntityIds(address)": FunctionFragment;
116
+ "getRenewalBuffer(uint256)": FunctionFragment;
109
117
  "getSubscription(address,uint32)": FunctionFragment;
110
118
  "grantOperator(address)": FunctionFragment;
111
119
  "isOperator(address)": FunctionFragment;
@@ -116,7 +124,6 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
116
124
  "preRuntimeValidationHook(uint32,address,uint256,bytes,bytes)": FunctionFragment;
117
125
  "preSignatureValidationHook(uint32,address,bytes32,bytes)": FunctionFragment;
118
126
  "preUserOpValidationHook(uint32,(address,uint256,bytes,bytes,bytes32,uint256,bytes32,bytes,bytes),bytes32)": FunctionFragment;
119
- "processRenewal((address,uint32))": FunctionFragment;
120
127
  "revokeOperator(address)": FunctionFragment;
121
128
  "supportsInterface(bytes4)": FunctionFragment;
122
129
  "validateRuntime(address,uint32,address,uint256,bytes,bytes)": FunctionFragment;
@@ -126,12 +133,17 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
126
133
 
127
134
  getFunction(
128
135
  nameOrSignatureOrTopic:
136
+ | "BUFFER_IMMEDIATE"
137
+ | "BUFFER_LONG"
138
+ | "BUFFER_MEDIUM"
139
+ | "BUFFER_SHORT"
129
140
  | "GRACE_PERIOD"
130
141
  | "MAX_BATCH_SIZE"
131
- | "RENEWAL_BUFFER"
132
142
  | "__SubscriptionModule_init"
143
+ | "activateSubscription"
133
144
  | "batchProcessRenewals"
134
145
  | "getEntityIds"
146
+ | "getRenewalBuffer"
135
147
  | "getSubscription"
136
148
  | "grantOperator"
137
149
  | "isOperator"
@@ -142,7 +154,6 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
142
154
  | "preRuntimeValidationHook"
143
155
  | "preSignatureValidationHook"
144
156
  | "preUserOpValidationHook"
145
- | "processRenewal"
146
157
  | "revokeOperator"
147
158
  | "supportsInterface"
148
159
  | "validateRuntime"
@@ -151,21 +162,37 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
151
162
  ): FunctionFragment;
152
163
 
153
164
  encodeFunctionData(
154
- functionFragment: "GRACE_PERIOD",
165
+ functionFragment: "BUFFER_IMMEDIATE",
155
166
  values?: undefined
156
167
  ): string;
157
168
  encodeFunctionData(
158
- functionFragment: "MAX_BATCH_SIZE",
169
+ functionFragment: "BUFFER_LONG",
170
+ values?: undefined
171
+ ): string;
172
+ encodeFunctionData(
173
+ functionFragment: "BUFFER_MEDIUM",
174
+ values?: undefined
175
+ ): string;
176
+ encodeFunctionData(
177
+ functionFragment: "BUFFER_SHORT",
178
+ values?: undefined
179
+ ): string;
180
+ encodeFunctionData(
181
+ functionFragment: "GRACE_PERIOD",
159
182
  values?: undefined
160
183
  ): string;
161
184
  encodeFunctionData(
162
- functionFragment: "RENEWAL_BUFFER",
185
+ functionFragment: "MAX_BATCH_SIZE",
163
186
  values?: undefined
164
187
  ): string;
165
188
  encodeFunctionData(
166
189
  functionFragment: "__SubscriptionModule_init",
167
190
  values?: undefined
168
191
  ): string;
192
+ encodeFunctionData(
193
+ functionFragment: "activateSubscription",
194
+ values: [PromiseOrValue<BigNumberish>]
195
+ ): string;
169
196
  encodeFunctionData(
170
197
  functionFragment: "batchProcessRenewals",
171
198
  values: [ISubscriptionModuleBase.RenewalParamsStruct[]]
@@ -174,6 +201,10 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
174
201
  functionFragment: "getEntityIds",
175
202
  values: [PromiseOrValue<string>]
176
203
  ): string;
204
+ encodeFunctionData(
205
+ functionFragment: "getRenewalBuffer",
206
+ values: [PromiseOrValue<BigNumberish>]
207
+ ): string;
177
208
  encodeFunctionData(
178
209
  functionFragment: "getSubscription",
179
210
  values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
@@ -226,10 +257,6 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
226
257
  PromiseOrValue<BytesLike>
227
258
  ]
228
259
  ): string;
229
- encodeFunctionData(
230
- functionFragment: "processRenewal",
231
- values: [ISubscriptionModuleBase.RenewalParamsStruct]
232
- ): string;
233
260
  encodeFunctionData(
234
261
  functionFragment: "revokeOperator",
235
262
  values: [PromiseOrValue<string>]
@@ -268,6 +295,22 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
268
295
  ]
269
296
  ): string;
270
297
 
298
+ decodeFunctionResult(
299
+ functionFragment: "BUFFER_IMMEDIATE",
300
+ data: BytesLike
301
+ ): Result;
302
+ decodeFunctionResult(
303
+ functionFragment: "BUFFER_LONG",
304
+ data: BytesLike
305
+ ): Result;
306
+ decodeFunctionResult(
307
+ functionFragment: "BUFFER_MEDIUM",
308
+ data: BytesLike
309
+ ): Result;
310
+ decodeFunctionResult(
311
+ functionFragment: "BUFFER_SHORT",
312
+ data: BytesLike
313
+ ): Result;
271
314
  decodeFunctionResult(
272
315
  functionFragment: "GRACE_PERIOD",
273
316
  data: BytesLike
@@ -277,11 +320,11 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
277
320
  data: BytesLike
278
321
  ): Result;
279
322
  decodeFunctionResult(
280
- functionFragment: "RENEWAL_BUFFER",
323
+ functionFragment: "__SubscriptionModule_init",
281
324
  data: BytesLike
282
325
  ): Result;
283
326
  decodeFunctionResult(
284
- functionFragment: "__SubscriptionModule_init",
327
+ functionFragment: "activateSubscription",
285
328
  data: BytesLike
286
329
  ): Result;
287
330
  decodeFunctionResult(
@@ -292,6 +335,10 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
292
335
  functionFragment: "getEntityIds",
293
336
  data: BytesLike
294
337
  ): Result;
338
+ decodeFunctionResult(
339
+ functionFragment: "getRenewalBuffer",
340
+ data: BytesLike
341
+ ): Result;
295
342
  decodeFunctionResult(
296
343
  functionFragment: "getSubscription",
297
344
  data: BytesLike
@@ -323,10 +370,6 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
323
370
  functionFragment: "preUserOpValidationHook",
324
371
  data: BytesLike
325
372
  ): Result;
326
- decodeFunctionResult(
327
- functionFragment: "processRenewal",
328
- data: BytesLike
329
- ): Result;
330
373
  decodeFunctionResult(
331
374
  functionFragment: "revokeOperator",
332
375
  data: BytesLike
@@ -356,11 +399,14 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
356
399
  "OperatorGranted(address)": EventFragment;
357
400
  "OperatorRevoked(address)": EventFragment;
358
401
  "OwnershipTransferred(address,address)": EventFragment;
402
+ "SubscriptionActivated(address,uint32)": EventFragment;
359
403
  "SubscriptionConfigured(address,uint32,address,uint256,uint64)": EventFragment;
360
404
  "SubscriptionDeactivated(address,uint32)": EventFragment;
405
+ "SubscriptionNotDue(address,uint32)": EventFragment;
361
406
  "SubscriptionPaused(address,uint32)": EventFragment;
362
407
  "SubscriptionRenewed(address,uint32,uint256)": EventFragment;
363
408
  "SubscriptionSpent(address,uint32,uint256,uint256)": EventFragment;
409
+ "SubscriptionSynced(address,uint32,uint256)": EventFragment;
364
410
  };
365
411
 
366
412
  getEvent(nameOrSignatureOrTopic: "BatchRenewalSkipped"): EventFragment;
@@ -370,11 +416,14 @@ export interface SubscriptionModuleFacetInterface extends utils.Interface {
370
416
  getEvent(nameOrSignatureOrTopic: "OperatorGranted"): EventFragment;
371
417
  getEvent(nameOrSignatureOrTopic: "OperatorRevoked"): EventFragment;
372
418
  getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
419
+ getEvent(nameOrSignatureOrTopic: "SubscriptionActivated"): EventFragment;
373
420
  getEvent(nameOrSignatureOrTopic: "SubscriptionConfigured"): EventFragment;
374
421
  getEvent(nameOrSignatureOrTopic: "SubscriptionDeactivated"): EventFragment;
422
+ getEvent(nameOrSignatureOrTopic: "SubscriptionNotDue"): EventFragment;
375
423
  getEvent(nameOrSignatureOrTopic: "SubscriptionPaused"): EventFragment;
376
424
  getEvent(nameOrSignatureOrTopic: "SubscriptionRenewed"): EventFragment;
377
425
  getEvent(nameOrSignatureOrTopic: "SubscriptionSpent"): EventFragment;
426
+ getEvent(nameOrSignatureOrTopic: "SubscriptionSynced"): EventFragment;
378
427
  }
379
428
 
380
429
  export interface BatchRenewalSkippedEventObject {
@@ -450,6 +499,18 @@ export type OwnershipTransferredEvent = TypedEvent<
450
499
  export type OwnershipTransferredEventFilter =
451
500
  TypedEventFilter<OwnershipTransferredEvent>;
452
501
 
502
+ export interface SubscriptionActivatedEventObject {
503
+ account: string;
504
+ entityId: number;
505
+ }
506
+ export type SubscriptionActivatedEvent = TypedEvent<
507
+ [string, number],
508
+ SubscriptionActivatedEventObject
509
+ >;
510
+
511
+ export type SubscriptionActivatedEventFilter =
512
+ TypedEventFilter<SubscriptionActivatedEvent>;
513
+
453
514
  export interface SubscriptionConfiguredEventObject {
454
515
  account: string;
455
516
  entityId: number;
@@ -477,6 +538,18 @@ export type SubscriptionDeactivatedEvent = TypedEvent<
477
538
  export type SubscriptionDeactivatedEventFilter =
478
539
  TypedEventFilter<SubscriptionDeactivatedEvent>;
479
540
 
541
+ export interface SubscriptionNotDueEventObject {
542
+ account: string;
543
+ entityId: number;
544
+ }
545
+ export type SubscriptionNotDueEvent = TypedEvent<
546
+ [string, number],
547
+ SubscriptionNotDueEventObject
548
+ >;
549
+
550
+ export type SubscriptionNotDueEventFilter =
551
+ TypedEventFilter<SubscriptionNotDueEvent>;
552
+
480
553
  export interface SubscriptionPausedEventObject {
481
554
  account: string;
482
555
  entityId: number;
@@ -516,6 +589,19 @@ export type SubscriptionSpentEvent = TypedEvent<
516
589
  export type SubscriptionSpentEventFilter =
517
590
  TypedEventFilter<SubscriptionSpentEvent>;
518
591
 
592
+ export interface SubscriptionSyncedEventObject {
593
+ account: string;
594
+ entityId: number;
595
+ newNextRenewalTime: BigNumber;
596
+ }
597
+ export type SubscriptionSyncedEvent = TypedEvent<
598
+ [string, number, BigNumber],
599
+ SubscriptionSyncedEventObject
600
+ >;
601
+
602
+ export type SubscriptionSyncedEventFilter =
603
+ TypedEventFilter<SubscriptionSyncedEvent>;
604
+
519
605
  export interface SubscriptionModuleFacet extends BaseContract {
520
606
  connect(signerOrProvider: Signer | Provider | string): this;
521
607
  attach(addressOrName: string): this;
@@ -543,16 +629,27 @@ export interface SubscriptionModuleFacet extends BaseContract {
543
629
  removeListener: OnEvent<this>;
544
630
 
545
631
  functions: {
632
+ BUFFER_IMMEDIATE(overrides?: CallOverrides): Promise<[BigNumber]>;
633
+
634
+ BUFFER_LONG(overrides?: CallOverrides): Promise<[BigNumber]>;
635
+
636
+ BUFFER_MEDIUM(overrides?: CallOverrides): Promise<[BigNumber]>;
637
+
638
+ BUFFER_SHORT(overrides?: CallOverrides): Promise<[BigNumber]>;
639
+
546
640
  GRACE_PERIOD(overrides?: CallOverrides): Promise<[BigNumber]>;
547
641
 
548
642
  MAX_BATCH_SIZE(overrides?: CallOverrides): Promise<[BigNumber]>;
549
643
 
550
- RENEWAL_BUFFER(overrides?: CallOverrides): Promise<[BigNumber]>;
551
-
552
644
  __SubscriptionModule_init(
553
645
  overrides?: Overrides & { from?: PromiseOrValue<string> }
554
646
  ): Promise<ContractTransaction>;
555
647
 
648
+ activateSubscription(
649
+ entityId: PromiseOrValue<BigNumberish>,
650
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
651
+ ): Promise<ContractTransaction>;
652
+
556
653
  batchProcessRenewals(
557
654
  params: ISubscriptionModuleBase.RenewalParamsStruct[],
558
655
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -563,6 +660,11 @@ export interface SubscriptionModuleFacet extends BaseContract {
563
660
  overrides?: CallOverrides
564
661
  ): Promise<[BigNumber[]]>;
565
662
 
663
+ getRenewalBuffer(
664
+ expirationTime: PromiseOrValue<BigNumberish>,
665
+ overrides?: CallOverrides
666
+ ): Promise<[BigNumber]>;
667
+
566
668
  getSubscription(
567
669
  account: PromiseOrValue<string>,
568
670
  entityId: PromiseOrValue<BigNumberish>,
@@ -620,11 +722,6 @@ export interface SubscriptionModuleFacet extends BaseContract {
620
722
  overrides?: CallOverrides
621
723
  ): Promise<[BigNumber]>;
622
724
 
623
- processRenewal(
624
- renewalParams: ISubscriptionModuleBase.RenewalParamsStruct,
625
- overrides?: Overrides & { from?: PromiseOrValue<string> }
626
- ): Promise<ContractTransaction>;
627
-
628
725
  revokeOperator(
629
726
  operator: PromiseOrValue<string>,
630
727
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -662,16 +759,27 @@ export interface SubscriptionModuleFacet extends BaseContract {
662
759
  ): Promise<[BigNumber]>;
663
760
  };
664
761
 
762
+ BUFFER_IMMEDIATE(overrides?: CallOverrides): Promise<BigNumber>;
763
+
764
+ BUFFER_LONG(overrides?: CallOverrides): Promise<BigNumber>;
765
+
766
+ BUFFER_MEDIUM(overrides?: CallOverrides): Promise<BigNumber>;
767
+
768
+ BUFFER_SHORT(overrides?: CallOverrides): Promise<BigNumber>;
769
+
665
770
  GRACE_PERIOD(overrides?: CallOverrides): Promise<BigNumber>;
666
771
 
667
772
  MAX_BATCH_SIZE(overrides?: CallOverrides): Promise<BigNumber>;
668
773
 
669
- RENEWAL_BUFFER(overrides?: CallOverrides): Promise<BigNumber>;
670
-
671
774
  __SubscriptionModule_init(
672
775
  overrides?: Overrides & { from?: PromiseOrValue<string> }
673
776
  ): Promise<ContractTransaction>;
674
777
 
778
+ activateSubscription(
779
+ entityId: PromiseOrValue<BigNumberish>,
780
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
781
+ ): Promise<ContractTransaction>;
782
+
675
783
  batchProcessRenewals(
676
784
  params: ISubscriptionModuleBase.RenewalParamsStruct[],
677
785
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -682,6 +790,11 @@ export interface SubscriptionModuleFacet extends BaseContract {
682
790
  overrides?: CallOverrides
683
791
  ): Promise<BigNumber[]>;
684
792
 
793
+ getRenewalBuffer(
794
+ expirationTime: PromiseOrValue<BigNumberish>,
795
+ overrides?: CallOverrides
796
+ ): Promise<BigNumber>;
797
+
685
798
  getSubscription(
686
799
  account: PromiseOrValue<string>,
687
800
  entityId: PromiseOrValue<BigNumberish>,
@@ -739,11 +852,6 @@ export interface SubscriptionModuleFacet extends BaseContract {
739
852
  overrides?: CallOverrides
740
853
  ): Promise<BigNumber>;
741
854
 
742
- processRenewal(
743
- renewalParams: ISubscriptionModuleBase.RenewalParamsStruct,
744
- overrides?: Overrides & { from?: PromiseOrValue<string> }
745
- ): Promise<ContractTransaction>;
746
-
747
855
  revokeOperator(
748
856
  operator: PromiseOrValue<string>,
749
857
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -781,14 +889,25 @@ export interface SubscriptionModuleFacet extends BaseContract {
781
889
  ): Promise<BigNumber>;
782
890
 
783
891
  callStatic: {
892
+ BUFFER_IMMEDIATE(overrides?: CallOverrides): Promise<BigNumber>;
893
+
894
+ BUFFER_LONG(overrides?: CallOverrides): Promise<BigNumber>;
895
+
896
+ BUFFER_MEDIUM(overrides?: CallOverrides): Promise<BigNumber>;
897
+
898
+ BUFFER_SHORT(overrides?: CallOverrides): Promise<BigNumber>;
899
+
784
900
  GRACE_PERIOD(overrides?: CallOverrides): Promise<BigNumber>;
785
901
 
786
902
  MAX_BATCH_SIZE(overrides?: CallOverrides): Promise<BigNumber>;
787
903
 
788
- RENEWAL_BUFFER(overrides?: CallOverrides): Promise<BigNumber>;
789
-
790
904
  __SubscriptionModule_init(overrides?: CallOverrides): Promise<void>;
791
905
 
906
+ activateSubscription(
907
+ entityId: PromiseOrValue<BigNumberish>,
908
+ overrides?: CallOverrides
909
+ ): Promise<void>;
910
+
792
911
  batchProcessRenewals(
793
912
  params: ISubscriptionModuleBase.RenewalParamsStruct[],
794
913
  overrides?: CallOverrides
@@ -799,6 +918,11 @@ export interface SubscriptionModuleFacet extends BaseContract {
799
918
  overrides?: CallOverrides
800
919
  ): Promise<BigNumber[]>;
801
920
 
921
+ getRenewalBuffer(
922
+ expirationTime: PromiseOrValue<BigNumberish>,
923
+ overrides?: CallOverrides
924
+ ): Promise<BigNumber>;
925
+
802
926
  getSubscription(
803
927
  account: PromiseOrValue<string>,
804
928
  entityId: PromiseOrValue<BigNumberish>,
@@ -856,11 +980,6 @@ export interface SubscriptionModuleFacet extends BaseContract {
856
980
  overrides?: CallOverrides
857
981
  ): Promise<BigNumber>;
858
982
 
859
- processRenewal(
860
- renewalParams: ISubscriptionModuleBase.RenewalParamsStruct,
861
- overrides?: CallOverrides
862
- ): Promise<void>;
863
-
864
983
  revokeOperator(
865
984
  operator: PromiseOrValue<string>,
866
985
  overrides?: CallOverrides
@@ -950,6 +1069,15 @@ export interface SubscriptionModuleFacet extends BaseContract {
950
1069
  newOwner?: PromiseOrValue<string> | null
951
1070
  ): OwnershipTransferredEventFilter;
952
1071
 
1072
+ "SubscriptionActivated(address,uint32)"(
1073
+ account?: PromiseOrValue<string> | null,
1074
+ entityId?: PromiseOrValue<BigNumberish> | null
1075
+ ): SubscriptionActivatedEventFilter;
1076
+ SubscriptionActivated(
1077
+ account?: PromiseOrValue<string> | null,
1078
+ entityId?: PromiseOrValue<BigNumberish> | null
1079
+ ): SubscriptionActivatedEventFilter;
1080
+
953
1081
  "SubscriptionConfigured(address,uint32,address,uint256,uint64)"(
954
1082
  account?: PromiseOrValue<string> | null,
955
1083
  entityId?: PromiseOrValue<BigNumberish> | null,
@@ -974,6 +1102,15 @@ export interface SubscriptionModuleFacet extends BaseContract {
974
1102
  entityId?: PromiseOrValue<BigNumberish> | null
975
1103
  ): SubscriptionDeactivatedEventFilter;
976
1104
 
1105
+ "SubscriptionNotDue(address,uint32)"(
1106
+ account?: PromiseOrValue<string> | null,
1107
+ entityId?: PromiseOrValue<BigNumberish> | null
1108
+ ): SubscriptionNotDueEventFilter;
1109
+ SubscriptionNotDue(
1110
+ account?: PromiseOrValue<string> | null,
1111
+ entityId?: PromiseOrValue<BigNumberish> | null
1112
+ ): SubscriptionNotDueEventFilter;
1113
+
977
1114
  "SubscriptionPaused(address,uint32)"(
978
1115
  account?: PromiseOrValue<string> | null,
979
1116
  entityId?: PromiseOrValue<BigNumberish> | null
@@ -1006,19 +1143,41 @@ export interface SubscriptionModuleFacet extends BaseContract {
1006
1143
  amount?: null,
1007
1144
  totalSpent?: null
1008
1145
  ): SubscriptionSpentEventFilter;
1146
+
1147
+ "SubscriptionSynced(address,uint32,uint256)"(
1148
+ account?: PromiseOrValue<string> | null,
1149
+ entityId?: PromiseOrValue<BigNumberish> | null,
1150
+ newNextRenewalTime?: null
1151
+ ): SubscriptionSyncedEventFilter;
1152
+ SubscriptionSynced(
1153
+ account?: PromiseOrValue<string> | null,
1154
+ entityId?: PromiseOrValue<BigNumberish> | null,
1155
+ newNextRenewalTime?: null
1156
+ ): SubscriptionSyncedEventFilter;
1009
1157
  };
1010
1158
 
1011
1159
  estimateGas: {
1160
+ BUFFER_IMMEDIATE(overrides?: CallOverrides): Promise<BigNumber>;
1161
+
1162
+ BUFFER_LONG(overrides?: CallOverrides): Promise<BigNumber>;
1163
+
1164
+ BUFFER_MEDIUM(overrides?: CallOverrides): Promise<BigNumber>;
1165
+
1166
+ BUFFER_SHORT(overrides?: CallOverrides): Promise<BigNumber>;
1167
+
1012
1168
  GRACE_PERIOD(overrides?: CallOverrides): Promise<BigNumber>;
1013
1169
 
1014
1170
  MAX_BATCH_SIZE(overrides?: CallOverrides): Promise<BigNumber>;
1015
1171
 
1016
- RENEWAL_BUFFER(overrides?: CallOverrides): Promise<BigNumber>;
1017
-
1018
1172
  __SubscriptionModule_init(
1019
1173
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1020
1174
  ): Promise<BigNumber>;
1021
1175
 
1176
+ activateSubscription(
1177
+ entityId: PromiseOrValue<BigNumberish>,
1178
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1179
+ ): Promise<BigNumber>;
1180
+
1022
1181
  batchProcessRenewals(
1023
1182
  params: ISubscriptionModuleBase.RenewalParamsStruct[],
1024
1183
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -1029,6 +1188,11 @@ export interface SubscriptionModuleFacet extends BaseContract {
1029
1188
  overrides?: CallOverrides
1030
1189
  ): Promise<BigNumber>;
1031
1190
 
1191
+ getRenewalBuffer(
1192
+ expirationTime: PromiseOrValue<BigNumberish>,
1193
+ overrides?: CallOverrides
1194
+ ): Promise<BigNumber>;
1195
+
1032
1196
  getSubscription(
1033
1197
  account: PromiseOrValue<string>,
1034
1198
  entityId: PromiseOrValue<BigNumberish>,
@@ -1086,11 +1250,6 @@ export interface SubscriptionModuleFacet extends BaseContract {
1086
1250
  overrides?: CallOverrides
1087
1251
  ): Promise<BigNumber>;
1088
1252
 
1089
- processRenewal(
1090
- renewalParams: ISubscriptionModuleBase.RenewalParamsStruct,
1091
- overrides?: Overrides & { from?: PromiseOrValue<string> }
1092
- ): Promise<BigNumber>;
1093
-
1094
1253
  revokeOperator(
1095
1254
  operator: PromiseOrValue<string>,
1096
1255
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -1129,16 +1288,27 @@ export interface SubscriptionModuleFacet extends BaseContract {
1129
1288
  };
1130
1289
 
1131
1290
  populateTransaction: {
1291
+ BUFFER_IMMEDIATE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1292
+
1293
+ BUFFER_LONG(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1294
+
1295
+ BUFFER_MEDIUM(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1296
+
1297
+ BUFFER_SHORT(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1298
+
1132
1299
  GRACE_PERIOD(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1133
1300
 
1134
1301
  MAX_BATCH_SIZE(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1135
1302
 
1136
- RENEWAL_BUFFER(overrides?: CallOverrides): Promise<PopulatedTransaction>;
1137
-
1138
1303
  __SubscriptionModule_init(
1139
1304
  overrides?: Overrides & { from?: PromiseOrValue<string> }
1140
1305
  ): Promise<PopulatedTransaction>;
1141
1306
 
1307
+ activateSubscription(
1308
+ entityId: PromiseOrValue<BigNumberish>,
1309
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
1310
+ ): Promise<PopulatedTransaction>;
1311
+
1142
1312
  batchProcessRenewals(
1143
1313
  params: ISubscriptionModuleBase.RenewalParamsStruct[],
1144
1314
  overrides?: Overrides & { from?: PromiseOrValue<string> }
@@ -1149,6 +1319,11 @@ export interface SubscriptionModuleFacet extends BaseContract {
1149
1319
  overrides?: CallOverrides
1150
1320
  ): Promise<PopulatedTransaction>;
1151
1321
 
1322
+ getRenewalBuffer(
1323
+ expirationTime: PromiseOrValue<BigNumberish>,
1324
+ overrides?: CallOverrides
1325
+ ): Promise<PopulatedTransaction>;
1326
+
1152
1327
  getSubscription(
1153
1328
  account: PromiseOrValue<string>,
1154
1329
  entityId: PromiseOrValue<BigNumberish>,
@@ -1206,11 +1381,6 @@ export interface SubscriptionModuleFacet extends BaseContract {
1206
1381
  overrides?: CallOverrides
1207
1382
  ): Promise<PopulatedTransaction>;
1208
1383
 
1209
- processRenewal(
1210
- renewalParams: ISubscriptionModuleBase.RenewalParamsStruct,
1211
- overrides?: Overrides & { from?: PromiseOrValue<string> }
1212
- ): Promise<PopulatedTransaction>;
1213
-
1214
1384
  revokeOperator(
1215
1385
  operator: PromiseOrValue<string>,
1216
1386
  overrides?: Overrides & { from?: PromiseOrValue<string> }