fix: add system program nonce methods to def files
This commit is contained in:
parent
38213694bd
commit
ea1295300d
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue