diff --git a/web3.js/module.d.ts b/web3.js/module.d.ts index c2ebf87d50..724645216a 100644 --- a/web3.js/module.d.ts +++ b/web3.js/module.d.ts @@ -420,6 +420,7 @@ declare module '@solana/web3.js' { // === src/system-program.js === export class SystemProgram { static programId: PublicKey; + static nonceSpace: number; static createAccount( from: PublicKey, @@ -443,6 +444,27 @@ declare module '@solana/web3.js' { space: number, programId: PublicKey, ): Transaction; + static createNonceAccount( + from: PublicKey, + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + lamports: number, + ): Transaction; + static nonceAdvance( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + ): TransactionInstruction; + static nonceWithdraw( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + to: PublicKey, + lamports: number, + ): Transaction; + static nonceAuthorize( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + newAuthorized: PublicKey, + ): Transaction; } export class SystemInstruction extends TransactionInstruction { diff --git a/web3.js/module.flow.js b/web3.js/module.flow.js index 9ce6746940..63a2380498 100644 --- a/web3.js/module.flow.js +++ b/web3.js/module.flow.js @@ -321,6 +321,7 @@ declare module '@solana/web3.js' { // === src/system-program.js === declare export class SystemProgram { static programId: PublicKey; + static nonceSpace: number; static createAccount( from: PublicKey, @@ -344,6 +345,27 @@ declare module '@solana/web3.js' { space: number, programId: PublicKey, ): Transaction; + static createNonceAccount( + from: PublicKey, + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + lamports: number, + ): Transaction; + static nonceAdvance( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + ): TransactionInstruction; + static nonceWithdraw( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + to: PublicKey, + lamports: number, + ): Transaction; + static nonceAuthorize( + nonceAccount: PublicKey, + authorizedPubkey: PublicKey, + newAuthorized: PublicKey, + ): Transaction; } declare export class SystemInstruction extends TransactionInstruction {