@towns-protocol/generated 0.0.383 → 0.0.385
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.
- package/dev/.contracts-hash +1 -1
- package/dev/abis/Channels.abi.json +10 -10
- package/dev/abis/Channels.abi.ts +10 -10
- package/dev/abis/EntitlementsManager.abi.json +10 -10
- package/dev/abis/EntitlementsManager.abi.ts +10 -10
- package/dev/abis/IAppFactory.abi.json +224 -0
- package/dev/abis/IAppFactory.abi.ts +224 -0
- package/dev/abis/IAppFactoryBase.abi.json +72 -0
- package/dev/abis/IAppFactoryBase.abi.ts +72 -0
- package/dev/abis/IAppRegistry.abi.json +10 -10
- package/dev/abis/IAppRegistry.abi.ts +10 -10
- package/dev/abis/IAppRegistryBase.abi.json +10 -10
- package/dev/abis/IAppRegistryBase.abi.ts +10 -10
- package/dev/abis/ISimpleApp.abi.json +203 -0
- package/dev/abis/ISimpleApp.abi.ts +203 -0
- package/dev/abis/ISimpleAppBase.abi.json +146 -0
- package/dev/abis/ISimpleAppBase.abi.ts +146 -0
- package/dev/abis/ITownsApp.abi.json +194 -0
- package/dev/abis/ITownsApp.abi.ts +194 -0
- package/dev/abis/MembershipFacet.abi.json +10 -10
- package/dev/abis/MembershipFacet.abi.ts +10 -10
- package/dev/abis/PrepayFacet.abi.json +10 -10
- package/dev/abis/PrepayFacet.abi.ts +10 -10
- package/dev/abis/Roles.abi.json +10 -10
- package/dev/abis/Roles.abi.ts +10 -10
- package/dev/typings/IAppFactory.ts +284 -1
- package/dev/typings/ISimpleApp.ts +344 -0
- package/dev/typings/ITownsApp.ts +371 -0
- package/dev/typings/factories/Channels__factory.ts +10 -10
- package/dev/typings/factories/EntitlementsManager__factory.ts +10 -10
- package/dev/typings/factories/IAppFactory__factory.ts +224 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +10 -10
- package/dev/typings/factories/ISimpleApp__factory.ts +224 -0
- package/dev/typings/factories/ITownsApp__factory.ts +215 -0
- package/dev/typings/factories/MembershipFacet__factory.ts +10 -10
- package/dev/typings/factories/PrepayFacet__factory.ts +10 -10
- package/dev/typings/factories/Roles__factory.ts +10 -10
- package/dev/typings/factories/index.ts +2 -1
- package/dev/typings/index.ts +4 -2
- package/package.json +3 -3
- package/scripts/prepare.js +10 -2
- package/dev/abis/SimpleApp.abi.json +0 -563
- package/dev/abis/SimpleApp.abi.ts +0 -563
- package/dev/typings/SimpleApp.ts +0 -923
- package/dev/typings/factories/SimpleApp__factory.ts +0 -620
|
@@ -1298,6 +1298,16 @@ const _abi = [
|
|
|
1298
1298
|
name: "AppNotRegistered",
|
|
1299
1299
|
inputs: [],
|
|
1300
1300
|
},
|
|
1301
|
+
{
|
|
1302
|
+
type: "error",
|
|
1303
|
+
name: "AppRegistry__InvalidDuration",
|
|
1304
|
+
inputs: [],
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
type: "error",
|
|
1308
|
+
name: "AppRegistry__InvalidPrice",
|
|
1309
|
+
inputs: [],
|
|
1310
|
+
},
|
|
1301
1311
|
{
|
|
1302
1312
|
type: "error",
|
|
1303
1313
|
name: "AppRevoked",
|
|
@@ -1469,11 +1479,6 @@ const _abi = [
|
|
|
1469
1479
|
name: "InvalidDataLength",
|
|
1470
1480
|
inputs: [],
|
|
1471
1481
|
},
|
|
1472
|
-
{
|
|
1473
|
-
type: "error",
|
|
1474
|
-
name: "InvalidDuration",
|
|
1475
|
-
inputs: [],
|
|
1476
|
-
},
|
|
1477
1482
|
{
|
|
1478
1483
|
type: "error",
|
|
1479
1484
|
name: "InvalidExpiration",
|
|
@@ -1484,11 +1489,6 @@ const _abi = [
|
|
|
1484
1489
|
name: "InvalidManifest",
|
|
1485
1490
|
inputs: [],
|
|
1486
1491
|
},
|
|
1487
|
-
{
|
|
1488
|
-
type: "error",
|
|
1489
|
-
name: "InvalidPrice",
|
|
1490
|
-
inputs: [],
|
|
1491
|
-
},
|
|
1492
1492
|
{
|
|
1493
1493
|
type: "error",
|
|
1494
1494
|
name: "ModuleInstallCallbackFailed",
|
|
@@ -1004,6 +1004,16 @@ const _abi = [
|
|
|
1004
1004
|
name: "AppNotRegistered",
|
|
1005
1005
|
inputs: [],
|
|
1006
1006
|
},
|
|
1007
|
+
{
|
|
1008
|
+
type: "error",
|
|
1009
|
+
name: "AppRegistry__InvalidDuration",
|
|
1010
|
+
inputs: [],
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
type: "error",
|
|
1014
|
+
name: "AppRegistry__InvalidPrice",
|
|
1015
|
+
inputs: [],
|
|
1016
|
+
},
|
|
1007
1017
|
{
|
|
1008
1018
|
type: "error",
|
|
1009
1019
|
name: "AppRevoked",
|
|
@@ -1160,11 +1170,6 @@ const _abi = [
|
|
|
1160
1170
|
name: "InvalidDataLength",
|
|
1161
1171
|
inputs: [],
|
|
1162
1172
|
},
|
|
1163
|
-
{
|
|
1164
|
-
type: "error",
|
|
1165
|
-
name: "InvalidDuration",
|
|
1166
|
-
inputs: [],
|
|
1167
|
-
},
|
|
1168
1173
|
{
|
|
1169
1174
|
type: "error",
|
|
1170
1175
|
name: "InvalidExpiration",
|
|
@@ -1175,11 +1180,6 @@ const _abi = [
|
|
|
1175
1180
|
name: "InvalidManifest",
|
|
1176
1181
|
inputs: [],
|
|
1177
1182
|
},
|
|
1178
|
-
{
|
|
1179
|
-
type: "error",
|
|
1180
|
-
name: "InvalidPrice",
|
|
1181
|
-
inputs: [],
|
|
1182
|
-
},
|
|
1183
1183
|
{
|
|
1184
1184
|
type: "error",
|
|
1185
1185
|
name: "ModuleInstallCallbackFailed",
|
|
@@ -7,6 +7,31 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { IAppFactory, IAppFactoryInterface } from "../IAppFactory";
|
|
8
8
|
|
|
9
9
|
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "addBeacons",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "beacons",
|
|
16
|
+
type: "tuple[]",
|
|
17
|
+
internalType: "struct IAppFactoryBase.Beacon[]",
|
|
18
|
+
components: [
|
|
19
|
+
{
|
|
20
|
+
name: "beaconId",
|
|
21
|
+
type: "bytes32",
|
|
22
|
+
internalType: "bytes32",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "beacon",
|
|
26
|
+
type: "address",
|
|
27
|
+
internalType: "address",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
outputs: [],
|
|
33
|
+
stateMutability: "nonpayable",
|
|
34
|
+
},
|
|
10
35
|
{
|
|
11
36
|
type: "function",
|
|
12
37
|
name: "createApp",
|
|
@@ -58,6 +83,133 @@ const _abi = [
|
|
|
58
83
|
],
|
|
59
84
|
stateMutability: "payable",
|
|
60
85
|
},
|
|
86
|
+
{
|
|
87
|
+
type: "function",
|
|
88
|
+
name: "createAppByBeacon",
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
name: "beaconId",
|
|
92
|
+
type: "bytes32",
|
|
93
|
+
internalType: "bytes32",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "params",
|
|
97
|
+
type: "tuple",
|
|
98
|
+
internalType: "struct IAppFactoryBase.AppParams",
|
|
99
|
+
components: [
|
|
100
|
+
{
|
|
101
|
+
name: "name",
|
|
102
|
+
type: "string",
|
|
103
|
+
internalType: "string",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "permissions",
|
|
107
|
+
type: "bytes32[]",
|
|
108
|
+
internalType: "bytes32[]",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "client",
|
|
112
|
+
type: "address",
|
|
113
|
+
internalType: "address",
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "installPrice",
|
|
117
|
+
type: "uint256",
|
|
118
|
+
internalType: "uint256",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "accessDuration",
|
|
122
|
+
type: "uint48",
|
|
123
|
+
internalType: "uint48",
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
outputs: [
|
|
129
|
+
{
|
|
130
|
+
name: "app",
|
|
131
|
+
type: "address",
|
|
132
|
+
internalType: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "appId",
|
|
136
|
+
type: "bytes32",
|
|
137
|
+
internalType: "bytes32",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "payable",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
type: "function",
|
|
144
|
+
name: "getBeacon",
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
name: "beaconId",
|
|
148
|
+
type: "bytes32",
|
|
149
|
+
internalType: "bytes32",
|
|
150
|
+
},
|
|
151
|
+
],
|
|
152
|
+
outputs: [
|
|
153
|
+
{
|
|
154
|
+
name: "beacon",
|
|
155
|
+
type: "address",
|
|
156
|
+
internalType: "address",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
stateMutability: "view",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
type: "function",
|
|
163
|
+
name: "getBeacons",
|
|
164
|
+
inputs: [],
|
|
165
|
+
outputs: [
|
|
166
|
+
{
|
|
167
|
+
name: "beaconIds",
|
|
168
|
+
type: "bytes32[]",
|
|
169
|
+
internalType: "bytes32[]",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
stateMutability: "view",
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
type: "function",
|
|
176
|
+
name: "getEntryPoint",
|
|
177
|
+
inputs: [],
|
|
178
|
+
outputs: [
|
|
179
|
+
{
|
|
180
|
+
name: "entryPoint",
|
|
181
|
+
type: "address",
|
|
182
|
+
internalType: "address",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
stateMutability: "view",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
type: "function",
|
|
189
|
+
name: "removeBeacons",
|
|
190
|
+
inputs: [
|
|
191
|
+
{
|
|
192
|
+
name: "beaconIds",
|
|
193
|
+
type: "bytes32[]",
|
|
194
|
+
internalType: "bytes32[]",
|
|
195
|
+
},
|
|
196
|
+
],
|
|
197
|
+
outputs: [],
|
|
198
|
+
stateMutability: "nonpayable",
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
type: "function",
|
|
202
|
+
name: "setEntryPoint",
|
|
203
|
+
inputs: [
|
|
204
|
+
{
|
|
205
|
+
name: "entryPoint",
|
|
206
|
+
type: "address",
|
|
207
|
+
internalType: "address",
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
outputs: [],
|
|
211
|
+
stateMutability: "nonpayable",
|
|
212
|
+
},
|
|
61
213
|
{
|
|
62
214
|
type: "event",
|
|
63
215
|
name: "AppCreated",
|
|
@@ -77,6 +229,73 @@ const _abi = [
|
|
|
77
229
|
],
|
|
78
230
|
anonymous: false,
|
|
79
231
|
},
|
|
232
|
+
{
|
|
233
|
+
type: "event",
|
|
234
|
+
name: "BeaconAdded",
|
|
235
|
+
inputs: [
|
|
236
|
+
{
|
|
237
|
+
name: "beaconId",
|
|
238
|
+
type: "bytes32",
|
|
239
|
+
indexed: true,
|
|
240
|
+
internalType: "bytes32",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
name: "beacon",
|
|
244
|
+
type: "address",
|
|
245
|
+
indexed: true,
|
|
246
|
+
internalType: "address",
|
|
247
|
+
},
|
|
248
|
+
],
|
|
249
|
+
anonymous: false,
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
type: "event",
|
|
253
|
+
name: "BeaconRemoved",
|
|
254
|
+
inputs: [
|
|
255
|
+
{
|
|
256
|
+
name: "beaconId",
|
|
257
|
+
type: "bytes32",
|
|
258
|
+
indexed: true,
|
|
259
|
+
internalType: "bytes32",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: "beacon",
|
|
263
|
+
type: "address",
|
|
264
|
+
indexed: true,
|
|
265
|
+
internalType: "address",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
anonymous: false,
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
type: "event",
|
|
272
|
+
name: "EntryPointSet",
|
|
273
|
+
inputs: [
|
|
274
|
+
{
|
|
275
|
+
name: "oldEntryPoint",
|
|
276
|
+
type: "address",
|
|
277
|
+
indexed: true,
|
|
278
|
+
internalType: "address",
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
name: "newEntryPoint",
|
|
282
|
+
type: "address",
|
|
283
|
+
indexed: true,
|
|
284
|
+
internalType: "address",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
anonymous: false,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
type: "error",
|
|
291
|
+
name: "AppFactory__BeaconAlreadyExists",
|
|
292
|
+
inputs: [],
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
type: "error",
|
|
296
|
+
name: "AppFactory__BeaconNotFound",
|
|
297
|
+
inputs: [],
|
|
298
|
+
},
|
|
80
299
|
{
|
|
81
300
|
type: "error",
|
|
82
301
|
name: "AppFactory__InvalidAddressInput",
|
|
@@ -92,6 +311,11 @@ const _abi = [
|
|
|
92
311
|
name: "AppFactory__InvalidArrayInput",
|
|
93
312
|
inputs: [],
|
|
94
313
|
},
|
|
314
|
+
{
|
|
315
|
+
type: "error",
|
|
316
|
+
name: "AppFactory__InvalidBeaconId",
|
|
317
|
+
inputs: [],
|
|
318
|
+
},
|
|
95
319
|
] as const;
|
|
96
320
|
|
|
97
321
|
export class IAppFactory__factory {
|
|
@@ -588,6 +588,16 @@ const _abi = [
|
|
|
588
588
|
name: "AppNotRegistered",
|
|
589
589
|
inputs: [],
|
|
590
590
|
},
|
|
591
|
+
{
|
|
592
|
+
type: "error",
|
|
593
|
+
name: "AppRegistry__InvalidDuration",
|
|
594
|
+
inputs: [],
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
type: "error",
|
|
598
|
+
name: "AppRegistry__InvalidPrice",
|
|
599
|
+
inputs: [],
|
|
600
|
+
},
|
|
591
601
|
{
|
|
592
602
|
type: "error",
|
|
593
603
|
name: "AppRevoked",
|
|
@@ -633,16 +643,6 @@ const _abi = [
|
|
|
633
643
|
name: "InvalidArrayInput",
|
|
634
644
|
inputs: [],
|
|
635
645
|
},
|
|
636
|
-
{
|
|
637
|
-
type: "error",
|
|
638
|
-
name: "InvalidDuration",
|
|
639
|
-
inputs: [],
|
|
640
|
-
},
|
|
641
|
-
{
|
|
642
|
-
type: "error",
|
|
643
|
-
name: "InvalidPrice",
|
|
644
|
-
inputs: [],
|
|
645
|
-
},
|
|
646
646
|
{
|
|
647
647
|
type: "error",
|
|
648
648
|
name: "NotAllowed",
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
|
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
|
7
|
+
import type { ISimpleApp, ISimpleAppInterface } from "../ISimpleApp";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "updateClient",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "newClient",
|
|
16
|
+
type: "address",
|
|
17
|
+
internalType: "address",
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
outputs: [],
|
|
21
|
+
stateMutability: "nonpayable",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
type: "function",
|
|
25
|
+
name: "updatePermissions",
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
name: "permissions",
|
|
29
|
+
type: "bytes32[]",
|
|
30
|
+
internalType: "bytes32[]",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
outputs: [],
|
|
34
|
+
stateMutability: "nonpayable",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: "function",
|
|
38
|
+
name: "updatePricing",
|
|
39
|
+
inputs: [
|
|
40
|
+
{
|
|
41
|
+
name: "installPrice",
|
|
42
|
+
type: "uint256",
|
|
43
|
+
internalType: "uint256",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: "accessDuration",
|
|
47
|
+
type: "uint48",
|
|
48
|
+
internalType: "uint48",
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
outputs: [],
|
|
52
|
+
stateMutability: "nonpayable",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: "function",
|
|
56
|
+
name: "withdrawETH",
|
|
57
|
+
inputs: [
|
|
58
|
+
{
|
|
59
|
+
name: "recipient",
|
|
60
|
+
type: "address",
|
|
61
|
+
internalType: "address",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
outputs: [],
|
|
65
|
+
stateMutability: "nonpayable",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
type: "event",
|
|
69
|
+
name: "ClientUpdated",
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
name: "oldClient",
|
|
73
|
+
type: "address",
|
|
74
|
+
indexed: true,
|
|
75
|
+
internalType: "address",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "newClient",
|
|
79
|
+
type: "address",
|
|
80
|
+
indexed: true,
|
|
81
|
+
internalType: "address",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
anonymous: false,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: "event",
|
|
88
|
+
name: "PermissionsUpdated",
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
name: "permissions",
|
|
92
|
+
type: "bytes32[]",
|
|
93
|
+
indexed: false,
|
|
94
|
+
internalType: "bytes32[]",
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
anonymous: false,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "event",
|
|
101
|
+
name: "PricingUpdated",
|
|
102
|
+
inputs: [
|
|
103
|
+
{
|
|
104
|
+
name: "installPrice",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
indexed: false,
|
|
107
|
+
internalType: "uint256",
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: "accessDuration",
|
|
111
|
+
type: "uint48",
|
|
112
|
+
indexed: false,
|
|
113
|
+
internalType: "uint48",
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
anonymous: false,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
type: "event",
|
|
120
|
+
name: "SendCurrency",
|
|
121
|
+
inputs: [
|
|
122
|
+
{
|
|
123
|
+
name: "recipient",
|
|
124
|
+
type: "address",
|
|
125
|
+
indexed: true,
|
|
126
|
+
internalType: "address",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "currency",
|
|
130
|
+
type: "address",
|
|
131
|
+
indexed: true,
|
|
132
|
+
internalType: "address",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
name: "amount",
|
|
136
|
+
type: "uint256",
|
|
137
|
+
indexed: false,
|
|
138
|
+
internalType: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
anonymous: false,
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
type: "event",
|
|
145
|
+
name: "SimpleAppInitialized",
|
|
146
|
+
inputs: [
|
|
147
|
+
{
|
|
148
|
+
name: "owner",
|
|
149
|
+
type: "address",
|
|
150
|
+
indexed: true,
|
|
151
|
+
internalType: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "client",
|
|
155
|
+
type: "address",
|
|
156
|
+
indexed: true,
|
|
157
|
+
internalType: "address",
|
|
158
|
+
},
|
|
159
|
+
],
|
|
160
|
+
anonymous: false,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
type: "event",
|
|
164
|
+
name: "Withdrawal",
|
|
165
|
+
inputs: [
|
|
166
|
+
{
|
|
167
|
+
name: "recipient",
|
|
168
|
+
type: "address",
|
|
169
|
+
indexed: true,
|
|
170
|
+
internalType: "address",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "amount",
|
|
174
|
+
type: "uint256",
|
|
175
|
+
indexed: false,
|
|
176
|
+
internalType: "uint256",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
anonymous: false,
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
type: "error",
|
|
183
|
+
name: "SimpleApp__InvalidAddressInput",
|
|
184
|
+
inputs: [],
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
type: "error",
|
|
188
|
+
name: "SimpleApp__InvalidAmount",
|
|
189
|
+
inputs: [],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
type: "error",
|
|
193
|
+
name: "SimpleApp__InvalidCaller",
|
|
194
|
+
inputs: [],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
type: "error",
|
|
198
|
+
name: "SimpleApp__InvalidCurrency",
|
|
199
|
+
inputs: [],
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
type: "error",
|
|
203
|
+
name: "SimpleApp__NoBalanceToWithdraw",
|
|
204
|
+
inputs: [],
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
type: "error",
|
|
208
|
+
name: "SimpleApp__ZeroAddress",
|
|
209
|
+
inputs: [],
|
|
210
|
+
},
|
|
211
|
+
] as const;
|
|
212
|
+
|
|
213
|
+
export class ISimpleApp__factory {
|
|
214
|
+
static readonly abi = _abi;
|
|
215
|
+
static createInterface(): ISimpleAppInterface {
|
|
216
|
+
return new utils.Interface(_abi) as ISimpleAppInterface;
|
|
217
|
+
}
|
|
218
|
+
static connect(
|
|
219
|
+
address: string,
|
|
220
|
+
signerOrProvider: Signer | Provider
|
|
221
|
+
): ISimpleApp {
|
|
222
|
+
return new Contract(address, _abi, signerOrProvider) as ISimpleApp;
|
|
223
|
+
}
|
|
224
|
+
}
|