@jpool/bond-sdk 0.0.1-next.0 → 0.1.0-next.1
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/CHANGELOG.md +21 -0
- package/package.json +12 -16
- package/src/config.ts +1 -5
- package/src/idl/jbond.json +1 -1
- package/src/types/jbond.ts +333 -333
- package/.env +0 -6
- package/dist/index.d.mts +0 -866
- package/dist/index.d.ts +0 -866
- package/dist/index.js +0 -1205
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -1193
- package/dist/index.mjs.map +0 -1
package/src/types/jbond.ts
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
* IDL can be found at `target/idl/jbond.json`.
|
|
6
6
|
*/
|
|
7
7
|
export type Jbond = {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
8
|
+
address: '4a3YovKEfm4jWhczCzJciHXL1xVkXWfGQjRCaMft7M4G'
|
|
9
|
+
metadata: {
|
|
10
|
+
name: 'jbond'
|
|
11
|
+
version: '0.1.0'
|
|
12
|
+
spec: '0.1.0'
|
|
13
|
+
description: 'Validator compensation program for boosting APR'
|
|
14
|
+
}
|
|
15
|
+
instructions: [
|
|
16
16
|
{
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
]
|
|
21
|
-
|
|
17
|
+
name: 'bondInit'
|
|
18
|
+
docs: [
|
|
19
|
+
'Register validator and fund initial collateral',
|
|
20
|
+
]
|
|
21
|
+
discriminator: [
|
|
22
22
|
220,
|
|
23
23
|
108,
|
|
24
24
|
156,
|
|
@@ -26,17 +26,17 @@ export type Jbond = {
|
|
|
26
26
|
16,
|
|
27
27
|
185,
|
|
28
28
|
144,
|
|
29
|
-
157
|
|
30
|
-
]
|
|
31
|
-
|
|
29
|
+
157,
|
|
30
|
+
]
|
|
31
|
+
accounts: [
|
|
32
32
|
{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
name: 'globalState'
|
|
34
|
+
writable: true
|
|
35
|
+
pda: {
|
|
36
|
+
seeds: [
|
|
37
37
|
{
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
kind: 'const'
|
|
39
|
+
value: [
|
|
40
40
|
103,
|
|
41
41
|
108,
|
|
42
42
|
111,
|
|
@@ -48,20 +48,20 @@ export type Jbond = {
|
|
|
48
48
|
116,
|
|
49
49
|
97,
|
|
50
50
|
116,
|
|
51
|
-
101
|
|
51
|
+
101,
|
|
52
52
|
]
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
54
|
]
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
name: 'validatorBondAccount'
|
|
59
|
+
writable: true
|
|
60
|
+
pda: {
|
|
61
|
+
seeds: [
|
|
62
62
|
{
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
kind: 'const'
|
|
64
|
+
value: [
|
|
65
65
|
118,
|
|
66
66
|
97,
|
|
67
67
|
108,
|
|
@@ -75,54 +75,54 @@ export type Jbond = {
|
|
|
75
75
|
98,
|
|
76
76
|
111,
|
|
77
77
|
110,
|
|
78
|
-
100
|
|
78
|
+
100,
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
82
|
+
kind: 'account'
|
|
83
|
+
path: 'voteAccount'
|
|
84
|
+
},
|
|
85
85
|
]
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
|
-
|
|
89
|
+
name: 'identity'
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
|
|
92
|
+
name: 'voteAccount'
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
]
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
name: 'creator'
|
|
96
|
+
docs: [
|
|
97
|
+
'The account creating the bond (pays for account creation and initial collateral)',
|
|
98
|
+
]
|
|
99
|
+
writable: true
|
|
100
|
+
signer: true
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
|
|
103
|
+
name: 'systemProgram'
|
|
104
|
+
address: '11111111111111111111111111111111'
|
|
105
|
+
},
|
|
106
|
+
]
|
|
107
|
+
args: [
|
|
108
108
|
{
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
name: 'initialCollateral'
|
|
110
|
+
type: 'u64'
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
name: 'withdrawalAuthority'
|
|
114
|
+
type: {
|
|
115
|
+
option: 'pubkey'
|
|
116
116
|
}
|
|
117
|
-
}
|
|
117
|
+
},
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
]
|
|
125
|
-
|
|
121
|
+
name: 'bondTopUp'
|
|
122
|
+
docs: [
|
|
123
|
+
'Top up collateral for existing validator',
|
|
124
|
+
]
|
|
125
|
+
discriminator: [
|
|
126
126
|
132,
|
|
127
127
|
225,
|
|
128
128
|
254,
|
|
@@ -130,17 +130,17 @@ export type Jbond = {
|
|
|
130
130
|
152,
|
|
131
131
|
162,
|
|
132
132
|
176,
|
|
133
|
-
66
|
|
134
|
-
]
|
|
135
|
-
|
|
133
|
+
66,
|
|
134
|
+
]
|
|
135
|
+
accounts: [
|
|
136
136
|
{
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
name: 'validatorBondAccount'
|
|
138
|
+
writable: true
|
|
139
|
+
pda: {
|
|
140
|
+
seeds: [
|
|
141
141
|
{
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
kind: 'const'
|
|
143
|
+
value: [
|
|
144
144
|
118,
|
|
145
145
|
97,
|
|
146
146
|
108,
|
|
@@ -154,37 +154,37 @@ export type Jbond = {
|
|
|
154
154
|
98,
|
|
155
155
|
111,
|
|
156
156
|
110,
|
|
157
|
-
100
|
|
157
|
+
100,
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
161
|
+
kind: 'account'
|
|
162
|
+
path: 'validator_bond_account.vote_account'
|
|
163
|
+
account: 'validatorBondAccount'
|
|
164
|
+
},
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
169
|
+
name: 'depositor'
|
|
170
|
+
writable: true
|
|
171
|
+
signer: true
|
|
172
172
|
},
|
|
173
173
|
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
|
|
174
|
+
name: 'systemProgram'
|
|
175
|
+
address: '11111111111111111111111111111111'
|
|
176
|
+
},
|
|
177
|
+
]
|
|
178
|
+
args: [
|
|
179
179
|
{
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
180
|
+
name: 'amount'
|
|
181
|
+
type: 'u64'
|
|
182
|
+
},
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
|
|
187
|
-
|
|
186
|
+
name: 'bondWithdraw'
|
|
187
|
+
discriminator: [
|
|
188
188
|
99,
|
|
189
189
|
64,
|
|
190
190
|
127,
|
|
@@ -192,17 +192,17 @@ export type Jbond = {
|
|
|
192
192
|
53,
|
|
193
193
|
117,
|
|
194
194
|
70,
|
|
195
|
-
204
|
|
196
|
-
]
|
|
197
|
-
|
|
195
|
+
204,
|
|
196
|
+
]
|
|
197
|
+
accounts: [
|
|
198
198
|
{
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
name: 'validatorBondAccount'
|
|
200
|
+
writable: true
|
|
201
|
+
pda: {
|
|
202
|
+
seeds: [
|
|
203
203
|
{
|
|
204
|
-
|
|
205
|
-
|
|
204
|
+
kind: 'const'
|
|
205
|
+
value: [
|
|
206
206
|
118,
|
|
207
207
|
97,
|
|
208
208
|
108,
|
|
@@ -216,44 +216,44 @@ export type Jbond = {
|
|
|
216
216
|
98,
|
|
217
217
|
111,
|
|
218
218
|
110,
|
|
219
|
-
100
|
|
219
|
+
100,
|
|
220
220
|
]
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
223
|
+
kind: 'account'
|
|
224
|
+
path: 'validator_bond_account.vote_account'
|
|
225
|
+
account: 'validatorBondAccount'
|
|
226
|
+
},
|
|
227
227
|
]
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
231
|
+
name: 'withdrawalAuthority'
|
|
232
|
+
writable: true
|
|
233
|
+
signer: true
|
|
234
234
|
},
|
|
235
235
|
{
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
name: 'destination'
|
|
237
|
+
writable: true
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}
|
|
243
|
-
]
|
|
244
|
-
|
|
240
|
+
name: 'systemProgram'
|
|
241
|
+
address: '11111111111111111111111111111111'
|
|
242
|
+
},
|
|
243
|
+
]
|
|
244
|
+
args: [
|
|
245
245
|
{
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
246
|
+
name: 'amount'
|
|
247
|
+
type: 'u64'
|
|
248
|
+
},
|
|
249
249
|
]
|
|
250
250
|
},
|
|
251
251
|
{
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
]
|
|
256
|
-
|
|
252
|
+
name: 'initialize'
|
|
253
|
+
docs: [
|
|
254
|
+
'Initialize the global state and reserve vault',
|
|
255
|
+
]
|
|
256
|
+
discriminator: [
|
|
257
257
|
175,
|
|
258
258
|
175,
|
|
259
259
|
109,
|
|
@@ -261,17 +261,17 @@ export type Jbond = {
|
|
|
261
261
|
13,
|
|
262
262
|
152,
|
|
263
263
|
155,
|
|
264
|
-
237
|
|
265
|
-
]
|
|
266
|
-
|
|
264
|
+
237,
|
|
265
|
+
]
|
|
266
|
+
accounts: [
|
|
267
267
|
{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
268
|
+
name: 'globalState'
|
|
269
|
+
writable: true
|
|
270
|
+
pda: {
|
|
271
|
+
seeds: [
|
|
272
272
|
{
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
kind: 'const'
|
|
274
|
+
value: [
|
|
275
275
|
103,
|
|
276
276
|
108,
|
|
277
277
|
111,
|
|
@@ -283,33 +283,33 @@ export type Jbond = {
|
|
|
283
283
|
116,
|
|
284
284
|
97,
|
|
285
285
|
116,
|
|
286
|
-
101
|
|
286
|
+
101,
|
|
287
287
|
]
|
|
288
|
-
}
|
|
288
|
+
},
|
|
289
289
|
]
|
|
290
290
|
}
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
293
|
+
name: 'authority'
|
|
294
|
+
writable: true
|
|
295
|
+
signer: true
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
|
|
298
|
+
name: 'reserve'
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
|
|
301
|
+
name: 'systemProgram'
|
|
302
|
+
address: '11111111111111111111111111111111'
|
|
303
|
+
},
|
|
304
|
+
]
|
|
305
|
+
args: []
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
]
|
|
312
|
-
|
|
308
|
+
name: 'withdrawCompensation'
|
|
309
|
+
docs: [
|
|
310
|
+
'Withdraw compensation from validator to reserve (oracle only)',
|
|
311
|
+
]
|
|
312
|
+
discriminator: [
|
|
313
313
|
10,
|
|
314
314
|
228,
|
|
315
315
|
22,
|
|
@@ -317,17 +317,17 @@ export type Jbond = {
|
|
|
317
317
|
205,
|
|
318
318
|
117,
|
|
319
319
|
181,
|
|
320
|
-
75
|
|
321
|
-
]
|
|
322
|
-
|
|
320
|
+
75,
|
|
321
|
+
]
|
|
322
|
+
accounts: [
|
|
323
323
|
{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
324
|
+
name: 'globalState'
|
|
325
|
+
writable: true
|
|
326
|
+
pda: {
|
|
327
|
+
seeds: [
|
|
328
328
|
{
|
|
329
|
-
|
|
330
|
-
|
|
329
|
+
kind: 'const'
|
|
330
|
+
value: [
|
|
331
331
|
103,
|
|
332
332
|
108,
|
|
333
333
|
111,
|
|
@@ -339,20 +339,20 @@ export type Jbond = {
|
|
|
339
339
|
116,
|
|
340
340
|
97,
|
|
341
341
|
116,
|
|
342
|
-
101
|
|
342
|
+
101,
|
|
343
343
|
]
|
|
344
|
-
}
|
|
344
|
+
},
|
|
345
345
|
]
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
349
|
+
name: 'validatorBondAccount'
|
|
350
|
+
writable: true
|
|
351
|
+
pda: {
|
|
352
|
+
seeds: [
|
|
353
353
|
{
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
kind: 'const'
|
|
355
|
+
value: [
|
|
356
356
|
118,
|
|
357
357
|
97,
|
|
358
358
|
108,
|
|
@@ -366,45 +366,45 @@ export type Jbond = {
|
|
|
366
366
|
98,
|
|
367
367
|
111,
|
|
368
368
|
110,
|
|
369
|
-
100
|
|
369
|
+
100,
|
|
370
370
|
]
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
}
|
|
373
|
+
kind: 'account'
|
|
374
|
+
path: 'validator_bond_account.vote_account'
|
|
375
|
+
account: 'validatorBondAccount'
|
|
376
|
+
},
|
|
377
377
|
]
|
|
378
378
|
}
|
|
379
379
|
},
|
|
380
380
|
{
|
|
381
|
-
|
|
382
|
-
|
|
381
|
+
name: 'reserve'
|
|
382
|
+
writable: true
|
|
383
383
|
},
|
|
384
384
|
{
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
]
|
|
389
|
-
|
|
385
|
+
name: 'authority'
|
|
386
|
+
docs: [
|
|
387
|
+
'Authority that can trigger claims',
|
|
388
|
+
]
|
|
389
|
+
signer: true
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
}
|
|
395
|
-
]
|
|
396
|
-
|
|
392
|
+
name: 'systemProgram'
|
|
393
|
+
address: '11111111111111111111111111111111'
|
|
394
|
+
},
|
|
395
|
+
]
|
|
396
|
+
args: [
|
|
397
397
|
{
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
398
|
+
name: 'amount'
|
|
399
|
+
type: 'u64'
|
|
400
|
+
},
|
|
401
401
|
]
|
|
402
|
-
}
|
|
403
|
-
]
|
|
404
|
-
|
|
402
|
+
},
|
|
403
|
+
]
|
|
404
|
+
accounts: [
|
|
405
405
|
{
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
name: 'globalState'
|
|
407
|
+
discriminator: [
|
|
408
408
|
163,
|
|
409
409
|
46,
|
|
410
410
|
74,
|
|
@@ -412,12 +412,12 @@ export type Jbond = {
|
|
|
412
412
|
216,
|
|
413
413
|
123,
|
|
414
414
|
133,
|
|
415
|
-
98
|
|
415
|
+
98,
|
|
416
416
|
]
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
|
-
|
|
420
|
-
|
|
419
|
+
name: 'validatorBondAccount'
|
|
420
|
+
discriminator: [
|
|
421
421
|
25,
|
|
422
422
|
67,
|
|
423
423
|
241,
|
|
@@ -425,14 +425,14 @@ export type Jbond = {
|
|
|
425
425
|
226,
|
|
426
426
|
104,
|
|
427
427
|
108,
|
|
428
|
-
73
|
|
428
|
+
73,
|
|
429
429
|
]
|
|
430
|
-
}
|
|
431
|
-
]
|
|
432
|
-
|
|
430
|
+
},
|
|
431
|
+
]
|
|
432
|
+
events: [
|
|
433
433
|
{
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
name: 'collateralToppedUp'
|
|
435
|
+
discriminator: [
|
|
436
436
|
189,
|
|
437
437
|
137,
|
|
438
438
|
204,
|
|
@@ -440,12 +440,12 @@ export type Jbond = {
|
|
|
440
440
|
135,
|
|
441
441
|
182,
|
|
442
442
|
19,
|
|
443
|
-
176
|
|
443
|
+
176,
|
|
444
444
|
]
|
|
445
445
|
},
|
|
446
446
|
{
|
|
447
|
-
|
|
448
|
-
|
|
447
|
+
name: 'collateralWithdrawn'
|
|
448
|
+
discriminator: [
|
|
449
449
|
51,
|
|
450
450
|
224,
|
|
451
451
|
133,
|
|
@@ -453,12 +453,12 @@ export type Jbond = {
|
|
|
453
453
|
74,
|
|
454
454
|
173,
|
|
455
455
|
72,
|
|
456
|
-
82
|
|
456
|
+
82,
|
|
457
457
|
]
|
|
458
458
|
},
|
|
459
459
|
{
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
name: 'compensationClaimed'
|
|
461
|
+
discriminator: [
|
|
462
462
|
36,
|
|
463
463
|
159,
|
|
464
464
|
41,
|
|
@@ -466,12 +466,12 @@ export type Jbond = {
|
|
|
466
466
|
104,
|
|
467
467
|
135,
|
|
468
468
|
220,
|
|
469
|
-
32
|
|
469
|
+
32,
|
|
470
470
|
]
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
|
|
474
|
-
|
|
473
|
+
name: 'validatorRegistered'
|
|
474
|
+
discriminator: [
|
|
475
475
|
20,
|
|
476
476
|
20,
|
|
477
477
|
190,
|
|
@@ -479,235 +479,235 @@ export type Jbond = {
|
|
|
479
479
|
53,
|
|
480
480
|
174,
|
|
481
481
|
95,
|
|
482
|
-
72
|
|
482
|
+
72,
|
|
483
483
|
]
|
|
484
|
-
}
|
|
485
|
-
]
|
|
486
|
-
|
|
484
|
+
},
|
|
485
|
+
]
|
|
486
|
+
errors: [
|
|
487
487
|
{
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
488
|
+
code: 6000
|
|
489
|
+
name: 'invalidVoteAccount'
|
|
490
|
+
msg: 'Invalid vote account'
|
|
491
491
|
},
|
|
492
492
|
{
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
493
|
+
code: 6001
|
|
494
|
+
name: 'identityMismatch'
|
|
495
|
+
msg: 'Identity does not match vote account'
|
|
496
496
|
},
|
|
497
497
|
{
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
498
|
+
code: 6002
|
|
499
|
+
name: 'insufficientCollateral'
|
|
500
|
+
msg: 'Insufficient collateral amount'
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
503
|
+
code: 6003
|
|
504
|
+
name: 'targetAprTooLow'
|
|
505
|
+
msg: 'Target APR is below minimum threshold'
|
|
506
506
|
},
|
|
507
507
|
{
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
508
|
+
code: 6004
|
|
509
|
+
name: 'mathOverflow'
|
|
510
|
+
msg: 'Math overflow'
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
513
|
+
code: 6005
|
|
514
|
+
name: 'invalidAmount'
|
|
515
|
+
msg: 'Invalid amount'
|
|
516
516
|
},
|
|
517
517
|
{
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
518
|
+
code: 6006
|
|
519
|
+
name: 'validatorNotActive'
|
|
520
|
+
msg: 'Validator boost account is not active'
|
|
521
521
|
},
|
|
522
522
|
{
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
code: 6007
|
|
524
|
+
name: 'validatorAlreadyRegistered'
|
|
525
|
+
msg: 'Validator already registered'
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
}
|
|
532
|
-
]
|
|
533
|
-
|
|
528
|
+
code: 6008
|
|
529
|
+
name: 'unauthorized'
|
|
530
|
+
msg: 'unauthorized'
|
|
531
|
+
},
|
|
532
|
+
]
|
|
533
|
+
types: [
|
|
534
534
|
{
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
535
|
+
name: 'collateralToppedUp'
|
|
536
|
+
type: {
|
|
537
|
+
kind: 'struct'
|
|
538
|
+
fields: [
|
|
539
539
|
{
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
name: 'validator'
|
|
541
|
+
type: 'pubkey'
|
|
542
542
|
},
|
|
543
543
|
{
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
name: 'amount'
|
|
545
|
+
type: 'u64'
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
name: 'newTotal'
|
|
549
|
+
type: 'u64'
|
|
550
550
|
},
|
|
551
551
|
{
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
}
|
|
552
|
+
name: 'timestamp'
|
|
553
|
+
type: 'i64'
|
|
554
|
+
},
|
|
555
555
|
]
|
|
556
556
|
}
|
|
557
557
|
},
|
|
558
558
|
{
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
559
|
+
name: 'collateralWithdrawn'
|
|
560
|
+
type: {
|
|
561
|
+
kind: 'struct'
|
|
562
|
+
fields: [
|
|
563
563
|
{
|
|
564
|
-
|
|
565
|
-
|
|
564
|
+
name: 'validator'
|
|
565
|
+
type: 'pubkey'
|
|
566
566
|
},
|
|
567
567
|
{
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
name: 'amount'
|
|
569
|
+
type: 'u64'
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
name: 'remainingCollateral'
|
|
573
|
+
type: 'u64'
|
|
574
574
|
},
|
|
575
575
|
{
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
}
|
|
576
|
+
name: 'timestamp'
|
|
577
|
+
type: 'i64'
|
|
578
|
+
},
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
{
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
583
|
+
name: 'compensationClaimed'
|
|
584
|
+
type: {
|
|
585
|
+
kind: 'struct'
|
|
586
|
+
fields: [
|
|
587
587
|
{
|
|
588
|
-
|
|
589
|
-
|
|
588
|
+
name: 'validator'
|
|
589
|
+
type: 'pubkey'
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
name: 'amount'
|
|
593
|
+
type: 'u64'
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
|
-
|
|
597
|
-
|
|
596
|
+
name: 'remainingCollateral'
|
|
597
|
+
type: 'u64'
|
|
598
598
|
},
|
|
599
599
|
{
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
name: 'totalWithdrawn'
|
|
601
|
+
type: 'u64'
|
|
602
602
|
},
|
|
603
603
|
{
|
|
604
|
-
|
|
605
|
-
|
|
604
|
+
name: 'epoch'
|
|
605
|
+
type: 'u64'
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}
|
|
608
|
+
name: 'timestamp'
|
|
609
|
+
type: 'i64'
|
|
610
|
+
},
|
|
611
611
|
]
|
|
612
612
|
}
|
|
613
613
|
},
|
|
614
614
|
{
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
615
|
+
name: 'globalState'
|
|
616
|
+
type: {
|
|
617
|
+
kind: 'struct'
|
|
618
|
+
fields: [
|
|
619
619
|
{
|
|
620
|
-
|
|
621
|
-
|
|
620
|
+
name: 'authority'
|
|
621
|
+
type: 'pubkey'
|
|
622
622
|
},
|
|
623
623
|
{
|
|
624
|
-
|
|
625
|
-
|
|
624
|
+
name: 'reserve'
|
|
625
|
+
type: 'pubkey'
|
|
626
626
|
},
|
|
627
627
|
{
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
name: 'totalValidators'
|
|
629
|
+
type: 'u32'
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
|
-
|
|
633
|
-
|
|
632
|
+
name: 'totalWithdrawn'
|
|
633
|
+
type: 'u64'
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}
|
|
636
|
+
name: 'bump'
|
|
637
|
+
type: 'u8'
|
|
638
|
+
},
|
|
639
639
|
]
|
|
640
640
|
}
|
|
641
641
|
},
|
|
642
642
|
{
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
643
|
+
name: 'validatorBondAccount'
|
|
644
|
+
type: {
|
|
645
|
+
kind: 'struct'
|
|
646
|
+
fields: [
|
|
647
647
|
{
|
|
648
|
-
|
|
649
|
-
|
|
648
|
+
name: 'identity'
|
|
649
|
+
type: 'pubkey'
|
|
650
650
|
},
|
|
651
651
|
{
|
|
652
|
-
|
|
653
|
-
|
|
652
|
+
name: 'voteAccount'
|
|
653
|
+
type: 'pubkey'
|
|
654
654
|
},
|
|
655
655
|
{
|
|
656
|
-
|
|
657
|
-
|
|
656
|
+
name: 'creator'
|
|
657
|
+
type: 'pubkey'
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
name: 'withdrawalAuthority'
|
|
661
|
+
type: {
|
|
662
|
+
option: 'pubkey'
|
|
663
663
|
}
|
|
664
664
|
},
|
|
665
665
|
{
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
name: 'totalWithdrawn'
|
|
667
|
+
type: 'u64'
|
|
668
668
|
},
|
|
669
669
|
{
|
|
670
|
-
|
|
671
|
-
|
|
670
|
+
name: 'lastWithdrawalEpoch'
|
|
671
|
+
type: 'u64'
|
|
672
672
|
},
|
|
673
673
|
{
|
|
674
|
-
|
|
675
|
-
|
|
674
|
+
name: 'isActive'
|
|
675
|
+
type: 'bool'
|
|
676
676
|
},
|
|
677
677
|
{
|
|
678
|
-
|
|
679
|
-
|
|
678
|
+
name: 'createdAt'
|
|
679
|
+
type: 'i64'
|
|
680
680
|
},
|
|
681
681
|
{
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
}
|
|
682
|
+
name: 'bump'
|
|
683
|
+
type: 'u8'
|
|
684
|
+
},
|
|
685
685
|
]
|
|
686
686
|
}
|
|
687
687
|
},
|
|
688
688
|
{
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
689
|
+
name: 'validatorRegistered'
|
|
690
|
+
type: {
|
|
691
|
+
kind: 'struct'
|
|
692
|
+
fields: [
|
|
693
693
|
{
|
|
694
|
-
|
|
695
|
-
|
|
694
|
+
name: 'validator'
|
|
695
|
+
type: 'pubkey'
|
|
696
696
|
},
|
|
697
697
|
{
|
|
698
|
-
|
|
699
|
-
|
|
698
|
+
name: 'voteAccount'
|
|
699
|
+
type: 'pubkey'
|
|
700
700
|
},
|
|
701
701
|
{
|
|
702
|
-
|
|
703
|
-
|
|
702
|
+
name: 'collateralAmount'
|
|
703
|
+
type: 'u64'
|
|
704
704
|
},
|
|
705
705
|
{
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
}
|
|
706
|
+
name: 'timestamp'
|
|
707
|
+
type: 'i64'
|
|
708
|
+
},
|
|
709
709
|
]
|
|
710
710
|
}
|
|
711
|
-
}
|
|
711
|
+
},
|
|
712
712
|
]
|
|
713
|
-
}
|
|
713
|
+
}
|