@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/.contracts-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
363307618993369bb3614de81a1864f07e49bb41
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "installApp",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "app",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "contract ITownsApp"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "account",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "contract IAppAccount"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "data",
|
|
18
|
+
"type": "bytes",
|
|
19
|
+
"internalType": "bytes"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [],
|
|
23
|
+
"stateMutability": "payable"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "function",
|
|
27
|
+
"name": "renewApp",
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"name": "app",
|
|
31
|
+
"type": "address",
|
|
32
|
+
"internalType": "contract ITownsApp"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "account",
|
|
36
|
+
"type": "address",
|
|
37
|
+
"internalType": "contract IAppAccount"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "data",
|
|
41
|
+
"type": "bytes",
|
|
42
|
+
"internalType": "bytes"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"outputs": [],
|
|
46
|
+
"stateMutability": "payable"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "function",
|
|
50
|
+
"name": "uninstallApp",
|
|
51
|
+
"inputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "app",
|
|
54
|
+
"type": "address",
|
|
55
|
+
"internalType": "contract ITownsApp"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "account",
|
|
59
|
+
"type": "address",
|
|
60
|
+
"internalType": "contract IAppAccount"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "data",
|
|
64
|
+
"type": "bytes",
|
|
65
|
+
"internalType": "bytes"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"outputs": [],
|
|
69
|
+
"stateMutability": "nonpayable"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "function",
|
|
73
|
+
"name": "updateApp",
|
|
74
|
+
"inputs": [
|
|
75
|
+
{
|
|
76
|
+
"name": "app",
|
|
77
|
+
"type": "address",
|
|
78
|
+
"internalType": "contract ITownsApp"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "account",
|
|
82
|
+
"type": "address",
|
|
83
|
+
"internalType": "contract IAppAccount"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"outputs": [],
|
|
87
|
+
"stateMutability": "nonpayable"
|
|
88
|
+
}
|
|
89
|
+
]
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "installApp",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "app",
|
|
8
|
+
"type": "address",
|
|
9
|
+
"internalType": "contract ITownsApp"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "account",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "contract IAppAccount"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "data",
|
|
18
|
+
"type": "bytes",
|
|
19
|
+
"internalType": "bytes"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"outputs": [],
|
|
23
|
+
"stateMutability": "payable"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "function",
|
|
27
|
+
"name": "renewApp",
|
|
28
|
+
"inputs": [
|
|
29
|
+
{
|
|
30
|
+
"name": "app",
|
|
31
|
+
"type": "address",
|
|
32
|
+
"internalType": "contract ITownsApp"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "account",
|
|
36
|
+
"type": "address",
|
|
37
|
+
"internalType": "contract IAppAccount"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "data",
|
|
41
|
+
"type": "bytes",
|
|
42
|
+
"internalType": "bytes"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"outputs": [],
|
|
46
|
+
"stateMutability": "payable"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "function",
|
|
50
|
+
"name": "uninstallApp",
|
|
51
|
+
"inputs": [
|
|
52
|
+
{
|
|
53
|
+
"name": "app",
|
|
54
|
+
"type": "address",
|
|
55
|
+
"internalType": "contract ITownsApp"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "account",
|
|
59
|
+
"type": "address",
|
|
60
|
+
"internalType": "contract IAppAccount"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "data",
|
|
64
|
+
"type": "bytes",
|
|
65
|
+
"internalType": "bytes"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"outputs": [],
|
|
69
|
+
"stateMutability": "nonpayable"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "function",
|
|
73
|
+
"name": "updateApp",
|
|
74
|
+
"inputs": [
|
|
75
|
+
{
|
|
76
|
+
"name": "app",
|
|
77
|
+
"type": "address",
|
|
78
|
+
"internalType": "contract ITownsApp"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "account",
|
|
82
|
+
"type": "address",
|
|
83
|
+
"internalType": "contract IAppAccount"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"outputs": [],
|
|
87
|
+
"stateMutability": "nonpayable"
|
|
88
|
+
}
|
|
89
|
+
] as const
|
|
@@ -312,29 +312,6 @@
|
|
|
312
312
|
],
|
|
313
313
|
"stateMutability": "view"
|
|
314
314
|
},
|
|
315
|
-
{
|
|
316
|
-
"type": "function",
|
|
317
|
-
"name": "installApp",
|
|
318
|
-
"inputs": [
|
|
319
|
-
{
|
|
320
|
-
"name": "app",
|
|
321
|
-
"type": "address",
|
|
322
|
-
"internalType": "contract ITownsApp"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "account",
|
|
326
|
-
"type": "address",
|
|
327
|
-
"internalType": "contract IAppAccount"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"name": "data",
|
|
331
|
-
"type": "bytes",
|
|
332
|
-
"internalType": "bytes"
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
|
-
"outputs": [],
|
|
336
|
-
"stateMutability": "payable"
|
|
337
|
-
},
|
|
338
315
|
{
|
|
339
316
|
"type": "function",
|
|
340
317
|
"name": "isAppBanned",
|
|
@@ -391,70 +368,6 @@
|
|
|
391
368
|
"outputs": [],
|
|
392
369
|
"stateMutability": "nonpayable"
|
|
393
370
|
},
|
|
394
|
-
{
|
|
395
|
-
"type": "function",
|
|
396
|
-
"name": "renewApp",
|
|
397
|
-
"inputs": [
|
|
398
|
-
{
|
|
399
|
-
"name": "app",
|
|
400
|
-
"type": "address",
|
|
401
|
-
"internalType": "contract ITownsApp"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "account",
|
|
405
|
-
"type": "address",
|
|
406
|
-
"internalType": "contract IAppAccount"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"name": "data",
|
|
410
|
-
"type": "bytes",
|
|
411
|
-
"internalType": "bytes"
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"outputs": [],
|
|
415
|
-
"stateMutability": "payable"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"type": "function",
|
|
419
|
-
"name": "uninstallApp",
|
|
420
|
-
"inputs": [
|
|
421
|
-
{
|
|
422
|
-
"name": "app",
|
|
423
|
-
"type": "address",
|
|
424
|
-
"internalType": "contract ITownsApp"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "account",
|
|
428
|
-
"type": "address",
|
|
429
|
-
"internalType": "contract IAppAccount"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"name": "data",
|
|
433
|
-
"type": "bytes",
|
|
434
|
-
"internalType": "bytes"
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"outputs": [],
|
|
438
|
-
"stateMutability": "nonpayable"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"type": "function",
|
|
442
|
-
"name": "updateApp",
|
|
443
|
-
"inputs": [
|
|
444
|
-
{
|
|
445
|
-
"name": "app",
|
|
446
|
-
"type": "address",
|
|
447
|
-
"internalType": "contract ITownsApp"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"name": "account",
|
|
451
|
-
"type": "address",
|
|
452
|
-
"internalType": "contract IAppAccount"
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"outputs": [],
|
|
456
|
-
"stateMutability": "nonpayable"
|
|
457
|
-
},
|
|
458
371
|
{
|
|
459
372
|
"type": "function",
|
|
460
373
|
"name": "upgradeApp",
|
|
@@ -312,29 +312,6 @@ export default [
|
|
|
312
312
|
],
|
|
313
313
|
"stateMutability": "view"
|
|
314
314
|
},
|
|
315
|
-
{
|
|
316
|
-
"type": "function",
|
|
317
|
-
"name": "installApp",
|
|
318
|
-
"inputs": [
|
|
319
|
-
{
|
|
320
|
-
"name": "app",
|
|
321
|
-
"type": "address",
|
|
322
|
-
"internalType": "contract ITownsApp"
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
"name": "account",
|
|
326
|
-
"type": "address",
|
|
327
|
-
"internalType": "contract IAppAccount"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
"name": "data",
|
|
331
|
-
"type": "bytes",
|
|
332
|
-
"internalType": "bytes"
|
|
333
|
-
}
|
|
334
|
-
],
|
|
335
|
-
"outputs": [],
|
|
336
|
-
"stateMutability": "payable"
|
|
337
|
-
},
|
|
338
315
|
{
|
|
339
316
|
"type": "function",
|
|
340
317
|
"name": "isAppBanned",
|
|
@@ -391,70 +368,6 @@ export default [
|
|
|
391
368
|
"outputs": [],
|
|
392
369
|
"stateMutability": "nonpayable"
|
|
393
370
|
},
|
|
394
|
-
{
|
|
395
|
-
"type": "function",
|
|
396
|
-
"name": "renewApp",
|
|
397
|
-
"inputs": [
|
|
398
|
-
{
|
|
399
|
-
"name": "app",
|
|
400
|
-
"type": "address",
|
|
401
|
-
"internalType": "contract ITownsApp"
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"name": "account",
|
|
405
|
-
"type": "address",
|
|
406
|
-
"internalType": "contract IAppAccount"
|
|
407
|
-
},
|
|
408
|
-
{
|
|
409
|
-
"name": "data",
|
|
410
|
-
"type": "bytes",
|
|
411
|
-
"internalType": "bytes"
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
"outputs": [],
|
|
415
|
-
"stateMutability": "payable"
|
|
416
|
-
},
|
|
417
|
-
{
|
|
418
|
-
"type": "function",
|
|
419
|
-
"name": "uninstallApp",
|
|
420
|
-
"inputs": [
|
|
421
|
-
{
|
|
422
|
-
"name": "app",
|
|
423
|
-
"type": "address",
|
|
424
|
-
"internalType": "contract ITownsApp"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
"name": "account",
|
|
428
|
-
"type": "address",
|
|
429
|
-
"internalType": "contract IAppAccount"
|
|
430
|
-
},
|
|
431
|
-
{
|
|
432
|
-
"name": "data",
|
|
433
|
-
"type": "bytes",
|
|
434
|
-
"internalType": "bytes"
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
"outputs": [],
|
|
438
|
-
"stateMutability": "nonpayable"
|
|
439
|
-
},
|
|
440
|
-
{
|
|
441
|
-
"type": "function",
|
|
442
|
-
"name": "updateApp",
|
|
443
|
-
"inputs": [
|
|
444
|
-
{
|
|
445
|
-
"name": "app",
|
|
446
|
-
"type": "address",
|
|
447
|
-
"internalType": "contract ITownsApp"
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
"name": "account",
|
|
451
|
-
"type": "address",
|
|
452
|
-
"internalType": "contract IAppAccount"
|
|
453
|
-
}
|
|
454
|
-
],
|
|
455
|
-
"outputs": [],
|
|
456
|
-
"stateMutability": "nonpayable"
|
|
457
|
-
},
|
|
458
371
|
{
|
|
459
372
|
"type": "function",
|
|
460
373
|
"name": "upgradeApp",
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "sendTip",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "recipientType",
|
|
8
|
+
"type": "uint8",
|
|
9
|
+
"internalType": "enum ITippingBase.TipRecipientType"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "data",
|
|
13
|
+
"type": "bytes",
|
|
14
|
+
"internalType": "bytes"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [],
|
|
18
|
+
"stateMutability": "payable"
|
|
19
|
+
},
|
|
2
20
|
{
|
|
3
21
|
"type": "function",
|
|
4
22
|
"name": "tip",
|
|
@@ -63,6 +81,30 @@
|
|
|
63
81
|
],
|
|
64
82
|
"stateMutability": "view"
|
|
65
83
|
},
|
|
84
|
+
{
|
|
85
|
+
"type": "function",
|
|
86
|
+
"name": "tipCountByWalletAndCurrency",
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "wallet",
|
|
90
|
+
"type": "address",
|
|
91
|
+
"internalType": "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "currency",
|
|
95
|
+
"type": "address",
|
|
96
|
+
"internalType": "address"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"name": "",
|
|
102
|
+
"type": "uint256",
|
|
103
|
+
"internalType": "uint256"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "view"
|
|
107
|
+
},
|
|
66
108
|
{
|
|
67
109
|
"type": "function",
|
|
68
110
|
"name": "tippingCurrencies",
|
|
@@ -100,6 +142,30 @@
|
|
|
100
142
|
],
|
|
101
143
|
"stateMutability": "view"
|
|
102
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"type": "function",
|
|
147
|
+
"name": "tipsByWalletAndCurrency",
|
|
148
|
+
"inputs": [
|
|
149
|
+
{
|
|
150
|
+
"name": "wallet",
|
|
151
|
+
"type": "address",
|
|
152
|
+
"internalType": "address"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "currency",
|
|
156
|
+
"type": "address",
|
|
157
|
+
"internalType": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"outputs": [
|
|
161
|
+
{
|
|
162
|
+
"name": "",
|
|
163
|
+
"type": "uint256",
|
|
164
|
+
"internalType": "uint256"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"stateMutability": "view"
|
|
168
|
+
},
|
|
103
169
|
{
|
|
104
170
|
"type": "function",
|
|
105
171
|
"name": "totalTipsByCurrency",
|
|
@@ -168,6 +234,49 @@
|
|
|
168
234
|
],
|
|
169
235
|
"anonymous": false
|
|
170
236
|
},
|
|
237
|
+
{
|
|
238
|
+
"type": "event",
|
|
239
|
+
"name": "TipSent",
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"name": "sender",
|
|
243
|
+
"type": "address",
|
|
244
|
+
"indexed": true,
|
|
245
|
+
"internalType": "address"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "receiver",
|
|
249
|
+
"type": "address",
|
|
250
|
+
"indexed": true,
|
|
251
|
+
"internalType": "address"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "recipientType",
|
|
255
|
+
"type": "uint8",
|
|
256
|
+
"indexed": true,
|
|
257
|
+
"internalType": "enum ITippingBase.TipRecipientType"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "currency",
|
|
261
|
+
"type": "address",
|
|
262
|
+
"indexed": false,
|
|
263
|
+
"internalType": "address"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "amount",
|
|
267
|
+
"type": "uint256",
|
|
268
|
+
"indexed": false,
|
|
269
|
+
"internalType": "uint256"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "tokenId",
|
|
273
|
+
"type": "uint256",
|
|
274
|
+
"indexed": false,
|
|
275
|
+
"internalType": "uint256"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"anonymous": false
|
|
279
|
+
},
|
|
171
280
|
{
|
|
172
281
|
"type": "error",
|
|
173
282
|
"name": "AmountIsZero",
|
|
@@ -183,6 +292,16 @@
|
|
|
183
292
|
"name": "CurrencyIsZero",
|
|
184
293
|
"inputs": []
|
|
185
294
|
},
|
|
295
|
+
{
|
|
296
|
+
"type": "error",
|
|
297
|
+
"name": "InvalidRecipientType",
|
|
298
|
+
"inputs": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "error",
|
|
302
|
+
"name": "InvalidTipData",
|
|
303
|
+
"inputs": []
|
|
304
|
+
},
|
|
186
305
|
{
|
|
187
306
|
"type": "error",
|
|
188
307
|
"name": "MsgValueMismatch",
|
package/dev/abis/ITipping.abi.ts
CHANGED
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "sendTip",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "recipientType",
|
|
8
|
+
"type": "uint8",
|
|
9
|
+
"internalType": "enum ITippingBase.TipRecipientType"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "data",
|
|
13
|
+
"type": "bytes",
|
|
14
|
+
"internalType": "bytes"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"outputs": [],
|
|
18
|
+
"stateMutability": "payable"
|
|
19
|
+
},
|
|
2
20
|
{
|
|
3
21
|
"type": "function",
|
|
4
22
|
"name": "tip",
|
|
@@ -63,6 +81,30 @@ export default [
|
|
|
63
81
|
],
|
|
64
82
|
"stateMutability": "view"
|
|
65
83
|
},
|
|
84
|
+
{
|
|
85
|
+
"type": "function",
|
|
86
|
+
"name": "tipCountByWalletAndCurrency",
|
|
87
|
+
"inputs": [
|
|
88
|
+
{
|
|
89
|
+
"name": "wallet",
|
|
90
|
+
"type": "address",
|
|
91
|
+
"internalType": "address"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "currency",
|
|
95
|
+
"type": "address",
|
|
96
|
+
"internalType": "address"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"outputs": [
|
|
100
|
+
{
|
|
101
|
+
"name": "",
|
|
102
|
+
"type": "uint256",
|
|
103
|
+
"internalType": "uint256"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"stateMutability": "view"
|
|
107
|
+
},
|
|
66
108
|
{
|
|
67
109
|
"type": "function",
|
|
68
110
|
"name": "tippingCurrencies",
|
|
@@ -100,6 +142,30 @@ export default [
|
|
|
100
142
|
],
|
|
101
143
|
"stateMutability": "view"
|
|
102
144
|
},
|
|
145
|
+
{
|
|
146
|
+
"type": "function",
|
|
147
|
+
"name": "tipsByWalletAndCurrency",
|
|
148
|
+
"inputs": [
|
|
149
|
+
{
|
|
150
|
+
"name": "wallet",
|
|
151
|
+
"type": "address",
|
|
152
|
+
"internalType": "address"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"name": "currency",
|
|
156
|
+
"type": "address",
|
|
157
|
+
"internalType": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"outputs": [
|
|
161
|
+
{
|
|
162
|
+
"name": "",
|
|
163
|
+
"type": "uint256",
|
|
164
|
+
"internalType": "uint256"
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
"stateMutability": "view"
|
|
168
|
+
},
|
|
103
169
|
{
|
|
104
170
|
"type": "function",
|
|
105
171
|
"name": "totalTipsByCurrency",
|
|
@@ -168,6 +234,49 @@ export default [
|
|
|
168
234
|
],
|
|
169
235
|
"anonymous": false
|
|
170
236
|
},
|
|
237
|
+
{
|
|
238
|
+
"type": "event",
|
|
239
|
+
"name": "TipSent",
|
|
240
|
+
"inputs": [
|
|
241
|
+
{
|
|
242
|
+
"name": "sender",
|
|
243
|
+
"type": "address",
|
|
244
|
+
"indexed": true,
|
|
245
|
+
"internalType": "address"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "receiver",
|
|
249
|
+
"type": "address",
|
|
250
|
+
"indexed": true,
|
|
251
|
+
"internalType": "address"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "recipientType",
|
|
255
|
+
"type": "uint8",
|
|
256
|
+
"indexed": true,
|
|
257
|
+
"internalType": "enum ITippingBase.TipRecipientType"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"name": "currency",
|
|
261
|
+
"type": "address",
|
|
262
|
+
"indexed": false,
|
|
263
|
+
"internalType": "address"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"name": "amount",
|
|
267
|
+
"type": "uint256",
|
|
268
|
+
"indexed": false,
|
|
269
|
+
"internalType": "uint256"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"name": "tokenId",
|
|
273
|
+
"type": "uint256",
|
|
274
|
+
"indexed": false,
|
|
275
|
+
"internalType": "uint256"
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"anonymous": false
|
|
279
|
+
},
|
|
171
280
|
{
|
|
172
281
|
"type": "error",
|
|
173
282
|
"name": "AmountIsZero",
|
|
@@ -183,6 +292,16 @@ export default [
|
|
|
183
292
|
"name": "CurrencyIsZero",
|
|
184
293
|
"inputs": []
|
|
185
294
|
},
|
|
295
|
+
{
|
|
296
|
+
"type": "error",
|
|
297
|
+
"name": "InvalidRecipientType",
|
|
298
|
+
"inputs": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "error",
|
|
302
|
+
"name": "InvalidTipData",
|
|
303
|
+
"inputs": []
|
|
304
|
+
},
|
|
186
305
|
{
|
|
187
306
|
"type": "error",
|
|
188
307
|
"name": "MsgValueMismatch",
|