sdk-triggerx 0.1.30 → 0.1.32

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.
@@ -1,607 +1,452 @@
1
1
  [
2
2
  {
3
+ "type": "constructor",
3
4
  "inputs": [],
4
- "stateMutability": "nonpayable",
5
- "type": "constructor"
6
- },
7
- {
8
- "inputs": [
9
- {
10
- "internalType": "address",
11
- "name": "target",
12
- "type": "address"
13
- }
14
- ],
15
- "name": "AddressEmptyCode",
16
- "type": "error"
17
- },
18
- {
19
- "inputs": [
20
- {
21
- "internalType": "address",
22
- "name": "implementation",
23
- "type": "address"
24
- }
25
- ],
26
- "name": "ERC1967InvalidImplementation",
27
- "type": "error"
28
- },
29
- {
30
- "inputs": [],
31
- "name": "ERC1967NonPayable",
32
- "type": "error"
33
- },
34
- {
35
- "inputs": [],
36
- "name": "FailedCall",
37
- "type": "error"
38
- },
39
- {
40
- "inputs": [],
41
- "name": "InvalidInitialization",
42
- "type": "error"
5
+ "stateMutability": "nonpayable"
43
6
  },
44
7
  {
8
+ "type": "function",
9
+ "name": "UPGRADE_INTERFACE_VERSION",
45
10
  "inputs": [],
46
- "name": "NotInitializing",
47
- "type": "error"
48
- },
49
- {
50
- "inputs": [
11
+ "outputs": [
51
12
  {
52
- "internalType": "address",
53
- "name": "owner",
54
- "type": "address"
13
+ "name": "",
14
+ "type": "string",
15
+ "internalType": "string"
55
16
  }
56
17
  ],
57
- "name": "OwnableInvalidOwner",
58
- "type": "error"
18
+ "stateMutability": "view"
59
19
  },
60
20
  {
21
+ "type": "function",
22
+ "name": "balances",
61
23
  "inputs": [
62
24
  {
63
- "internalType": "address",
64
- "name": "account",
65
- "type": "address"
25
+ "name": "",
26
+ "type": "address",
27
+ "internalType": "address"
66
28
  }
67
29
  ],
68
- "name": "OwnableUnauthorizedAccount",
69
- "type": "error"
70
- },
71
- {
72
- "inputs": [],
73
- "name": "ReentrancyGuardReentrantCall",
74
- "type": "error"
75
- },
76
- {
77
- "inputs": [],
78
- "name": "UUPSUnauthorizedCallContext",
79
- "type": "error"
80
- },
81
- {
82
- "inputs": [
30
+ "outputs": [
83
31
  {
84
- "internalType": "bytes32",
85
- "name": "slot",
86
- "type": "bytes32"
32
+ "name": "",
33
+ "type": "uint256",
34
+ "internalType": "uint256"
87
35
  }
88
36
  ],
89
- "name": "UUPSUnsupportedProxiableUUID",
90
- "type": "error"
37
+ "stateMutability": "view"
91
38
  },
92
39
  {
93
- "anonymous": false,
40
+ "type": "function",
41
+ "name": "batchMigrateUsers",
94
42
  "inputs": [
95
43
  {
96
- "indexed": true,
97
- "internalType": "address",
98
- "name": "owner",
99
- "type": "address"
100
- },
101
- {
102
- "indexed": false,
103
- "internalType": "uint256",
104
- "name": "amount",
105
- "type": "uint256"
44
+ "name": "users",
45
+ "type": "address[]",
46
+ "internalType": "address[]"
106
47
  },
107
48
  {
108
- "indexed": false,
109
- "internalType": "string",
110
- "name": "reason",
111
- "type": "string"
112
- }
113
- ],
114
- "name": "ETHWithdrawn",
115
- "type": "event"
116
- },
117
- {
118
- "anonymous": false,
119
- "inputs": [
120
- {
121
- "indexed": false,
122
- "internalType": "uint64",
123
- "name": "version",
124
- "type": "uint64"
49
+ "name": "ethAmounts",
50
+ "type": "uint256[]",
51
+ "internalType": "uint256[]"
125
52
  }
126
53
  ],
127
- "name": "Initialized",
128
- "type": "event"
54
+ "outputs": [],
55
+ "stateMutability": "payable"
129
56
  },
130
57
  {
131
- "anonymous": false,
58
+ "type": "function",
59
+ "name": "deductETHBalance",
132
60
  "inputs": [
133
61
  {
134
- "indexed": true,
135
- "internalType": "address",
136
- "name": "previousOwner",
137
- "type": "address"
62
+ "name": "user",
63
+ "type": "address",
64
+ "internalType": "address"
138
65
  },
139
66
  {
140
- "indexed": true,
141
- "internalType": "address",
142
- "name": "newOwner",
143
- "type": "address"
67
+ "name": "ethAmount",
68
+ "type": "uint256",
69
+ "internalType": "uint256"
144
70
  }
145
71
  ],
146
- "name": "OwnershipTransferred",
147
- "type": "event"
72
+ "outputs": [],
73
+ "stateMutability": "nonpayable"
148
74
  },
149
75
  {
150
- "anonymous": false,
76
+ "type": "function",
77
+ "name": "depositETH",
151
78
  "inputs": [
152
79
  {
153
- "indexed": true,
154
- "internalType": "address",
155
- "name": "user",
156
- "type": "address"
157
- },
158
- {
159
- "indexed": false,
160
- "internalType": "uint256",
161
- "name": "reward",
162
- "type": "uint256"
80
+ "name": "ethAmount",
81
+ "type": "uint256",
82
+ "internalType": "uint256"
163
83
  }
164
84
  ],
165
- "name": "RewardClaimed",
166
- "type": "event"
85
+ "outputs": [],
86
+ "stateMutability": "payable"
167
87
  },
168
88
  {
169
- "anonymous": false,
89
+ "type": "function",
90
+ "name": "getBalance",
170
91
  "inputs": [
171
92
  {
172
- "indexed": true,
173
- "internalType": "address",
174
93
  "name": "user",
175
- "type": "address"
176
- },
177
- {
178
- "indexed": false,
179
- "internalType": "uint256",
180
- "name": "amount",
181
- "type": "uint256"
94
+ "type": "address",
95
+ "internalType": "address"
182
96
  }
183
97
  ],
184
- "name": "TGBalanceDeducted",
185
- "type": "event"
186
- },
187
- {
188
- "anonymous": false,
189
- "inputs": [
190
- {
191
- "indexed": true,
192
- "internalType": "address",
193
- "name": "user",
194
- "type": "address"
195
- },
196
- {
197
- "indexed": false,
198
- "internalType": "uint256",
199
- "name": "amount",
200
- "type": "uint256"
201
- },
98
+ "outputs": [
202
99
  {
203
- "indexed": false,
204
- "internalType": "string",
205
- "name": "reason",
206
- "type": "string"
100
+ "name": "ethAmount",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
207
103
  }
208
104
  ],
209
- "name": "TGBalanceRemoved",
210
- "type": "event"
105
+ "stateMutability": "view"
211
106
  },
212
107
  {
213
- "anonymous": false,
108
+ "type": "function",
109
+ "name": "initialize",
214
110
  "inputs": [
215
111
  {
216
- "indexed": true,
217
- "internalType": "address",
218
- "name": "user",
219
- "type": "address"
112
+ "name": "initialOwner",
113
+ "type": "address",
114
+ "internalType": "address"
220
115
  },
221
116
  {
222
- "indexed": false,
223
- "internalType": "uint256",
224
- "name": "amount",
225
- "type": "uint256"
226
- }
227
- ],
228
- "name": "TGClaimed",
229
- "type": "event"
230
- },
231
- {
232
- "anonymous": false,
233
- "inputs": [
234
- {
235
- "indexed": false,
236
- "internalType": "uint256",
237
- "name": "tgPerEth",
238
- "type": "uint256"
117
+ "name": "_operator",
118
+ "type": "address",
119
+ "internalType": "address"
239
120
  }
240
121
  ],
241
- "name": "TGPerETHUpdated",
242
- "type": "event"
122
+ "outputs": [],
123
+ "stateMutability": "nonpayable"
243
124
  },
244
125
  {
245
- "anonymous": false,
246
- "inputs": [
247
- {
248
- "indexed": true,
249
- "internalType": "address",
250
- "name": "user",
251
- "type": "address"
252
- },
253
- {
254
- "indexed": false,
255
- "internalType": "uint256",
256
- "name": "ethAmount",
257
- "type": "uint256"
258
- },
126
+ "type": "function",
127
+ "name": "operatorRole",
128
+ "inputs": [],
129
+ "outputs": [
259
130
  {
260
- "indexed": false,
261
- "internalType": "uint256",
262
- "name": "tgAmount",
263
- "type": "uint256"
131
+ "name": "",
132
+ "type": "address",
133
+ "internalType": "address"
264
134
  }
265
135
  ],
266
- "name": "TGPurchased",
267
- "type": "event"
136
+ "stateMutability": "view"
268
137
  },
269
138
  {
270
- "anonymous": false,
271
- "inputs": [
272
- {
273
- "indexed": true,
274
- "internalType": "address",
275
- "name": "user",
276
- "type": "address"
277
- },
139
+ "type": "function",
140
+ "name": "owner",
141
+ "inputs": [],
142
+ "outputs": [
278
143
  {
279
- "indexed": false,
280
- "internalType": "uint256",
281
- "name": "amount",
282
- "type": "uint256"
144
+ "name": "",
145
+ "type": "address",
146
+ "internalType": "address"
283
147
  }
284
148
  ],
285
- "name": "TGRefunded",
286
- "type": "event"
149
+ "stateMutability": "view"
287
150
  },
288
151
  {
289
- "anonymous": false,
290
- "inputs": [
291
- {
292
- "indexed": true,
293
- "internalType": "address",
294
- "name": "user",
295
- "type": "address"
296
- },
297
- {
298
- "indexed": true,
299
- "internalType": "address",
300
- "name": "keeper",
301
- "type": "address"
302
- },
152
+ "type": "function",
153
+ "name": "proxiableUUID",
154
+ "inputs": [],
155
+ "outputs": [
303
156
  {
304
- "indexed": false,
305
- "internalType": "uint256",
306
- "name": "amount",
307
- "type": "uint256"
157
+ "name": "",
158
+ "type": "bytes32",
159
+ "internalType": "bytes32"
308
160
  }
309
161
  ],
310
- "name": "TGTransferred",
311
- "type": "event"
162
+ "stateMutability": "view"
312
163
  },
313
164
  {
314
- "anonymous": false,
315
- "inputs": [
316
- {
317
- "indexed": true,
318
- "internalType": "address",
319
- "name": "user",
320
- "type": "address"
321
- },
322
- {
323
- "indexed": false,
324
- "internalType": "uint256",
325
- "name": "amount",
326
- "type": "uint256"
327
- }
328
- ],
329
- "name": "TaskFeeClaimed",
330
- "type": "event"
165
+ "type": "function",
166
+ "name": "renounceOwnership",
167
+ "inputs": [],
168
+ "outputs": [],
169
+ "stateMutability": "nonpayable"
331
170
  },
332
171
  {
333
- "anonymous": false,
172
+ "type": "function",
173
+ "name": "setOperator",
334
174
  "inputs": [
335
175
  {
336
- "indexed": true,
337
- "internalType": "address",
338
- "name": "implementation",
339
- "type": "address"
176
+ "name": "_operatorRole",
177
+ "type": "address",
178
+ "internalType": "address"
340
179
  }
341
180
  ],
342
- "name": "Upgraded",
343
- "type": "event"
181
+ "outputs": [],
182
+ "stateMutability": "nonpayable"
344
183
  },
345
184
  {
185
+ "type": "function",
186
+ "name": "totalDeductedBalance",
346
187
  "inputs": [],
347
- "name": "TG_PER_ETH",
348
188
  "outputs": [
349
189
  {
350
- "internalType": "uint256",
351
190
  "name": "",
352
- "type": "uint256"
191
+ "type": "uint256",
192
+ "internalType": "uint256"
353
193
  }
354
194
  ],
355
- "stateMutability": "view",
356
- "type": "function"
195
+ "stateMutability": "view"
357
196
  },
358
197
  {
359
- "inputs": [],
360
- "name": "UPGRADE_INTERFACE_VERSION",
361
- "outputs": [
198
+ "type": "function",
199
+ "name": "transferOwnership",
200
+ "inputs": [
362
201
  {
363
- "internalType": "string",
364
- "name": "",
365
- "type": "string"
202
+ "name": "newOwner",
203
+ "type": "address",
204
+ "internalType": "address"
366
205
  }
367
206
  ],
368
- "stateMutability": "view",
369
- "type": "function"
207
+ "outputs": [],
208
+ "stateMutability": "nonpayable"
370
209
  },
371
210
  {
211
+ "type": "function",
212
+ "name": "upgradeToAndCall",
372
213
  "inputs": [
373
214
  {
374
- "internalType": "address",
375
- "name": "",
376
- "type": "address"
215
+ "name": "newImplementation",
216
+ "type": "address",
217
+ "internalType": "address"
218
+ },
219
+ {
220
+ "name": "data",
221
+ "type": "bytes",
222
+ "internalType": "bytes"
377
223
  }
378
224
  ],
379
- "name": "balances",
380
- "outputs": [
225
+ "outputs": [],
226
+ "stateMutability": "payable"
227
+ },
228
+ {
229
+ "type": "function",
230
+ "name": "withdrawETH",
231
+ "inputs": [
381
232
  {
382
- "internalType": "uint256",
383
- "name": "ethSpent",
384
- "type": "uint256"
233
+ "name": "amount",
234
+ "type": "uint256",
235
+ "internalType": "uint256"
385
236
  },
386
237
  {
387
- "internalType": "uint256",
388
- "name": "TGbalance",
389
- "type": "uint256"
238
+ "name": "reason",
239
+ "type": "string",
240
+ "internalType": "string"
390
241
  }
391
242
  ],
392
- "stateMutability": "view",
393
- "type": "function"
243
+ "outputs": [],
244
+ "stateMutability": "nonpayable"
394
245
  },
395
246
  {
247
+ "type": "function",
248
+ "name": "withdrawETHBalance",
396
249
  "inputs": [
397
250
  {
398
- "internalType": "uint256",
399
- "name": "tgAmount",
400
- "type": "uint256"
251
+ "name": "ethAmount",
252
+ "type": "uint256",
253
+ "internalType": "uint256"
401
254
  }
402
255
  ],
403
- "name": "claimETHForTG",
404
256
  "outputs": [],
405
- "stateMutability": "nonpayable",
406
- "type": "function"
257
+ "stateMutability": "nonpayable"
407
258
  },
408
259
  {
260
+ "type": "event",
261
+ "name": "ETHBalanceDeducted",
409
262
  "inputs": [
410
263
  {
411
- "internalType": "address",
412
264
  "name": "user",
413
- "type": "address"
265
+ "type": "address",
266
+ "indexed": true,
267
+ "internalType": "address"
414
268
  },
415
269
  {
416
- "internalType": "uint256",
417
- "name": "tgAmount",
418
- "type": "uint256"
270
+ "name": "amount",
271
+ "type": "uint256",
272
+ "indexed": false,
273
+ "internalType": "uint256"
419
274
  }
420
275
  ],
421
- "name": "deductTGBalance",
422
- "outputs": [],
423
- "stateMutability": "nonpayable",
424
- "type": "function"
276
+ "anonymous": false
425
277
  },
426
278
  {
279
+ "type": "event",
280
+ "name": "ETHDeposited",
427
281
  "inputs": [
428
282
  {
429
- "internalType": "address",
430
283
  "name": "user",
431
- "type": "address"
432
- }
433
- ],
434
- "name": "getBalance",
435
- "outputs": [
436
- {
437
- "internalType": "uint256",
438
- "name": "ethSpent",
439
- "type": "uint256"
284
+ "type": "address",
285
+ "indexed": true,
286
+ "internalType": "address"
440
287
  },
441
288
  {
442
- "internalType": "uint256",
443
- "name": "tgBalance",
444
- "type": "uint256"
289
+ "name": "ethAmount",
290
+ "type": "uint256",
291
+ "indexed": false,
292
+ "internalType": "uint256"
445
293
  }
446
294
  ],
447
- "stateMutability": "view",
448
- "type": "function"
295
+ "anonymous": false
449
296
  },
450
297
  {
298
+ "type": "event",
299
+ "name": "ETHWithdrawn",
451
300
  "inputs": [
452
301
  {
453
- "internalType": "address",
454
- "name": "initialOwner",
455
- "type": "address"
302
+ "name": "owner",
303
+ "type": "address",
304
+ "indexed": true,
305
+ "internalType": "address"
456
306
  },
457
307
  {
458
- "internalType": "address",
459
- "name": "_operator",
460
- "type": "address"
308
+ "name": "amount",
309
+ "type": "uint256",
310
+ "indexed": false,
311
+ "internalType": "uint256"
461
312
  },
462
313
  {
463
- "internalType": "uint256",
464
- "name": "_tgPerEth",
465
- "type": "uint256"
314
+ "name": "reason",
315
+ "type": "string",
316
+ "indexed": false,
317
+ "internalType": "string"
466
318
  }
467
319
  ],
468
- "name": "initialize",
469
- "outputs": [],
470
- "stateMutability": "nonpayable",
471
- "type": "function"
320
+ "anonymous": false
472
321
  },
473
322
  {
474
- "inputs": [],
475
- "name": "operatorRole",
476
- "outputs": [
323
+ "type": "event",
324
+ "name": "Initialized",
325
+ "inputs": [
477
326
  {
478
- "internalType": "address",
479
- "name": "",
480
- "type": "address"
327
+ "name": "version",
328
+ "type": "uint64",
329
+ "indexed": false,
330
+ "internalType": "uint64"
481
331
  }
482
332
  ],
483
- "stateMutability": "view",
484
- "type": "function"
333
+ "anonymous": false
485
334
  },
486
335
  {
487
- "inputs": [],
488
- "name": "owner",
489
- "outputs": [
336
+ "type": "event",
337
+ "name": "OwnershipTransferred",
338
+ "inputs": [
490
339
  {
491
- "internalType": "address",
492
- "name": "",
493
- "type": "address"
494
- }
495
- ],
496
- "stateMutability": "view",
497
- "type": "function"
498
- },
499
- {
500
- "inputs": [],
501
- "name": "proxiableUUID",
502
- "outputs": [
340
+ "name": "previousOwner",
341
+ "type": "address",
342
+ "indexed": true,
343
+ "internalType": "address"
344
+ },
503
345
  {
504
- "internalType": "bytes32",
505
- "name": "",
506
- "type": "bytes32"
346
+ "name": "newOwner",
347
+ "type": "address",
348
+ "indexed": true,
349
+ "internalType": "address"
507
350
  }
508
351
  ],
509
- "stateMutability": "view",
510
- "type": "function"
352
+ "anonymous": false
511
353
  },
512
354
  {
355
+ "type": "event",
356
+ "name": "Upgraded",
513
357
  "inputs": [
514
358
  {
515
- "internalType": "uint256",
516
- "name": "ethAmount",
517
- "type": "uint256"
359
+ "name": "implementation",
360
+ "type": "address",
361
+ "indexed": true,
362
+ "internalType": "address"
518
363
  }
519
364
  ],
520
- "name": "purchaseTG",
521
- "outputs": [],
522
- "stateMutability": "payable",
523
- "type": "function"
524
- },
525
- {
526
- "inputs": [],
527
- "name": "renounceOwnership",
528
- "outputs": [],
529
- "stateMutability": "nonpayable",
530
- "type": "function"
365
+ "anonymous": false
531
366
  },
532
367
  {
368
+ "type": "error",
369
+ "name": "AddressEmptyCode",
533
370
  "inputs": [
534
371
  {
535
- "internalType": "address",
536
- "name": "_operatorRole",
537
- "type": "address"
372
+ "name": "target",
373
+ "type": "address",
374
+ "internalType": "address"
538
375
  }
539
- ],
540
- "name": "setOperator",
541
- "outputs": [],
542
- "stateMutability": "nonpayable",
543
- "type": "function"
376
+ ]
544
377
  },
545
378
  {
379
+ "type": "error",
380
+ "name": "ERC1967InvalidImplementation",
546
381
  "inputs": [
547
382
  {
548
- "internalType": "uint256",
549
- "name": "_tgPerEth",
550
- "type": "uint256"
383
+ "name": "implementation",
384
+ "type": "address",
385
+ "internalType": "address"
551
386
  }
552
- ],
553
- "name": "setTGPerETH",
554
- "outputs": [],
555
- "stateMutability": "nonpayable",
556
- "type": "function"
387
+ ]
388
+ },
389
+ {
390
+ "type": "error",
391
+ "name": "ERC1967NonPayable",
392
+ "inputs": []
393
+ },
394
+ {
395
+ "type": "error",
396
+ "name": "FailedCall",
397
+ "inputs": []
398
+ },
399
+ {
400
+ "type": "error",
401
+ "name": "InvalidInitialization",
402
+ "inputs": []
403
+ },
404
+ {
405
+ "type": "error",
406
+ "name": "NotInitializing",
407
+ "inputs": []
557
408
  },
558
409
  {
410
+ "type": "error",
411
+ "name": "OwnableInvalidOwner",
559
412
  "inputs": [
560
413
  {
561
- "internalType": "address",
562
- "name": "newOwner",
563
- "type": "address"
414
+ "name": "owner",
415
+ "type": "address",
416
+ "internalType": "address"
564
417
  }
565
- ],
566
- "name": "transferOwnership",
567
- "outputs": [],
568
- "stateMutability": "nonpayable",
569
- "type": "function"
418
+ ]
570
419
  },
571
420
  {
421
+ "type": "error",
422
+ "name": "OwnableUnauthorizedAccount",
572
423
  "inputs": [
573
424
  {
574
- "internalType": "address",
575
- "name": "newImplementation",
576
- "type": "address"
577
- },
578
- {
579
- "internalType": "bytes",
580
- "name": "data",
581
- "type": "bytes"
425
+ "name": "account",
426
+ "type": "address",
427
+ "internalType": "address"
582
428
  }
583
- ],
584
- "name": "upgradeToAndCall",
585
- "outputs": [],
586
- "stateMutability": "payable",
587
- "type": "function"
429
+ ]
430
+ },
431
+ {
432
+ "type": "error",
433
+ "name": "ReentrancyGuardReentrantCall",
434
+ "inputs": []
435
+ },
436
+ {
437
+ "type": "error",
438
+ "name": "UUPSUnauthorizedCallContext",
439
+ "inputs": []
588
440
  },
589
441
  {
442
+ "type": "error",
443
+ "name": "UUPSUnsupportedProxiableUUID",
590
444
  "inputs": [
591
445
  {
592
- "internalType": "uint256",
593
- "name": "amount",
594
- "type": "uint256"
595
- },
596
- {
597
- "internalType": "string",
598
- "name": "reason",
599
- "type": "string"
446
+ "name": "slot",
447
+ "type": "bytes32",
448
+ "internalType": "bytes32"
600
449
  }
601
- ],
602
- "name": "withdrawETH",
603
- "outputs": [],
604
- "stateMutability": "nonpayable",
605
- "type": "function"
450
+ ]
606
451
  }
607
452
  ]