@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.
@@ -9,7 +9,7 @@
9
9
  "space": "0x8DdfAD0259803FA140e076C636E726573df77905",
10
10
  "spaceFactory": "0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3",
11
11
  "spaceOwner": "0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0",
12
- "subscriptionModule": "0x709b0da64962b03559D5e7084a23B1a8c73C76a0",
12
+ "subscriptionModule": "0x07dd39b955F974186daFB2EDC6B4E03632E9AC75",
13
13
  "swapRouter": "0xE2CE9e11BF480a5b88ad4008915D97d35C5087d5",
14
14
  "utils": {
15
15
  "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
@@ -57,7 +57,7 @@
57
57
  "space": "0x99a177F81902fddc4785c6fc108C8F21BDB2aFe9",
58
58
  "spaceFactory": "0x968696BC59431Ef085441641f550C8e2Eaca8BEd",
59
59
  "spaceOwner": "0x9dEdb330A126C6dF2893a33018bb81aFE8573805",
60
- "subscriptionModule": "0xC4ef979B45414Ec66Cf39e220781F96B8f3EeD93",
60
+ "subscriptionModule": "0x55751fE93F4B9C5fB9E9B9328a26A6c56e4eDd41",
61
61
  "swapRouter": "0x4997CC907512275b8D7E1c682a46f17d676F4913",
62
62
  "utils": {
63
63
  "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
@@ -6,7 +6,7 @@ BASE_ADDRESSES_RIVER_AIRDROP=0x5cb1B2a6d413879a7A4A89f46e0621db04aa6430
6
6
  BASE_ADDRESSES_SPACE=0x8DdfAD0259803FA140e076C636E726573df77905
7
7
  BASE_ADDRESSES_SPACE_FACTORY=0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3
8
8
  BASE_ADDRESSES_SPACE_OWNER=0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0
9
- BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x709b0da64962b03559D5e7084a23B1a8c73C76a0
9
+ BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x07dd39b955F974186daFB2EDC6B4E03632E9AC75
10
10
  BASE_ADDRESSES_SWAP_ROUTER=0xE2CE9e11BF480a5b88ad4008915D97d35C5087d5
11
11
  BASE_ADDRESSES_UTILS_TOWNS=0x00000000A22C618fd6b4D7E9A335C4B96B189a38
12
12
  RIVER_CHAIN_ID=6524490
@@ -6,7 +6,7 @@ VITE_BASE_ADDRESSES_RIVER_AIRDROP=0x5cb1B2a6d413879a7A4A89f46e0621db04aa6430
6
6
  VITE_BASE_ADDRESSES_SPACE=0x8DdfAD0259803FA140e076C636E726573df77905
7
7
  VITE_BASE_ADDRESSES_SPACE_FACTORY=0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3
8
8
  VITE_BASE_ADDRESSES_SPACE_OWNER=0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0
9
- VITE_BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x709b0da64962b03559D5e7084a23B1a8c73C76a0
9
+ VITE_BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x07dd39b955F974186daFB2EDC6B4E03632E9AC75
10
10
  VITE_BASE_ADDRESSES_SWAP_ROUTER=0xE2CE9e11BF480a5b88ad4008915D97d35C5087d5
11
11
  VITE_BASE_ADDRESSES_UTILS_TOWNS=0x00000000A22C618fd6b4D7E9A335C4B96B189a38
12
12
  VITE_RIVER_CHAIN_ID=6524490
@@ -1,3 +1,3 @@
1
1
  {
2
- "address": "0x709b0da64962b03559D5e7084a23B1a8c73C76a0"
2
+ "address": "0x07dd39b955F974186daFB2EDC6B4E03632E9AC75"
3
3
  }
@@ -6,7 +6,7 @@ BASE_ADDRESSES_RIVER_AIRDROP=0x4cBE6e47819cfE720d2ac83aE094B3a1307207A9
6
6
  BASE_ADDRESSES_SPACE=0x99a177F81902fddc4785c6fc108C8F21BDB2aFe9
7
7
  BASE_ADDRESSES_SPACE_FACTORY=0x968696BC59431Ef085441641f550C8e2Eaca8BEd
8
8
  BASE_ADDRESSES_SPACE_OWNER=0x9dEdb330A126C6dF2893a33018bb81aFE8573805
9
- BASE_ADDRESSES_SUBSCRIPTION_MODULE=0xC4ef979B45414Ec66Cf39e220781F96B8f3EeD93
9
+ BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x55751fE93F4B9C5fB9E9B9328a26A6c56e4eDd41
10
10
  BASE_ADDRESSES_SWAP_ROUTER=0x4997CC907512275b8D7E1c682a46f17d676F4913
11
11
  BASE_ADDRESSES_UTILS_TOWNS=0x00000000A22C618fd6b4D7E9A335C4B96B189a38
12
12
  BNB_CHAIN_ID=97
@@ -6,7 +6,7 @@ VITE_BASE_ADDRESSES_RIVER_AIRDROP=0x4cBE6e47819cfE720d2ac83aE094B3a1307207A9
6
6
  VITE_BASE_ADDRESSES_SPACE=0x99a177F81902fddc4785c6fc108C8F21BDB2aFe9
7
7
  VITE_BASE_ADDRESSES_SPACE_FACTORY=0x968696BC59431Ef085441641f550C8e2Eaca8BEd
8
8
  VITE_BASE_ADDRESSES_SPACE_OWNER=0x9dEdb330A126C6dF2893a33018bb81aFE8573805
9
- VITE_BASE_ADDRESSES_SUBSCRIPTION_MODULE=0xC4ef979B45414Ec66Cf39e220781F96B8f3EeD93
9
+ VITE_BASE_ADDRESSES_SUBSCRIPTION_MODULE=0x55751fE93F4B9C5fB9E9B9328a26A6c56e4eDd41
10
10
  VITE_BASE_ADDRESSES_SWAP_ROUTER=0x4997CC907512275b8D7E1c682a46f17d676F4913
11
11
  VITE_BASE_ADDRESSES_UTILS_TOWNS=0x00000000A22C618fd6b4D7E9A335C4B96B189a38
12
12
  VITE_BNB_CHAIN_ID=97
@@ -1,3 +1,3 @@
1
1
  {
2
- "address": "0xC4ef979B45414Ec66Cf39e220781F96B8f3EeD93"
2
+ "address": "0x55751fE93F4B9C5fB9E9B9328a26A6c56e4eDd41"
3
3
  }
@@ -1 +1 @@
1
- 9760dfaeb32d5e2ff767b8a764ef63b78fef1947
1
+ 51d0502e398bdd6d4ac7a3762b65387a51c15986
@@ -1,7 +1,7 @@
1
1
  [
2
2
  {
3
3
  "type": "function",
4
- "name": "GRACE_PERIOD",
4
+ "name": "BUFFER_IMMEDIATE",
5
5
  "inputs": [],
6
6
  "outputs": [
7
7
  {
@@ -14,7 +14,46 @@
14
14
  },
15
15
  {
16
16
  "type": "function",
17
- "name": "MAX_BATCH_SIZE",
17
+ "name": "BUFFER_LONG",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "BUFFER_MEDIUM",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "BUFFER_SHORT",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "GRACE_PERIOD",
18
57
  "inputs": [],
19
58
  "outputs": [
20
59
  {
@@ -27,7 +66,7 @@
27
66
  },
28
67
  {
29
68
  "type": "function",
30
- "name": "RENEWAL_BUFFER",
69
+ "name": "MAX_BATCH_SIZE",
31
70
  "inputs": [],
32
71
  "outputs": [
33
72
  {
@@ -45,6 +84,19 @@
45
84
  "outputs": [],
46
85
  "stateMutability": "nonpayable"
47
86
  },
87
+ {
88
+ "type": "function",
89
+ "name": "activateSubscription",
90
+ "inputs": [
91
+ {
92
+ "name": "entityId",
93
+ "type": "uint32",
94
+ "internalType": "uint32"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
48
100
  {
49
101
  "type": "function",
50
102
  "name": "batchProcessRenewals",
@@ -89,6 +141,25 @@
89
141
  ],
90
142
  "stateMutability": "view"
91
143
  },
144
+ {
145
+ "type": "function",
146
+ "name": "getRenewalBuffer",
147
+ "inputs": [
148
+ {
149
+ "name": "expirationTime",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "uint256",
158
+ "internalType": "uint256"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
92
163
  {
93
164
  "type": "function",
94
165
  "name": "getSubscription",
@@ -125,6 +196,11 @@
125
196
  "type": "address",
126
197
  "internalType": "address"
127
198
  },
199
+ {
200
+ "name": "installTime",
201
+ "type": "uint40",
202
+ "internalType": "uint40"
203
+ },
128
204
  {
129
205
  "name": "lastRenewalTime",
130
206
  "type": "uint40",
@@ -366,31 +442,6 @@
366
442
  ],
367
443
  "stateMutability": "pure"
368
444
  },
369
- {
370
- "type": "function",
371
- "name": "processRenewal",
372
- "inputs": [
373
- {
374
- "name": "renewalParams",
375
- "type": "tuple",
376
- "internalType": "struct ISubscriptionModuleBase.RenewalParams",
377
- "components": [
378
- {
379
- "name": "account",
380
- "type": "address",
381
- "internalType": "address"
382
- },
383
- {
384
- "name": "entityId",
385
- "type": "uint32",
386
- "internalType": "uint32"
387
- }
388
- ]
389
- }
390
- ],
391
- "outputs": [],
392
- "stateMutability": "nonpayable"
393
- },
394
445
  {
395
446
  "type": "function",
396
447
  "name": "revokeOperator",
@@ -685,6 +736,25 @@
685
736
  ],
686
737
  "anonymous": false
687
738
  },
739
+ {
740
+ "type": "event",
741
+ "name": "SubscriptionActivated",
742
+ "inputs": [
743
+ {
744
+ "name": "account",
745
+ "type": "address",
746
+ "indexed": true,
747
+ "internalType": "address"
748
+ },
749
+ {
750
+ "name": "entityId",
751
+ "type": "uint32",
752
+ "indexed": true,
753
+ "internalType": "uint32"
754
+ }
755
+ ],
756
+ "anonymous": false
757
+ },
688
758
  {
689
759
  "type": "event",
690
760
  "name": "SubscriptionConfigured",
@@ -741,6 +811,25 @@
741
811
  ],
742
812
  "anonymous": false
743
813
  },
814
+ {
815
+ "type": "event",
816
+ "name": "SubscriptionNotDue",
817
+ "inputs": [
818
+ {
819
+ "name": "account",
820
+ "type": "address",
821
+ "indexed": true,
822
+ "internalType": "address"
823
+ },
824
+ {
825
+ "name": "entityId",
826
+ "type": "uint32",
827
+ "indexed": true,
828
+ "internalType": "uint32"
829
+ }
830
+ ],
831
+ "anonymous": false
832
+ },
744
833
  {
745
834
  "type": "event",
746
835
  "name": "SubscriptionPaused",
@@ -816,6 +905,31 @@
816
905
  ],
817
906
  "anonymous": false
818
907
  },
908
+ {
909
+ "type": "event",
910
+ "name": "SubscriptionSynced",
911
+ "inputs": [
912
+ {
913
+ "name": "account",
914
+ "type": "address",
915
+ "indexed": true,
916
+ "internalType": "address"
917
+ },
918
+ {
919
+ "name": "entityId",
920
+ "type": "uint32",
921
+ "indexed": true,
922
+ "internalType": "uint32"
923
+ },
924
+ {
925
+ "name": "newNextRenewalTime",
926
+ "type": "uint256",
927
+ "indexed": false,
928
+ "internalType": "uint256"
929
+ }
930
+ ],
931
+ "anonymous": false
932
+ },
819
933
  {
820
934
  "type": "error",
821
935
  "name": "Initializable_InInitializingState",
@@ -862,6 +976,11 @@
862
976
  "name": "Reentrancy",
863
977
  "inputs": []
864
978
  },
979
+ {
980
+ "type": "error",
981
+ "name": "SubscriptionModule__ActiveSubscription",
982
+ "inputs": []
983
+ },
865
984
  {
866
985
  "type": "error",
867
986
  "name": "SubscriptionModule__EmptyBatch",
@@ -1,7 +1,7 @@
1
1
  export default [
2
2
  {
3
3
  "type": "function",
4
- "name": "GRACE_PERIOD",
4
+ "name": "BUFFER_IMMEDIATE",
5
5
  "inputs": [],
6
6
  "outputs": [
7
7
  {
@@ -14,7 +14,46 @@ export default [
14
14
  },
15
15
  {
16
16
  "type": "function",
17
- "name": "MAX_BATCH_SIZE",
17
+ "name": "BUFFER_LONG",
18
+ "inputs": [],
19
+ "outputs": [
20
+ {
21
+ "name": "",
22
+ "type": "uint256",
23
+ "internalType": "uint256"
24
+ }
25
+ ],
26
+ "stateMutability": "view"
27
+ },
28
+ {
29
+ "type": "function",
30
+ "name": "BUFFER_MEDIUM",
31
+ "inputs": [],
32
+ "outputs": [
33
+ {
34
+ "name": "",
35
+ "type": "uint256",
36
+ "internalType": "uint256"
37
+ }
38
+ ],
39
+ "stateMutability": "view"
40
+ },
41
+ {
42
+ "type": "function",
43
+ "name": "BUFFER_SHORT",
44
+ "inputs": [],
45
+ "outputs": [
46
+ {
47
+ "name": "",
48
+ "type": "uint256",
49
+ "internalType": "uint256"
50
+ }
51
+ ],
52
+ "stateMutability": "view"
53
+ },
54
+ {
55
+ "type": "function",
56
+ "name": "GRACE_PERIOD",
18
57
  "inputs": [],
19
58
  "outputs": [
20
59
  {
@@ -27,7 +66,7 @@ export default [
27
66
  },
28
67
  {
29
68
  "type": "function",
30
- "name": "RENEWAL_BUFFER",
69
+ "name": "MAX_BATCH_SIZE",
31
70
  "inputs": [],
32
71
  "outputs": [
33
72
  {
@@ -45,6 +84,19 @@ export default [
45
84
  "outputs": [],
46
85
  "stateMutability": "nonpayable"
47
86
  },
87
+ {
88
+ "type": "function",
89
+ "name": "activateSubscription",
90
+ "inputs": [
91
+ {
92
+ "name": "entityId",
93
+ "type": "uint32",
94
+ "internalType": "uint32"
95
+ }
96
+ ],
97
+ "outputs": [],
98
+ "stateMutability": "nonpayable"
99
+ },
48
100
  {
49
101
  "type": "function",
50
102
  "name": "batchProcessRenewals",
@@ -89,6 +141,25 @@ export default [
89
141
  ],
90
142
  "stateMutability": "view"
91
143
  },
144
+ {
145
+ "type": "function",
146
+ "name": "getRenewalBuffer",
147
+ "inputs": [
148
+ {
149
+ "name": "expirationTime",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "outputs": [
155
+ {
156
+ "name": "",
157
+ "type": "uint256",
158
+ "internalType": "uint256"
159
+ }
160
+ ],
161
+ "stateMutability": "view"
162
+ },
92
163
  {
93
164
  "type": "function",
94
165
  "name": "getSubscription",
@@ -125,6 +196,11 @@ export default [
125
196
  "type": "address",
126
197
  "internalType": "address"
127
198
  },
199
+ {
200
+ "name": "installTime",
201
+ "type": "uint40",
202
+ "internalType": "uint40"
203
+ },
128
204
  {
129
205
  "name": "lastRenewalTime",
130
206
  "type": "uint40",
@@ -366,31 +442,6 @@ export default [
366
442
  ],
367
443
  "stateMutability": "pure"
368
444
  },
369
- {
370
- "type": "function",
371
- "name": "processRenewal",
372
- "inputs": [
373
- {
374
- "name": "renewalParams",
375
- "type": "tuple",
376
- "internalType": "struct ISubscriptionModuleBase.RenewalParams",
377
- "components": [
378
- {
379
- "name": "account",
380
- "type": "address",
381
- "internalType": "address"
382
- },
383
- {
384
- "name": "entityId",
385
- "type": "uint32",
386
- "internalType": "uint32"
387
- }
388
- ]
389
- }
390
- ],
391
- "outputs": [],
392
- "stateMutability": "nonpayable"
393
- },
394
445
  {
395
446
  "type": "function",
396
447
  "name": "revokeOperator",
@@ -685,6 +736,25 @@ export default [
685
736
  ],
686
737
  "anonymous": false
687
738
  },
739
+ {
740
+ "type": "event",
741
+ "name": "SubscriptionActivated",
742
+ "inputs": [
743
+ {
744
+ "name": "account",
745
+ "type": "address",
746
+ "indexed": true,
747
+ "internalType": "address"
748
+ },
749
+ {
750
+ "name": "entityId",
751
+ "type": "uint32",
752
+ "indexed": true,
753
+ "internalType": "uint32"
754
+ }
755
+ ],
756
+ "anonymous": false
757
+ },
688
758
  {
689
759
  "type": "event",
690
760
  "name": "SubscriptionConfigured",
@@ -741,6 +811,25 @@ export default [
741
811
  ],
742
812
  "anonymous": false
743
813
  },
814
+ {
815
+ "type": "event",
816
+ "name": "SubscriptionNotDue",
817
+ "inputs": [
818
+ {
819
+ "name": "account",
820
+ "type": "address",
821
+ "indexed": true,
822
+ "internalType": "address"
823
+ },
824
+ {
825
+ "name": "entityId",
826
+ "type": "uint32",
827
+ "indexed": true,
828
+ "internalType": "uint32"
829
+ }
830
+ ],
831
+ "anonymous": false
832
+ },
744
833
  {
745
834
  "type": "event",
746
835
  "name": "SubscriptionPaused",
@@ -816,6 +905,31 @@ export default [
816
905
  ],
817
906
  "anonymous": false
818
907
  },
908
+ {
909
+ "type": "event",
910
+ "name": "SubscriptionSynced",
911
+ "inputs": [
912
+ {
913
+ "name": "account",
914
+ "type": "address",
915
+ "indexed": true,
916
+ "internalType": "address"
917
+ },
918
+ {
919
+ "name": "entityId",
920
+ "type": "uint32",
921
+ "indexed": true,
922
+ "internalType": "uint32"
923
+ },
924
+ {
925
+ "name": "newNextRenewalTime",
926
+ "type": "uint256",
927
+ "indexed": false,
928
+ "internalType": "uint256"
929
+ }
930
+ ],
931
+ "anonymous": false
932
+ },
819
933
  {
820
934
  "type": "error",
821
935
  "name": "Initializable_InInitializingState",
@@ -862,6 +976,11 @@ export default [
862
976
  "name": "Reentrancy",
863
977
  "inputs": []
864
978
  },
979
+ {
980
+ "type": "error",
981
+ "name": "SubscriptionModule__ActiveSubscription",
982
+ "inputs": []
983
+ },
865
984
  {
866
985
  "type": "error",
867
986
  "name": "SubscriptionModule__EmptyBatch",