@towns-protocol/generated 0.0.374 → 0.0.376
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/IAppInstaller.abi.json +89 -0
- package/dev/abis/IAppInstaller.abi.ts +89 -0
- package/dev/abis/IAppRegistry.abi.json +0 -87
- package/dev/abis/IAppRegistry.abi.ts +0 -87
- package/dev/abis/ITipping.abi.json +119 -0
- package/dev/abis/ITipping.abi.ts +119 -0
- package/dev/abis/ITippingBase.abi.json +53 -0
- package/dev/abis/ITippingBase.abi.ts +53 -0
- package/dev/typings/IAppInstaller.ts +239 -0
- package/dev/typings/IAppRegistry.ts +0 -166
- package/dev/typings/ITipping.ts +151 -0
- package/dev/typings/factories/IAppInstaller__factory.ts +110 -0
- package/dev/typings/factories/IAppRegistry__factory.ts +0 -87
- package/dev/typings/factories/ITipping__factory.ts +119 -0
- package/dev/typings/factories/index.ts +1 -0
- package/dev/typings/index.ts +2 -0
- package/package.json +3 -3
- package/scripts/prepare.js +37 -55
package/dev/typings/ITipping.ts
CHANGED
|
@@ -55,22 +55,32 @@ export declare namespace ITippingBase {
|
|
|
55
55
|
|
|
56
56
|
export interface ITippingInterface extends utils.Interface {
|
|
57
57
|
functions: {
|
|
58
|
+
"sendTip(uint8,bytes)": FunctionFragment;
|
|
58
59
|
"tip((address,uint256,address,uint256,bytes32,bytes32))": FunctionFragment;
|
|
59
60
|
"tipAmountByCurrency(address)": FunctionFragment;
|
|
61
|
+
"tipCountByWalletAndCurrency(address,address)": FunctionFragment;
|
|
60
62
|
"tippingCurrencies()": FunctionFragment;
|
|
61
63
|
"tipsByCurrencyAndTokenId(uint256,address)": FunctionFragment;
|
|
64
|
+
"tipsByWalletAndCurrency(address,address)": FunctionFragment;
|
|
62
65
|
"totalTipsByCurrency(address)": FunctionFragment;
|
|
63
66
|
};
|
|
64
67
|
|
|
65
68
|
getFunction(
|
|
66
69
|
nameOrSignatureOrTopic:
|
|
70
|
+
| "sendTip"
|
|
67
71
|
| "tip"
|
|
68
72
|
| "tipAmountByCurrency"
|
|
73
|
+
| "tipCountByWalletAndCurrency"
|
|
69
74
|
| "tippingCurrencies"
|
|
70
75
|
| "tipsByCurrencyAndTokenId"
|
|
76
|
+
| "tipsByWalletAndCurrency"
|
|
71
77
|
| "totalTipsByCurrency"
|
|
72
78
|
): FunctionFragment;
|
|
73
79
|
|
|
80
|
+
encodeFunctionData(
|
|
81
|
+
functionFragment: "sendTip",
|
|
82
|
+
values: [BigNumberish, BytesLike]
|
|
83
|
+
): string;
|
|
74
84
|
encodeFunctionData(
|
|
75
85
|
functionFragment: "tip",
|
|
76
86
|
values: [ITippingBase.TipRequestStruct]
|
|
@@ -79,6 +89,10 @@ export interface ITippingInterface extends utils.Interface {
|
|
|
79
89
|
functionFragment: "tipAmountByCurrency",
|
|
80
90
|
values: [string]
|
|
81
91
|
): string;
|
|
92
|
+
encodeFunctionData(
|
|
93
|
+
functionFragment: "tipCountByWalletAndCurrency",
|
|
94
|
+
values: [string, string]
|
|
95
|
+
): string;
|
|
82
96
|
encodeFunctionData(
|
|
83
97
|
functionFragment: "tippingCurrencies",
|
|
84
98
|
values?: undefined
|
|
@@ -87,16 +101,25 @@ export interface ITippingInterface extends utils.Interface {
|
|
|
87
101
|
functionFragment: "tipsByCurrencyAndTokenId",
|
|
88
102
|
values: [BigNumberish, string]
|
|
89
103
|
): string;
|
|
104
|
+
encodeFunctionData(
|
|
105
|
+
functionFragment: "tipsByWalletAndCurrency",
|
|
106
|
+
values: [string, string]
|
|
107
|
+
): string;
|
|
90
108
|
encodeFunctionData(
|
|
91
109
|
functionFragment: "totalTipsByCurrency",
|
|
92
110
|
values: [string]
|
|
93
111
|
): string;
|
|
94
112
|
|
|
113
|
+
decodeFunctionResult(functionFragment: "sendTip", data: BytesLike): Result;
|
|
95
114
|
decodeFunctionResult(functionFragment: "tip", data: BytesLike): Result;
|
|
96
115
|
decodeFunctionResult(
|
|
97
116
|
functionFragment: "tipAmountByCurrency",
|
|
98
117
|
data: BytesLike
|
|
99
118
|
): Result;
|
|
119
|
+
decodeFunctionResult(
|
|
120
|
+
functionFragment: "tipCountByWalletAndCurrency",
|
|
121
|
+
data: BytesLike
|
|
122
|
+
): Result;
|
|
100
123
|
decodeFunctionResult(
|
|
101
124
|
functionFragment: "tippingCurrencies",
|
|
102
125
|
data: BytesLike
|
|
@@ -105,6 +128,10 @@ export interface ITippingInterface extends utils.Interface {
|
|
|
105
128
|
functionFragment: "tipsByCurrencyAndTokenId",
|
|
106
129
|
data: BytesLike
|
|
107
130
|
): Result;
|
|
131
|
+
decodeFunctionResult(
|
|
132
|
+
functionFragment: "tipsByWalletAndCurrency",
|
|
133
|
+
data: BytesLike
|
|
134
|
+
): Result;
|
|
108
135
|
decodeFunctionResult(
|
|
109
136
|
functionFragment: "totalTipsByCurrency",
|
|
110
137
|
data: BytesLike
|
|
@@ -112,9 +139,11 @@ export interface ITippingInterface extends utils.Interface {
|
|
|
112
139
|
|
|
113
140
|
events: {
|
|
114
141
|
"Tip(uint256,address,address,address,uint256,bytes32,bytes32)": EventFragment;
|
|
142
|
+
"TipSent(address,address,uint8,address,uint256,uint256)": EventFragment;
|
|
115
143
|
};
|
|
116
144
|
|
|
117
145
|
getEvent(nameOrSignatureOrTopic: "Tip"): EventFragment;
|
|
146
|
+
getEvent(nameOrSignatureOrTopic: "TipSent"): EventFragment;
|
|
118
147
|
}
|
|
119
148
|
|
|
120
149
|
export interface TipEventObject {
|
|
@@ -133,6 +162,21 @@ export type TipEvent = TypedEvent<
|
|
|
133
162
|
|
|
134
163
|
export type TipEventFilter = TypedEventFilter<TipEvent>;
|
|
135
164
|
|
|
165
|
+
export interface TipSentEventObject {
|
|
166
|
+
sender: string;
|
|
167
|
+
receiver: string;
|
|
168
|
+
recipientType: number;
|
|
169
|
+
currency: string;
|
|
170
|
+
amount: BigNumber;
|
|
171
|
+
tokenId: BigNumber;
|
|
172
|
+
}
|
|
173
|
+
export type TipSentEvent = TypedEvent<
|
|
174
|
+
[string, string, number, string, BigNumber, BigNumber],
|
|
175
|
+
TipSentEventObject
|
|
176
|
+
>;
|
|
177
|
+
|
|
178
|
+
export type TipSentEventFilter = TypedEventFilter<TipSentEvent>;
|
|
179
|
+
|
|
136
180
|
export interface ITipping extends BaseContract {
|
|
137
181
|
connect(signerOrProvider: Signer | Provider | string): this;
|
|
138
182
|
attach(addressOrName: string): this;
|
|
@@ -160,6 +204,12 @@ export interface ITipping extends BaseContract {
|
|
|
160
204
|
removeListener: OnEvent<this>;
|
|
161
205
|
|
|
162
206
|
functions: {
|
|
207
|
+
sendTip(
|
|
208
|
+
recipientType: BigNumberish,
|
|
209
|
+
data: BytesLike,
|
|
210
|
+
overrides?: PayableOverrides & { from?: string }
|
|
211
|
+
): Promise<ContractTransaction>;
|
|
212
|
+
|
|
163
213
|
tip(
|
|
164
214
|
tipRequest: ITippingBase.TipRequestStruct,
|
|
165
215
|
overrides?: PayableOverrides & { from?: string }
|
|
@@ -170,6 +220,12 @@ export interface ITipping extends BaseContract {
|
|
|
170
220
|
overrides?: CallOverrides
|
|
171
221
|
): Promise<[BigNumber]>;
|
|
172
222
|
|
|
223
|
+
tipCountByWalletAndCurrency(
|
|
224
|
+
wallet: string,
|
|
225
|
+
currency: string,
|
|
226
|
+
overrides?: CallOverrides
|
|
227
|
+
): Promise<[BigNumber]>;
|
|
228
|
+
|
|
173
229
|
tippingCurrencies(overrides?: CallOverrides): Promise<[string[]]>;
|
|
174
230
|
|
|
175
231
|
tipsByCurrencyAndTokenId(
|
|
@@ -178,12 +234,24 @@ export interface ITipping extends BaseContract {
|
|
|
178
234
|
overrides?: CallOverrides
|
|
179
235
|
): Promise<[BigNumber]>;
|
|
180
236
|
|
|
237
|
+
tipsByWalletAndCurrency(
|
|
238
|
+
wallet: string,
|
|
239
|
+
currency: string,
|
|
240
|
+
overrides?: CallOverrides
|
|
241
|
+
): Promise<[BigNumber]>;
|
|
242
|
+
|
|
181
243
|
totalTipsByCurrency(
|
|
182
244
|
currency: string,
|
|
183
245
|
overrides?: CallOverrides
|
|
184
246
|
): Promise<[BigNumber]>;
|
|
185
247
|
};
|
|
186
248
|
|
|
249
|
+
sendTip(
|
|
250
|
+
recipientType: BigNumberish,
|
|
251
|
+
data: BytesLike,
|
|
252
|
+
overrides?: PayableOverrides & { from?: string }
|
|
253
|
+
): Promise<ContractTransaction>;
|
|
254
|
+
|
|
187
255
|
tip(
|
|
188
256
|
tipRequest: ITippingBase.TipRequestStruct,
|
|
189
257
|
overrides?: PayableOverrides & { from?: string }
|
|
@@ -194,6 +262,12 @@ export interface ITipping extends BaseContract {
|
|
|
194
262
|
overrides?: CallOverrides
|
|
195
263
|
): Promise<BigNumber>;
|
|
196
264
|
|
|
265
|
+
tipCountByWalletAndCurrency(
|
|
266
|
+
wallet: string,
|
|
267
|
+
currency: string,
|
|
268
|
+
overrides?: CallOverrides
|
|
269
|
+
): Promise<BigNumber>;
|
|
270
|
+
|
|
197
271
|
tippingCurrencies(overrides?: CallOverrides): Promise<string[]>;
|
|
198
272
|
|
|
199
273
|
tipsByCurrencyAndTokenId(
|
|
@@ -202,12 +276,24 @@ export interface ITipping extends BaseContract {
|
|
|
202
276
|
overrides?: CallOverrides
|
|
203
277
|
): Promise<BigNumber>;
|
|
204
278
|
|
|
279
|
+
tipsByWalletAndCurrency(
|
|
280
|
+
wallet: string,
|
|
281
|
+
currency: string,
|
|
282
|
+
overrides?: CallOverrides
|
|
283
|
+
): Promise<BigNumber>;
|
|
284
|
+
|
|
205
285
|
totalTipsByCurrency(
|
|
206
286
|
currency: string,
|
|
207
287
|
overrides?: CallOverrides
|
|
208
288
|
): Promise<BigNumber>;
|
|
209
289
|
|
|
210
290
|
callStatic: {
|
|
291
|
+
sendTip(
|
|
292
|
+
recipientType: BigNumberish,
|
|
293
|
+
data: BytesLike,
|
|
294
|
+
overrides?: CallOverrides
|
|
295
|
+
): Promise<void>;
|
|
296
|
+
|
|
211
297
|
tip(
|
|
212
298
|
tipRequest: ITippingBase.TipRequestStruct,
|
|
213
299
|
overrides?: CallOverrides
|
|
@@ -218,6 +304,12 @@ export interface ITipping extends BaseContract {
|
|
|
218
304
|
overrides?: CallOverrides
|
|
219
305
|
): Promise<BigNumber>;
|
|
220
306
|
|
|
307
|
+
tipCountByWalletAndCurrency(
|
|
308
|
+
wallet: string,
|
|
309
|
+
currency: string,
|
|
310
|
+
overrides?: CallOverrides
|
|
311
|
+
): Promise<BigNumber>;
|
|
312
|
+
|
|
221
313
|
tippingCurrencies(overrides?: CallOverrides): Promise<string[]>;
|
|
222
314
|
|
|
223
315
|
tipsByCurrencyAndTokenId(
|
|
@@ -226,6 +318,12 @@ export interface ITipping extends BaseContract {
|
|
|
226
318
|
overrides?: CallOverrides
|
|
227
319
|
): Promise<BigNumber>;
|
|
228
320
|
|
|
321
|
+
tipsByWalletAndCurrency(
|
|
322
|
+
wallet: string,
|
|
323
|
+
currency: string,
|
|
324
|
+
overrides?: CallOverrides
|
|
325
|
+
): Promise<BigNumber>;
|
|
326
|
+
|
|
229
327
|
totalTipsByCurrency(
|
|
230
328
|
currency: string,
|
|
231
329
|
overrides?: CallOverrides
|
|
@@ -251,9 +349,32 @@ export interface ITipping extends BaseContract {
|
|
|
251
349
|
messageId?: null,
|
|
252
350
|
channelId?: null
|
|
253
351
|
): TipEventFilter;
|
|
352
|
+
|
|
353
|
+
"TipSent(address,address,uint8,address,uint256,uint256)"(
|
|
354
|
+
sender?: string | null,
|
|
355
|
+
receiver?: string | null,
|
|
356
|
+
recipientType?: BigNumberish | null,
|
|
357
|
+
currency?: null,
|
|
358
|
+
amount?: null,
|
|
359
|
+
tokenId?: null
|
|
360
|
+
): TipSentEventFilter;
|
|
361
|
+
TipSent(
|
|
362
|
+
sender?: string | null,
|
|
363
|
+
receiver?: string | null,
|
|
364
|
+
recipientType?: BigNumberish | null,
|
|
365
|
+
currency?: null,
|
|
366
|
+
amount?: null,
|
|
367
|
+
tokenId?: null
|
|
368
|
+
): TipSentEventFilter;
|
|
254
369
|
};
|
|
255
370
|
|
|
256
371
|
estimateGas: {
|
|
372
|
+
sendTip(
|
|
373
|
+
recipientType: BigNumberish,
|
|
374
|
+
data: BytesLike,
|
|
375
|
+
overrides?: PayableOverrides & { from?: string }
|
|
376
|
+
): Promise<BigNumber>;
|
|
377
|
+
|
|
257
378
|
tip(
|
|
258
379
|
tipRequest: ITippingBase.TipRequestStruct,
|
|
259
380
|
overrides?: PayableOverrides & { from?: string }
|
|
@@ -264,6 +385,12 @@ export interface ITipping extends BaseContract {
|
|
|
264
385
|
overrides?: CallOverrides
|
|
265
386
|
): Promise<BigNumber>;
|
|
266
387
|
|
|
388
|
+
tipCountByWalletAndCurrency(
|
|
389
|
+
wallet: string,
|
|
390
|
+
currency: string,
|
|
391
|
+
overrides?: CallOverrides
|
|
392
|
+
): Promise<BigNumber>;
|
|
393
|
+
|
|
267
394
|
tippingCurrencies(overrides?: CallOverrides): Promise<BigNumber>;
|
|
268
395
|
|
|
269
396
|
tipsByCurrencyAndTokenId(
|
|
@@ -272,6 +399,12 @@ export interface ITipping extends BaseContract {
|
|
|
272
399
|
overrides?: CallOverrides
|
|
273
400
|
): Promise<BigNumber>;
|
|
274
401
|
|
|
402
|
+
tipsByWalletAndCurrency(
|
|
403
|
+
wallet: string,
|
|
404
|
+
currency: string,
|
|
405
|
+
overrides?: CallOverrides
|
|
406
|
+
): Promise<BigNumber>;
|
|
407
|
+
|
|
275
408
|
totalTipsByCurrency(
|
|
276
409
|
currency: string,
|
|
277
410
|
overrides?: CallOverrides
|
|
@@ -279,6 +412,12 @@ export interface ITipping extends BaseContract {
|
|
|
279
412
|
};
|
|
280
413
|
|
|
281
414
|
populateTransaction: {
|
|
415
|
+
sendTip(
|
|
416
|
+
recipientType: BigNumberish,
|
|
417
|
+
data: BytesLike,
|
|
418
|
+
overrides?: PayableOverrides & { from?: string }
|
|
419
|
+
): Promise<PopulatedTransaction>;
|
|
420
|
+
|
|
282
421
|
tip(
|
|
283
422
|
tipRequest: ITippingBase.TipRequestStruct,
|
|
284
423
|
overrides?: PayableOverrides & { from?: string }
|
|
@@ -289,6 +428,12 @@ export interface ITipping extends BaseContract {
|
|
|
289
428
|
overrides?: CallOverrides
|
|
290
429
|
): Promise<PopulatedTransaction>;
|
|
291
430
|
|
|
431
|
+
tipCountByWalletAndCurrency(
|
|
432
|
+
wallet: string,
|
|
433
|
+
currency: string,
|
|
434
|
+
overrides?: CallOverrides
|
|
435
|
+
): Promise<PopulatedTransaction>;
|
|
436
|
+
|
|
292
437
|
tippingCurrencies(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
293
438
|
|
|
294
439
|
tipsByCurrencyAndTokenId(
|
|
@@ -297,6 +442,12 @@ export interface ITipping extends BaseContract {
|
|
|
297
442
|
overrides?: CallOverrides
|
|
298
443
|
): Promise<PopulatedTransaction>;
|
|
299
444
|
|
|
445
|
+
tipsByWalletAndCurrency(
|
|
446
|
+
wallet: string,
|
|
447
|
+
currency: string,
|
|
448
|
+
overrides?: CallOverrides
|
|
449
|
+
): Promise<PopulatedTransaction>;
|
|
450
|
+
|
|
300
451
|
totalTipsByCurrency(
|
|
301
452
|
currency: string,
|
|
302
453
|
overrides?: CallOverrides
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { IAppInstaller, IAppInstallerInterface } from "../IAppInstaller";
|
|
8
|
+
|
|
9
|
+
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "installApp",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "app",
|
|
16
|
+
type: "address",
|
|
17
|
+
internalType: "contract ITownsApp",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "account",
|
|
21
|
+
type: "address",
|
|
22
|
+
internalType: "contract IAppAccount",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: "data",
|
|
26
|
+
type: "bytes",
|
|
27
|
+
internalType: "bytes",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
outputs: [],
|
|
31
|
+
stateMutability: "payable",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: "function",
|
|
35
|
+
name: "renewApp",
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
name: "app",
|
|
39
|
+
type: "address",
|
|
40
|
+
internalType: "contract ITownsApp",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: "account",
|
|
44
|
+
type: "address",
|
|
45
|
+
internalType: "contract IAppAccount",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "data",
|
|
49
|
+
type: "bytes",
|
|
50
|
+
internalType: "bytes",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
outputs: [],
|
|
54
|
+
stateMutability: "payable",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
type: "function",
|
|
58
|
+
name: "uninstallApp",
|
|
59
|
+
inputs: [
|
|
60
|
+
{
|
|
61
|
+
name: "app",
|
|
62
|
+
type: "address",
|
|
63
|
+
internalType: "contract ITownsApp",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "account",
|
|
67
|
+
type: "address",
|
|
68
|
+
internalType: "contract IAppAccount",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: "data",
|
|
72
|
+
type: "bytes",
|
|
73
|
+
internalType: "bytes",
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
outputs: [],
|
|
77
|
+
stateMutability: "nonpayable",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "function",
|
|
81
|
+
name: "updateApp",
|
|
82
|
+
inputs: [
|
|
83
|
+
{
|
|
84
|
+
name: "app",
|
|
85
|
+
type: "address",
|
|
86
|
+
internalType: "contract ITownsApp",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "account",
|
|
90
|
+
type: "address",
|
|
91
|
+
internalType: "contract IAppAccount",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
outputs: [],
|
|
95
|
+
stateMutability: "nonpayable",
|
|
96
|
+
},
|
|
97
|
+
] as const;
|
|
98
|
+
|
|
99
|
+
export class IAppInstaller__factory {
|
|
100
|
+
static readonly abi = _abi;
|
|
101
|
+
static createInterface(): IAppInstallerInterface {
|
|
102
|
+
return new utils.Interface(_abi) as IAppInstallerInterface;
|
|
103
|
+
}
|
|
104
|
+
static connect(
|
|
105
|
+
address: string,
|
|
106
|
+
signerOrProvider: Signer | Provider
|
|
107
|
+
): IAppInstaller {
|
|
108
|
+
return new Contract(address, _abi, signerOrProvider) as IAppInstaller;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
@@ -320,29 +320,6 @@ const _abi = [
|
|
|
320
320
|
],
|
|
321
321
|
stateMutability: "view",
|
|
322
322
|
},
|
|
323
|
-
{
|
|
324
|
-
type: "function",
|
|
325
|
-
name: "installApp",
|
|
326
|
-
inputs: [
|
|
327
|
-
{
|
|
328
|
-
name: "app",
|
|
329
|
-
type: "address",
|
|
330
|
-
internalType: "contract ITownsApp",
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
name: "account",
|
|
334
|
-
type: "address",
|
|
335
|
-
internalType: "contract IAppAccount",
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
name: "data",
|
|
339
|
-
type: "bytes",
|
|
340
|
-
internalType: "bytes",
|
|
341
|
-
},
|
|
342
|
-
],
|
|
343
|
-
outputs: [],
|
|
344
|
-
stateMutability: "payable",
|
|
345
|
-
},
|
|
346
323
|
{
|
|
347
324
|
type: "function",
|
|
348
325
|
name: "isAppBanned",
|
|
@@ -399,70 +376,6 @@ const _abi = [
|
|
|
399
376
|
outputs: [],
|
|
400
377
|
stateMutability: "nonpayable",
|
|
401
378
|
},
|
|
402
|
-
{
|
|
403
|
-
type: "function",
|
|
404
|
-
name: "renewApp",
|
|
405
|
-
inputs: [
|
|
406
|
-
{
|
|
407
|
-
name: "app",
|
|
408
|
-
type: "address",
|
|
409
|
-
internalType: "contract ITownsApp",
|
|
410
|
-
},
|
|
411
|
-
{
|
|
412
|
-
name: "account",
|
|
413
|
-
type: "address",
|
|
414
|
-
internalType: "contract IAppAccount",
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
name: "data",
|
|
418
|
-
type: "bytes",
|
|
419
|
-
internalType: "bytes",
|
|
420
|
-
},
|
|
421
|
-
],
|
|
422
|
-
outputs: [],
|
|
423
|
-
stateMutability: "payable",
|
|
424
|
-
},
|
|
425
|
-
{
|
|
426
|
-
type: "function",
|
|
427
|
-
name: "uninstallApp",
|
|
428
|
-
inputs: [
|
|
429
|
-
{
|
|
430
|
-
name: "app",
|
|
431
|
-
type: "address",
|
|
432
|
-
internalType: "contract ITownsApp",
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: "account",
|
|
436
|
-
type: "address",
|
|
437
|
-
internalType: "contract IAppAccount",
|
|
438
|
-
},
|
|
439
|
-
{
|
|
440
|
-
name: "data",
|
|
441
|
-
type: "bytes",
|
|
442
|
-
internalType: "bytes",
|
|
443
|
-
},
|
|
444
|
-
],
|
|
445
|
-
outputs: [],
|
|
446
|
-
stateMutability: "nonpayable",
|
|
447
|
-
},
|
|
448
|
-
{
|
|
449
|
-
type: "function",
|
|
450
|
-
name: "updateApp",
|
|
451
|
-
inputs: [
|
|
452
|
-
{
|
|
453
|
-
name: "app",
|
|
454
|
-
type: "address",
|
|
455
|
-
internalType: "contract ITownsApp",
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
name: "account",
|
|
459
|
-
type: "address",
|
|
460
|
-
internalType: "contract IAppAccount",
|
|
461
|
-
},
|
|
462
|
-
],
|
|
463
|
-
outputs: [],
|
|
464
|
-
stateMutability: "nonpayable",
|
|
465
|
-
},
|
|
466
379
|
{
|
|
467
380
|
type: "function",
|
|
468
381
|
name: "upgradeApp",
|
|
@@ -7,6 +7,24 @@ import type { Provider } from "@ethersproject/providers";
|
|
|
7
7
|
import type { ITipping, ITippingInterface } from "../ITipping";
|
|
8
8
|
|
|
9
9
|
const _abi = [
|
|
10
|
+
{
|
|
11
|
+
type: "function",
|
|
12
|
+
name: "sendTip",
|
|
13
|
+
inputs: [
|
|
14
|
+
{
|
|
15
|
+
name: "recipientType",
|
|
16
|
+
type: "uint8",
|
|
17
|
+
internalType: "enum ITippingBase.TipRecipientType",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "data",
|
|
21
|
+
type: "bytes",
|
|
22
|
+
internalType: "bytes",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
outputs: [],
|
|
26
|
+
stateMutability: "payable",
|
|
27
|
+
},
|
|
10
28
|
{
|
|
11
29
|
type: "function",
|
|
12
30
|
name: "tip",
|
|
@@ -71,6 +89,30 @@ const _abi = [
|
|
|
71
89
|
],
|
|
72
90
|
stateMutability: "view",
|
|
73
91
|
},
|
|
92
|
+
{
|
|
93
|
+
type: "function",
|
|
94
|
+
name: "tipCountByWalletAndCurrency",
|
|
95
|
+
inputs: [
|
|
96
|
+
{
|
|
97
|
+
name: "wallet",
|
|
98
|
+
type: "address",
|
|
99
|
+
internalType: "address",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "currency",
|
|
103
|
+
type: "address",
|
|
104
|
+
internalType: "address",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
outputs: [
|
|
108
|
+
{
|
|
109
|
+
name: "",
|
|
110
|
+
type: "uint256",
|
|
111
|
+
internalType: "uint256",
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
stateMutability: "view",
|
|
115
|
+
},
|
|
74
116
|
{
|
|
75
117
|
type: "function",
|
|
76
118
|
name: "tippingCurrencies",
|
|
@@ -108,6 +150,30 @@ const _abi = [
|
|
|
108
150
|
],
|
|
109
151
|
stateMutability: "view",
|
|
110
152
|
},
|
|
153
|
+
{
|
|
154
|
+
type: "function",
|
|
155
|
+
name: "tipsByWalletAndCurrency",
|
|
156
|
+
inputs: [
|
|
157
|
+
{
|
|
158
|
+
name: "wallet",
|
|
159
|
+
type: "address",
|
|
160
|
+
internalType: "address",
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: "currency",
|
|
164
|
+
type: "address",
|
|
165
|
+
internalType: "address",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
outputs: [
|
|
169
|
+
{
|
|
170
|
+
name: "",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
internalType: "uint256",
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
stateMutability: "view",
|
|
176
|
+
},
|
|
111
177
|
{
|
|
112
178
|
type: "function",
|
|
113
179
|
name: "totalTipsByCurrency",
|
|
@@ -176,6 +242,49 @@ const _abi = [
|
|
|
176
242
|
],
|
|
177
243
|
anonymous: false,
|
|
178
244
|
},
|
|
245
|
+
{
|
|
246
|
+
type: "event",
|
|
247
|
+
name: "TipSent",
|
|
248
|
+
inputs: [
|
|
249
|
+
{
|
|
250
|
+
name: "sender",
|
|
251
|
+
type: "address",
|
|
252
|
+
indexed: true,
|
|
253
|
+
internalType: "address",
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
name: "receiver",
|
|
257
|
+
type: "address",
|
|
258
|
+
indexed: true,
|
|
259
|
+
internalType: "address",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: "recipientType",
|
|
263
|
+
type: "uint8",
|
|
264
|
+
indexed: true,
|
|
265
|
+
internalType: "enum ITippingBase.TipRecipientType",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: "currency",
|
|
269
|
+
type: "address",
|
|
270
|
+
indexed: false,
|
|
271
|
+
internalType: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: "amount",
|
|
275
|
+
type: "uint256",
|
|
276
|
+
indexed: false,
|
|
277
|
+
internalType: "uint256",
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
name: "tokenId",
|
|
281
|
+
type: "uint256",
|
|
282
|
+
indexed: false,
|
|
283
|
+
internalType: "uint256",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
anonymous: false,
|
|
287
|
+
},
|
|
179
288
|
{
|
|
180
289
|
type: "error",
|
|
181
290
|
name: "AmountIsZero",
|
|
@@ -191,6 +300,16 @@ const _abi = [
|
|
|
191
300
|
name: "CurrencyIsZero",
|
|
192
301
|
inputs: [],
|
|
193
302
|
},
|
|
303
|
+
{
|
|
304
|
+
type: "error",
|
|
305
|
+
name: "InvalidRecipientType",
|
|
306
|
+
inputs: [],
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
type: "error",
|
|
310
|
+
name: "InvalidTipData",
|
|
311
|
+
inputs: [],
|
|
312
|
+
},
|
|
194
313
|
{
|
|
195
314
|
type: "error",
|
|
196
315
|
name: "MsgValueMismatch",
|
|
@@ -11,6 +11,7 @@ export { DropFacet__factory } from "./DropFacet__factory";
|
|
|
11
11
|
export { EntitlementsManager__factory } from "./EntitlementsManager__factory";
|
|
12
12
|
export { GuardianFacet__factory } from "./GuardianFacet__factory";
|
|
13
13
|
export { IAppAccount__factory } from "./IAppAccount__factory";
|
|
14
|
+
export { IAppInstaller__factory } from "./IAppInstaller__factory";
|
|
14
15
|
export { IAppRegistry__factory } from "./IAppRegistry__factory";
|
|
15
16
|
export { IArchitect__factory } from "./IArchitect__factory";
|
|
16
17
|
export { IBanning__factory } from "./IBanning__factory";
|
package/dev/typings/index.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type { DropFacet } from "./DropFacet";
|
|
|
15
15
|
export type { EntitlementsManager } from "./EntitlementsManager";
|
|
16
16
|
export type { GuardianFacet } from "./GuardianFacet";
|
|
17
17
|
export type { IAppAccount } from "./IAppAccount";
|
|
18
|
+
export type { IAppInstaller } from "./IAppInstaller";
|
|
18
19
|
export type { IAppRegistry } from "./IAppRegistry";
|
|
19
20
|
export type { IArchitect } from "./IArchitect";
|
|
20
21
|
export type { IBanning } from "./IBanning";
|
|
@@ -76,6 +77,7 @@ export { DropFacet__factory } from "./factories/DropFacet__factory";
|
|
|
76
77
|
export { EntitlementsManager__factory } from "./factories/EntitlementsManager__factory";
|
|
77
78
|
export { GuardianFacet__factory } from "./factories/GuardianFacet__factory";
|
|
78
79
|
export { IAppAccount__factory } from "./factories/IAppAccount__factory";
|
|
80
|
+
export { IAppInstaller__factory } from "./factories/IAppInstaller__factory";
|
|
79
81
|
export { IAppRegistry__factory } from "./factories/IAppRegistry__factory";
|
|
80
82
|
export { IArchitect__factory } from "./factories/IArchitect__factory";
|
|
81
83
|
export { IBanning__factory } from "./factories/IBanning__factory";
|