@wireio/stake 0.7.2 → 0.9.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.
- package/lib/stake.browser.js +391 -796
- package/lib/stake.browser.js.map +1 -1
- package/lib/stake.d.ts +132 -542
- package/lib/stake.js +391 -798
- package/lib/stake.js.map +1 -1
- package/lib/stake.m.js +391 -796
- package/lib/stake.m.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/solana/idl/liqsol_core.json +114 -377
- package/src/assets/solana/idl/validator_leaderboard.json +0 -146
- package/src/assets/solana/types/liqsol_core.ts +114 -377
- package/src/assets/solana/types/validator_leaderboard.ts +0 -146
- package/src/networks/ethereum/clients/opp.client.ts +20 -21
- package/src/networks/ethereum/clients/receipt.client.ts +8 -1
- package/src/networks/ethereum/contract.ts +40 -5
- package/src/networks/ethereum/ethereum.ts +148 -139
- package/src/networks/ethereum/types.ts +1 -2
- package/src/networks/solana/constants.ts +1 -1
- package/src/networks/solana/solana.ts +268 -220
- package/src/staker.ts +2 -2
package/lib/stake.d.ts
CHANGED
|
@@ -261,7 +261,7 @@ declare class Staker {
|
|
|
261
261
|
setChain(chainID: ChainID): boolean;
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
declare const CONTRACT_NAMES: readonly ["LiqEthAuthority", "BeaconState", "WithdrawalQueue", "LiqEthToken", "Accounting", "DepositManager", "WithdrawalVault", "StakingModule", "YieldOracle", "OutpostManagerAuthority", "iodata", "Base58", "sysio_merkle", "ReceiptNFT", "
|
|
264
|
+
declare const CONTRACT_NAMES: readonly ["LiqEthAuthority", "BeaconState", "WithdrawalQueue", "LiqEthToken", "Accounting", "DepositManager", "WithdrawalVault", "StakingModule", "YieldOracle", "OutpostManagerAuthority", "iodata", "Base58", "sysio_merkle", "ReceiptNFT", "Pool", "OutpostManager", "sysio_write", "EthUsdPriceConsumer", "BAR", "OPPCommon", "OPP", "Pretoken", "OPPInbound", "Depositor", "MockAggregator"];
|
|
265
265
|
type ContractName = typeof CONTRACT_NAMES[number];
|
|
266
266
|
type AddressBook = Record<ContractName, string>;
|
|
267
267
|
interface Result {
|
|
@@ -372,7 +372,6 @@ declare class EthereumStakingClient implements IStakingClient {
|
|
|
372
372
|
Base58: ethers.Contract;
|
|
373
373
|
sysio_merkle: ethers.Contract;
|
|
374
374
|
ReceiptNFT: ethers.Contract;
|
|
375
|
-
MockAggregator: ethers.Contract;
|
|
376
375
|
Pool: ethers.Contract;
|
|
377
376
|
OutpostManager: ethers.Contract;
|
|
378
377
|
sysio_write: ethers.Contract;
|
|
@@ -383,6 +382,7 @@ declare class EthereumStakingClient implements IStakingClient {
|
|
|
383
382
|
Pretoken: ethers.Contract;
|
|
384
383
|
OPPInbound: ethers.Contract;
|
|
385
384
|
Depositor: ethers.Contract;
|
|
385
|
+
MockAggregator: ethers.Contract;
|
|
386
386
|
};
|
|
387
387
|
get network(): _wireio_core.ExternalNetwork;
|
|
388
388
|
constructor(config: StakerConfig);
|
|
@@ -462,7 +462,6 @@ declare class EthereumStakingClient implements IStakingClient {
|
|
|
462
462
|
minBufferWei?: bigint;
|
|
463
463
|
balanceOverrideLamports?: bigint;
|
|
464
464
|
}): Promise<bigint>;
|
|
465
|
-
private updateMockAggregatorPrice;
|
|
466
465
|
}
|
|
467
466
|
|
|
468
467
|
/**
|
|
@@ -1404,68 +1403,6 @@ type LiqsolCore = {
|
|
|
1404
1403
|
"description": "Created with Anchor";
|
|
1405
1404
|
};
|
|
1406
1405
|
"instructions": [
|
|
1407
|
-
{
|
|
1408
|
-
"name": "accumulateUnstakeRequest";
|
|
1409
|
-
"docs": [
|
|
1410
|
-
"Accumulate unstake requests to be processed in next allocation cycle",
|
|
1411
|
-
"Multiple requests can be accumulated before calculating allocations",
|
|
1412
|
-
"Returns the target epoch when this unstake request will be processed",
|
|
1413
|
-
"We should not be able to call this without development feature enabled",
|
|
1414
|
-
""
|
|
1415
|
-
];
|
|
1416
|
-
"discriminator": [
|
|
1417
|
-
24,
|
|
1418
|
-
73,
|
|
1419
|
-
69,
|
|
1420
|
-
139,
|
|
1421
|
-
36,
|
|
1422
|
-
209,
|
|
1423
|
-
105,
|
|
1424
|
-
252
|
|
1425
|
-
];
|
|
1426
|
-
"accounts": [
|
|
1427
|
-
{
|
|
1428
|
-
"name": "admin";
|
|
1429
|
-
"writable": true;
|
|
1430
|
-
"signer": true;
|
|
1431
|
-
},
|
|
1432
|
-
{
|
|
1433
|
-
"name": "stakeAllocationState";
|
|
1434
|
-
"docs": [
|
|
1435
|
-
"Stake allocation state - to accumulate pending unstake requests"
|
|
1436
|
-
];
|
|
1437
|
-
"writable": true;
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
"name": "stakeMetrics";
|
|
1441
|
-
"docs": [
|
|
1442
|
-
"Stake metrics - to validate total unstake amount is available"
|
|
1443
|
-
];
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
"name": "maintenanceLedger";
|
|
1447
|
-
"docs": [
|
|
1448
|
-
"Maintenance ledger - to determine target processing epoch"
|
|
1449
|
-
];
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"name": "globalConfig";
|
|
1453
|
-
"docs": [
|
|
1454
|
-
"Global config for min_unstake_request setting"
|
|
1455
|
-
];
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
"name": "clock";
|
|
1459
|
-
}
|
|
1460
|
-
];
|
|
1461
|
-
"args": [
|
|
1462
|
-
{
|
|
1463
|
-
"name": "amount";
|
|
1464
|
-
"type": "u64";
|
|
1465
|
-
}
|
|
1466
|
-
];
|
|
1467
|
-
"returns": "u64";
|
|
1468
|
-
},
|
|
1469
1406
|
{
|
|
1470
1407
|
"name": "addTopPerformersBatch";
|
|
1471
1408
|
"docs": [
|
|
@@ -1518,74 +1455,6 @@ type LiqsolCore = {
|
|
|
1518
1455
|
];
|
|
1519
1456
|
"args": [];
|
|
1520
1457
|
},
|
|
1521
|
-
{
|
|
1522
|
-
"name": "addValidatorV2";
|
|
1523
|
-
"docs": [
|
|
1524
|
-
"Add a new validator bbypassing the looking at leaderboard and getting validators form there"
|
|
1525
|
-
];
|
|
1526
|
-
"discriminator": [
|
|
1527
|
-
217,
|
|
1528
|
-
158,
|
|
1529
|
-
30,
|
|
1530
|
-
19,
|
|
1531
|
-
123,
|
|
1532
|
-
99,
|
|
1533
|
-
110,
|
|
1534
|
-
30
|
|
1535
|
-
];
|
|
1536
|
-
"accounts": [
|
|
1537
|
-
{
|
|
1538
|
-
"name": "authority";
|
|
1539
|
-
"writable": true;
|
|
1540
|
-
"signer": true;
|
|
1541
|
-
},
|
|
1542
|
-
{
|
|
1543
|
-
"name": "activeList";
|
|
1544
|
-
"docs": [
|
|
1545
|
-
"Active list - will add the validator here"
|
|
1546
|
-
];
|
|
1547
|
-
"writable": true;
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
"name": "validatorInfo";
|
|
1551
|
-
"docs": [
|
|
1552
|
-
"Create the validator info account"
|
|
1553
|
-
];
|
|
1554
|
-
"writable": true;
|
|
1555
|
-
},
|
|
1556
|
-
{
|
|
1557
|
-
"name": "validatorTransient";
|
|
1558
|
-
"docs": [
|
|
1559
|
-
"Create the validator transient account"
|
|
1560
|
-
];
|
|
1561
|
-
"writable": true;
|
|
1562
|
-
},
|
|
1563
|
-
{
|
|
1564
|
-
"name": "stakeAllocationState";
|
|
1565
|
-
"docs": [
|
|
1566
|
-
"Stake allocation state - to update total_active_vpp when adding validator"
|
|
1567
|
-
];
|
|
1568
|
-
"writable": true;
|
|
1569
|
-
},
|
|
1570
|
-
{
|
|
1571
|
-
"name": "systemProgram";
|
|
1572
|
-
}
|
|
1573
|
-
];
|
|
1574
|
-
"args": [
|
|
1575
|
-
{
|
|
1576
|
-
"name": "voteAccount";
|
|
1577
|
-
"type": "pubkey";
|
|
1578
|
-
},
|
|
1579
|
-
{
|
|
1580
|
-
"name": "name";
|
|
1581
|
-
"type": "string";
|
|
1582
|
-
},
|
|
1583
|
-
{
|
|
1584
|
-
"name": "performanceScore";
|
|
1585
|
-
"type": "u8";
|
|
1586
|
-
}
|
|
1587
|
-
];
|
|
1588
|
-
},
|
|
1589
1458
|
{
|
|
1590
1459
|
"name": "aggregateStakeMetrics";
|
|
1591
1460
|
"docs": [
|
|
@@ -1624,43 +1493,6 @@ type LiqsolCore = {
|
|
|
1624
1493
|
];
|
|
1625
1494
|
"args": [];
|
|
1626
1495
|
},
|
|
1627
|
-
{
|
|
1628
|
-
"name": "blacklistValidator";
|
|
1629
|
-
"docs": [
|
|
1630
|
-
"Blacklist a validator (user-facing, maintenance will handle graveyard movement)",
|
|
1631
|
-
"UnderPerforming is set automatically when score is updated",
|
|
1632
|
-
"Another serious emergency stop function"
|
|
1633
|
-
];
|
|
1634
|
-
"discriminator": [
|
|
1635
|
-
125,
|
|
1636
|
-
42,
|
|
1637
|
-
36,
|
|
1638
|
-
229,
|
|
1639
|
-
27,
|
|
1640
|
-
38,
|
|
1641
|
-
226,
|
|
1642
|
-
62
|
|
1643
|
-
];
|
|
1644
|
-
"accounts": [
|
|
1645
|
-
{
|
|
1646
|
-
"name": "validatorInfo";
|
|
1647
|
-
"writable": true;
|
|
1648
|
-
},
|
|
1649
|
-
{
|
|
1650
|
-
"name": "stakeAllocationState";
|
|
1651
|
-
"docs": [
|
|
1652
|
-
"Stake allocation state - to update total_active_vpp when VPP changes"
|
|
1653
|
-
];
|
|
1654
|
-
"writable": true;
|
|
1655
|
-
}
|
|
1656
|
-
];
|
|
1657
|
-
"args": [
|
|
1658
|
-
{
|
|
1659
|
-
"name": "voteAccount";
|
|
1660
|
-
"type": "pubkey";
|
|
1661
|
-
}
|
|
1662
|
-
];
|
|
1663
|
-
},
|
|
1664
1496
|
{
|
|
1665
1497
|
"name": "bondRole";
|
|
1666
1498
|
"discriminator": [
|
|
@@ -4214,143 +4046,6 @@ type LiqsolCore = {
|
|
|
4214
4046
|
}
|
|
4215
4047
|
];
|
|
4216
4048
|
},
|
|
4217
|
-
{
|
|
4218
|
-
"name": "resetDistributionState";
|
|
4219
|
-
"discriminator": [
|
|
4220
|
-
159,
|
|
4221
|
-
183,
|
|
4222
|
-
162,
|
|
4223
|
-
74,
|
|
4224
|
-
228,
|
|
4225
|
-
135,
|
|
4226
|
-
157,
|
|
4227
|
-
79
|
|
4228
|
-
];
|
|
4229
|
-
"accounts": [
|
|
4230
|
-
{
|
|
4231
|
-
"name": "admin";
|
|
4232
|
-
"signer": true;
|
|
4233
|
-
},
|
|
4234
|
-
{
|
|
4235
|
-
"name": "distributionState";
|
|
4236
|
-
"writable": true;
|
|
4237
|
-
}
|
|
4238
|
-
];
|
|
4239
|
-
"args": [];
|
|
4240
|
-
},
|
|
4241
|
-
{
|
|
4242
|
-
"name": "resetGlobalState";
|
|
4243
|
-
"discriminator": [
|
|
4244
|
-
252,
|
|
4245
|
-
41,
|
|
4246
|
-
117,
|
|
4247
|
-
110,
|
|
4248
|
-
248,
|
|
4249
|
-
165,
|
|
4250
|
-
48,
|
|
4251
|
-
88
|
|
4252
|
-
];
|
|
4253
|
-
"accounts": [
|
|
4254
|
-
{
|
|
4255
|
-
"name": "admin";
|
|
4256
|
-
"signer": true;
|
|
4257
|
-
},
|
|
4258
|
-
{
|
|
4259
|
-
"name": "globalConfig";
|
|
4260
|
-
},
|
|
4261
|
-
{
|
|
4262
|
-
"name": "globalState";
|
|
4263
|
-
"writable": true;
|
|
4264
|
-
},
|
|
4265
|
-
{
|
|
4266
|
-
"name": "poolAuthority";
|
|
4267
|
-
},
|
|
4268
|
-
{
|
|
4269
|
-
"name": "liqsolMint";
|
|
4270
|
-
},
|
|
4271
|
-
{
|
|
4272
|
-
"name": "liqsolPoolAta";
|
|
4273
|
-
"writable": true;
|
|
4274
|
-
},
|
|
4275
|
-
{
|
|
4276
|
-
"name": "tokenProgram";
|
|
4277
|
-
},
|
|
4278
|
-
{
|
|
4279
|
-
"name": "associatedTokenProgram";
|
|
4280
|
-
}
|
|
4281
|
-
];
|
|
4282
|
-
"args": [];
|
|
4283
|
-
},
|
|
4284
|
-
{
|
|
4285
|
-
"name": "resetPriceHistory";
|
|
4286
|
-
"discriminator": [
|
|
4287
|
-
213,
|
|
4288
|
-
231,
|
|
4289
|
-
155,
|
|
4290
|
-
139,
|
|
4291
|
-
248,
|
|
4292
|
-
60,
|
|
4293
|
-
67,
|
|
4294
|
-
199
|
|
4295
|
-
];
|
|
4296
|
-
"accounts": [
|
|
4297
|
-
{
|
|
4298
|
-
"name": "admin";
|
|
4299
|
-
"writable": true;
|
|
4300
|
-
"signer": true;
|
|
4301
|
-
},
|
|
4302
|
-
{
|
|
4303
|
-
"name": "globalConfig";
|
|
4304
|
-
},
|
|
4305
|
-
{
|
|
4306
|
-
"name": "trancheState";
|
|
4307
|
-
"writable": true;
|
|
4308
|
-
},
|
|
4309
|
-
{
|
|
4310
|
-
"name": "priceHistory";
|
|
4311
|
-
"writable": true;
|
|
4312
|
-
},
|
|
4313
|
-
{
|
|
4314
|
-
"name": "systemProgram";
|
|
4315
|
-
}
|
|
4316
|
-
];
|
|
4317
|
-
"args": [];
|
|
4318
|
-
},
|
|
4319
|
-
{
|
|
4320
|
-
"name": "resetTrancheState";
|
|
4321
|
-
"discriminator": [
|
|
4322
|
-
106,
|
|
4323
|
-
102,
|
|
4324
|
-
143,
|
|
4325
|
-
40,
|
|
4326
|
-
152,
|
|
4327
|
-
173,
|
|
4328
|
-
165,
|
|
4329
|
-
168
|
|
4330
|
-
];
|
|
4331
|
-
"accounts": [
|
|
4332
|
-
{
|
|
4333
|
-
"name": "admin";
|
|
4334
|
-
"writable": true;
|
|
4335
|
-
"signer": true;
|
|
4336
|
-
},
|
|
4337
|
-
{
|
|
4338
|
-
"name": "globalConfig";
|
|
4339
|
-
},
|
|
4340
|
-
{
|
|
4341
|
-
"name": "trancheState";
|
|
4342
|
-
"writable": true;
|
|
4343
|
-
},
|
|
4344
|
-
{
|
|
4345
|
-
"name": "priceHistory";
|
|
4346
|
-
"writable": true;
|
|
4347
|
-
},
|
|
4348
|
-
{
|
|
4349
|
-
"name": "systemProgram";
|
|
4350
|
-
}
|
|
4351
|
-
];
|
|
4352
|
-
"args": [];
|
|
4353
|
-
},
|
|
4354
4049
|
{
|
|
4355
4050
|
"name": "setAdmin";
|
|
4356
4051
|
"discriminator": [
|
|
@@ -4374,77 +4069,36 @@ type LiqsolCore = {
|
|
|
4374
4069
|
},
|
|
4375
4070
|
{
|
|
4376
4071
|
"name": "newAuthority";
|
|
4377
|
-
"signer": true;
|
|
4378
|
-
}
|
|
4379
|
-
];
|
|
4380
|
-
"args": [];
|
|
4381
|
-
},
|
|
4382
|
-
{
|
|
4383
|
-
"name": "setCranky";
|
|
4384
|
-
"discriminator": [
|
|
4385
|
-
232,
|
|
4386
|
-
48,
|
|
4387
|
-
178,
|
|
4388
|
-
74,
|
|
4389
|
-
194,
|
|
4390
|
-
60,
|
|
4391
|
-
143,
|
|
4392
|
-
164
|
|
4393
|
-
];
|
|
4394
|
-
"accounts": [
|
|
4395
|
-
{
|
|
4396
|
-
"name": "globalConfig";
|
|
4397
|
-
"writable": true;
|
|
4398
|
-
},
|
|
4399
|
-
{
|
|
4400
|
-
"name": "admin";
|
|
4401
|
-
"signer": true;
|
|
4402
|
-
},
|
|
4403
|
-
{
|
|
4404
|
-
"name": "newAuthority";
|
|
4405
|
-
"signer": true;
|
|
4406
4072
|
}
|
|
4407
4073
|
];
|
|
4408
|
-
"args": [];
|
|
4409
|
-
},
|
|
4410
|
-
{
|
|
4411
|
-
"name": "
|
|
4412
|
-
"
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
224,
|
|
4422
|
-
227,
|
|
4423
|
-
106
|
|
4074
|
+
"args": [];
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"name": "setCranky";
|
|
4078
|
+
"discriminator": [
|
|
4079
|
+
232,
|
|
4080
|
+
48,
|
|
4081
|
+
178,
|
|
4082
|
+
74,
|
|
4083
|
+
194,
|
|
4084
|
+
60,
|
|
4085
|
+
143,
|
|
4086
|
+
164
|
|
4424
4087
|
];
|
|
4425
4088
|
"accounts": [
|
|
4426
4089
|
{
|
|
4427
|
-
"name": "
|
|
4090
|
+
"name": "globalConfig";
|
|
4428
4091
|
"writable": true;
|
|
4429
4092
|
},
|
|
4430
4093
|
{
|
|
4431
|
-
"name": "
|
|
4432
|
-
"
|
|
4433
|
-
"Stake allocation state - to update total_active_vpp when VPP changes"
|
|
4434
|
-
];
|
|
4435
|
-
"writable": true;
|
|
4436
|
-
}
|
|
4437
|
-
];
|
|
4438
|
-
"args": [
|
|
4439
|
-
{
|
|
4440
|
-
"name": "voteAccount";
|
|
4441
|
-
"type": "pubkey";
|
|
4094
|
+
"name": "admin";
|
|
4095
|
+
"signer": true;
|
|
4442
4096
|
},
|
|
4443
4097
|
{
|
|
4444
|
-
"name": "
|
|
4445
|
-
"type": "u16";
|
|
4098
|
+
"name": "newAuthority";
|
|
4446
4099
|
}
|
|
4447
4100
|
];
|
|
4101
|
+
"args": [];
|
|
4448
4102
|
},
|
|
4449
4103
|
{
|
|
4450
4104
|
"name": "setPaused";
|
|
@@ -4929,34 +4583,6 @@ type LiqsolCore = {
|
|
|
4929
4583
|
}
|
|
4930
4584
|
];
|
|
4931
4585
|
},
|
|
4932
|
-
{
|
|
4933
|
-
"name": "testClearActiveList";
|
|
4934
|
-
"discriminator": [
|
|
4935
|
-
17,
|
|
4936
|
-
195,
|
|
4937
|
-
59,
|
|
4938
|
-
174,
|
|
4939
|
-
184,
|
|
4940
|
-
137,
|
|
4941
|
-
149,
|
|
4942
|
-
144
|
|
4943
|
-
];
|
|
4944
|
-
"accounts": [
|
|
4945
|
-
{
|
|
4946
|
-
"name": "activeList";
|
|
4947
|
-
"writable": true;
|
|
4948
|
-
},
|
|
4949
|
-
{
|
|
4950
|
-
"name": "processingState";
|
|
4951
|
-
"writable": true;
|
|
4952
|
-
},
|
|
4953
|
-
{
|
|
4954
|
-
"name": "authority";
|
|
4955
|
-
"signer": true;
|
|
4956
|
-
}
|
|
4957
|
-
];
|
|
4958
|
-
"args": [];
|
|
4959
|
-
},
|
|
4960
4586
|
{
|
|
4961
4587
|
"name": "updateConfigBool";
|
|
4962
4588
|
"discriminator": [
|
|
@@ -5634,8 +5260,118 @@ type LiqsolCore = {
|
|
|
5634
5260
|
"errors": [
|
|
5635
5261
|
{
|
|
5636
5262
|
"code": 6000;
|
|
5637
|
-
"name": "
|
|
5638
|
-
"msg": "
|
|
5263
|
+
"name": "destinationAccountDoesNotExist";
|
|
5264
|
+
"msg": "Destination stake account does not exist";
|
|
5265
|
+
},
|
|
5266
|
+
{
|
|
5267
|
+
"code": 6001;
|
|
5268
|
+
"name": "sourceAccountDoesNotExist";
|
|
5269
|
+
"msg": "Source stake account does not exist";
|
|
5270
|
+
},
|
|
5271
|
+
{
|
|
5272
|
+
"code": 6002;
|
|
5273
|
+
"name": "invalidDestinationOwner";
|
|
5274
|
+
"msg": "Destination account not owned by stake program";
|
|
5275
|
+
},
|
|
5276
|
+
{
|
|
5277
|
+
"code": 6003;
|
|
5278
|
+
"name": "invalidSourceOwner";
|
|
5279
|
+
"msg": "Source account not owned by stake program";
|
|
5280
|
+
},
|
|
5281
|
+
{
|
|
5282
|
+
"code": 6004;
|
|
5283
|
+
"name": "clockBorrowFailed";
|
|
5284
|
+
"msg": "Failed to borrow clock data";
|
|
5285
|
+
},
|
|
5286
|
+
{
|
|
5287
|
+
"code": 6005;
|
|
5288
|
+
"name": "clockDeserializeFailed";
|
|
5289
|
+
"msg": "Failed to deserialize clock";
|
|
5290
|
+
},
|
|
5291
|
+
{
|
|
5292
|
+
"code": 6006;
|
|
5293
|
+
"name": "destinationAnalysisFailed";
|
|
5294
|
+
"msg": "Failed to analyze destination stake account";
|
|
5295
|
+
},
|
|
5296
|
+
{
|
|
5297
|
+
"code": 6007;
|
|
5298
|
+
"name": "sourceAnalysisFailed";
|
|
5299
|
+
"msg": "Failed to analyze source stake account";
|
|
5300
|
+
},
|
|
5301
|
+
{
|
|
5302
|
+
"code": 6008;
|
|
5303
|
+
"name": "destinationStillActivating";
|
|
5304
|
+
"msg": "Destination stake is still activating";
|
|
5305
|
+
},
|
|
5306
|
+
{
|
|
5307
|
+
"code": 6009;
|
|
5308
|
+
"name": "destinationDeactivating";
|
|
5309
|
+
"msg": "Destination stake is deactivating";
|
|
5310
|
+
},
|
|
5311
|
+
{
|
|
5312
|
+
"code": 6010;
|
|
5313
|
+
"name": "sourceStillActivating";
|
|
5314
|
+
"msg": "Source stake is still activating";
|
|
5315
|
+
},
|
|
5316
|
+
{
|
|
5317
|
+
"code": 6011;
|
|
5318
|
+
"name": "sourceDeactivating";
|
|
5319
|
+
"msg": "Source stake is deactivating";
|
|
5320
|
+
},
|
|
5321
|
+
{
|
|
5322
|
+
"code": 6012;
|
|
5323
|
+
"name": "destinationBorrowFailed";
|
|
5324
|
+
"msg": "Failed to borrow destination account data";
|
|
5325
|
+
},
|
|
5326
|
+
{
|
|
5327
|
+
"code": 6013;
|
|
5328
|
+
"name": "destinationParseFailed";
|
|
5329
|
+
"msg": "Failed to parse destination stake state";
|
|
5330
|
+
},
|
|
5331
|
+
{
|
|
5332
|
+
"code": 6014;
|
|
5333
|
+
"name": "sourceBorrowFailed";
|
|
5334
|
+
"msg": "Failed to borrow source account data";
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
"code": 6015;
|
|
5338
|
+
"name": "sourceParseFailed";
|
|
5339
|
+
"msg": "Failed to parse source stake state";
|
|
5340
|
+
},
|
|
5341
|
+
{
|
|
5342
|
+
"code": 6016;
|
|
5343
|
+
"name": "differentValidators";
|
|
5344
|
+
"msg": "Stakes are delegated to different validators";
|
|
5345
|
+
},
|
|
5346
|
+
{
|
|
5347
|
+
"code": 6017;
|
|
5348
|
+
"name": "differentStakers";
|
|
5349
|
+
"msg": "Stakes have different staker authorities";
|
|
5350
|
+
},
|
|
5351
|
+
{
|
|
5352
|
+
"code": 6018;
|
|
5353
|
+
"name": "differentWithdrawers";
|
|
5354
|
+
"msg": "Stakes have different withdrawer authorities";
|
|
5355
|
+
},
|
|
5356
|
+
{
|
|
5357
|
+
"code": 6019;
|
|
5358
|
+
"name": "authoritiesNotFound";
|
|
5359
|
+
"msg": "Could not extract authorities from accounts";
|
|
5360
|
+
},
|
|
5361
|
+
{
|
|
5362
|
+
"code": 6020;
|
|
5363
|
+
"name": "mergeInstructionFailed";
|
|
5364
|
+
"msg": "Merge instruction failed";
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"code": 6021;
|
|
5368
|
+
"name": "epochRewardsActive";
|
|
5369
|
+
"msg": "Epoch rewards distribution is active - stake operations blocked";
|
|
5370
|
+
},
|
|
5371
|
+
{
|
|
5372
|
+
"code": 6022;
|
|
5373
|
+
"name": "differentCreditsObserved";
|
|
5374
|
+
"msg": "Stakes have different credits_observed - cannot merge until both earn same rewards";
|
|
5639
5375
|
}
|
|
5640
5376
|
];
|
|
5641
5377
|
"types": [
|
|
@@ -8362,152 +8098,6 @@ type ValidatorLeaderboard = {
|
|
|
8362
8098
|
];
|
|
8363
8099
|
"args": [];
|
|
8364
8100
|
},
|
|
8365
|
-
{
|
|
8366
|
-
"name": "testClearLeaderboard";
|
|
8367
|
-
"discriminator": [
|
|
8368
|
-
118,
|
|
8369
|
-
207,
|
|
8370
|
-
26,
|
|
8371
|
-
205,
|
|
8372
|
-
180,
|
|
8373
|
-
7,
|
|
8374
|
-
75,
|
|
8375
|
-
244
|
|
8376
|
-
];
|
|
8377
|
-
"accounts": [
|
|
8378
|
-
{
|
|
8379
|
-
"name": "leaderboardState";
|
|
8380
|
-
"writable": true;
|
|
8381
|
-
},
|
|
8382
|
-
{
|
|
8383
|
-
"name": "authority";
|
|
8384
|
-
"signer": true;
|
|
8385
|
-
}
|
|
8386
|
-
];
|
|
8387
|
-
"args": [];
|
|
8388
|
-
},
|
|
8389
|
-
{
|
|
8390
|
-
"name": "testForceRegisterValidator";
|
|
8391
|
-
"discriminator": [
|
|
8392
|
-
136,
|
|
8393
|
-
156,
|
|
8394
|
-
132,
|
|
8395
|
-
32,
|
|
8396
|
-
96,
|
|
8397
|
-
240,
|
|
8398
|
-
7,
|
|
8399
|
-
115
|
|
8400
|
-
];
|
|
8401
|
-
"accounts": [
|
|
8402
|
-
{
|
|
8403
|
-
"name": "registrant";
|
|
8404
|
-
"writable": true;
|
|
8405
|
-
"signer": true;
|
|
8406
|
-
},
|
|
8407
|
-
{
|
|
8408
|
-
"name": "voteAccount";
|
|
8409
|
-
},
|
|
8410
|
-
{
|
|
8411
|
-
"name": "validatorRecord";
|
|
8412
|
-
"writable": true;
|
|
8413
|
-
},
|
|
8414
|
-
{
|
|
8415
|
-
"name": "leaderboardState";
|
|
8416
|
-
"writable": true;
|
|
8417
|
-
},
|
|
8418
|
-
{
|
|
8419
|
-
"name": "systemProgram";
|
|
8420
|
-
},
|
|
8421
|
-
{
|
|
8422
|
-
"name": "clock";
|
|
8423
|
-
}
|
|
8424
|
-
];
|
|
8425
|
-
"args": [
|
|
8426
|
-
{
|
|
8427
|
-
"name": "vpp";
|
|
8428
|
-
"type": "u8";
|
|
8429
|
-
}
|
|
8430
|
-
];
|
|
8431
|
-
},
|
|
8432
|
-
{
|
|
8433
|
-
"name": "testForceUpdateVpp";
|
|
8434
|
-
"discriminator": [
|
|
8435
|
-
67,
|
|
8436
|
-
51,
|
|
8437
|
-
28,
|
|
8438
|
-
174,
|
|
8439
|
-
200,
|
|
8440
|
-
214,
|
|
8441
|
-
203,
|
|
8442
|
-
162
|
|
8443
|
-
];
|
|
8444
|
-
"accounts": [
|
|
8445
|
-
{
|
|
8446
|
-
"name": "registrant";
|
|
8447
|
-
"writable": true;
|
|
8448
|
-
"signer": true;
|
|
8449
|
-
},
|
|
8450
|
-
{
|
|
8451
|
-
"name": "voteAccount";
|
|
8452
|
-
},
|
|
8453
|
-
{
|
|
8454
|
-
"name": "validatorRecord";
|
|
8455
|
-
"writable": true;
|
|
8456
|
-
},
|
|
8457
|
-
{
|
|
8458
|
-
"name": "leaderboardState";
|
|
8459
|
-
"writable": true;
|
|
8460
|
-
}
|
|
8461
|
-
];
|
|
8462
|
-
"args": [
|
|
8463
|
-
{
|
|
8464
|
-
"name": "vpp";
|
|
8465
|
-
"type": "u8";
|
|
8466
|
-
}
|
|
8467
|
-
];
|
|
8468
|
-
},
|
|
8469
|
-
{
|
|
8470
|
-
"name": "testSeedRandomValidators";
|
|
8471
|
-
"discriminator": [
|
|
8472
|
-
48,
|
|
8473
|
-
155,
|
|
8474
|
-
181,
|
|
8475
|
-
112,
|
|
8476
|
-
163,
|
|
8477
|
-
242,
|
|
8478
|
-
43,
|
|
8479
|
-
146
|
|
8480
|
-
];
|
|
8481
|
-
"accounts": [
|
|
8482
|
-
{
|
|
8483
|
-
"name": "registrant";
|
|
8484
|
-
"writable": true;
|
|
8485
|
-
"signer": true;
|
|
8486
|
-
},
|
|
8487
|
-
{
|
|
8488
|
-
"name": "leaderboardState";
|
|
8489
|
-
"writable": true;
|
|
8490
|
-
}
|
|
8491
|
-
];
|
|
8492
|
-
"args": [
|
|
8493
|
-
{
|
|
8494
|
-
"name": "count";
|
|
8495
|
-
"type": "u16";
|
|
8496
|
-
},
|
|
8497
|
-
{
|
|
8498
|
-
"name": "seed";
|
|
8499
|
-
"type": "u64";
|
|
8500
|
-
},
|
|
8501
|
-
{
|
|
8502
|
-
"name": "minVpp";
|
|
8503
|
-
"type": "u8";
|
|
8504
|
-
},
|
|
8505
|
-
{
|
|
8506
|
-
"name": "maxVpp";
|
|
8507
|
-
"type": "u8";
|
|
8508
|
-
}
|
|
8509
|
-
];
|
|
8510
|
-
},
|
|
8511
8101
|
{
|
|
8512
8102
|
"name": "updateCommission";
|
|
8513
8103
|
"discriminator": [
|