@jpool/bond-sdk 0.9.0-next.10 → 0.9.0-next.11
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 +32 -1
- package/dist/index.d.ts +32 -1
- package/dist/index.js +37 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -795,6 +795,37 @@ type Jbond = {
|
|
|
795
795
|
];
|
|
796
796
|
"args": [];
|
|
797
797
|
},
|
|
798
|
+
{
|
|
799
|
+
"name": "sessionFinish";
|
|
800
|
+
"docs": [
|
|
801
|
+
"Finishes a bond, preventing further deposits and withdrawals."
|
|
802
|
+
];
|
|
803
|
+
"discriminator": [
|
|
804
|
+
230,
|
|
805
|
+
209,
|
|
806
|
+
54,
|
|
807
|
+
205,
|
|
808
|
+
127,
|
|
809
|
+
141,
|
|
810
|
+
137,
|
|
811
|
+
113
|
|
812
|
+
];
|
|
813
|
+
"accounts": [
|
|
814
|
+
{
|
|
815
|
+
"name": "bondState";
|
|
816
|
+
"writable": true;
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "authority";
|
|
820
|
+
"writable": true;
|
|
821
|
+
"signer": true;
|
|
822
|
+
"relations": [
|
|
823
|
+
"bondState"
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
];
|
|
827
|
+
"args": [];
|
|
828
|
+
},
|
|
798
829
|
{
|
|
799
830
|
"name": "sessionStart";
|
|
800
831
|
"docs": [
|
|
@@ -1778,7 +1809,7 @@ declare class JBondClient {
|
|
|
1778
1809
|
buildWithdrawIx(props: WithdrawCollateralProps): Promise<TransactionInstruction>;
|
|
1779
1810
|
buildClaimIx(props: ClaimProps): Promise<TransactionInstruction>;
|
|
1780
1811
|
buildSetWithdrawAuthorityIx(props: SetWithdrawAuthorityProps): Promise<TransactionInstruction>;
|
|
1781
|
-
buildBondFinishIx(
|
|
1812
|
+
buildBondFinishIx(props: {
|
|
1782
1813
|
bondType: BondType;
|
|
1783
1814
|
name: string;
|
|
1784
1815
|
}): Promise<TransactionInstruction>;
|
package/dist/index.d.ts
CHANGED
|
@@ -795,6 +795,37 @@ type Jbond = {
|
|
|
795
795
|
];
|
|
796
796
|
"args": [];
|
|
797
797
|
},
|
|
798
|
+
{
|
|
799
|
+
"name": "sessionFinish";
|
|
800
|
+
"docs": [
|
|
801
|
+
"Finishes a bond, preventing further deposits and withdrawals."
|
|
802
|
+
];
|
|
803
|
+
"discriminator": [
|
|
804
|
+
230,
|
|
805
|
+
209,
|
|
806
|
+
54,
|
|
807
|
+
205,
|
|
808
|
+
127,
|
|
809
|
+
141,
|
|
810
|
+
137,
|
|
811
|
+
113
|
|
812
|
+
];
|
|
813
|
+
"accounts": [
|
|
814
|
+
{
|
|
815
|
+
"name": "bondState";
|
|
816
|
+
"writable": true;
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "authority";
|
|
820
|
+
"writable": true;
|
|
821
|
+
"signer": true;
|
|
822
|
+
"relations": [
|
|
823
|
+
"bondState"
|
|
824
|
+
];
|
|
825
|
+
}
|
|
826
|
+
];
|
|
827
|
+
"args": [];
|
|
828
|
+
},
|
|
798
829
|
{
|
|
799
830
|
"name": "sessionStart";
|
|
800
831
|
"docs": [
|
|
@@ -1778,7 +1809,7 @@ declare class JBondClient {
|
|
|
1778
1809
|
buildWithdrawIx(props: WithdrawCollateralProps): Promise<TransactionInstruction>;
|
|
1779
1810
|
buildClaimIx(props: ClaimProps): Promise<TransactionInstruction>;
|
|
1780
1811
|
buildSetWithdrawAuthorityIx(props: SetWithdrawAuthorityProps): Promise<TransactionInstruction>;
|
|
1781
|
-
buildBondFinishIx(
|
|
1812
|
+
buildBondFinishIx(props: {
|
|
1782
1813
|
bondType: BondType;
|
|
1783
1814
|
name: string;
|
|
1784
1815
|
}): Promise<TransactionInstruction>;
|
package/dist/index.js
CHANGED
|
@@ -5602,6 +5602,37 @@ var jbond_default = {
|
|
|
5602
5602
|
],
|
|
5603
5603
|
args: []
|
|
5604
5604
|
},
|
|
5605
|
+
{
|
|
5606
|
+
name: "session_finish",
|
|
5607
|
+
docs: [
|
|
5608
|
+
"Finishes a bond, preventing further deposits and withdrawals."
|
|
5609
|
+
],
|
|
5610
|
+
discriminator: [
|
|
5611
|
+
230,
|
|
5612
|
+
209,
|
|
5613
|
+
54,
|
|
5614
|
+
205,
|
|
5615
|
+
127,
|
|
5616
|
+
141,
|
|
5617
|
+
137,
|
|
5618
|
+
113
|
|
5619
|
+
],
|
|
5620
|
+
accounts: [
|
|
5621
|
+
{
|
|
5622
|
+
name: "bond_state",
|
|
5623
|
+
writable: true
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
name: "authority",
|
|
5627
|
+
writable: true,
|
|
5628
|
+
signer: true,
|
|
5629
|
+
relations: [
|
|
5630
|
+
"bond_state"
|
|
5631
|
+
]
|
|
5632
|
+
}
|
|
5633
|
+
],
|
|
5634
|
+
args: []
|
|
5635
|
+
},
|
|
5605
5636
|
{
|
|
5606
5637
|
name: "session_start",
|
|
5607
5638
|
docs: [
|
|
@@ -6784,8 +6815,12 @@ var JBondClient = class _JBondClient {
|
|
|
6784
6815
|
newWithdrawAuthority: props.newWithdrawAuthority ?? null
|
|
6785
6816
|
}).instruction();
|
|
6786
6817
|
}
|
|
6787
|
-
async buildBondFinishIx(
|
|
6788
|
-
|
|
6818
|
+
async buildBondFinishIx(props) {
|
|
6819
|
+
const [bondState] = this.pda.bondState(props.bondType, props.name);
|
|
6820
|
+
return this.program.methods.sessionFinish().accountsPartial({
|
|
6821
|
+
bondState,
|
|
6822
|
+
authority: this.program.provider.wallet?.publicKey
|
|
6823
|
+
}).instruction();
|
|
6789
6824
|
}
|
|
6790
6825
|
async buildBondStartIx(props) {
|
|
6791
6826
|
const [bondState] = this.pda.bondState(props.bondType, props.name);
|