Skip to content

Commit 8bc4721

Browse files
committed
Update generated code
1 parent a1af5e6 commit 8bc4721

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1791
-1410
lines changed

packages/renderers-js/e2e/anchor/pnpm-lock.yaml

Lines changed: 329 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export type CreateGuardInstruction<
9494
| IAccountMeta<string> = '11111111111111111111111111111111',
9595
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
9696
> = IInstruction<TProgram> &
97-
IInstructionWithData<Uint8Array> &
97+
IInstructionWithData<ReadonlyUint8Array> &
9898
IInstructionWithAccounts<
9999
[
100100
TAccountGuard extends string
@@ -510,7 +510,7 @@ export function parseCreateGuardInstruction<
510510
>(
511511
instruction: IInstruction<TProgram> &
512512
IInstructionWithAccounts<TAccountMetas> &
513-
IInstructionWithData<Uint8Array>
513+
IInstructionWithData<ReadonlyUint8Array>
514514
): ParsedCreateGuardInstruction<TProgram, TAccountMetas> {
515515
if (instruction.accounts.length < 8) {
516516
// TODO: Coded error.

packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export type ExecuteInstruction<
5858
| IAccountMeta<string> = 'Sysvar1nstructions1111111111111111111111111',
5959
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
6060
> = IInstruction<TProgram> &
61-
IInstructionWithData<Uint8Array> &
61+
IInstructionWithData<ReadonlyUint8Array> &
6262
IInstructionWithAccounts<
6363
[
6464
TAccountSourceAccount extends string
@@ -389,7 +389,7 @@ export function parseExecuteInstruction<
389389
>(
390390
instruction: IInstruction<TProgram> &
391391
IInstructionWithAccounts<TAccountMetas> &
392-
IInstructionWithData<Uint8Array>
392+
IInstructionWithData<ReadonlyUint8Array>
393393
): ParsedExecuteInstruction<TProgram, TAccountMetas> {
394394
if (instruction.accounts.length < 7) {
395395
// TODO: Coded error.

packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export type InitializeInstruction<
5959
TAccountPayer extends string | IAccountMeta<string> = string,
6060
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
6161
> = IInstruction<TProgram> &
62-
IInstructionWithData<Uint8Array> &
62+
IInstructionWithData<ReadonlyUint8Array> &
6363
IInstructionWithAccounts<
6464
[
6565
TAccountExtraMetasAccount extends string
@@ -347,7 +347,7 @@ export function parseInitializeInstruction<
347347
>(
348348
instruction: IInstruction<TProgram> &
349349
IInstructionWithAccounts<TAccountMetas> &
350-
IInstructionWithData<Uint8Array>
350+
IInstructionWithData<ReadonlyUint8Array>
351351
): ParsedInitializeInstruction<TProgram, TAccountMetas> {
352352
if (instruction.accounts.length < 6) {
353353
// TODO: Coded error.

packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export type UpdateGuardInstruction<
8383
| IAccountMeta<string> = '11111111111111111111111111111111',
8484
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
8585
> = IInstruction<TProgram> &
86-
IInstructionWithData<Uint8Array> &
86+
IInstructionWithData<ReadonlyUint8Array> &
8787
IInstructionWithAccounts<
8888
[
8989
TAccountGuard extends string
@@ -420,7 +420,7 @@ export function parseUpdateGuardInstruction<
420420
>(
421421
instruction: IInstruction<TProgram> &
422422
IInstructionWithAccounts<TAccountMetas> &
423-
IInstructionWithData<Uint8Array>
423+
IInstructionWithData<ReadonlyUint8Array>
424424
): ParsedUpdateGuardInstruction<TProgram, TAccountMetas> {
425425
if (instruction.accounts.length < 6) {
426426
// TODO: Coded error.

packages/renderers-js/e2e/dummy/pnpm-lock.yaml

Lines changed: 329 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/renderers-js/e2e/dummy/src/generated/instructions/instruction3.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
type IInstruction,
2222
type IInstructionWithAccounts,
2323
type IInstructionWithData,
24+
type ReadonlyUint8Array,
2425
} from '@solana/web3.js';
2526
import { DUMMY_PROGRAM_ADDRESS } from '../programs';
2627

@@ -34,7 +35,7 @@ export type Instruction3Instruction<
3435
TProgram extends string = typeof DUMMY_PROGRAM_ADDRESS,
3536
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
3637
> = IInstruction<TProgram> &
37-
IInstructionWithData<Uint8Array> &
38+
IInstructionWithData<ReadonlyUint8Array> &
3839
IInstructionWithAccounts<TRemainingAccounts>;
3940

4041
export type Instruction3InstructionData = { discriminator: number };
@@ -88,7 +89,7 @@ export type ParsedInstruction3Instruction<
8889
};
8990

9091
export function parseInstruction3Instruction<TProgram extends string>(
91-
instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>
92+
instruction: IInstruction<TProgram> & IInstructionWithData<ReadonlyUint8Array>
9293
): ParsedInstruction3Instruction<TProgram> {
9394
return {
9495
programAddress: instruction.programAddress,

packages/renderers-js/e2e/dummy/src/generated/instructions/instruction4.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ import {
2020
type IInstruction,
2121
type IInstructionWithAccounts,
2222
type IInstructionWithData,
23+
type ReadonlyUint8Array,
2324
} from '@solana/web3.js';
2425
import { DUMMY_PROGRAM_ADDRESS } from '../programs';
2526

2627
export type Instruction4Instruction<
2728
TProgram extends string = typeof DUMMY_PROGRAM_ADDRESS,
2829
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
2930
> = IInstruction<TProgram> &
30-
IInstructionWithData<Uint8Array> &
31+
IInstructionWithData<ReadonlyUint8Array> &
3132
IInstructionWithAccounts<TRemainingAccounts>;
3233

3334
export type Instruction4InstructionData = { myArgument: bigint };
@@ -86,7 +87,7 @@ export type ParsedInstruction4Instruction<
8687
};
8788

8889
export function parseInstruction4Instruction<TProgram extends string>(
89-
instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>
90+
instruction: IInstruction<TProgram> & IInstructionWithData<ReadonlyUint8Array>
9091
): ParsedInstruction4Instruction<TProgram> {
9192
return {
9293
programAddress: instruction.programAddress,

packages/renderers-js/e2e/dummy/src/generated/instructions/instruction5.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ import {
2121
type IInstruction,
2222
type IInstructionWithAccounts,
2323
type IInstructionWithData,
24+
type ReadonlyUint8Array,
2425
} from '@solana/web3.js';
2526
import { DUMMY_PROGRAM_ADDRESS } from '../programs';
2627

2728
export type Instruction5Instruction<
2829
TProgram extends string = typeof DUMMY_PROGRAM_ADDRESS,
2930
TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
3031
> = IInstruction<TProgram> &
31-
IInstructionWithData<Uint8Array> &
32+
IInstructionWithData<ReadonlyUint8Array> &
3233
IInstructionWithAccounts<TRemainingAccounts>;
3334

3435
export type Instruction5InstructionData = { myArgument: bigint };
@@ -90,7 +91,7 @@ export type ParsedInstruction5Instruction<
9091
};
9192

9293
export function parseInstruction5Instruction<TProgram extends string>(
93-
instruction: IInstruction<TProgram> & IInstructionWithData<Uint8Array>
94+
instruction: IInstruction<TProgram> & IInstructionWithData<ReadonlyUint8Array>
9495
): ParsedInstruction5Instruction<TProgram> {
9596
return {
9697
programAddress: instruction.programAddress,

0 commit comments

Comments
 (0)