@towns-protocol/generated 0.0.242 → 0.0.244

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.
Files changed (31) hide show
  1. package/config/deployments.json +12 -4
  2. package/dev/abis/Channels.abi.json +0 -51
  3. package/dev/abis/Channels.abi.ts +0 -51
  4. package/dev/abis/EntitlementsManager.abi.json +0 -51
  5. package/dev/abis/EntitlementsManager.abi.ts +0 -51
  6. package/dev/abis/ISpaceDelegation.abi.json +3 -122
  7. package/dev/abis/ISpaceDelegation.abi.ts +3 -122
  8. package/dev/abis/ISpaceDelegationBase.abi.json +3 -44
  9. package/dev/abis/ISpaceDelegationBase.abi.ts +3 -44
  10. package/dev/abis/PrepayFacet.abi.json +0 -51
  11. package/dev/abis/PrepayFacet.abi.ts +0 -51
  12. package/dev/abis/Roles.abi.json +0 -51
  13. package/dev/abis/Roles.abi.ts +0 -51
  14. package/dev/typings/Channels.ts +0 -23
  15. package/dev/typings/EntitlementsManager.ts +0 -23
  16. package/dev/typings/ISpaceDelegation.ts +0 -203
  17. package/dev/typings/PrepayFacet.ts +0 -23
  18. package/dev/typings/Roles.ts +0 -23
  19. package/dev/typings/factories/Channels__factory.ts +1 -52
  20. package/dev/typings/factories/DropFacet__factory.ts +1 -1
  21. package/dev/typings/factories/EntitlementsManager__factory.ts +1 -52
  22. package/dev/typings/factories/ISpaceDelegation__factory.ts +3 -122
  23. package/dev/typings/factories/MembershipFacet__factory.ts +1 -1
  24. package/dev/typings/factories/PrepayFacet__factory.ts +0 -51
  25. package/dev/typings/factories/Roles__factory.ts +1 -52
  26. package/dev/typings/factories/mainnet/Towns__factory.ts +1 -1
  27. package/package.json +2 -2
  28. /package/deployments/alpha/base/addresses/{towns.json → utils/towns.json} +0 -0
  29. /package/deployments/delta/base/addresses/{towns.json → utils/towns.json} +0 -0
  30. /package/deployments/gamma/base/addresses/{towns.json → utils/towns.json} +0 -0
  31. /package/deployments/omega/base/addresses/{towns.json → utils/towns.json} +0 -0
@@ -8,7 +8,9 @@
8
8
  "space": "0x8DdfAD0259803FA140e076C636E726573df77905",
9
9
  "spaceFactory": "0xC09Ac0FFeecAaE5100158247512DC177AeacA3e3",
10
10
  "spaceOwner": "0x0443258849016da8Af08e2984Bce8C0ef6Cfc9A0",
11
- "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
11
+ "utils": {
12
+ "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
13
+ }
12
14
  }
13
15
  },
14
16
  "river": {
@@ -27,7 +29,9 @@
27
29
  "space": "0xa489C4162a39CCE441Ee23c064E6dE6fF0822269",
28
30
  "spaceFactory": "0x4e652CdB4715861dDCc4dF159af32223B40c8187",
29
31
  "spaceOwner": "0xf3a2E75d7da3c7a7F953b63342f0709972e5002b",
30
- "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
32
+ "utils": {
33
+ "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
34
+ }
31
35
  }
32
36
  },
33
37
  "river": {
@@ -47,7 +51,9 @@
47
51
  "spaceFactory": "0x968696BC59431Ef085441641f550C8e2Eaca8BEd",
48
52
  "spaceOwner": "0x9dEdb330A126C6dF2893a33018bb81aFE8573805",
49
53
  "swapRouter": "0x4997CC907512275b8D7E1c682a46f17d676F4913",
50
- "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
54
+ "utils": {
55
+ "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
56
+ }
51
57
  }
52
58
  },
53
59
  "river": {
@@ -73,7 +79,9 @@
73
79
  "spaceFactory": "0x9978c826d93883701522d2CA645d5436e5654252",
74
80
  "spaceOwner": "0x2824D1235d1CbcA6d61C00C3ceeCB9155cd33a42",
75
81
  "swapRouter": "0x95A2a333D30c8686dE8D01AC464d6034b9aA7b24",
76
- "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
82
+ "utils": {
83
+ "towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
84
+ }
77
85
  }
78
86
  },
79
87
  "gnosis": {
@@ -634,25 +634,6 @@
634
634
  ],
635
635
  "anonymous": false
636
636
  },
637
- {
638
- "type": "event",
639
- "name": "SubscriptionUpdate",
640
- "inputs": [
641
- {
642
- "name": "tokenId",
643
- "type": "uint256",
644
- "indexed": true,
645
- "internalType": "uint256"
646
- },
647
- {
648
- "name": "expiration",
649
- "type": "uint64",
650
- "indexed": false,
651
- "internalType": "uint64"
652
- }
653
- ],
654
- "anonymous": false
655
- },
656
637
  {
657
638
  "type": "event",
658
639
  "name": "Transfer",
@@ -793,38 +774,6 @@
793
774
  "name": "ChannelService__RoleDoesNotExist",
794
775
  "inputs": []
795
776
  },
796
- {
797
- "type": "error",
798
- "name": "ERC5643__DurationZero",
799
- "inputs": []
800
- },
801
- {
802
- "type": "error",
803
- "name": "ERC5643__InvalidTokenId",
804
- "inputs": [
805
- {
806
- "name": "tokenId",
807
- "type": "uint256",
808
- "internalType": "uint256"
809
- }
810
- ]
811
- },
812
- {
813
- "type": "error",
814
- "name": "ERC5643__NotApprovedOrOwner",
815
- "inputs": []
816
- },
817
- {
818
- "type": "error",
819
- "name": "ERC5643__SubscriptionNotRenewable",
820
- "inputs": [
821
- {
822
- "name": "tokenId",
823
- "type": "uint256",
824
- "internalType": "uint256"
825
- }
826
- ]
827
- },
828
777
  {
829
778
  "type": "error",
830
779
  "name": "Entitlement__InvalidValue",
@@ -634,25 +634,6 @@ export default [
634
634
  ],
635
635
  "anonymous": false
636
636
  },
637
- {
638
- "type": "event",
639
- "name": "SubscriptionUpdate",
640
- "inputs": [
641
- {
642
- "name": "tokenId",
643
- "type": "uint256",
644
- "indexed": true,
645
- "internalType": "uint256"
646
- },
647
- {
648
- "name": "expiration",
649
- "type": "uint64",
650
- "indexed": false,
651
- "internalType": "uint64"
652
- }
653
- ],
654
- "anonymous": false
655
- },
656
637
  {
657
638
  "type": "event",
658
639
  "name": "Transfer",
@@ -793,38 +774,6 @@ export default [
793
774
  "name": "ChannelService__RoleDoesNotExist",
794
775
  "inputs": []
795
776
  },
796
- {
797
- "type": "error",
798
- "name": "ERC5643__DurationZero",
799
- "inputs": []
800
- },
801
- {
802
- "type": "error",
803
- "name": "ERC5643__InvalidTokenId",
804
- "inputs": [
805
- {
806
- "name": "tokenId",
807
- "type": "uint256",
808
- "internalType": "uint256"
809
- }
810
- ]
811
- },
812
- {
813
- "type": "error",
814
- "name": "ERC5643__NotApprovedOrOwner",
815
- "inputs": []
816
- },
817
- {
818
- "type": "error",
819
- "name": "ERC5643__SubscriptionNotRenewable",
820
- "inputs": [
821
- {
822
- "name": "tokenId",
823
- "type": "uint256",
824
- "internalType": "uint256"
825
- }
826
- ]
827
- },
828
777
  {
829
778
  "type": "error",
830
779
  "name": "Entitlement__InvalidValue",
@@ -337,25 +337,6 @@
337
337
  ],
338
338
  "anonymous": false
339
339
  },
340
- {
341
- "type": "event",
342
- "name": "SubscriptionUpdate",
343
- "inputs": [
344
- {
345
- "name": "tokenId",
346
- "type": "uint256",
347
- "indexed": true,
348
- "internalType": "uint256"
349
- },
350
- {
351
- "name": "expiration",
352
- "type": "uint64",
353
- "indexed": false,
354
- "internalType": "uint64"
355
- }
356
- ],
357
- "anonymous": false
358
- },
359
340
  {
360
341
  "type": "event",
361
342
  "name": "Transfer",
@@ -471,38 +452,6 @@
471
452
  }
472
453
  ]
473
454
  },
474
- {
475
- "type": "error",
476
- "name": "ERC5643__DurationZero",
477
- "inputs": []
478
- },
479
- {
480
- "type": "error",
481
- "name": "ERC5643__InvalidTokenId",
482
- "inputs": [
483
- {
484
- "name": "tokenId",
485
- "type": "uint256",
486
- "internalType": "uint256"
487
- }
488
- ]
489
- },
490
- {
491
- "type": "error",
492
- "name": "ERC5643__NotApprovedOrOwner",
493
- "inputs": []
494
- },
495
- {
496
- "type": "error",
497
- "name": "ERC5643__SubscriptionNotRenewable",
498
- "inputs": [
499
- {
500
- "name": "tokenId",
501
- "type": "uint256",
502
- "internalType": "uint256"
503
- }
504
- ]
505
- },
506
455
  {
507
456
  "type": "error",
508
457
  "name": "Entitlement__InvalidValue",
@@ -337,25 +337,6 @@ export default [
337
337
  ],
338
338
  "anonymous": false
339
339
  },
340
- {
341
- "type": "event",
342
- "name": "SubscriptionUpdate",
343
- "inputs": [
344
- {
345
- "name": "tokenId",
346
- "type": "uint256",
347
- "indexed": true,
348
- "internalType": "uint256"
349
- },
350
- {
351
- "name": "expiration",
352
- "type": "uint64",
353
- "indexed": false,
354
- "internalType": "uint64"
355
- }
356
- ],
357
- "anonymous": false
358
- },
359
340
  {
360
341
  "type": "event",
361
342
  "name": "Transfer",
@@ -471,38 +452,6 @@ export default [
471
452
  }
472
453
  ]
473
454
  },
474
- {
475
- "type": "error",
476
- "name": "ERC5643__DurationZero",
477
- "inputs": []
478
- },
479
- {
480
- "type": "error",
481
- "name": "ERC5643__InvalidTokenId",
482
- "inputs": [
483
- {
484
- "name": "tokenId",
485
- "type": "uint256",
486
- "internalType": "uint256"
487
- }
488
- ]
489
- },
490
- {
491
- "type": "error",
492
- "name": "ERC5643__NotApprovedOrOwner",
493
- "inputs": []
494
- },
495
- {
496
- "type": "error",
497
- "name": "ERC5643__SubscriptionNotRenewable",
498
- "inputs": [
499
- {
500
- "name": "tokenId",
501
- "type": "uint256",
502
- "internalType": "uint256"
503
- }
504
- ]
505
- },
506
455
  {
507
456
  "type": "error",
508
457
  "name": "Entitlement__InvalidValue",
@@ -87,19 +87,6 @@
87
87
  ],
88
88
  "stateMutability": "view"
89
89
  },
90
- {
91
- "type": "function",
92
- "name": "mainnetDelegation",
93
- "inputs": [],
94
- "outputs": [
95
- {
96
- "name": "",
97
- "type": "address",
98
- "internalType": "address"
99
- }
100
- ],
101
- "stateMutability": "view"
102
- },
103
90
  {
104
91
  "type": "function",
105
92
  "name": "removeSpaceDelegation",
@@ -113,45 +100,6 @@
113
100
  "outputs": [],
114
101
  "stateMutability": "nonpayable"
115
102
  },
116
- {
117
- "type": "function",
118
- "name": "riverToken",
119
- "inputs": [],
120
- "outputs": [
121
- {
122
- "name": "",
123
- "type": "address",
124
- "internalType": "address"
125
- }
126
- ],
127
- "stateMutability": "view"
128
- },
129
- {
130
- "type": "function",
131
- "name": "setMainnetDelegation",
132
- "inputs": [
133
- {
134
- "name": "mainnetDelegation_",
135
- "type": "address",
136
- "internalType": "address"
137
- }
138
- ],
139
- "outputs": [],
140
- "stateMutability": "nonpayable"
141
- },
142
- {
143
- "type": "function",
144
- "name": "setRiverToken",
145
- "inputs": [
146
- {
147
- "name": "riverToken",
148
- "type": "address",
149
- "internalType": "address"
150
- }
151
- ],
152
- "outputs": [],
153
- "stateMutability": "nonpayable"
154
- },
155
103
  {
156
104
  "type": "function",
157
105
  "name": "setSpaceFactory",
@@ -165,45 +113,6 @@
165
113
  "outputs": [],
166
114
  "stateMutability": "nonpayable"
167
115
  },
168
- {
169
- "type": "function",
170
- "name": "setStakeRequirement",
171
- "inputs": [
172
- {
173
- "name": "stakeRequirement_",
174
- "type": "uint256",
175
- "internalType": "uint256"
176
- }
177
- ],
178
- "outputs": [],
179
- "stateMutability": "nonpayable"
180
- },
181
- {
182
- "type": "function",
183
- "name": "stakeRequirement",
184
- "inputs": [],
185
- "outputs": [
186
- {
187
- "name": "",
188
- "type": "uint256",
189
- "internalType": "uint256"
190
- }
191
- ],
192
- "stateMutability": "view"
193
- },
194
- {
195
- "type": "event",
196
- "name": "MainnetDelegationChanged",
197
- "inputs": [
198
- {
199
- "name": "mainnetDelegation",
200
- "type": "address",
201
- "indexed": true,
202
- "internalType": "address"
203
- }
204
- ],
205
- "anonymous": false
206
- },
207
116
  {
208
117
  "type": "event",
209
118
  "name": "RiverTokenChanged",
@@ -249,19 +158,6 @@
249
158
  ],
250
159
  "anonymous": false
251
160
  },
252
- {
253
- "type": "event",
254
- "name": "StakeRequirementChanged",
255
- "inputs": [
256
- {
257
- "name": "stakeRequirement",
258
- "type": "uint256",
259
- "indexed": false,
260
- "internalType": "uint256"
261
- }
262
- ],
263
- "anonymous": false
264
- },
265
161
  {
266
162
  "type": "error",
267
163
  "name": "SpaceDelegation__AlreadyDelegated",
@@ -273,11 +169,6 @@
273
169
  }
274
170
  ]
275
171
  },
276
- {
277
- "type": "error",
278
- "name": "SpaceDelegation__AlreadyRegistered",
279
- "inputs": []
280
- },
281
172
  {
282
173
  "type": "error",
283
174
  "name": "SpaceDelegation__InvalidAddress",
@@ -300,27 +191,17 @@
300
191
  },
301
192
  {
302
193
  "type": "error",
303
- "name": "SpaceDelegation__InvalidStatusTransition",
304
- "inputs": []
305
- },
306
- {
307
- "type": "error",
308
- "name": "SpaceDelegation__NotEnoughStake",
309
- "inputs": []
310
- },
311
- {
312
- "type": "error",
313
- "name": "SpaceDelegation__NotRegistered",
194
+ "name": "SpaceDelegation__NotDelegated",
314
195
  "inputs": []
315
196
  },
316
197
  {
317
198
  "type": "error",
318
- "name": "SpaceDelegation__NotTransferable",
199
+ "name": "SpaceDelegation__NotSpaceMember",
319
200
  "inputs": []
320
201
  },
321
202
  {
322
203
  "type": "error",
323
- "name": "SpaceDelegation__StatusNotChanged",
204
+ "name": "SpaceDelegation__NotSpaceOwner",
324
205
  "inputs": []
325
206
  }
326
207
  ]
@@ -87,19 +87,6 @@ export default [
87
87
  ],
88
88
  "stateMutability": "view"
89
89
  },
90
- {
91
- "type": "function",
92
- "name": "mainnetDelegation",
93
- "inputs": [],
94
- "outputs": [
95
- {
96
- "name": "",
97
- "type": "address",
98
- "internalType": "address"
99
- }
100
- ],
101
- "stateMutability": "view"
102
- },
103
90
  {
104
91
  "type": "function",
105
92
  "name": "removeSpaceDelegation",
@@ -113,45 +100,6 @@ export default [
113
100
  "outputs": [],
114
101
  "stateMutability": "nonpayable"
115
102
  },
116
- {
117
- "type": "function",
118
- "name": "riverToken",
119
- "inputs": [],
120
- "outputs": [
121
- {
122
- "name": "",
123
- "type": "address",
124
- "internalType": "address"
125
- }
126
- ],
127
- "stateMutability": "view"
128
- },
129
- {
130
- "type": "function",
131
- "name": "setMainnetDelegation",
132
- "inputs": [
133
- {
134
- "name": "mainnetDelegation_",
135
- "type": "address",
136
- "internalType": "address"
137
- }
138
- ],
139
- "outputs": [],
140
- "stateMutability": "nonpayable"
141
- },
142
- {
143
- "type": "function",
144
- "name": "setRiverToken",
145
- "inputs": [
146
- {
147
- "name": "riverToken",
148
- "type": "address",
149
- "internalType": "address"
150
- }
151
- ],
152
- "outputs": [],
153
- "stateMutability": "nonpayable"
154
- },
155
103
  {
156
104
  "type": "function",
157
105
  "name": "setSpaceFactory",
@@ -165,45 +113,6 @@ export default [
165
113
  "outputs": [],
166
114
  "stateMutability": "nonpayable"
167
115
  },
168
- {
169
- "type": "function",
170
- "name": "setStakeRequirement",
171
- "inputs": [
172
- {
173
- "name": "stakeRequirement_",
174
- "type": "uint256",
175
- "internalType": "uint256"
176
- }
177
- ],
178
- "outputs": [],
179
- "stateMutability": "nonpayable"
180
- },
181
- {
182
- "type": "function",
183
- "name": "stakeRequirement",
184
- "inputs": [],
185
- "outputs": [
186
- {
187
- "name": "",
188
- "type": "uint256",
189
- "internalType": "uint256"
190
- }
191
- ],
192
- "stateMutability": "view"
193
- },
194
- {
195
- "type": "event",
196
- "name": "MainnetDelegationChanged",
197
- "inputs": [
198
- {
199
- "name": "mainnetDelegation",
200
- "type": "address",
201
- "indexed": true,
202
- "internalType": "address"
203
- }
204
- ],
205
- "anonymous": false
206
- },
207
116
  {
208
117
  "type": "event",
209
118
  "name": "RiverTokenChanged",
@@ -249,19 +158,6 @@ export default [
249
158
  ],
250
159
  "anonymous": false
251
160
  },
252
- {
253
- "type": "event",
254
- "name": "StakeRequirementChanged",
255
- "inputs": [
256
- {
257
- "name": "stakeRequirement",
258
- "type": "uint256",
259
- "indexed": false,
260
- "internalType": "uint256"
261
- }
262
- ],
263
- "anonymous": false
264
- },
265
161
  {
266
162
  "type": "error",
267
163
  "name": "SpaceDelegation__AlreadyDelegated",
@@ -273,11 +169,6 @@ export default [
273
169
  }
274
170
  ]
275
171
  },
276
- {
277
- "type": "error",
278
- "name": "SpaceDelegation__AlreadyRegistered",
279
- "inputs": []
280
- },
281
172
  {
282
173
  "type": "error",
283
174
  "name": "SpaceDelegation__InvalidAddress",
@@ -300,27 +191,17 @@ export default [
300
191
  },
301
192
  {
302
193
  "type": "error",
303
- "name": "SpaceDelegation__InvalidStatusTransition",
304
- "inputs": []
305
- },
306
- {
307
- "type": "error",
308
- "name": "SpaceDelegation__NotEnoughStake",
309
- "inputs": []
310
- },
311
- {
312
- "type": "error",
313
- "name": "SpaceDelegation__NotRegistered",
194
+ "name": "SpaceDelegation__NotDelegated",
314
195
  "inputs": []
315
196
  },
316
197
  {
317
198
  "type": "error",
318
- "name": "SpaceDelegation__NotTransferable",
199
+ "name": "SpaceDelegation__NotSpaceMember",
319
200
  "inputs": []
320
201
  },
321
202
  {
322
203
  "type": "error",
323
- "name": "SpaceDelegation__StatusNotChanged",
204
+ "name": "SpaceDelegation__NotSpaceOwner",
324
205
  "inputs": []
325
206
  }
326
207
  ] as const