@wireio/stake 0.1.0 → 0.1.2

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 (104) hide show
  1. package/README.md +57 -0
  2. package/lib/stake.browser.js +11836 -4103
  3. package/lib/stake.browser.js.map +1 -1
  4. package/lib/stake.d.ts +374 -556
  5. package/lib/stake.js +12089 -4303
  6. package/lib/stake.js.map +1 -1
  7. package/lib/stake.m.js +11836 -4103
  8. package/lib/stake.m.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.dbg.json +4 -0
  11. package/src/assets/ethereum/ABI/liqEth/DepositManager.sol/DepositManager.json +1153 -0
  12. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.dbg.json +4 -0
  13. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IAccounting.json +172 -0
  14. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositContract.dbg.json +4 -0
  15. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositContract.json +39 -0
  16. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositManager.dbg.json +4 -0
  17. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IDepositManager.json +64 -0
  18. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.dbg.json +4 -0
  19. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthBurn.json +24 -0
  20. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthMint.dbg.json +4 -0
  21. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/ILiqEthMint.json +35 -0
  22. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20.dbg.json +4 -0
  23. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IRewardsERC20.json +213 -0
  24. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.dbg.json +4 -0
  25. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IStakingModule.json +138 -0
  26. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.dbg.json +4 -0
  27. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IValidatorBalanceVerifier.json +70 -0
  28. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IWithdrawalRecord.dbg.json +4 -0
  29. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/IWithdrawalRecord.json +64 -0
  30. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.dbg.json +4 -0
  31. package/src/assets/ethereum/ABI/liqEth/LiqEthCommon.sol/LiqEthCommon.json +10 -0
  32. package/src/assets/ethereum/ABI/liqEth/RewardsERC20.sol/RewardsERC20.dbg.json +4 -0
  33. package/src/assets/ethereum/ABI/liqEth/RewardsERC20.sol/RewardsERC20.json +749 -0
  34. package/src/assets/ethereum/ABI/liqEth/RewardsERC20Pausable.sol/RewardsERC20Pausable.dbg.json +4 -0
  35. package/src/assets/ethereum/ABI/liqEth/RewardsERC20Pausable.sol/RewardsERC20Pausable.json +812 -0
  36. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.dbg.json +4 -0
  37. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/BeaconRoots.json +10 -0
  38. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.dbg.json +4 -0
  39. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/SSZ.json +10 -0
  40. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.dbg.json +4 -0
  41. package/src/assets/ethereum/ABI/liqEth/ValidatorBalanceVerifier.sol/ValidatorBalanceVerifier.json +225 -0
  42. package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.dbg.json +4 -0
  43. package/src/assets/ethereum/ABI/liqEth/Yield.sol/BeaconRoots.json +10 -0
  44. package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.dbg.json +4 -0
  45. package/src/assets/ethereum/ABI/liqEth/Yield.sol/SSZ.json +10 -0
  46. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.dbg.json +4 -0
  47. package/src/assets/ethereum/ABI/liqEth/Yield.sol/YieldOracle.json +813 -0
  48. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.dbg.json +4 -0
  49. package/src/assets/ethereum/ABI/liqEth/accounting.sol/Accounting.json +651 -0
  50. package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.dbg.json +4 -0
  51. package/src/assets/ethereum/ABI/liqEth/liqEth.sol/LiqEthToken.json +1110 -0
  52. package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.dbg.json +4 -0
  53. package/src/assets/ethereum/ABI/liqEth/liqEthBurn.sol/LiqEthBurn.json +391 -0
  54. package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.dbg.json +4 -0
  55. package/src/assets/ethereum/ABI/liqEth/liqEthMint.sol/LiqEthMint.json +402 -0
  56. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.dbg.json +4 -0
  57. package/src/assets/ethereum/ABI/liqEth/stakingModule.sol/StakingModule.json +1225 -0
  58. package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.dbg.json +4 -0
  59. package/src/assets/ethereum/ABI/liqEth/withdrawalQueue.sol/WithdrawalQueue.json +927 -0
  60. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.dbg.json +4 -0
  61. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/Uint64BE.json +10 -0
  62. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.dbg.json +4 -0
  63. package/src/assets/ethereum/ABI/liqEth/withdrawalVault.sol/WithdrawalVault.json +447 -0
  64. package/src/assets/solana/idl/liqsol_core.json +4239 -0
  65. package/src/assets/solana/idl/liqsol_token.json +183 -0
  66. package/src/assets/solana/idl/validator_leaderboard.json +270 -265
  67. package/src/assets/solana/types/liqsol_core.ts +4245 -0
  68. package/src/assets/solana/types/liqsol_token.ts +189 -0
  69. package/src/assets/solana/types/validator_leaderboard.ts +270 -265
  70. package/src/index.ts +1 -3
  71. package/src/networks/ethereum/contract.ts +101 -36
  72. package/src/networks/ethereum/ethereum.ts +141 -45
  73. package/src/networks/ethereum/types.ts +30 -2
  74. package/src/networks/solana/clients/deposit.client.ts +71 -109
  75. package/src/networks/solana/clients/distribution.client.ts +256 -383
  76. package/src/networks/solana/clients/leaderboard.client.ts +38 -133
  77. package/src/networks/solana/constants.ts +214 -130
  78. package/src/networks/solana/program.ts +25 -38
  79. package/src/networks/solana/solana.ts +120 -105
  80. package/src/networks/solana/types.ts +37 -47
  81. package/src/networks/solana/utils.ts +551 -0
  82. package/src/scripts/tsconfig.json +17 -0
  83. package/src/staker/staker.ts +10 -6
  84. package/src/staker/types.ts +14 -9
  85. package/src/assets/solana/idl/deposit.json +0 -296
  86. package/src/assets/solana/idl/distribution.json +0 -768
  87. package/src/assets/solana/idl/liq_sol_token.json +0 -298
  88. package/src/assets/solana/idl/mint_helper.json +0 -110
  89. package/src/assets/solana/idl/read_tracked_balance.json +0 -140
  90. package/src/assets/solana/idl/stake_controller.json +0 -2149
  91. package/src/assets/solana/idl/treasury.json +0 -110
  92. package/src/assets/solana/idl/validator_registry.json +0 -487
  93. package/src/assets/solana/idl/yield_oracle.json +0 -32
  94. package/src/assets/solana/types/deposit.ts +0 -302
  95. package/src/assets/solana/types/distribution.ts +0 -774
  96. package/src/assets/solana/types/liq_sol_token.ts +0 -304
  97. package/src/assets/solana/types/mint_helper.ts +0 -116
  98. package/src/assets/solana/types/read_tracked_balance.ts +0 -146
  99. package/src/assets/solana/types/stake_controller.ts +0 -2155
  100. package/src/assets/solana/types/stake_registry.ts +0 -441
  101. package/src/assets/solana/types/treasury.ts +0 -116
  102. package/src/assets/solana/types/validator_registry.ts +0 -493
  103. package/src/assets/solana/types/yield_oracle.ts +0 -38
  104. package/src/common/utils.ts +0 -9
@@ -1,768 +0,0 @@
1
- {
2
- "address": "26LF4typrWwBapujpvUPFpdfs4pBb6RwcWoBBy7Awf5j",
3
- "metadata": {
4
- "name": "distribution",
5
- "version": "0.1.0",
6
- "spec": "0.1.0",
7
- "description": "Created with Anchor"
8
- },
9
- "instructions": [
10
- {
11
- "name": "claim_rewards",
12
- "discriminator": [
13
- 4,
14
- 144,
15
- 132,
16
- 71,
17
- 116,
18
- 23,
19
- 151,
20
- 80
21
- ],
22
- "accounts": [
23
- {
24
- "name": "user",
25
- "writable": true,
26
- "signer": true
27
- },
28
- {
29
- "name": "user_ata",
30
- "writable": true,
31
- "pda": {
32
- "seeds": [
33
- {
34
- "kind": "account",
35
- "path": "user"
36
- },
37
- {
38
- "kind": "const",
39
- "value": [
40
- 6,
41
- 221,
42
- 246,
43
- 225,
44
- 215,
45
- 101,
46
- 161,
47
- 147,
48
- 217,
49
- 203,
50
- 225,
51
- 70,
52
- 206,
53
- 235,
54
- 121,
55
- 172,
56
- 28,
57
- 180,
58
- 133,
59
- 237,
60
- 95,
61
- 91,
62
- 55,
63
- 145,
64
- 58,
65
- 140,
66
- 245,
67
- 133,
68
- 126,
69
- 255,
70
- 0,
71
- 169
72
- ]
73
- },
74
- {
75
- "kind": "account",
76
- "path": "liqsol_mint"
77
- }
78
- ],
79
- "program": {
80
- "kind": "const",
81
- "value": [
82
- 140,
83
- 151,
84
- 37,
85
- 143,
86
- 78,
87
- 36,
88
- 137,
89
- 241,
90
- 187,
91
- 61,
92
- 16,
93
- 41,
94
- 20,
95
- 142,
96
- 13,
97
- 131,
98
- 11,
99
- 90,
100
- 19,
101
- 153,
102
- 218,
103
- 255,
104
- 16,
105
- 132,
106
- 4,
107
- 142,
108
- 123,
109
- 216,
110
- 219,
111
- 233,
112
- 248,
113
- 89
114
- ]
115
- }
116
- }
117
- },
118
- {
119
- "name": "user_record",
120
- "writable": true,
121
- "pda": {
122
- "seeds": [
123
- {
124
- "kind": "const",
125
- "value": [
126
- 117,
127
- 115,
128
- 101,
129
- 114,
130
- 95,
131
- 114,
132
- 101,
133
- 99,
134
- 111,
135
- 114,
136
- 100
137
- ]
138
- },
139
- {
140
- "kind": "account",
141
- "path": "user"
142
- }
143
- ]
144
- }
145
- },
146
- {
147
- "name": "distribution_state",
148
- "writable": true,
149
- "pda": {
150
- "seeds": [
151
- {
152
- "kind": "const",
153
- "value": [
154
- 100,
155
- 105,
156
- 115,
157
- 116,
158
- 114,
159
- 105,
160
- 98,
161
- 117,
162
- 116,
163
- 105,
164
- 111,
165
- 110,
166
- 95,
167
- 115,
168
- 116,
169
- 97,
170
- 116,
171
- 101
172
- ]
173
- }
174
- ]
175
- }
176
- },
177
- {
178
- "name": "liqsol_mint",
179
- "writable": true
180
- },
181
- {
182
- "name": "stake_controller_program",
183
- "address": "4Ab1SwV6RPUN5Btnf95qvQCyNVR3iHnXjnMYaKsgimTp"
184
- },
185
- {
186
- "name": "bucket_authority",
187
- "pda": {
188
- "seeds": [
189
- {
190
- "kind": "const",
191
- "value": [
192
- 108,
193
- 105,
194
- 113,
195
- 115,
196
- 111,
197
- 108,
198
- 95,
199
- 98,
200
- 117,
201
- 99,
202
- 107,
203
- 101,
204
- 116
205
- ]
206
- }
207
- ],
208
- "program": {
209
- "kind": "account",
210
- "path": "stake_controller_program"
211
- }
212
- }
213
- },
214
- {
215
- "name": "bucket_token_account",
216
- "docs": [
217
- "The bucket's associated token account holding liqSOL"
218
- ],
219
- "writable": true
220
- },
221
- {
222
- "name": "pay_rate_history"
223
- },
224
- {
225
- "name": "token_program"
226
- },
227
- {
228
- "name": "associated_token_program",
229
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
230
- },
231
- {
232
- "name": "system_program",
233
- "address": "11111111111111111111111111111111"
234
- }
235
- ],
236
- "args": []
237
- },
238
- {
239
- "name": "initialize",
240
- "discriminator": [
241
- 175,
242
- 175,
243
- 109,
244
- 31,
245
- 13,
246
- 152,
247
- 155,
248
- 237
249
- ],
250
- "accounts": [
251
- {
252
- "name": "authority",
253
- "writable": true,
254
- "signer": true
255
- },
256
- {
257
- "name": "liqsol_mint"
258
- },
259
- {
260
- "name": "distribution_state",
261
- "writable": true,
262
- "pda": {
263
- "seeds": [
264
- {
265
- "kind": "const",
266
- "value": [
267
- 100,
268
- 105,
269
- 115,
270
- 116,
271
- 114,
272
- 105,
273
- 98,
274
- 117,
275
- 116,
276
- 105,
277
- 111,
278
- 110,
279
- 95,
280
- 115,
281
- 116,
282
- 97,
283
- 116,
284
- 101
285
- ]
286
- }
287
- ]
288
- }
289
- },
290
- {
291
- "name": "token_program"
292
- },
293
- {
294
- "name": "system_program",
295
- "address": "11111111111111111111111111111111"
296
- },
297
- {
298
- "name": "rent",
299
- "address": "SysvarRent111111111111111111111111111111111"
300
- }
301
- ],
302
- "args": []
303
- },
304
- {
305
- "name": "update_user",
306
- "discriminator": [
307
- 9,
308
- 2,
309
- 160,
310
- 169,
311
- 118,
312
- 12,
313
- 207,
314
- 84
315
- ],
316
- "accounts": [
317
- {
318
- "name": "user",
319
- "writable": true
320
- },
321
- {
322
- "name": "user_ata",
323
- "writable": true
324
- },
325
- {
326
- "name": "user_record",
327
- "writable": true,
328
- "pda": {
329
- "seeds": [
330
- {
331
- "kind": "const",
332
- "value": [
333
- 117,
334
- 115,
335
- 101,
336
- 114,
337
- 95,
338
- 114,
339
- 101,
340
- 99,
341
- 111,
342
- 114,
343
- 100
344
- ]
345
- },
346
- {
347
- "kind": "account",
348
- "path": "user"
349
- }
350
- ]
351
- }
352
- },
353
- {
354
- "name": "authority",
355
- "docs": [
356
- "Authority that can update this user record",
357
- "- For manual registration: user's keypair",
358
- "- For deposit flow: deposit program's program_authority PDA"
359
- ],
360
- "signer": true
361
- },
362
- {
363
- "name": "payer",
364
- "docs": [
365
- "Payer for the user record PDA creation (always the user)"
366
- ],
367
- "writable": true,
368
- "signer": true
369
- },
370
- {
371
- "name": "distribution_state",
372
- "writable": true,
373
- "pda": {
374
- "seeds": [
375
- {
376
- "kind": "const",
377
- "value": [
378
- 100,
379
- 105,
380
- 115,
381
- 116,
382
- 114,
383
- 105,
384
- 98,
385
- 117,
386
- 116,
387
- 105,
388
- 111,
389
- 110,
390
- 95,
391
- 115,
392
- 116,
393
- 97,
394
- 116,
395
- 101
396
- ]
397
- }
398
- ]
399
- }
400
- },
401
- {
402
- "name": "liqsol_mint"
403
- },
404
- {
405
- "name": "instructions_sysvar",
406
- "address": "Sysvar1nstructions1111111111111111111111111"
407
- },
408
- {
409
- "name": "token_program"
410
- },
411
- {
412
- "name": "stake_controller_program"
413
- },
414
- {
415
- "name": "pay_rate_history"
416
- },
417
- {
418
- "name": "system_program",
419
- "address": "11111111111111111111111111111111"
420
- }
421
- ],
422
- "args": []
423
- },
424
- {
425
- "name": "withdraw",
426
- "discriminator": [
427
- 183,
428
- 18,
429
- 70,
430
- 156,
431
- 148,
432
- 109,
433
- 161,
434
- 34
435
- ],
436
- "accounts": [
437
- {
438
- "name": "user",
439
- "writable": true,
440
- "signer": true
441
- },
442
- {
443
- "name": "user_ata",
444
- "writable": true,
445
- "pda": {
446
- "seeds": [
447
- {
448
- "kind": "account",
449
- "path": "user"
450
- },
451
- {
452
- "kind": "const",
453
- "value": [
454
- 6,
455
- 221,
456
- 246,
457
- 225,
458
- 215,
459
- 101,
460
- 161,
461
- 147,
462
- 217,
463
- 203,
464
- 225,
465
- 70,
466
- 206,
467
- 235,
468
- 121,
469
- 172,
470
- 28,
471
- 180,
472
- 133,
473
- 237,
474
- 95,
475
- 91,
476
- 55,
477
- 145,
478
- 58,
479
- 140,
480
- 245,
481
- 133,
482
- 126,
483
- 255,
484
- 0,
485
- 169
486
- ]
487
- },
488
- {
489
- "kind": "account",
490
- "path": "distribution_state.liqsol_mint",
491
- "account": "DistributionState"
492
- }
493
- ],
494
- "program": {
495
- "kind": "const",
496
- "value": [
497
- 140,
498
- 151,
499
- 37,
500
- 143,
501
- 78,
502
- 36,
503
- 137,
504
- 241,
505
- 187,
506
- 61,
507
- 16,
508
- 41,
509
- 20,
510
- 142,
511
- 13,
512
- 131,
513
- 11,
514
- 90,
515
- 19,
516
- 153,
517
- 218,
518
- 255,
519
- 16,
520
- 132,
521
- 4,
522
- 142,
523
- 123,
524
- 216,
525
- 219,
526
- 233,
527
- 248,
528
- 89
529
- ]
530
- }
531
- }
532
- },
533
- {
534
- "name": "user_record",
535
- "writable": true,
536
- "pda": {
537
- "seeds": [
538
- {
539
- "kind": "const",
540
- "value": [
541
- 117,
542
- 115,
543
- 101,
544
- 114,
545
- 95,
546
- 114,
547
- 101,
548
- 99,
549
- 111,
550
- 114,
551
- 100
552
- ]
553
- },
554
- {
555
- "kind": "account",
556
- "path": "user"
557
- }
558
- ]
559
- }
560
- },
561
- {
562
- "name": "distribution_state",
563
- "writable": true,
564
- "pda": {
565
- "seeds": [
566
- {
567
- "kind": "const",
568
- "value": [
569
- 100,
570
- 105,
571
- 115,
572
- 116,
573
- 114,
574
- 105,
575
- 98,
576
- 117,
577
- 116,
578
- 105,
579
- 111,
580
- 110,
581
- 95,
582
- 115,
583
- 116,
584
- 97,
585
- 116,
586
- 101
587
- ]
588
- }
589
- ]
590
- }
591
- },
592
- {
593
- "name": "liqsol_mint",
594
- "writable": true
595
- },
596
- {
597
- "name": "token_program"
598
- },
599
- {
600
- "name": "stake_controller_program"
601
- },
602
- {
603
- "name": "stake_controller_state"
604
- },
605
- {
606
- "name": "controller_authority"
607
- },
608
- {
609
- "name": "yield_oracle_program"
610
- },
611
- {
612
- "name": "system_program",
613
- "address": "11111111111111111111111111111111"
614
- }
615
- ],
616
- "args": [
617
- {
618
- "name": "amount",
619
- "type": "u64"
620
- }
621
- ]
622
- }
623
- ],
624
- "accounts": [
625
- {
626
- "name": "DistributionState",
627
- "discriminator": [
628
- 7,
629
- 25,
630
- 94,
631
- 15,
632
- 208,
633
- 170,
634
- 4,
635
- 103
636
- ]
637
- },
638
- {
639
- "name": "UserRecord",
640
- "discriminator": [
641
- 210,
642
- 252,
643
- 132,
644
- 218,
645
- 191,
646
- 85,
647
- 173,
648
- 167
649
- ]
650
- }
651
- ],
652
- "errors": [
653
- {
654
- "code": 6000,
655
- "name": "Overflow",
656
- "msg": "Arithmetic overflow"
657
- },
658
- {
659
- "code": 6001,
660
- "name": "NoRewardsToClaim",
661
- "msg": "No rewards to claim"
662
- },
663
- {
664
- "code": 6002,
665
- "name": "InsufficientBalance",
666
- "msg": "Insufficient balance"
667
- },
668
- {
669
- "code": 6003,
670
- "name": "InsufficientFunds",
671
- "msg": "Insufficient funds"
672
- },
673
- {
674
- "code": 6004,
675
- "name": "Unauthorized",
676
- "msg": "Unauthorized - caller is not the distribution authority"
677
- },
678
- {
679
- "code": 6005,
680
- "name": "InvalidMint",
681
- "msg": "Invalid mint"
682
- },
683
- {
684
- "code": 6006,
685
- "name": "InvalidOwner",
686
- "msg": "Invalid owner"
687
- },
688
- {
689
- "code": 6007,
690
- "name": "InvalidUserRecord",
691
- "msg": "Invalid user record"
692
- },
693
- {
694
- "code": 6008,
695
- "name": "InvalidWithdrawal",
696
- "msg": "Invalid withdrawal - balance increased instead of decreased"
697
- },
698
- {
699
- "code": 6009,
700
- "name": "InvalidProgramId",
701
- "msg": "Invalid program ID"
702
- },
703
- {
704
- "code": 6010,
705
- "name": "UnauthorizedProgram",
706
- "msg": "Unauthorized program attempting CPI call"
707
- },
708
- {
709
- "code": 6011,
710
- "name": "InstructionIntrospectionFailed",
711
- "msg": "Instruction introspection failed"
712
- }
713
- ],
714
- "types": [
715
- {
716
- "name": "DistributionState",
717
- "type": {
718
- "kind": "struct",
719
- "fields": [
720
- {
721
- "name": "liqsol_mint",
722
- "type": "pubkey"
723
- },
724
- {
725
- "name": "total_tracked_balance",
726
- "type": "u64"
727
- },
728
- {
729
- "name": "available_balance",
730
- "type": "u64"
731
- },
732
- {
733
- "name": "bump",
734
- "type": "u8"
735
- }
736
- ]
737
- }
738
- },
739
- {
740
- "name": "UserRecord",
741
- "type": {
742
- "kind": "struct",
743
- "fields": [
744
- {
745
- "name": "user_ata",
746
- "type": "pubkey"
747
- },
748
- {
749
- "name": "tracked_balance",
750
- "type": "u64"
751
- },
752
- {
753
- "name": "claim_balance",
754
- "type": "u64"
755
- },
756
- {
757
- "name": "last_claim_timestamp",
758
- "type": "i64"
759
- },
760
- {
761
- "name": "bump",
762
- "type": "u8"
763
- }
764
- ]
765
- }
766
- }
767
- ]
768
- }