Add StakeInstruction::AuthorizeWithSeed (#11700) (#11779)

* Add StakeInstruction::AuthorizeWithSeed

* chore: add authorize-with-seed to web.js

* fix: add address_owner

* Add SystemInstruction::TransferWithSeed

* Update ABI hash

* chore: better variable names

* Add AuthorizeWithSeedArgs

* Reorder and rename arguments for clarity

(cherry picked from commit f02a78d8ff)

Co-authored-by: Greg Fitzgerald <greg@solana.com>
This commit is contained in:
mergify[bot]
2020-08-21 19:39:36 +00:00
committed by GitHub
parent 4be9d5030d
commit 6775e01747
9 changed files with 469 additions and 40 deletions

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

@@ -605,6 +605,15 @@ declare module '@solana/web3.js' {
stakeAuthorizationType: StakeAuthorizationType;
};
export type AuthorizeWithSeedStakeParams = {
stakePubkey: PublicKey;
authorityBase: PublicKey;
authoritySeed: string;
authorityOwner: PublicKey;
newAuthorizedPubkey: PublicKey;
stakeAuthorizationType: StakeAuthorizationType;
};
export type SplitStakeParams = {
stakePubkey: PublicKey;
authorizedPubkey: PublicKey;
@@ -641,6 +650,7 @@ declare module '@solana/web3.js' {
export type StakeInstructionType =
| 'Initialize'
| 'Authorize'
| 'AuthorizeWithSeed'
| 'Delegate'
| 'Split'
| 'Withdraw'