@codama/renderers-js 1.2.14 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  export type {{ instructionParsedType }}<
4
4
  TProgram extends string = typeof {{ programAddressConstant }},
5
5
  {% if hasAccounts %}
6
- TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[],
6
+ TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[],
7
7
  {% endif %}
8
8
  > = {
9
9
  programAddress: Address<TProgram>;
@@ -25,15 +25,15 @@ export type {{ instructionParsedType }}<
25
25
  export function {{ instructionParseFunction }}<
26
26
  TProgram extends string,
27
27
  {% if hasAccounts %}
28
- TAccountMetas extends readonly IAccountMeta[],
28
+ TAccountMetas extends readonly AccountMeta[],
29
29
  {% endif %}
30
30
  >(
31
- instruction: IInstruction<TProgram>
31
+ instruction: Instruction<TProgram>
32
32
  {% if hasAccounts %}
33
- & IInstructionWithAccounts<TAccountMetas>
33
+ & InstructionWithAccounts<TAccountMetas>
34
34
  {% endif %}
35
35
  {% if hasData %}
36
- & IInstructionWithData<Uint8Array>
36
+ & InstructionWithData<ReadonlyUint8Array>
37
37
  {% endif %}
38
38
  ): {{ instructionParsedType }}<TProgram {{ ', TAccountMetas' if hasAccounts }}> {
39
39
  {% if hasAccounts %}
@@ -47,18 +47,18 @@ export function {{ instructionParseFunction }}<
47
47
  accountIndex += 1;
48
48
  return accountMeta;
49
49
  }
50
- {% if hasOptionalAccounts and instruction.optionalAccountStrategy === 'programId' %}
51
- const getNextOptionalAccount = () => {
52
- const accountMeta = getNextAccount();
53
- return accountMeta.address === {{ programAddressConstant }} ? undefined : accountMeta;
54
- };
55
- {% elif hasOptionalAccounts and instruction.optionalAccountStrategy === 'omitted' %}
50
+ {% if hasOptionalAccounts and instruction.optionalAccountStrategy === 'omitted' %}
56
51
  let optionalAccountsRemaining = instruction.accounts.length - {{ minimumNumberOfAccounts }};
57
52
  const getNextOptionalAccount = () => {
58
53
  if (optionalAccountsRemaining === 0) return undefined;
59
54
  optionalAccountsRemaining -= 1;
60
55
  return getNextAccount();
61
56
  };
57
+ {% elif hasOptionalAccounts %}
58
+ const getNextOptionalAccount = () => {
59
+ const accountMeta = getNextAccount();
60
+ return accountMeta.address === {{ programAddressConstant }} ? undefined : accountMeta;
61
+ };
62
62
  {% endif %}
63
63
  {% endif %}
64
64
  return {
@@ -5,14 +5,14 @@ export type {{ instructionType }}<
5
5
  {% if hasAccounts %}
6
6
  {{ accountTypeParams }},
7
7
  {% endif %}
8
- TRemainingAccounts extends readonly IAccountMeta<string>[] = [],
9
- > = IInstruction<TProgram>
8
+ TRemainingAccounts extends readonly AccountMeta<string>[] = [],
9
+ > = Instruction<TProgram>
10
10
  {% if hasData %}
11
- & IInstructionWithData<Uint8Array>
11
+ & InstructionWithData<ReadonlyUint8Array>
12
12
  {% endif %}
13
13
  {% if hasAccounts %}
14
- & IInstructionWithAccounts<[{{ accountMetas }}, ...TRemainingAccounts]>
14
+ & InstructionWithAccounts<[{{ accountMetas }}, ...TRemainingAccounts]>
15
15
  {% else %}
16
- & IInstructionWithAccounts<TRemainingAccounts>
16
+ & InstructionWithAccounts<TRemainingAccounts>
17
17
  {% endif %}
18
18
  ;
@@ -1,6 +1,6 @@
1
1
  {% import "macros.njk" as macros %}
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
- export function {{ codecFunction }}(): Codec<{{ looseName }}, {{ strictName }}> {
4
+ export function {{ codecFunction }}(): {{ codecType }}<{{ looseName }}, {{ strictName }}> {
5
5
  return combineCodec({{ encoderFunction }}(), {{ decoderFunction }}());
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {% import "macros.njk" as macros %}
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
- export function {{ decoderFunction }}(): Decoder<{{ strictName }}> {
4
+ export function {{ decoderFunction }}(): {{ decoderType }}<{{ strictName }}> {
5
5
  return {{ manifest.decoder.render }};
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {% import "macros.njk" as macros %}
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
- export function {{ encoderFunction }}(): Encoder<{{ looseName }}> {
4
+ export function {{ encoderFunction }}(): {{ encoderType }}<{{ looseName }}> {
5
5
  return {{ manifest.encoder.render }};
6
6
  }
@@ -73,7 +73,7 @@ export type ResolvedAccount<T extends string = string, U extends Address<T> | Pr
73
73
  * Defines an instruction that stores additional bytes on-chain.
74
74
  * @internal
75
75
  */
76
- export type IInstructionWithByteDelta = {
76
+ export type InstructionWithByteDelta = {
77
77
  byteDelta: number;
78
78
  };
79
79
 
@@ -85,7 +85,7 @@ export function getAccountMetaFactory(
85
85
  programAddress: Address,
86
86
  optionalAccountStrategy: 'omitted' | 'programId',
87
87
  ) {
88
- return (account: ResolvedAccount): IAccountMeta | IAccountSignerMeta | undefined => {
88
+ return (account: ResolvedAccount): AccountMeta | AccountSignerMeta | undefined => {
89
89
  if (!account.value) {
90
90
  if (optionalAccountStrategy === 'omitted') return;
91
91
  return Object.freeze({ address: programAddress, role: AccountRole.READONLY });
@@ -5,6 +5,7 @@ import { TypeManifest } from '../TypeManifest';
5
5
  import { Fragment } from './common';
6
6
  export declare function getAccountTypeFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
7
7
  accountPath: NodePath<AccountNode>;
8
+ size: number | null;
8
9
  typeManifest: TypeManifest;
9
10
  }): Fragment;
10
11
  //# sourceMappingURL=accountType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountType.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IAChE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAaV"}
1
+ {"version":3,"file":"accountType.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,SAAS,CAAC,GAAG;IAChE,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAcV"}
@@ -6,5 +6,6 @@ import { Fragment } from './common';
6
6
  export declare function getInstructionDataFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  instructionPath: NodePath<InstructionNode>;
9
+ size: number | null;
9
10
  }): Fragment;
10
11
  //# sourceMappingURL=instructionData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionData.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAaV"}
1
+ {"version":3,"file":"instructionData.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAG9C,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAcV"}
@@ -1 +1 @@
1
- {"version":3,"file":"instructionParseFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionParseFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CA0CV"}
1
+ {"version":3,"file":"instructionParseFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionParseFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACpE,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CA2CV"}
@@ -1 +1 @@
1
- {"version":3,"file":"instructionType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI1E,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAClF,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAwDV"}
1
+ {"version":3,"file":"instructionType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI1E,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAClF,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAyDV"}
@@ -7,5 +7,6 @@ export declare function getTypeCodecFragment(scope: Pick<GlobalFragmentScope, 'n
7
7
  encoderDocs?: string[];
8
8
  manifest: Pick<TypeManifest, 'decoder' | 'encoder'>;
9
9
  name: string;
10
+ size: number | null;
10
11
  }): Fragment;
11
12
  //# sourceMappingURL=typeCodec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeCodec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI1E,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;CAChB,GACF,QAAQ,CAkBV"}
1
+ {"version":3,"file":"typeCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeCodec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI1E,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAoBV"}
@@ -5,5 +5,6 @@ export declare function getTypeDecoderFragment(scope: Pick<GlobalFragmentScope,
5
5
  docs?: string[];
6
6
  manifest: Pick<TypeManifest, 'decoder'>;
7
7
  name: string;
8
+ size: number | null;
8
9
  }): Fragment;
9
10
  //# sourceMappingURL=typeDecoder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeDecoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CAChB,GACF,QAAQ,CAWV"}
1
+ {"version":3,"file":"typeDecoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAaV"}
@@ -5,5 +5,6 @@ export declare function getTypeEncoderFragment(scope: Pick<GlobalFragmentScope,
5
5
  docs?: string[];
6
6
  manifest: Pick<TypeManifest, 'encoder'>;
7
7
  name: string;
8
+ size: number | null;
8
9
  }): Fragment;
9
10
  //# sourceMappingURL=typeEncoder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeEncoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CAChB,GACF,QAAQ,CAWV"}
1
+ {"version":3,"file":"typeEncoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAaV"}
@@ -7,6 +7,7 @@ export declare function getTypeWithCodecFragment(scope: Pick<GlobalFragmentScope
7
7
  encoderDocs?: string[];
8
8
  manifest: TypeManifest;
9
9
  name: string;
10
+ size: number | null;
10
11
  typeDocs?: string[];
11
12
  }): Fragment;
12
13
  //# sourceMappingURL=typeWithCodec.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typeWithCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeWithCodec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAIpD,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,GACF,QAAQ,CAIV"}
1
+ {"version":3,"file":"typeWithCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeWithCodec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAIpD,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB,GACF,QAAQ,CAIV"}
@@ -1 +1 @@
1
- {"version":3,"file":"getRenderMapVisitor.d.ts","sourceRoot":"","sources":["../../src/getRenderMapVisitor.ts"],"names":[],"mappings":"AAGA,OAAO,EAEH,eAAe,EAUlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,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AClC,wBAAwB,EAAE,OAAO,CAAC;IAClC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,OAAO,GAAE,mBAAwB,sJAkWpE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codama/renderers-js",
3
- "version": "1.2.14",
3
+ "version": "1.3.1",
4
4
  "description": "JavaScript renderer compatible with the Solana Kit library",
5
5
  "exports": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -28,9 +28,9 @@
28
28
  "client"
29
29
  ],
30
30
  "dependencies": {
31
- "@solana/codecs-strings": "^2.1.0",
31
+ "@solana/codecs-strings": "^2.3.0",
32
32
  "nunjucks": "^3.2.4",
33
- "prettier": "^3.5.3",
33
+ "prettier": "^3.6.2",
34
34
  "@codama/errors": "1.3.0",
35
35
  "@codama/nodes": "1.3.0",
36
36
  "@codama/renderers-core": "1.0.16",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/nunjucks": "^3.2.6",
41
- "@codama/nodes-from-anchor": "1.2.0"
41
+ "@codama/nodes-from-anchor": "1.2.2"
42
42
  },
43
43
  "license": "MIT",
44
44
  "repository": {