fix: add custodian key support to stake instructions

This commit is contained in:
Michael Vines
2021-01-26 09:40:41 -08:00
parent 1d6e9335ff
commit e08d2e6fcc
4 changed files with 132 additions and 25 deletions

3
web3.js/module.d.ts vendored
View File

@ -772,6 +772,7 @@ declare module '@solana/web3.js' {
authorizedPubkey: PublicKey;
newAuthorizedPubkey: PublicKey;
stakeAuthorizationType: StakeAuthorizationType;
custodianPubkey?: PublicKey;
};
export type AuthorizeWithSeedStakeParams = {
@ -781,6 +782,7 @@ declare module '@solana/web3.js' {
authorityOwner: PublicKey;
newAuthorizedPubkey: PublicKey;
stakeAuthorizationType: StakeAuthorizationType;
custodianPubkey?: PublicKey;
};
export type SplitStakeParams = {
@ -795,6 +797,7 @@ declare module '@solana/web3.js' {
authorizedPubkey: PublicKey;
toPubkey: PublicKey;
lamports: number;
custodianPubkey?: PublicKey;
};
export type DeactivateStakeParams = {