@jpool/bond-sdk 0.11.0-next.11 → 0.11.0-next.12
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 +41 -74
- package/dist/index.d.ts +41 -74
- package/dist/index.js +40 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +40 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5608,80 +5608,6 @@ var jbond_default = {
|
|
|
5608
5608
|
],
|
|
5609
5609
|
args: []
|
|
5610
5610
|
},
|
|
5611
|
-
{
|
|
5612
|
-
name: "migrate_bond",
|
|
5613
|
-
docs: [
|
|
5614
|
-
"Migrates validator bond data from legacy structure to new structure."
|
|
5615
|
-
],
|
|
5616
|
-
discriminator: [
|
|
5617
|
-
107,
|
|
5618
|
-
119,
|
|
5619
|
-
59,
|
|
5620
|
-
110,
|
|
5621
|
-
76,
|
|
5622
|
-
18,
|
|
5623
|
-
37,
|
|
5624
|
-
163
|
|
5625
|
-
],
|
|
5626
|
-
accounts: [
|
|
5627
|
-
{
|
|
5628
|
-
name: "bond_state",
|
|
5629
|
-
writable: true
|
|
5630
|
-
},
|
|
5631
|
-
{
|
|
5632
|
-
name: "legacy_validator_bond",
|
|
5633
|
-
writable: true
|
|
5634
|
-
},
|
|
5635
|
-
{
|
|
5636
|
-
name: "legacy_vote_account"
|
|
5637
|
-
},
|
|
5638
|
-
{
|
|
5639
|
-
name: "validator_bond",
|
|
5640
|
-
writable: true,
|
|
5641
|
-
pda: {
|
|
5642
|
-
seeds: [
|
|
5643
|
-
{
|
|
5644
|
-
kind: "const",
|
|
5645
|
-
value: [
|
|
5646
|
-
118,
|
|
5647
|
-
97,
|
|
5648
|
-
108,
|
|
5649
|
-
105,
|
|
5650
|
-
100,
|
|
5651
|
-
97,
|
|
5652
|
-
116,
|
|
5653
|
-
111,
|
|
5654
|
-
114,
|
|
5655
|
-
95,
|
|
5656
|
-
98,
|
|
5657
|
-
111,
|
|
5658
|
-
110,
|
|
5659
|
-
100
|
|
5660
|
-
]
|
|
5661
|
-
},
|
|
5662
|
-
{
|
|
5663
|
-
kind: "account",
|
|
5664
|
-
path: "bond_state"
|
|
5665
|
-
},
|
|
5666
|
-
{
|
|
5667
|
-
kind: "account",
|
|
5668
|
-
path: "legacy_vote_account"
|
|
5669
|
-
}
|
|
5670
|
-
]
|
|
5671
|
-
}
|
|
5672
|
-
},
|
|
5673
|
-
{
|
|
5674
|
-
name: "creator",
|
|
5675
|
-
writable: true,
|
|
5676
|
-
signer: true
|
|
5677
|
-
},
|
|
5678
|
-
{
|
|
5679
|
-
name: "system_program",
|
|
5680
|
-
address: "11111111111111111111111111111111"
|
|
5681
|
-
}
|
|
5682
|
-
],
|
|
5683
|
-
args: []
|
|
5684
|
-
},
|
|
5685
5611
|
{
|
|
5686
5612
|
name: "session_finish",
|
|
5687
5613
|
docs: [
|
|
@@ -5748,6 +5674,41 @@ var jbond_default = {
|
|
|
5748
5674
|
type: "u64"
|
|
5749
5675
|
}
|
|
5750
5676
|
]
|
|
5677
|
+
},
|
|
5678
|
+
{
|
|
5679
|
+
name: "test_set_last_update_epoch",
|
|
5680
|
+
docs: [
|
|
5681
|
+
"NOTE!: This instruction is for testing purposes only.",
|
|
5682
|
+
"It allows direct manipulation of the validator bond's last epoch update.",
|
|
5683
|
+
"This should not be used in production environments."
|
|
5684
|
+
],
|
|
5685
|
+
discriminator: [
|
|
5686
|
+
215,
|
|
5687
|
+
125,
|
|
5688
|
+
32,
|
|
5689
|
+
8,
|
|
5690
|
+
43,
|
|
5691
|
+
106,
|
|
5692
|
+
194,
|
|
5693
|
+
221
|
|
5694
|
+
],
|
|
5695
|
+
accounts: [
|
|
5696
|
+
{
|
|
5697
|
+
name: "validator_bond",
|
|
5698
|
+
writable: true
|
|
5699
|
+
},
|
|
5700
|
+
{
|
|
5701
|
+
name: "payer",
|
|
5702
|
+
writable: true,
|
|
5703
|
+
signer: true
|
|
5704
|
+
}
|
|
5705
|
+
],
|
|
5706
|
+
args: [
|
|
5707
|
+
{
|
|
5708
|
+
name: "epoch",
|
|
5709
|
+
type: "u64"
|
|
5710
|
+
}
|
|
5711
|
+
]
|
|
5751
5712
|
}
|
|
5752
5713
|
],
|
|
5753
5714
|
accounts: [
|
|
@@ -7071,6 +7032,11 @@ var JBondClient = class _JBondClient {
|
|
|
7071
7032
|
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7072
7033
|
return this.program.methods.bondUpdate().accountsPartial({ validatorBond }).instruction();
|
|
7073
7034
|
}
|
|
7035
|
+
async getTestSetLastUpdateEpochIx(props) {
|
|
7036
|
+
const { bondType, bondName, voteAccount, epoch } = props;
|
|
7037
|
+
const [validatorBond, _] = this.pda.validatorBond(bondType, bondName, voteAccount);
|
|
7038
|
+
return this.program.methods.testSetLastUpdateEpoch(new import_bn.BN(epoch)).accountsPartial({ validatorBond }).instruction();
|
|
7039
|
+
}
|
|
7074
7040
|
/**
|
|
7075
7041
|
* Build lock funds instruction
|
|
7076
7042
|
*/
|