@reppo/cli 0.1.0

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 (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +84 -0
  3. package/dist/api/platform.d.ts +39 -0
  4. package/dist/api/platform.d.ts.map +1 -0
  5. package/dist/api/platform.js +148 -0
  6. package/dist/api/platform.js.map +1 -0
  7. package/dist/bin.d.ts +3 -0
  8. package/dist/bin.d.ts.map +1 -0
  9. package/dist/bin.js +60 -0
  10. package/dist/bin.js.map +1 -0
  11. package/dist/chain/abis.d.ts +576 -0
  12. package/dist/chain/abis.d.ts.map +1 -0
  13. package/dist/chain/abis.js +66 -0
  14. package/dist/chain/abis.js.map +1 -0
  15. package/dist/chain/addresses.d.ts +27 -0
  16. package/dist/chain/addresses.d.ts.map +1 -0
  17. package/dist/chain/addresses.js +39 -0
  18. package/dist/chain/addresses.js.map +1 -0
  19. package/dist/chain/clients.d.ts +46 -0
  20. package/dist/chain/clients.d.ts.map +1 -0
  21. package/dist/chain/clients.js +48 -0
  22. package/dist/chain/clients.js.map +1 -0
  23. package/dist/chain/contracts.d.ts +28 -0
  24. package/dist/chain/contracts.d.ts.map +1 -0
  25. package/dist/chain/contracts.js +70 -0
  26. package/dist/chain/contracts.js.map +1 -0
  27. package/dist/chain/errors.d.ts +14 -0
  28. package/dist/chain/errors.d.ts.map +1 -0
  29. package/dist/chain/errors.js +72 -0
  30. package/dist/chain/errors.js.map +1 -0
  31. package/dist/commands/_base.d.ts +19 -0
  32. package/dist/commands/_base.d.ts.map +1 -0
  33. package/dist/commands/_base.js +40 -0
  34. package/dist/commands/_base.js.map +1 -0
  35. package/dist/commands/auth.d.ts +9 -0
  36. package/dist/commands/auth.d.ts.map +1 -0
  37. package/dist/commands/auth.js +93 -0
  38. package/dist/commands/auth.js.map +1 -0
  39. package/dist/commands/claim-emissions.d.ts +11 -0
  40. package/dist/commands/claim-emissions.d.ts.map +1 -0
  41. package/dist/commands/claim-emissions.js +192 -0
  42. package/dist/commands/claim-emissions.js.map +1 -0
  43. package/dist/commands/extend-lock.d.ts +11 -0
  44. package/dist/commands/extend-lock.d.ts.map +1 -0
  45. package/dist/commands/extend-lock.js +196 -0
  46. package/dist/commands/extend-lock.js.map +1 -0
  47. package/dist/commands/grant-access.d.ts +11 -0
  48. package/dist/commands/grant-access.d.ts.map +1 -0
  49. package/dist/commands/grant-access.js +191 -0
  50. package/dist/commands/grant-access.js.map +1 -0
  51. package/dist/commands/lock.d.ts +11 -0
  52. package/dist/commands/lock.d.ts.map +1 -0
  53. package/dist/commands/lock.js +192 -0
  54. package/dist/commands/lock.js.map +1 -0
  55. package/dist/commands/mint-pod.d.ts +15 -0
  56. package/dist/commands/mint-pod.d.ts.map +1 -0
  57. package/dist/commands/mint-pod.js +286 -0
  58. package/dist/commands/mint-pod.js.map +1 -0
  59. package/dist/commands/query/balance.d.ts +9 -0
  60. package/dist/commands/query/balance.d.ts.map +1 -0
  61. package/dist/commands/query/balance.js +91 -0
  62. package/dist/commands/query/balance.js.map +1 -0
  63. package/dist/commands/query/datanet.d.ts +10 -0
  64. package/dist/commands/query/datanet.d.ts.map +1 -0
  65. package/dist/commands/query/datanet.js +128 -0
  66. package/dist/commands/query/datanet.js.map +1 -0
  67. package/dist/commands/query/emissions-due.d.ts +18 -0
  68. package/dist/commands/query/emissions-due.d.ts.map +1 -0
  69. package/dist/commands/query/emissions-due.js +170 -0
  70. package/dist/commands/query/emissions-due.js.map +1 -0
  71. package/dist/commands/query/pod.d.ts +8 -0
  72. package/dist/commands/query/pod.d.ts.map +1 -0
  73. package/dist/commands/query/pod.js +88 -0
  74. package/dist/commands/query/pod.js.map +1 -0
  75. package/dist/commands/query/voting-power.d.ts +9 -0
  76. package/dist/commands/query/voting-power.d.ts.map +1 -0
  77. package/dist/commands/query/voting-power.js +82 -0
  78. package/dist/commands/query/voting-power.js.map +1 -0
  79. package/dist/commands/register-agent.d.ts +9 -0
  80. package/dist/commands/register-agent.d.ts.map +1 -0
  81. package/dist/commands/register-agent.js +115 -0
  82. package/dist/commands/register-agent.js.map +1 -0
  83. package/dist/commands/unlock.d.ts +11 -0
  84. package/dist/commands/unlock.d.ts.map +1 -0
  85. package/dist/commands/unlock.js +181 -0
  86. package/dist/commands/unlock.js.map +1 -0
  87. package/dist/commands/vote.d.ts +13 -0
  88. package/dist/commands/vote.d.ts.map +1 -0
  89. package/dist/commands/vote.js +174 -0
  90. package/dist/commands/vote.js.map +1 -0
  91. package/dist/config/load.d.ts +19 -0
  92. package/dist/config/load.d.ts.map +1 -0
  93. package/dist/config/load.js +66 -0
  94. package/dist/config/load.js.map +1 -0
  95. package/dist/output/format.d.ts +43 -0
  96. package/dist/output/format.d.ts.map +1 -0
  97. package/dist/output/format.js +58 -0
  98. package/dist/output/format.js.map +1 -0
  99. package/dist/state/db.d.ts +47 -0
  100. package/dist/state/db.d.ts.map +1 -0
  101. package/dist/state/db.js +169 -0
  102. package/dist/state/db.js.map +1 -0
  103. package/dist/state/idempotency.d.ts +66 -0
  104. package/dist/state/idempotency.d.ts.map +1 -0
  105. package/dist/state/idempotency.js +173 -0
  106. package/dist/state/idempotency.js.map +1 -0
  107. package/package.json +63 -0
@@ -0,0 +1,576 @@
1
+ export declare const POD_MANAGER_MAINNET_ABI: readonly [{
2
+ readonly name: "mintPod";
3
+ readonly type: "function";
4
+ readonly stateMutability: "nonpayable";
5
+ readonly inputs: readonly [{
6
+ readonly type: "address";
7
+ readonly name: "to";
8
+ }, {
9
+ readonly type: "uint8";
10
+ readonly name: "emissionSharePercent";
11
+ }];
12
+ readonly outputs: readonly [{
13
+ readonly type: "uint256";
14
+ readonly name: "podId";
15
+ }];
16
+ }, {
17
+ readonly name: "publishingFee";
18
+ readonly type: "function";
19
+ readonly stateMutability: "view";
20
+ readonly inputs: readonly [];
21
+ readonly outputs: readonly [{
22
+ readonly type: "uint256";
23
+ }];
24
+ }, {
25
+ readonly name: "ownerOf";
26
+ readonly type: "function";
27
+ readonly stateMutability: "view";
28
+ readonly inputs: readonly [{
29
+ readonly type: "uint256";
30
+ readonly name: "tokenId";
31
+ }];
32
+ readonly outputs: readonly [{
33
+ readonly type: "address";
34
+ }];
35
+ }, {
36
+ readonly name: "vote";
37
+ readonly type: "function";
38
+ readonly stateMutability: "nonpayable";
39
+ readonly inputs: readonly [{
40
+ readonly type: "uint256";
41
+ readonly name: "podId";
42
+ }, {
43
+ readonly type: "uint256";
44
+ readonly name: "subnetId";
45
+ }, {
46
+ readonly type: "bool";
47
+ readonly name: "like_";
48
+ }];
49
+ readonly outputs: readonly [];
50
+ }, {
51
+ readonly name: "claimPodOwnerEmissions";
52
+ readonly type: "function";
53
+ readonly stateMutability: "nonpayable";
54
+ readonly inputs: readonly [{
55
+ readonly type: "uint256";
56
+ readonly name: "podId";
57
+ }, {
58
+ readonly type: "uint256";
59
+ readonly name: "epoch";
60
+ }];
61
+ readonly outputs: readonly [];
62
+ }, {
63
+ readonly name: "getPodEmissionsOfEpoch";
64
+ readonly type: "function";
65
+ readonly stateMutability: "view";
66
+ readonly inputs: readonly [{
67
+ readonly type: "uint256";
68
+ readonly name: "epoch";
69
+ }, {
70
+ readonly type: "uint256";
71
+ readonly name: "podId";
72
+ }];
73
+ readonly outputs: readonly [{
74
+ readonly type: "uint256";
75
+ }];
76
+ }, {
77
+ readonly name: "hasPodOwnerClaimedEmissions";
78
+ readonly type: "function";
79
+ readonly stateMutability: "view";
80
+ readonly inputs: readonly [{
81
+ readonly type: "uint256";
82
+ readonly name: "epoch";
83
+ }, {
84
+ readonly type: "uint256";
85
+ readonly name: "podId";
86
+ }];
87
+ readonly outputs: readonly [{
88
+ readonly type: "bool";
89
+ }];
90
+ }, {
91
+ readonly name: "getEpochTotalVotes";
92
+ readonly type: "function";
93
+ readonly stateMutability: "view";
94
+ readonly inputs: readonly [{
95
+ readonly type: "uint256";
96
+ readonly name: "epoch";
97
+ }];
98
+ readonly outputs: readonly [{
99
+ readonly type: "uint256";
100
+ }];
101
+ }, {
102
+ readonly name: "Transfer";
103
+ readonly type: "event";
104
+ readonly inputs: readonly [{
105
+ readonly type: "address";
106
+ readonly name: "from";
107
+ readonly indexed: true;
108
+ }, {
109
+ readonly type: "address";
110
+ readonly name: "to";
111
+ readonly indexed: true;
112
+ }, {
113
+ readonly type: "uint256";
114
+ readonly name: "tokenId";
115
+ readonly indexed: true;
116
+ }];
117
+ }];
118
+ export declare const POD_MANAGER_TESTNET_ABI: readonly [{
119
+ readonly name: "mintPodWithREPPO";
120
+ readonly type: "function";
121
+ readonly stateMutability: "nonpayable";
122
+ readonly inputs: readonly [{
123
+ readonly type: "address";
124
+ readonly name: "to";
125
+ }, {
126
+ readonly type: "uint256";
127
+ readonly name: "subnetId";
128
+ }];
129
+ readonly outputs: readonly [{
130
+ readonly type: "uint256";
131
+ readonly name: "podId";
132
+ }];
133
+ }, {
134
+ readonly name: "mintPodWithPrimaryToken";
135
+ readonly type: "function";
136
+ readonly stateMutability: "nonpayable";
137
+ readonly inputs: readonly [{
138
+ readonly type: "address";
139
+ readonly name: "to";
140
+ }, {
141
+ readonly type: "uint256";
142
+ readonly name: "subnetId";
143
+ }];
144
+ readonly outputs: readonly [{
145
+ readonly type: "uint256";
146
+ readonly name: "podId";
147
+ }];
148
+ }, {
149
+ readonly name: "ownerOf";
150
+ readonly type: "function";
151
+ readonly stateMutability: "view";
152
+ readonly inputs: readonly [{
153
+ readonly type: "uint256";
154
+ readonly name: "tokenId";
155
+ }];
156
+ readonly outputs: readonly [{
157
+ readonly type: "address";
158
+ }];
159
+ }, {
160
+ readonly name: "vote";
161
+ readonly type: "function";
162
+ readonly stateMutability: "nonpayable";
163
+ readonly inputs: readonly [{
164
+ readonly type: "uint256";
165
+ readonly name: "podId";
166
+ }, {
167
+ readonly type: "uint256";
168
+ readonly name: "subnetId";
169
+ }, {
170
+ readonly type: "bool";
171
+ readonly name: "like_";
172
+ }];
173
+ readonly outputs: readonly [];
174
+ }, {
175
+ readonly name: "claimPodOwnerEmissions";
176
+ readonly type: "function";
177
+ readonly stateMutability: "nonpayable";
178
+ readonly inputs: readonly [{
179
+ readonly type: "uint256";
180
+ readonly name: "podId";
181
+ }, {
182
+ readonly type: "uint256";
183
+ readonly name: "epoch";
184
+ }];
185
+ readonly outputs: readonly [];
186
+ }, {
187
+ readonly name: "Transfer";
188
+ readonly type: "event";
189
+ readonly inputs: readonly [{
190
+ readonly type: "address";
191
+ readonly name: "from";
192
+ readonly indexed: true;
193
+ }, {
194
+ readonly type: "address";
195
+ readonly name: "to";
196
+ readonly indexed: true;
197
+ }, {
198
+ readonly type: "uint256";
199
+ readonly name: "tokenId";
200
+ readonly indexed: true;
201
+ }];
202
+ }];
203
+ export declare const SUBNET_MANAGER_ABI: readonly [{
204
+ readonly name: "accessSubnetWithREPPOFee";
205
+ readonly type: "function";
206
+ readonly stateMutability: "nonpayable";
207
+ readonly inputs: readonly [{
208
+ readonly type: "uint256";
209
+ readonly name: "subnetId";
210
+ }, {
211
+ readonly type: "address";
212
+ readonly name: "to";
213
+ }];
214
+ readonly outputs: readonly [];
215
+ }, {
216
+ readonly name: "hasSubnetAccess";
217
+ readonly type: "function";
218
+ readonly stateMutability: "view";
219
+ readonly inputs: readonly [{
220
+ readonly type: "uint256";
221
+ readonly name: "subnetId";
222
+ }, {
223
+ readonly type: "address";
224
+ readonly name: "address_";
225
+ }];
226
+ readonly outputs: readonly [{
227
+ readonly type: "bool";
228
+ }];
229
+ }, {
230
+ readonly name: "validSubnet";
231
+ readonly type: "function";
232
+ readonly stateMutability: "view";
233
+ readonly inputs: readonly [{
234
+ readonly type: "uint256";
235
+ readonly name: "subnetId";
236
+ }];
237
+ readonly outputs: readonly [{
238
+ readonly type: "bool";
239
+ }];
240
+ }, {
241
+ readonly name: "getAccessFeeREPPO";
242
+ readonly type: "function";
243
+ readonly stateMutability: "view";
244
+ readonly inputs: readonly [{
245
+ readonly type: "uint256";
246
+ readonly name: "subnetId";
247
+ }];
248
+ readonly outputs: readonly [{
249
+ readonly type: "uint256";
250
+ }];
251
+ }];
252
+ export declare const VE_REPPO_ABI: readonly [{
253
+ readonly name: "votingPowerOf";
254
+ readonly type: "function";
255
+ readonly stateMutability: "view";
256
+ readonly inputs: readonly [{
257
+ readonly type: "address";
258
+ }];
259
+ readonly outputs: readonly [{
260
+ readonly type: "uint256";
261
+ }];
262
+ }, {
263
+ readonly name: "stake";
264
+ readonly type: "function";
265
+ readonly stateMutability: "nonpayable";
266
+ readonly inputs: readonly [{
267
+ readonly type: "uint256";
268
+ readonly name: "amount";
269
+ }, {
270
+ readonly type: "uint256";
271
+ readonly name: "duration";
272
+ }];
273
+ readonly outputs: readonly [{
274
+ readonly type: "uint256";
275
+ readonly name: "lockupId";
276
+ }];
277
+ }, {
278
+ readonly name: "stakeMore";
279
+ readonly type: "function";
280
+ readonly stateMutability: "nonpayable";
281
+ readonly inputs: readonly [{
282
+ readonly type: "uint256";
283
+ readonly name: "lockupId";
284
+ }, {
285
+ readonly type: "uint256";
286
+ readonly name: "amount";
287
+ }];
288
+ readonly outputs: readonly [];
289
+ }, {
290
+ readonly name: "extendLock";
291
+ readonly type: "function";
292
+ readonly stateMutability: "nonpayable";
293
+ readonly inputs: readonly [{
294
+ readonly type: "uint256";
295
+ readonly name: "lockupId";
296
+ }, {
297
+ readonly type: "uint256";
298
+ readonly name: "duration";
299
+ }];
300
+ readonly outputs: readonly [];
301
+ }, {
302
+ readonly name: "withdraw";
303
+ readonly type: "function";
304
+ readonly stateMutability: "nonpayable";
305
+ readonly inputs: readonly [{
306
+ readonly type: "uint256";
307
+ readonly name: "tokenId";
308
+ }, {
309
+ readonly type: "address";
310
+ readonly name: "to";
311
+ }];
312
+ readonly outputs: readonly [];
313
+ }, {
314
+ readonly name: "previewPoints";
315
+ readonly type: "function";
316
+ readonly stateMutability: "view";
317
+ readonly inputs: readonly [{
318
+ readonly type: "uint256";
319
+ readonly name: "amount";
320
+ }, {
321
+ readonly type: "uint256";
322
+ readonly name: "duration";
323
+ }];
324
+ readonly outputs: readonly [{
325
+ readonly type: "uint256";
326
+ readonly name: "points";
327
+ }, {
328
+ readonly type: "uint256";
329
+ readonly name: "end";
330
+ }];
331
+ }, {
332
+ readonly name: "minStakeDuration";
333
+ readonly type: "function";
334
+ readonly stateMutability: "view";
335
+ readonly inputs: readonly [];
336
+ readonly outputs: readonly [{
337
+ readonly type: "uint256";
338
+ }];
339
+ }, {
340
+ readonly name: "maxStakeDuration";
341
+ readonly type: "function";
342
+ readonly stateMutability: "view";
343
+ readonly inputs: readonly [];
344
+ readonly outputs: readonly [{
345
+ readonly type: "uint256";
346
+ }];
347
+ }, {
348
+ readonly name: "lockupData";
349
+ readonly type: "function";
350
+ readonly stateMutability: "view";
351
+ readonly inputs: readonly [{
352
+ readonly type: "uint256";
353
+ readonly name: "lockupId";
354
+ }];
355
+ readonly outputs: readonly [{
356
+ readonly type: "uint256";
357
+ readonly name: "amount";
358
+ }, {
359
+ readonly type: "uint256";
360
+ readonly name: "expiresAt";
361
+ }, {
362
+ readonly type: "uint256";
363
+ readonly name: "unused";
364
+ }, {
365
+ readonly type: "uint256";
366
+ readonly name: "votingPower";
367
+ }];
368
+ }, {
369
+ readonly name: "balanceOf";
370
+ readonly type: "function";
371
+ readonly stateMutability: "view";
372
+ readonly inputs: readonly [{
373
+ readonly type: "address";
374
+ }];
375
+ readonly outputs: readonly [{
376
+ readonly type: "uint256";
377
+ }];
378
+ }, {
379
+ readonly name: "ownerOf";
380
+ readonly type: "function";
381
+ readonly stateMutability: "view";
382
+ readonly inputs: readonly [{
383
+ readonly type: "uint256";
384
+ readonly name: "tokenId";
385
+ }];
386
+ readonly outputs: readonly [{
387
+ readonly type: "address";
388
+ }];
389
+ }];
390
+ export declare const ERC20_ABI: readonly [{
391
+ readonly name: "name";
392
+ readonly type: "function";
393
+ readonly stateMutability: "view";
394
+ readonly inputs: readonly [];
395
+ readonly outputs: readonly [{
396
+ readonly type: "string";
397
+ }];
398
+ }, {
399
+ readonly name: "symbol";
400
+ readonly type: "function";
401
+ readonly stateMutability: "view";
402
+ readonly inputs: readonly [];
403
+ readonly outputs: readonly [{
404
+ readonly type: "string";
405
+ }];
406
+ }, {
407
+ readonly name: "decimals";
408
+ readonly type: "function";
409
+ readonly stateMutability: "view";
410
+ readonly inputs: readonly [];
411
+ readonly outputs: readonly [{
412
+ readonly type: "uint8";
413
+ }];
414
+ }, {
415
+ readonly name: "totalSupply";
416
+ readonly type: "function";
417
+ readonly stateMutability: "view";
418
+ readonly inputs: readonly [];
419
+ readonly outputs: readonly [{
420
+ readonly type: "uint256";
421
+ }];
422
+ }, {
423
+ readonly name: "balanceOf";
424
+ readonly type: "function";
425
+ readonly stateMutability: "view";
426
+ readonly inputs: readonly [{
427
+ readonly type: "address";
428
+ }];
429
+ readonly outputs: readonly [{
430
+ readonly type: "uint256";
431
+ }];
432
+ }, {
433
+ readonly name: "allowance";
434
+ readonly type: "function";
435
+ readonly stateMutability: "view";
436
+ readonly inputs: readonly [{
437
+ readonly type: "address";
438
+ readonly name: "owner";
439
+ }, {
440
+ readonly type: "address";
441
+ readonly name: "spender";
442
+ }];
443
+ readonly outputs: readonly [{
444
+ readonly type: "uint256";
445
+ }];
446
+ }, {
447
+ readonly name: "approve";
448
+ readonly type: "function";
449
+ readonly stateMutability: "nonpayable";
450
+ readonly inputs: readonly [{
451
+ readonly type: "address";
452
+ readonly name: "spender";
453
+ }, {
454
+ readonly type: "uint256";
455
+ readonly name: "amount";
456
+ }];
457
+ readonly outputs: readonly [{
458
+ readonly type: "bool";
459
+ }];
460
+ }, {
461
+ readonly name: "transfer";
462
+ readonly type: "function";
463
+ readonly stateMutability: "nonpayable";
464
+ readonly inputs: readonly [{
465
+ readonly type: "address";
466
+ readonly name: "to";
467
+ }, {
468
+ readonly type: "uint256";
469
+ readonly name: "amount";
470
+ }];
471
+ readonly outputs: readonly [{
472
+ readonly type: "bool";
473
+ }];
474
+ }, {
475
+ readonly name: "Transfer";
476
+ readonly type: "event";
477
+ readonly inputs: readonly [{
478
+ readonly type: "address";
479
+ readonly name: "from";
480
+ readonly indexed: true;
481
+ }, {
482
+ readonly type: "address";
483
+ readonly name: "to";
484
+ readonly indexed: true;
485
+ }, {
486
+ readonly type: "uint256";
487
+ readonly name: "value";
488
+ }];
489
+ }];
490
+ export declare const UNISWAP_ROUTER_ABI: readonly [{
491
+ readonly name: "exactOutputSingle";
492
+ readonly type: "function";
493
+ readonly stateMutability: "payable";
494
+ readonly inputs: readonly [{
495
+ readonly type: "tuple";
496
+ readonly components: readonly [{
497
+ readonly type: "address";
498
+ readonly name: "tokenIn";
499
+ }, {
500
+ readonly type: "address";
501
+ readonly name: "tokenOut";
502
+ }, {
503
+ readonly type: "uint24";
504
+ readonly name: "fee";
505
+ }, {
506
+ readonly type: "address";
507
+ readonly name: "recipient";
508
+ }, {
509
+ readonly type: "uint256";
510
+ readonly name: "amountOut";
511
+ }, {
512
+ readonly type: "uint256";
513
+ readonly name: "amountInMaximum";
514
+ }, {
515
+ readonly type: "uint160";
516
+ readonly name: "sqrtPriceLimitX96";
517
+ }];
518
+ }];
519
+ readonly outputs: readonly [{
520
+ readonly type: "uint256";
521
+ readonly name: "amountIn";
522
+ }];
523
+ }, {
524
+ readonly name: "multicall";
525
+ readonly type: "function";
526
+ readonly stateMutability: "payable";
527
+ readonly inputs: readonly [{
528
+ readonly type: "uint256";
529
+ readonly name: "deadline";
530
+ }, {
531
+ readonly type: "bytes[]";
532
+ readonly name: "data";
533
+ }];
534
+ readonly outputs: readonly [{
535
+ readonly type: "bytes[]";
536
+ readonly name: "results";
537
+ }];
538
+ }];
539
+ export declare const QUOTER_ABI: readonly [{
540
+ readonly name: "quoteExactOutputSingle";
541
+ readonly type: "function";
542
+ readonly stateMutability: "nonpayable";
543
+ readonly inputs: readonly [{
544
+ readonly type: "tuple";
545
+ readonly components: readonly [{
546
+ readonly type: "address";
547
+ readonly name: "tokenIn";
548
+ }, {
549
+ readonly type: "address";
550
+ readonly name: "tokenOut";
551
+ }, {
552
+ readonly type: "uint256";
553
+ readonly name: "amount";
554
+ }, {
555
+ readonly type: "uint24";
556
+ readonly name: "fee";
557
+ }, {
558
+ readonly type: "uint160";
559
+ readonly name: "sqrtPriceLimitX96";
560
+ }];
561
+ }];
562
+ readonly outputs: readonly [{
563
+ readonly type: "uint256";
564
+ readonly name: "amountIn";
565
+ }, {
566
+ readonly type: "uint160";
567
+ readonly name: "sqrtPriceX96After";
568
+ }, {
569
+ readonly type: "uint32";
570
+ readonly name: "initializedTicksCrossed";
571
+ }, {
572
+ readonly type: "uint256";
573
+ readonly name: "gasEstimate";
574
+ }];
575
+ }];
576
+ //# sourceMappingURL=abis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abis.d.ts","sourceRoot":"","sources":["../../src/chain/abis.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYvB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUpB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB,CAAC"}
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Minimal ABIs for the Reppo contract surface the CLI touches. Mainnet
3
+ * is the canonical PodManager (`mintPod(to, emissionShare)`); testnet
4
+ * is a fork of mainnet with subnet/datanet logic added for a client
5
+ * experiment (`mintPodWithREPPO(to, subnetId)` /
6
+ * `mintPodWithPrimaryToken(to, subnetId)`). Same method family, different
7
+ * parameters. Voting + ve-token + subnet access ABIs are shared.
8
+ */
9
+ import { parseAbi } from 'viem';
10
+ export const POD_MANAGER_MAINNET_ABI = parseAbi([
11
+ 'function mintPod(address to, uint8 emissionSharePercent) returns (uint256 podId)',
12
+ 'function publishingFee() view returns (uint256)',
13
+ 'function ownerOf(uint256 tokenId) view returns (address)',
14
+ 'function vote(uint256 podId, uint256 subnetId, bool like_)',
15
+ 'function claimPodOwnerEmissions(uint256 podId, uint256 epoch)',
16
+ 'function getPodEmissionsOfEpoch(uint256 epoch, uint256 podId) view returns (uint256)',
17
+ 'function hasPodOwnerClaimedEmissions(uint256 epoch, uint256 podId) view returns (bool)',
18
+ 'function getEpochTotalVotes(uint256 epoch) view returns (uint256)',
19
+ 'event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)',
20
+ ]);
21
+ export const POD_MANAGER_TESTNET_ABI = parseAbi([
22
+ 'function mintPodWithREPPO(address to, uint256 subnetId) returns (uint256 podId)',
23
+ 'function mintPodWithPrimaryToken(address to, uint256 subnetId) returns (uint256 podId)',
24
+ 'function ownerOf(uint256 tokenId) view returns (address)',
25
+ 'function vote(uint256 podId, uint256 subnetId, bool like_)',
26
+ 'function claimPodOwnerEmissions(uint256 podId, uint256 epoch)',
27
+ 'event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)',
28
+ ]);
29
+ export const SUBNET_MANAGER_ABI = parseAbi([
30
+ 'function accessSubnetWithREPPOFee(uint256 subnetId, address to)',
31
+ 'function hasSubnetAccess(uint256 subnetId, address address_) view returns (bool)',
32
+ 'function validSubnet(uint256 subnetId) view returns (bool)',
33
+ 'function getAccessFeeREPPO(uint256 subnetId) view returns (uint256)',
34
+ ]);
35
+ export const VE_REPPO_ABI = parseAbi([
36
+ 'function votingPowerOf(address) view returns (uint256)',
37
+ 'function stake(uint256 amount, uint256 duration) returns (uint256 lockupId)',
38
+ 'function stakeMore(uint256 lockupId, uint256 amount)',
39
+ 'function extendLock(uint256 lockupId, uint256 duration)',
40
+ 'function withdraw(uint256 tokenId, address to)',
41
+ 'function previewPoints(uint256 amount, uint256 duration) view returns (uint256 points, uint256 end)',
42
+ 'function minStakeDuration() view returns (uint256)',
43
+ 'function maxStakeDuration() view returns (uint256)',
44
+ 'function lockupData(uint256 lockupId) view returns (uint256 amount, uint256 expiresAt, uint256 unused, uint256 votingPower)',
45
+ 'function balanceOf(address) view returns (uint256)',
46
+ 'function ownerOf(uint256 tokenId) view returns (address)',
47
+ ]);
48
+ export const ERC20_ABI = parseAbi([
49
+ 'function name() view returns (string)',
50
+ 'function symbol() view returns (string)',
51
+ 'function decimals() view returns (uint8)',
52
+ 'function totalSupply() view returns (uint256)',
53
+ 'function balanceOf(address) view returns (uint256)',
54
+ 'function allowance(address owner, address spender) view returns (uint256)',
55
+ 'function approve(address spender, uint256 amount) returns (bool)',
56
+ 'function transfer(address to, uint256 amount) returns (bool)',
57
+ 'event Transfer(address indexed from, address indexed to, uint256 value)',
58
+ ]);
59
+ export const UNISWAP_ROUTER_ABI = parseAbi([
60
+ 'function exactOutputSingle((address tokenIn, address tokenOut, uint24 fee, address recipient, uint256 amountOut, uint256 amountInMaximum, uint160 sqrtPriceLimitX96)) payable returns (uint256 amountIn)',
61
+ 'function multicall(uint256 deadline, bytes[] calldata data) payable returns (bytes[] memory results)',
62
+ ]);
63
+ export const QUOTER_ABI = parseAbi([
64
+ 'function quoteExactOutputSingle((address tokenIn, address tokenOut, uint256 amount, uint24 fee, uint160 sqrtPriceLimitX96)) returns (uint256 amountIn, uint160 sqrtPriceX96After, uint32 initializedTicksCrossed, uint256 gasEstimate)',
65
+ ]);
66
+ //# sourceMappingURL=abis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"abis.js","sourceRoot":"","sources":["../../src/chain/abis.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAEhC,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC9C,kFAAkF;IAClF,iDAAiD;IACjD,0DAA0D;IAC1D,4DAA4D;IAC5D,+DAA+D;IAC/D,sFAAsF;IACtF,wFAAwF;IACxF,mEAAmE;IACnE,mFAAmF;CACpF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,QAAQ,CAAC;IAC9C,iFAAiF;IACjF,wFAAwF;IACxF,0DAA0D;IAC1D,4DAA4D;IAC5D,+DAA+D;IAC/D,mFAAmF;CACpF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACzC,iEAAiE;IACjE,kFAAkF;IAClF,4DAA4D;IAC5D,qEAAqE;CACtE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,QAAQ,CAAC;IACnC,wDAAwD;IACxD,6EAA6E;IAC7E,sDAAsD;IACtD,yDAAyD;IACzD,gDAAgD;IAChD,qGAAqG;IACrG,oDAAoD;IACpD,oDAAoD;IACpD,6HAA6H;IAC7H,oDAAoD;IACpD,0DAA0D;CAC3D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC;IAChC,uCAAuC;IACvC,yCAAyC;IACzC,0CAA0C;IAC1C,+CAA+C;IAC/C,oDAAoD;IACpD,2EAA2E;IAC3E,kEAAkE;IAClE,8DAA8D;IAC9D,yEAAyE;CAC1E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACzC,0MAA0M;IAC1M,sGAAsG;CACvG,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC;IACjC,wOAAwO;CACzO,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Per-network contract bundles. Mainnet REPPO/PodManager/USDC are fixed and
3
+ * verified. SubnetManager + veReppo mainnet addresses are TBD pending Reppo
4
+ * docs — placeholders throw when accessed so we fail loudly instead of
5
+ * silently sending to 0x0.
6
+ */
7
+ import type { Address } from 'viem';
8
+ export type Network = 'mainnet' | 'testnet';
9
+ export interface AddressBundle {
10
+ podManager: Address;
11
+ subnetManager: Address;
12
+ reppoToken: Address;
13
+ veReppo: Address;
14
+ usdc: Address;
15
+ uniswapRouter: Address | null;
16
+ uniswapQuoter: Address | null;
17
+ chainId: number;
18
+ }
19
+ export declare function getAddresses(network: Network): AddressBundle;
20
+ /**
21
+ * Throws if the address is the TBD placeholder. Use at the call site.
22
+ * The thrown error carries `code: 'ADDRESS_NOT_CONFIGURED'` so agents
23
+ * can distinguish "missing contract address for this network" from
24
+ * generic INTERNAL_ERROR bugs.
25
+ */
26
+ export declare function requireAddress(addr: Address, label: string): Address;
27
+ //# sourceMappingURL=addresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/chain/addresses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5C,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB;AA0BD,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAUpE"}