Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,284 changes: 865 additions & 1,419 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions test/e2e/anchor/src/generated/instructions/createGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ export type CreateGuardInstruction<
TAccountMintTokenAccount extends string | AccountMeta<string> = string,
TAccountGuardAuthority extends string | AccountMeta<string> = string,
TAccountPayer extends string | AccountMeta<string> = string,
TAccountAssociatedTokenProgram extends string | AccountMeta<string> =
'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
TAccountAssociatedTokenProgram extends
| string
| AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb',
TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111',
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/anchor/src/generated/instructions/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ export type ExecuteInstruction<
TAccountOwnerDelegate extends string | AccountMeta<string> = string,
TAccountExtraMetasAccount extends string | AccountMeta<string> = string,
TAccountGuard extends string | AccountMeta<string> = string,
TAccountInstructionSysvarAccount extends string | AccountMeta<string> =
'Sysvar1nstructions1111111111111111111111111',
TAccountInstructionSysvarAccount extends
| string
| AccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111',
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
> = Instruction<TProgram> &
InstructionWithData<ReadonlyUint8Array> &
Expand Down
9 changes: 5 additions & 4 deletions test/e2e/anchor/src/generated/programs/wenTransferGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export function identifyWenTransferGuardInstruction(
}

export type ParsedWenTransferGuardInstruction<TProgram extends string = 'LockdqYQ9X2kwtWB99ioSbxubAmEi8o9jqYwbXgrrRw'> =
| ({ instructionType: WenTransferGuardInstruction.CreateGuard } & ParsedCreateGuardInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.Execute } & ParsedExecuteInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.Initialize } & ParsedInitializeInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.UpdateGuard } & ParsedUpdateGuardInstruction<TProgram>);

| ({ instructionType: WenTransferGuardInstruction.CreateGuard } & ParsedCreateGuardInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.Execute } & ParsedExecuteInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.Initialize } & ParsedInitializeInstruction<TProgram>)
| ({ instructionType: WenTransferGuardInstruction.UpdateGuard } & ParsedUpdateGuardInstruction<TProgram>);
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export function getAdvanceNonceAccountDiscriminatorBytes() {
export type AdvanceNonceAccountInstruction<
TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS,
TAccountNonceAccount extends string | AccountMeta<string> = string,
TAccountRecentBlockhashesSysvar extends string | AccountMeta<string> =
'SysvarRecentB1ockHashes11111111111111111111',
TAccountRecentBlockhashesSysvar extends
| string
| AccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111',
TAccountNonceAuthority extends string | AccountMeta<string> = string,
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
> = Instruction<TProgram> &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export function getInitializeNonceAccountDiscriminatorBytes() {
export type InitializeNonceAccountInstruction<
TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS,
TAccountNonceAccount extends string | AccountMeta<string> = string,
TAccountRecentBlockhashesSysvar extends string | AccountMeta<string> =
'SysvarRecentB1ockHashes11111111111111111111',
TAccountRecentBlockhashesSysvar extends
| string
| AccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111',
TAccountRentSysvar extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111',
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
> = Instruction<TProgram> &
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ export type WithdrawNonceAccountInstruction<
TProgram extends string = typeof SYSTEM_PROGRAM_ADDRESS,
TAccountNonceAccount extends string | AccountMeta<string> = string,
TAccountRecipientAccount extends string | AccountMeta<string> = string,
TAccountRecentBlockhashesSysvar extends string | AccountMeta<string> =
'SysvarRecentB1ockHashes11111111111111111111',
TAccountRecentBlockhashesSysvar extends
| string
| AccountMeta<string> = 'SysvarRecentB1ockHashes11111111111111111111',
TAccountRentSysvar extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111',
TAccountNonceAuthority extends string | AccountMeta<string> = string,
TRemainingAccounts extends readonly AccountMeta<string>[] = [],
Expand Down
19 changes: 10 additions & 9 deletions test/e2e/token/src/generated/programs/associatedToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ export function identifyAssociatedTokenInstruction(
}

export type ParsedAssociatedTokenInstruction<TProgram extends string = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL'> =
| ({
instructionType: AssociatedTokenInstruction.CreateAssociatedToken;
} & ParsedCreateAssociatedTokenInstruction<TProgram>)
| ({
instructionType: AssociatedTokenInstruction.CreateAssociatedTokenIdempotent;
} & ParsedCreateAssociatedTokenIdempotentInstruction<TProgram>)
| ({
instructionType: AssociatedTokenInstruction.RecoverNestedAssociatedToken;
} & ParsedRecoverNestedAssociatedTokenInstruction<TProgram>);

| ({
instructionType: AssociatedTokenInstruction.CreateAssociatedToken;
} & ParsedCreateAssociatedTokenInstruction<TProgram>)
| ({
instructionType: AssociatedTokenInstruction.CreateAssociatedTokenIdempotent;
} & ParsedCreateAssociatedTokenIdempotentInstruction<TProgram>)
| ({
instructionType: AssociatedTokenInstruction.RecoverNestedAssociatedToken;
} & ParsedRecoverNestedAssociatedTokenInstruction<TProgram>);