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
5 changes: 5 additions & 0 deletions .changeset/honest-bananas-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@codama/renderers-js': patch
---

Bump to Pretter 3.8.1
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@codama/renderers-core": "^1.3.4",
"@codama/visitors-core": "^1.4.4",
"@solana/codecs-strings": "^5.0.0",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"semver": "^7.7.3"
},
"devDependencies": {
Expand All @@ -69,7 +69,7 @@
"agadoo": "^3.0.0",
"eslint": "^9.35.0",
"happy-dom": "^20.0.0",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"rimraf": "6.1.2",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions test/e2e/anchor/src/generated/instructions/createGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ 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: 2 additions & 3 deletions test/e2e/anchor/src/generated/instructions/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ 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: 4 additions & 5 deletions test/e2e/anchor/src/generated/programs/wenTransferGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,10 @@ 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>);

export function parseWenTransferGuardInstruction<TProgram extends string>(
instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>,
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"@typescript-eslint/parser": "^7.3.1",
"ava": "^6.4.1",
"eslint": "^8.57.0",
"prettier": "^3.6.2",
"prettier": "^3.8.1",
"rimraf": "^6.0.1",
"tsup": "^8.5.0",
"typedoc": "^0.28.12",
"typedoc-plugin-missing-exports": "^4.1.0",
"typescript": "^5.9.2"
}
}
}
10 changes: 5 additions & 5 deletions test/e2e/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ 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,9 +39,8 @@ 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,9 +43,8 @@ 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: 9 additions & 10 deletions test/e2e/token/src/generated/programs/associatedToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,15 @@ 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>);

export function parseAssociatedTokenInstruction<TProgram extends string>(
instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>,
Expand Down