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