@jpool/bond-sdk 0.3.0-next.5 → 0.3.0-next.6

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/dist/index.d.mts CHANGED
@@ -9,28 +9,28 @@ import { BN, AnchorProvider, Program, Wallet as Wallet$1 } from '@coral-xyz/anch
9
9
  * IDL can be found at `target/idl/jbond.json`.
10
10
  */
11
11
  type Jbond = {
12
- address: 'nWHxjhR2CxusPo2ygSduCRo7WYPcpAfc8ob4e7oU4XM';
13
- metadata: {
14
- name: 'jbond';
15
- version: '0.1.0';
16
- spec: '0.1.0';
17
- description: 'Jpool Bond Program';
12
+ "address": "BondQ7KqZreTcW2UbeTNDcLCJQ3aXAtLn2Fm6ftaJDU";
13
+ "metadata": {
14
+ "name": "jbond";
15
+ "version": "0.2.0";
16
+ "spec": "0.1.0";
17
+ "description": "Jpool Bond Program";
18
18
  };
19
- instructions: [
19
+ "instructions": [
20
20
  {
21
- name: 'claim';
22
- docs: [
23
- 'Claims compensation for a validator.',
24
- 'Transfers funds from the validator\'s bond account to reserve.',
25
- '',
26
- '# Arguments',
27
- '* `amount` - Amount of compensation to claim (must be positive).',
28
- '',
29
- '# Errors',
30
- 'Fails if the authority is invalid, if the validator is not active,',
31
- 'if the amount is zero, or if there are insufficient funds.'
21
+ "name": "claim";
22
+ "docs": [
23
+ "Claims compensation for a validator.",
24
+ "Transfers funds from the validator's bond account to reserve.",
25
+ "",
26
+ "# Arguments",
27
+ "* `amount` - Amount of compensation to claim (must be positive).",
28
+ "",
29
+ "# Errors",
30
+ "Fails if the authority is invalid, if the validator is not active,",
31
+ "if the amount is zero, or if there are insufficient funds."
32
32
  ];
33
- discriminator: [
33
+ "discriminator": [
34
34
  62,
35
35
  198,
36
36
  214,
@@ -40,15 +40,15 @@ type Jbond = {
40
40
  108,
41
41
  210
42
42
  ];
43
- accounts: [
43
+ "accounts": [
44
44
  {
45
- name: 'globalState';
46
- writable: true;
47
- pda: {
48
- seeds: [
45
+ "name": "globalState";
46
+ "writable": true;
47
+ "pda": {
48
+ "seeds": [
49
49
  {
50
- kind: 'const';
51
- value: [
50
+ "kind": "const";
51
+ "value": [
52
52
  103,
53
53
  108,
54
54
  111,
@@ -67,13 +67,13 @@ type Jbond = {
67
67
  };
68
68
  },
69
69
  {
70
- name: 'validatorBond';
71
- writable: true;
72
- pda: {
73
- seeds: [
70
+ "name": "validatorBond";
71
+ "writable": true;
72
+ "pda": {
73
+ "seeds": [
74
74
  {
75
- kind: 'const';
76
- value: [
75
+ "kind": "const";
76
+ "value": [
77
77
  118,
78
78
  97,
79
79
  108,
@@ -91,47 +91,47 @@ type Jbond = {
91
91
  ];
92
92
  },
93
93
  {
94
- kind: 'account';
95
- path: 'validator_bond.vote_account';
96
- account: 'validatorBond';
94
+ "kind": "account";
95
+ "path": "validator_bond.vote_account";
96
+ "account": "validatorBond";
97
97
  }
98
98
  ];
99
99
  };
100
100
  },
101
101
  {
102
- name: 'reserve';
103
- writable: true;
102
+ "name": "reserve";
103
+ "writable": true;
104
104
  },
105
105
  {
106
- name: 'authority';
107
- docs: [
108
- 'Authority that can trigger claims'
106
+ "name": "authority";
107
+ "docs": [
108
+ "Authority that can trigger claims"
109
109
  ];
110
- signer: true;
110
+ "signer": true;
111
111
  },
112
112
  {
113
- name: 'systemProgram';
114
- address: '11111111111111111111111111111111';
113
+ "name": "systemProgram";
114
+ "address": "11111111111111111111111111111111";
115
115
  }
116
116
  ];
117
- args: [
117
+ "args": [
118
118
  {
119
- name: 'amount';
120
- type: 'u64';
119
+ "name": "amount";
120
+ "type": "u64";
121
121
  }
122
122
  ];
123
123
  },
124
124
  {
125
- name: 'initialize';
126
- docs: [
127
- 'Initializes the global state for the bonding program.',
128
- 'Sets the authority and reserve account for managing validator bonds.',
129
- '',
130
- '# Errors',
131
- 'Fails if the global state account is already initialized or if the payer lacks',
132
- 'sufficient funds.'
125
+ "name": "initialize";
126
+ "docs": [
127
+ "Initializes the global state for the bonding program.",
128
+ "Sets the authority and reserve account for managing validator bonds.",
129
+ "",
130
+ "# Errors",
131
+ "Fails if the global state account is already initialized or if the payer lacks",
132
+ "sufficient funds."
133
133
  ];
134
- discriminator: [
134
+ "discriminator": [
135
135
  175,
136
136
  175,
137
137
  109,
@@ -141,15 +141,15 @@ type Jbond = {
141
141
  155,
142
142
  237
143
143
  ];
144
- accounts: [
144
+ "accounts": [
145
145
  {
146
- name: 'globalState';
147
- writable: true;
148
- pda: {
149
- seeds: [
146
+ "name": "globalState";
147
+ "writable": true;
148
+ "pda": {
149
+ "seeds": [
150
150
  {
151
- kind: 'const';
152
- value: [
151
+ "kind": "const";
152
+ "value": [
153
153
  103,
154
154
  108,
155
155
  111,
@@ -168,35 +168,35 @@ type Jbond = {
168
168
  };
169
169
  },
170
170
  {
171
- name: 'authority';
172
- writable: true;
173
- signer: true;
171
+ "name": "authority";
172
+ "writable": true;
173
+ "signer": true;
174
174
  },
175
175
  {
176
- name: 'reserve';
176
+ "name": "reserve";
177
177
  },
178
178
  {
179
- name: 'systemProgram';
180
- address: '11111111111111111111111111111111';
179
+ "name": "systemProgram";
180
+ "address": "11111111111111111111111111111111";
181
181
  }
182
182
  ];
183
- args: [];
183
+ "args": [];
184
184
  },
185
185
  {
186
- name: 'register';
187
- docs: [
188
- 'Registers a new validator with the bonding program.',
189
- 'Sets up the validator\'s bond account and deposits initial collateral.',
190
- '',
191
- '# Arguments',
192
- '* `initial_collateral` - Amount of collateral to lock (must be positive).',
193
- '* `withdrawal_authority` - Optional key that can withdraw collateral later.',
194
- '',
195
- '# Errors',
196
- 'Fails if the validator is already registered, if the vote account is invalid,',
197
- 'or if the initial collateral transfer fails.'
186
+ "name": "register";
187
+ "docs": [
188
+ "Registers a new validator with the bonding program.",
189
+ "Sets up the validator's bond account and deposits initial collateral.",
190
+ "",
191
+ "# Arguments",
192
+ "* `initial_collateral` - Amount of collateral to lock (must be positive).",
193
+ "* `withdrawal_authority` - Optional key that can withdraw collateral later.",
194
+ "",
195
+ "# Errors",
196
+ "Fails if the validator is already registered, if the vote account is invalid,",
197
+ "or if the initial collateral transfer fails."
198
198
  ];
199
- discriminator: [
199
+ "discriminator": [
200
200
  211,
201
201
  124,
202
202
  67,
@@ -206,15 +206,15 @@ type Jbond = {
206
206
  178,
207
207
  240
208
208
  ];
209
- accounts: [
209
+ "accounts": [
210
210
  {
211
- name: 'globalState';
212
- writable: true;
213
- pda: {
214
- seeds: [
211
+ "name": "globalState";
212
+ "writable": true;
213
+ "pda": {
214
+ "seeds": [
215
215
  {
216
- kind: 'const';
217
- value: [
216
+ "kind": "const";
217
+ "value": [
218
218
  103,
219
219
  108,
220
220
  111,
@@ -233,13 +233,13 @@ type Jbond = {
233
233
  };
234
234
  },
235
235
  {
236
- name: 'validatorBond';
237
- writable: true;
238
- pda: {
239
- seeds: [
236
+ "name": "validatorBond";
237
+ "writable": true;
238
+ "pda": {
239
+ "seeds": [
240
240
  {
241
- kind: 'const';
242
- value: [
241
+ "kind": "const";
242
+ "value": [
243
243
  118,
244
244
  97,
245
245
  108,
@@ -257,57 +257,57 @@ type Jbond = {
257
257
  ];
258
258
  },
259
259
  {
260
- kind: 'account';
261
- path: 'voteAccount';
260
+ "kind": "account";
261
+ "path": "voteAccount";
262
262
  }
263
263
  ];
264
264
  };
265
265
  },
266
266
  {
267
- name: 'identity';
267
+ "name": "identity";
268
268
  },
269
269
  {
270
- name: 'voteAccount';
270
+ "name": "voteAccount";
271
271
  },
272
272
  {
273
- name: 'creator';
274
- docs: [
275
- 'The account creating the bond (pays for account creation and initial collateral)'
273
+ "name": "creator";
274
+ "docs": [
275
+ "The account creating the bond (pays for account creation and initial collateral)"
276
276
  ];
277
- writable: true;
278
- signer: true;
277
+ "writable": true;
278
+ "signer": true;
279
279
  },
280
280
  {
281
- name: 'systemProgram';
282
- address: '11111111111111111111111111111111';
281
+ "name": "systemProgram";
282
+ "address": "11111111111111111111111111111111";
283
283
  }
284
284
  ];
285
- args: [
285
+ "args": [
286
286
  {
287
- name: 'initialCollateral';
288
- type: 'u64';
287
+ "name": "initialCollateral";
288
+ "type": "u64";
289
289
  },
290
290
  {
291
- name: 'withdrawalAuthority';
292
- type: {
293
- option: 'pubkey';
291
+ "name": "withdrawalAuthority";
292
+ "type": {
293
+ "option": "pubkey";
294
294
  };
295
295
  }
296
296
  ];
297
297
  },
298
298
  {
299
- name: 'setAuthority';
300
- docs: [
301
- 'Sets a new withdrawal authority for a validator\'s bond account.',
302
- 'Allows changing who can withdraw collateral in the future.',
303
- '',
304
- '# Arguments',
305
- '* `new_authority` - Optional new authority key (None to restrict to identity).',
306
- '',
307
- '# Errors',
308
- 'Fails if the signer is not authorized to change the authority.'
299
+ "name": "setAuthority";
300
+ "docs": [
301
+ "Sets a new withdrawal authority for a validator's bond account.",
302
+ "Allows changing who can withdraw collateral in the future.",
303
+ "",
304
+ "# Arguments",
305
+ "* `new_authority` - Optional new authority key (None to restrict to identity).",
306
+ "",
307
+ "# Errors",
308
+ "Fails if the signer is not authorized to change the authority."
309
309
  ];
310
- discriminator: [
310
+ "discriminator": [
311
311
  133,
312
312
  250,
313
313
  37,
@@ -317,15 +317,15 @@ type Jbond = {
317
317
  26,
318
318
  121
319
319
  ];
320
- accounts: [
320
+ "accounts": [
321
321
  {
322
- name: 'globalState';
323
- writable: true;
324
- pda: {
325
- seeds: [
322
+ "name": "globalState";
323
+ "writable": true;
324
+ "pda": {
325
+ "seeds": [
326
326
  {
327
- kind: 'const';
328
- value: [
327
+ "kind": "const";
328
+ "value": [
329
329
  103,
330
330
  108,
331
331
  111,
@@ -344,32 +344,32 @@ type Jbond = {
344
344
  };
345
345
  },
346
346
  {
347
- name: 'authority';
348
- signer: true;
349
- relations: [
350
- 'globalState'
347
+ "name": "authority";
348
+ "signer": true;
349
+ "relations": [
350
+ "globalState"
351
351
  ];
352
352
  },
353
353
  {
354
- name: 'newAuthority';
354
+ "name": "newAuthority";
355
355
  }
356
356
  ];
357
- args: [];
357
+ "args": [];
358
358
  },
359
359
  {
360
- name: 'topUp';
361
- docs: [
362
- 'Adds additional collateral to an existing validator\'s bond.',
363
- 'Increases the collateral balance, enhancing the validator\'s stake.',
364
- '',
365
- '# Arguments',
366
- '* `amount` - Amount to add.',
367
- '',
368
- '# Errors',
369
- 'Fails if the validator is not active, if the amount is zero,',
370
- 'or if the transfer of funds fails.'
360
+ "name": "topUp";
361
+ "docs": [
362
+ "Adds additional collateral to an existing validator's bond.",
363
+ "Increases the collateral balance, enhancing the validator's stake.",
364
+ "",
365
+ "# Arguments",
366
+ "* `amount` - Amount to add.",
367
+ "",
368
+ "# Errors",
369
+ "Fails if the validator is not active, if the amount is zero,",
370
+ "or if the transfer of funds fails."
371
371
  ];
372
- discriminator: [
372
+ "discriminator": [
373
373
  236,
374
374
  225,
375
375
  96,
@@ -379,15 +379,15 @@ type Jbond = {
379
379
  77,
380
380
  208
381
381
  ];
382
- accounts: [
382
+ "accounts": [
383
383
  {
384
- name: 'validatorBond';
385
- writable: true;
386
- pda: {
387
- seeds: [
384
+ "name": "validatorBond";
385
+ "writable": true;
386
+ "pda": {
387
+ "seeds": [
388
388
  {
389
- kind: 'const';
390
- value: [
389
+ "kind": "const";
390
+ "value": [
391
391
  118,
392
392
  97,
393
393
  108,
@@ -405,45 +405,45 @@ type Jbond = {
405
405
  ];
406
406
  },
407
407
  {
408
- kind: 'account';
409
- path: 'validator_bond.vote_account';
410
- account: 'validatorBond';
408
+ "kind": "account";
409
+ "path": "validator_bond.vote_account";
410
+ "account": "validatorBond";
411
411
  }
412
412
  ];
413
413
  };
414
414
  },
415
415
  {
416
- name: 'payer';
417
- writable: true;
418
- signer: true;
416
+ "name": "payer";
417
+ "writable": true;
418
+ "signer": true;
419
419
  },
420
420
  {
421
- name: 'systemProgram';
422
- address: '11111111111111111111111111111111';
421
+ "name": "systemProgram";
422
+ "address": "11111111111111111111111111111111";
423
423
  }
424
424
  ];
425
- args: [
425
+ "args": [
426
426
  {
427
- name: 'amount';
428
- type: 'u64';
427
+ "name": "amount";
428
+ "type": "u64";
429
429
  }
430
430
  ];
431
431
  },
432
432
  {
433
- name: 'withdraw';
434
- docs: [
435
- 'Withdraws collateral from a validator\'s bond.',
436
- 'Decreases the collateral balance, allowing the validator to reclaim funds.',
437
- '',
438
- '# Arguments',
439
- '* `amount` - Amount to withdraw (must not exceed available balance).',
440
- '',
441
- '# Errors',
442
- 'Fails if the validator is not active, if the amount is zero,',
443
- 'if the withdrawal authority is invalid, or if the withdrawal would',
444
- 'leave insufficient collateral.'
433
+ "name": "withdraw";
434
+ "docs": [
435
+ "Withdraws collateral from a validator's bond.",
436
+ "Decreases the collateral balance, allowing the validator to reclaim funds.",
437
+ "",
438
+ "# Arguments",
439
+ "* `amount` - Amount to withdraw (must not exceed available balance).",
440
+ "",
441
+ "# Errors",
442
+ "Fails if the validator is not active, if the amount is zero,",
443
+ "if the withdrawal authority is invalid, or if the withdrawal would",
444
+ "leave insufficient collateral."
445
445
  ];
446
- discriminator: [
446
+ "discriminator": [
447
447
  183,
448
448
  18,
449
449
  70,
@@ -453,15 +453,15 @@ type Jbond = {
453
453
  161,
454
454
  34
455
455
  ];
456
- accounts: [
456
+ "accounts": [
457
457
  {
458
- name: 'validatorBond';
459
- writable: true;
460
- pda: {
461
- seeds: [
458
+ "name": "validatorBond";
459
+ "writable": true;
460
+ "pda": {
461
+ "seeds": [
462
462
  {
463
- kind: 'const';
464
- value: [
463
+ "kind": "const";
464
+ "value": [
465
465
  118,
466
466
  97,
467
467
  108,
@@ -479,43 +479,43 @@ type Jbond = {
479
479
  ];
480
480
  },
481
481
  {
482
- kind: 'account';
483
- path: 'validator_bond.vote_account';
484
- account: 'validatorBond';
482
+ "kind": "account";
483
+ "path": "validator_bond.vote_account";
484
+ "account": "validatorBond";
485
485
  }
486
486
  ];
487
487
  };
488
488
  },
489
489
  {
490
- name: 'withdrawalAuthority';
491
- writable: true;
492
- signer: true;
490
+ "name": "withdrawalAuthority";
491
+ "writable": true;
492
+ "signer": true;
493
493
  },
494
494
  {
495
- name: 'destination';
496
- writable: true;
495
+ "name": "destination";
496
+ "writable": true;
497
497
  },
498
498
  {
499
- name: 'epochSchedule';
500
- address: 'SysvarEpochSchedu1e111111111111111111111111';
499
+ "name": "epochSchedule";
500
+ "address": "SysvarEpochSchedu1e111111111111111111111111";
501
501
  },
502
502
  {
503
- name: 'systemProgram';
504
- address: '11111111111111111111111111111111';
503
+ "name": "systemProgram";
504
+ "address": "11111111111111111111111111111111";
505
505
  }
506
506
  ];
507
- args: [
507
+ "args": [
508
508
  {
509
- name: 'amount';
510
- type: 'u64';
509
+ "name": "amount";
510
+ "type": "u64";
511
511
  }
512
512
  ];
513
513
  }
514
514
  ];
515
- accounts: [
515
+ "accounts": [
516
516
  {
517
- name: 'globalState';
518
- discriminator: [
517
+ "name": "globalState";
518
+ "discriminator": [
519
519
  163,
520
520
  46,
521
521
  74,
@@ -527,8 +527,8 @@ type Jbond = {
527
527
  ];
528
528
  },
529
529
  {
530
- name: 'validatorBond';
531
- discriminator: [
530
+ "name": "validatorBond";
531
+ "discriminator": [
532
532
  82,
533
533
  127,
534
534
  243,
@@ -540,10 +540,10 @@ type Jbond = {
540
540
  ];
541
541
  }
542
542
  ];
543
- events: [
543
+ "events": [
544
544
  {
545
- name: 'collateralToppedUp';
546
- discriminator: [
545
+ "name": "collateralToppedUp";
546
+ "discriminator": [
547
547
  189,
548
548
  137,
549
549
  204,
@@ -555,8 +555,8 @@ type Jbond = {
555
555
  ];
556
556
  },
557
557
  {
558
- name: 'collateralWithdrawn';
559
- discriminator: [
558
+ "name": "collateralWithdrawn";
559
+ "discriminator": [
560
560
  51,
561
561
  224,
562
562
  133,
@@ -568,8 +568,8 @@ type Jbond = {
568
568
  ];
569
569
  },
570
570
  {
571
- name: 'compensationClaimed';
572
- discriminator: [
571
+ "name": "compensationClaimed";
572
+ "discriminator": [
573
573
  36,
574
574
  159,
575
575
  41,
@@ -581,8 +581,8 @@ type Jbond = {
581
581
  ];
582
582
  },
583
583
  {
584
- name: 'validatorRegistered';
585
- discriminator: [
584
+ "name": "validatorRegistered";
585
+ "discriminator": [
586
586
  20,
587
587
  20,
588
588
  190,
@@ -594,278 +594,278 @@ type Jbond = {
594
594
  ];
595
595
  }
596
596
  ];
597
- errors: [
597
+ "errors": [
598
598
  {
599
- code: 6000;
600
- name: 'invalidVoteAccount';
601
- msg: 'Invalid vote account';
599
+ "code": 6000;
600
+ "name": "invalidVoteAccount";
601
+ "msg": "Invalid vote account";
602
602
  },
603
603
  {
604
- code: 6001;
605
- name: 'identityMismatch';
606
- msg: 'Identity does not match vote account';
604
+ "code": 6001;
605
+ "name": "identityMismatch";
606
+ "msg": "Identity does not match vote account";
607
607
  },
608
608
  {
609
- code: 6002;
610
- name: 'insufficientCollateral';
611
- msg: 'Insufficient collateral amount';
609
+ "code": 6002;
610
+ "name": "insufficientCollateral";
611
+ "msg": "Insufficient collateral amount";
612
612
  },
613
613
  {
614
- code: 6003;
615
- name: 'targetAprTooLow';
616
- msg: 'Target APR is below minimum threshold';
614
+ "code": 6003;
615
+ "name": "targetAprTooLow";
616
+ "msg": "Target APR is below minimum threshold";
617
617
  },
618
618
  {
619
- code: 6004;
620
- name: 'mathOverflow';
621
- msg: 'Math overflow';
619
+ "code": 6004;
620
+ "name": "mathOverflow";
621
+ "msg": "Math overflow";
622
622
  },
623
623
  {
624
- code: 6005;
625
- name: 'invalidAmount';
626
- msg: 'Invalid amount';
624
+ "code": 6005;
625
+ "name": "invalidAmount";
626
+ "msg": "Invalid amount";
627
627
  },
628
628
  {
629
- code: 6006;
630
- name: 'validatorNotActive';
631
- msg: 'Validator boost account is not active';
629
+ "code": 6006;
630
+ "name": "validatorNotActive";
631
+ "msg": "Validator boost account is not active";
632
632
  },
633
633
  {
634
- code: 6007;
635
- name: 'validatorAlreadyRegistered';
636
- msg: 'Validator already registered';
634
+ "code": 6007;
635
+ "name": "validatorAlreadyRegistered";
636
+ "msg": "Validator already registered";
637
637
  },
638
638
  {
639
- code: 6008;
640
- name: 'unauthorized';
641
- msg: 'unauthorized';
639
+ "code": 6008;
640
+ "name": "unauthorized";
641
+ "msg": "unauthorized";
642
642
  },
643
643
  {
644
- code: 6009;
645
- name: 'withdrawalLockedNearEpochEnd';
646
- msg: 'Withdrawals are locked near the end of the epoch.';
644
+ "code": 6009;
645
+ "name": "withdrawalLockedNearEpochEnd";
646
+ "msg": "Withdrawals are locked near the end of the epoch.";
647
647
  }
648
648
  ];
649
- types: [
649
+ "types": [
650
650
  {
651
- name: 'collateralToppedUp';
652
- type: {
653
- kind: 'struct';
654
- fields: [
651
+ "name": "collateralToppedUp";
652
+ "type": {
653
+ "kind": "struct";
654
+ "fields": [
655
655
  {
656
- name: 'validator';
657
- type: 'pubkey';
656
+ "name": "validator";
657
+ "type": "pubkey";
658
658
  },
659
659
  {
660
- name: 'amount';
661
- type: 'u64';
660
+ "name": "amount";
661
+ "type": "u64";
662
662
  },
663
663
  {
664
- name: 'postBalance';
665
- type: 'u64';
664
+ "name": "postBalance";
665
+ "type": "u64";
666
666
  },
667
667
  {
668
- name: 'timestamp';
669
- type: 'i64';
668
+ "name": "timestamp";
669
+ "type": "i64";
670
670
  }
671
671
  ];
672
672
  };
673
673
  },
674
674
  {
675
- name: 'collateralWithdrawn';
676
- type: {
677
- kind: 'struct';
678
- fields: [
675
+ "name": "collateralWithdrawn";
676
+ "type": {
677
+ "kind": "struct";
678
+ "fields": [
679
679
  {
680
- name: 'validator';
681
- type: 'pubkey';
680
+ "name": "validator";
681
+ "type": "pubkey";
682
682
  },
683
683
  {
684
- name: 'amount';
685
- type: 'u64';
684
+ "name": "amount";
685
+ "type": "u64";
686
686
  },
687
687
  {
688
- name: 'postBalance';
689
- type: 'u64';
688
+ "name": "postBalance";
689
+ "type": "u64";
690
690
  },
691
691
  {
692
- name: 'timestamp';
693
- type: 'i64';
692
+ "name": "timestamp";
693
+ "type": "i64";
694
694
  }
695
695
  ];
696
696
  };
697
697
  },
698
698
  {
699
- name: 'compensationClaimed';
700
- type: {
701
- kind: 'struct';
702
- fields: [
699
+ "name": "compensationClaimed";
700
+ "type": {
701
+ "kind": "struct";
702
+ "fields": [
703
703
  {
704
- name: 'validator';
705
- type: 'pubkey';
704
+ "name": "validator";
705
+ "type": "pubkey";
706
706
  },
707
707
  {
708
- name: 'amount';
709
- type: 'u64';
708
+ "name": "amount";
709
+ "type": "u64";
710
710
  },
711
711
  {
712
- name: 'postBalance';
713
- type: 'u64';
712
+ "name": "postBalance";
713
+ "type": "u64";
714
714
  },
715
715
  {
716
- name: 'epoch';
717
- type: 'u64';
716
+ "name": "epoch";
717
+ "type": "u64";
718
718
  },
719
719
  {
720
- name: 'timestamp';
721
- type: 'i64';
720
+ "name": "timestamp";
721
+ "type": "i64";
722
722
  }
723
723
  ];
724
724
  };
725
725
  },
726
726
  {
727
- name: 'globalState';
728
- type: {
729
- kind: 'struct';
730
- fields: [
727
+ "name": "globalState";
728
+ "type": {
729
+ "kind": "struct";
730
+ "fields": [
731
731
  {
732
- name: 'authority';
733
- docs: [
734
- 'The authority allowed to manage the program'
732
+ "name": "authority";
733
+ "docs": [
734
+ "The authority allowed to manage the program"
735
735
  ];
736
- type: 'pubkey';
736
+ "type": "pubkey";
737
737
  },
738
738
  {
739
- name: 'reserve';
740
- docs: [
741
- 'The reserve vault holding SOL for bonding and compensation'
739
+ "name": "reserve";
740
+ "docs": [
741
+ "The reserve vault holding SOL for bonding and compensation"
742
742
  ];
743
- type: 'pubkey';
743
+ "type": "pubkey";
744
744
  },
745
745
  {
746
- name: 'totalValidators';
747
- docs: [
748
- 'Total number of registered validators'
746
+ "name": "totalValidators";
747
+ "docs": [
748
+ "Total number of registered validators"
749
749
  ];
750
- type: 'u16';
750
+ "type": "u16";
751
751
  },
752
752
  {
753
- name: 'totalCompensationAmount';
754
- docs: [
755
- 'Total compensation amount paid out'
753
+ "name": "totalCompensationAmount";
754
+ "docs": [
755
+ "Total compensation amount paid out"
756
756
  ];
757
- type: 'u64';
757
+ "type": "u64";
758
758
  },
759
759
  {
760
- name: 'bump';
761
- docs: [
762
- 'Bump for the PDA'
760
+ "name": "bump";
761
+ "docs": [
762
+ "Bump for the PDA"
763
763
  ];
764
- type: 'u8';
764
+ "type": "u8";
765
765
  }
766
766
  ];
767
767
  };
768
768
  },
769
769
  {
770
- name: 'validatorBond';
771
- type: {
772
- kind: 'struct';
773
- fields: [
770
+ "name": "validatorBond";
771
+ "type": {
772
+ "kind": "struct";
773
+ "fields": [
774
774
  {
775
- name: 'identity';
776
- docs: [
777
- 'The validator identity pubkey'
775
+ "name": "identity";
776
+ "docs": [
777
+ "The validator identity pubkey"
778
778
  ];
779
- type: 'pubkey';
779
+ "type": "pubkey";
780
780
  },
781
781
  {
782
- name: 'voteAccount';
783
- docs: [
784
- 'The validator vote account pubkey'
782
+ "name": "voteAccount";
783
+ "docs": [
784
+ "The validator vote account pubkey"
785
785
  ];
786
- type: 'pubkey';
786
+ "type": "pubkey";
787
787
  },
788
788
  {
789
- name: 'creator';
790
- docs: [
791
- 'Creator of the validator bond account'
789
+ "name": "creator";
790
+ "docs": [
791
+ "Creator of the validator bond account"
792
792
  ];
793
- type: 'pubkey';
793
+ "type": "pubkey";
794
794
  },
795
795
  {
796
- name: 'withdrawalAuthority';
797
- docs: [
798
- 'Authority allowed to withdraw funds (if None, only identity can withdraw)'
796
+ "name": "withdrawalAuthority";
797
+ "docs": [
798
+ "Authority allowed to withdraw funds (if None, only identity can withdraw)"
799
799
  ];
800
- type: {
801
- option: 'pubkey';
800
+ "type": {
801
+ "option": "pubkey";
802
802
  };
803
803
  },
804
804
  {
805
- name: 'totalCompensationAmount';
806
- docs: [
807
- 'Total compensation claimed for the validator'
805
+ "name": "totalCompensationAmount";
806
+ "docs": [
807
+ "Total compensation claimed for the validator"
808
808
  ];
809
- type: 'u64';
809
+ "type": "u64";
810
810
  },
811
811
  {
812
- name: 'lastCompensationAmount';
813
- docs: [
814
- 'Last compensation amount claimed'
812
+ "name": "lastCompensationAmount";
813
+ "docs": [
814
+ "Last compensation amount claimed"
815
815
  ];
816
- type: 'u64';
816
+ "type": "u64";
817
817
  },
818
818
  {
819
- name: 'lastCompensationEpoch';
820
- docs: [
821
- 'Last epoch when compensation was claimed'
819
+ "name": "lastCompensationEpoch";
820
+ "docs": [
821
+ "Last epoch when compensation was claimed"
822
822
  ];
823
- type: 'u64';
823
+ "type": "u64";
824
824
  },
825
825
  {
826
- name: 'createdAt';
827
- docs: [
828
- 'Timestamp when the bond account was created'
826
+ "name": "createdAt";
827
+ "docs": [
828
+ "Timestamp when the bond account was created"
829
829
  ];
830
- type: 'i64';
830
+ "type": "i64";
831
831
  },
832
832
  {
833
- name: 'isActive';
834
- docs: [
835
- 'Whether the validator is currently active'
833
+ "name": "isActive";
834
+ "docs": [
835
+ "Whether the validator is currently active"
836
836
  ];
837
- type: 'bool';
837
+ "type": "bool";
838
838
  },
839
839
  {
840
- name: 'bump';
841
- docs: [
842
- 'Bump for the PDA'
840
+ "name": "bump";
841
+ "docs": [
842
+ "Bump for the PDA"
843
843
  ];
844
- type: 'u8';
844
+ "type": "u8";
845
845
  }
846
846
  ];
847
847
  };
848
848
  },
849
849
  {
850
- name: 'validatorRegistered';
851
- type: {
852
- kind: 'struct';
853
- fields: [
850
+ "name": "validatorRegistered";
851
+ "type": {
852
+ "kind": "struct";
853
+ "fields": [
854
854
  {
855
- name: 'identity';
856
- type: 'pubkey';
855
+ "name": "identity";
856
+ "type": "pubkey";
857
857
  },
858
858
  {
859
- name: 'voteAccount';
860
- type: 'pubkey';
859
+ "name": "voteAccount";
860
+ "type": "pubkey";
861
861
  },
862
862
  {
863
- name: 'initialCollateral';
864
- type: 'u64';
863
+ "name": "initialCollateral";
864
+ "type": "u64";
865
865
  },
866
866
  {
867
- name: 'timestamp';
868
- type: 'i64';
867
+ "name": "timestamp";
868
+ "type": "i64";
869
869
  }
870
870
  ];
871
871
  };