@codama/renderers-js 1.3.4 → 1.3.5

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.
Files changed (80) hide show
  1. package/dist/index.node.cjs +1543 -966
  2. package/dist/index.node.cjs.map +1 -1
  3. package/dist/index.node.mjs +1459 -879
  4. package/dist/index.node.mjs.map +1 -1
  5. package/dist/templates/fragments/instructionExtraArgs.njk +1 -1
  6. package/dist/templates/fragments/pdaFunction.njk +3 -3
  7. package/dist/templates/fragments/type.njk +3 -3
  8. package/dist/templates/fragments/typeDecoder.njk +1 -1
  9. package/dist/templates/fragments/typeEncoder.njk +1 -1
  10. package/dist/types/ImportMap.d.ts +1 -1
  11. package/dist/types/ImportMap.d.ts.map +1 -1
  12. package/dist/types/TypeManifest.d.ts +5 -5
  13. package/dist/types/TypeManifest.d.ts.map +1 -1
  14. package/dist/types/fragments/accountFetchHelpers.d.ts +1 -1
  15. package/dist/types/fragments/accountFetchHelpers.d.ts.map +1 -1
  16. package/dist/types/fragments/accountPdaHelpers.d.ts +1 -1
  17. package/dist/types/fragments/accountPdaHelpers.d.ts.map +1 -1
  18. package/dist/types/fragments/accountSizeHelpers.d.ts +1 -1
  19. package/dist/types/fragments/accountType.d.ts +1 -1
  20. package/dist/types/fragments/discriminatorCondition.d.ts +1 -1
  21. package/dist/types/fragments/discriminatorCondition.d.ts.map +1 -1
  22. package/dist/types/fragments/discriminatorConstants.d.ts +1 -1
  23. package/dist/types/fragments/discriminatorConstants.d.ts.map +1 -1
  24. package/dist/types/fragments/index.d.ts +0 -1
  25. package/dist/types/fragments/index.d.ts.map +1 -1
  26. package/dist/types/fragments/instructionAccountMeta.d.ts +1 -1
  27. package/dist/types/fragments/instructionAccountMeta.d.ts.map +1 -1
  28. package/dist/types/fragments/instructionAccountTypeParam.d.ts +1 -1
  29. package/dist/types/fragments/instructionAccountTypeParam.d.ts.map +1 -1
  30. package/dist/types/fragments/instructionByteDelta.d.ts +1 -1
  31. package/dist/types/fragments/instructionByteDelta.d.ts.map +1 -1
  32. package/dist/types/fragments/instructionData.d.ts +1 -1
  33. package/dist/types/fragments/instructionExtraArgs.d.ts +1 -1
  34. package/dist/types/fragments/instructionExtraArgs.d.ts.map +1 -1
  35. package/dist/types/fragments/instructionFunction.d.ts +1 -1
  36. package/dist/types/fragments/instructionFunction.d.ts.map +1 -1
  37. package/dist/types/fragments/instructionInputDefault.d.ts +1 -1
  38. package/dist/types/fragments/instructionInputDefault.d.ts.map +1 -1
  39. package/dist/types/fragments/instructionInputResolved.d.ts +1 -1
  40. package/dist/types/fragments/instructionInputResolved.d.ts.map +1 -1
  41. package/dist/types/fragments/instructionInputType.d.ts +1 -1
  42. package/dist/types/fragments/instructionInputType.d.ts.map +1 -1
  43. package/dist/types/fragments/instructionParseFunction.d.ts +1 -1
  44. package/dist/types/fragments/instructionParseFunction.d.ts.map +1 -1
  45. package/dist/types/fragments/instructionRemainingAccounts.d.ts +1 -1
  46. package/dist/types/fragments/instructionRemainingAccounts.d.ts.map +1 -1
  47. package/dist/types/fragments/instructionType.d.ts +1 -1
  48. package/dist/types/fragments/instructionType.d.ts.map +1 -1
  49. package/dist/types/fragments/pdaFunction.d.ts +1 -1
  50. package/dist/types/fragments/pdaFunction.d.ts.map +1 -1
  51. package/dist/types/fragments/program.d.ts +1 -1
  52. package/dist/types/fragments/program.d.ts.map +1 -1
  53. package/dist/types/fragments/programAccounts.d.ts +1 -1
  54. package/dist/types/fragments/programAccounts.d.ts.map +1 -1
  55. package/dist/types/fragments/programErrors.d.ts +1 -1
  56. package/dist/types/fragments/programErrors.d.ts.map +1 -1
  57. package/dist/types/fragments/programInstructions.d.ts +1 -1
  58. package/dist/types/fragments/programInstructions.d.ts.map +1 -1
  59. package/dist/types/fragments/type.d.ts +1 -1
  60. package/dist/types/fragments/type.d.ts.map +1 -1
  61. package/dist/types/fragments/typeCodec.d.ts +1 -1
  62. package/dist/types/fragments/typeCodec.d.ts.map +1 -1
  63. package/dist/types/fragments/typeDecoder.d.ts +1 -1
  64. package/dist/types/fragments/typeDecoder.d.ts.map +1 -1
  65. package/dist/types/fragments/typeDiscriminatedUnionHelpers.d.ts +1 -1
  66. package/dist/types/fragments/typeDiscriminatedUnionHelpers.d.ts.map +1 -1
  67. package/dist/types/fragments/typeEncoder.d.ts +1 -1
  68. package/dist/types/fragments/typeEncoder.d.ts.map +1 -1
  69. package/dist/types/fragments/typeWithCodec.d.ts +1 -1
  70. package/dist/types/getRenderMapVisitor.d.ts +1 -2
  71. package/dist/types/getRenderMapVisitor.d.ts.map +1 -1
  72. package/dist/types/getTypeManifestVisitor.d.ts +9 -3
  73. package/dist/types/getTypeManifestVisitor.d.ts.map +1 -1
  74. package/dist/types/utils/fragment.d.ts +20 -0
  75. package/dist/types/utils/fragment.d.ts.map +1 -0
  76. package/dist/types/utils/index.d.ts +1 -0
  77. package/dist/types/utils/index.d.ts.map +1 -1
  78. package/package.json +7 -7
  79. package/dist/types/fragments/common.d.ts +0 -25
  80. package/dist/types/fragments/common.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
1
  {% import "macros.njk" as macros %}
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
- export type {{ looseName }} = {{ manifest.looseType.render }};
4
+ export type {{ looseName }} = {{ manifest.looseType.content }};
@@ -5,7 +5,7 @@ export type {{ pdaSeedsType }} = {
5
5
  {% for seed in seeds %}
6
6
  {% if seed.kind === 'variablePdaSeedNode' %}
7
7
  {{ macros.docblock(seed.docs) }}
8
- {{ seed.name | camelCase }}: {{ seed.typeManifest.looseType.render }};
8
+ {{ seed.name | camelCase }}: {{ seed.typeManifest.looseType.content }};
9
9
  {% endif %}
10
10
  {% endfor %}
11
11
  }
@@ -24,9 +24,9 @@ export async function {{ findPdaFunction }}(
24
24
  {% if seed.kind === 'constantPdaSeedNode' and seed.value.kind === 'programIdValueNode' %}
25
25
  getAddressEncoder().encode(programAddress),
26
26
  {% elif seed.kind === 'constantPdaSeedNode' %}
27
- {{ seed.typeManifest.encoder.render }}.encode({{ seed.valueManifest.render }}),
27
+ {{ seed.typeManifest.encoder.content }}.encode({{ seed.valueManifest.content }}),
28
28
  {% else %}
29
- {{ seed.typeManifest.encoder.render }}.encode(seeds.{{ seed.name | camelCase }}),
29
+ {{ seed.typeManifest.encoder.content }}.encode(seeds.{{ seed.name | camelCase }}),
30
30
  {% endif %}
31
31
  {% endfor %}
32
32
  ]});
@@ -2,11 +2,11 @@
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
4
  {% if manifest.isEnum %}
5
- export enum {{ strictName }} {{ manifest.strictType.render }};
5
+ export enum {{ strictName }} {{ manifest.strictType.content }};
6
6
 
7
7
  export type {{ looseName }} = {{ strictName }};
8
8
  {% else %}
9
- export type {{ strictName }} = {{ manifest.strictType.render }};
9
+ export type {{ strictName }} = {{ manifest.strictType.content }};
10
10
 
11
- export type {{ looseName }} = {{ manifest.looseType.render if manifest.strictType.render != manifest.looseType.render else strictName }};
11
+ export type {{ looseName }} = {{ manifest.looseType.content if manifest.strictType.content != manifest.looseType.content else strictName }};
12
12
  {% endif %}
@@ -2,5 +2,5 @@
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
4
  export function {{ decoderFunction }}(): {{ decoderType }}<{{ strictName }}> {
5
- return {{ manifest.decoder.render }}{% if useTypeCast %} as {{ decoderType }}<{{ strictName }}>{% endif %};
5
+ return {{ manifest.decoder.content }}{% if useTypeCast %} as {{ decoderType }}<{{ strictName }}>{% endif %};
6
6
  }
@@ -2,5 +2,5 @@
2
2
 
3
3
  {{ macros.docblock(docs) }}
4
4
  export function {{ encoderFunction }}(): {{ encoderType }}<{{ looseName }}> {
5
- return {{ manifest.encoder.render }}{% if useTypeCast %} as {{ encoderType }}<{{ looseName }}>{% endif %};
5
+ return {{ manifest.encoder.content }}{% if useTypeCast %} as {{ encoderType }}<{{ looseName }}>{% endif %};
6
6
  }
@@ -1,5 +1,5 @@
1
- import { Fragment } from './fragments';
2
1
  import { TypeManifest } from './TypeManifest';
2
+ import { Fragment } from './utils';
3
3
  export declare class ImportMap {
4
4
  protected readonly _imports: Map<string, Set<string>>;
5
5
  protected readonly _aliases: Map<string, Record<string, string>>;
@@ -1 +1 @@
1
- {"version":3,"file":"ImportMap.d.ts","sourceRoot":"","sources":["../../src/ImportMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AA8C9C,qBAAa,SAAS;IAClB,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAa;IAElE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAa;IAE7E,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IASxE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IAa3E,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS;IAezD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS;IAIpD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;IAOhE,OAAO,IAAI,OAAO;IAIlB,OAAO,CAAC,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,kBAAkB,UAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IA2BxG,QAAQ,CAAC,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,kBAAkB,UAAQ,GAAG,MAAM;CA0B1F"}
1
+ {"version":3,"file":"ImportMap.d.ts","sourceRoot":"","sources":["../../src/ImportMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AA8CnC,qBAAa,SAAS;IAClB,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAa;IAElE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAa;IAE7E,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IASxE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS;IAa3E,SAAS,CAAC,GAAG,MAAM,EAAE,CAAC,QAAQ,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS;IAezD,iBAAiB,CAAC,QAAQ,EAAE,YAAY,GAAG,SAAS;IAIpD,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;IAOhE,OAAO,IAAI,OAAO;IAIlB,OAAO,CAAC,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,kBAAkB,UAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IA2BxG,QAAQ,CAAC,YAAY,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EAAE,kBAAkB,UAAQ,GAAG,MAAM;CA0B1F"}
@@ -1,14 +1,14 @@
1
- import { Fragment } from './fragments';
2
- export type TypeManifest = {
1
+ import { Fragment } from './utils';
2
+ export type TypeManifest = Readonly<{
3
3
  decoder: Fragment;
4
4
  encoder: Fragment;
5
5
  isEnum: boolean;
6
6
  looseType: Fragment;
7
7
  strictType: Fragment;
8
8
  value: Fragment;
9
- };
10
- export declare function typeManifest(): TypeManifest;
11
- export declare function mergeManifests(manifests: TypeManifest[], options?: {
9
+ }>;
10
+ export declare function typeManifest(input?: Partial<TypeManifest>): TypeManifest;
11
+ export declare function mergeTypeManifests(manifests: TypeManifest[], options?: {
12
12
  mergeCodecs?: (renders: string[]) => string;
13
13
  mergeTypes?: (renders: string[]) => string;
14
14
  mergeValues?: (renders: string[]) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"TypeManifest.d.ts","sourceRoot":"","sources":["../../src/TypeManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA4B,MAAM,aAAa,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG;IACvB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,QAAQ,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;CACnB,CAAC;AAEF,wBAAgB,YAAY,IAAI,YAAY,CAS3C;AAED,wBAAgB,cAAc,CAC1B,SAAS,EAAE,YAAY,EAAE,EACzB,OAAO,GAAE;IACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;IAC3C,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC1C,GACP,YAAY,CAYd"}
1
+ {"version":3,"file":"TypeManifest.d.ts","sourceRoot":"","sources":["../../src/TypeManifest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA4B,MAAM,SAAS,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAChC,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,QAAQ,CAAC;IACrB,KAAK,EAAE,QAAQ,CAAC;CACnB,CAAC,CAAC;AAEH,wBAAgB,YAAY,CAAC,KAAK,GAAE,OAAO,CAAC,YAAY,CAAM,GAAG,YAAY,CAU5E;AAED,wBAAgB,kBAAkB,CAC9B,SAAS,EAAE,YAAY,EAAE,EACzB,OAAO,GAAE;IACL,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;IAC5C,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;IAC3C,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC1C,GACP,YAAY,CAYd"}
@@ -2,7 +2,7 @@ import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getAccountFetchHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
7
7
  accountPath: NodePath<AccountNode>;
8
8
  typeManifest: TypeManifest;
@@ -1 +1 @@
1
- {"version":3,"file":"accountFetchHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountFetchHelpers.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,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,8BAA8B,CAC1C,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,CAmCV"}
1
+ {"version":3,"file":"accountFetchHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountFetchHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,QAAQ,EAAwD,MAAM,UAAU,CAAC;AAE9G,wBAAgB,8BAA8B,CAC1C,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,CAoCV"}
@@ -2,7 +2,7 @@ import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import type { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getAccountPdaHelpersFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'linkables' | 'nameApi'> & {
7
7
  accountPath: NodePath<AccountNode>;
8
8
  typeManifest: TypeManifest;
@@ -1 +1 @@
1
- {"version":3,"file":"accountPdaHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountPdaHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAgD,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAC9E,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CAyCV"}
1
+ {"version":3,"file":"accountPdaHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/accountPdaHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAgD,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAErG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAsB,QAAQ,EAAwD,MAAM,UAAU,CAAC;AAE9G,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG;IAC9E,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IACnC,YAAY,EAAE,YAAY,CAAC;CAC9B,GACF,QAAQ,CA4CV"}
@@ -1,7 +1,7 @@
1
1
  import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getAccountSizeHelpersFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
6
  accountPath: NodePath<AccountNode>;
7
7
  }): Fragment;
@@ -2,7 +2,7 @@ import { AccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getAccountTypeFragment(scope: Pick<GlobalFragmentScope, 'customAccountData' | 'nameApi'> & {
7
7
  accountPath: NodePath<AccountNode>;
8
8
  size: number | null;
@@ -1,6 +1,6 @@
1
1
  import { type DiscriminatorNode, type ProgramNode, type StructTypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  /**
5
5
  * ```
6
6
  * if (data.length === 72) {
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorCondition.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,iBAAiB,EAItB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACtB,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,GACF,QAAQ,CAgBV"}
1
+ {"version":3,"file":"discriminatorCondition.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorCondition.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,KAAK,iBAAiB,EAItB,KAAK,WAAW,EAEhB,KAAK,cAAc,EACtB,MAAM,eAAe,CAAC;AAKvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAElF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,iBAAiB,EAAE,CAAC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,cAAc,CAAC;CAC1B,GACF,QAAQ,CAmBV"}
@@ -1,6 +1,6 @@
1
1
  import { ConstantDiscriminatorNode, DiscriminatorNode, FieldDiscriminatorNode, InstructionArgumentNode, StructFieldTypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getDiscriminatorConstantsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
5
5
  discriminatorNodes: DiscriminatorNode[];
6
6
  fields: InstructionArgumentNode[] | StructFieldTypeNode[];
@@ -1 +1 @@
1
- {"version":3,"file":"discriminatorConstants.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EAGvB,mBAAmB,EAEtB,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAEpD,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,CAMV;AAED,wBAAgB,gCAAgC,CAC5C,iBAAiB,EAAE,iBAAiB,EACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CASjB;AAED,wBAAgB,wCAAwC,CACpD,iBAAiB,EAAE,yBAAyB,EAC5C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAUjB;AAED,wBAAgB,qCAAqC,CACjD,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAYjB"}
1
+ {"version":3,"file":"discriminatorConstants.d.ts","sourceRoot":"","sources":["../../../src/fragments/discriminatorConstants.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,uBAAuB,EAGvB,mBAAmB,EAEtB,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAkB,MAAM,UAAU,CAAC;AAEpD,wBAAgB,iCAAiC,CAC7C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,CAMV;AAED,wBAAgB,gCAAgC,CAC5C,iBAAiB,EAAE,iBAAiB,EACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CASjB;AAED,wBAAgB,wCAAwC,CACpD,iBAAiB,EAAE,yBAAyB,EAC5C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAUjB;AAED,wBAAgB,qCAAqC,CACjD,iBAAiB,EAAE,sBAAsB,EACzC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,MAAM,EAAE,uBAAuB,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAC1D,MAAM,EAAE,MAAM,CAAC;CAClB,GACF,QAAQ,GAAG,IAAI,CAYjB"}
@@ -2,7 +2,6 @@ export * from './accountFetchHelpers';
2
2
  export * from './accountPdaHelpers';
3
3
  export * from './accountSizeHelpers';
4
4
  export * from './accountType';
5
- export * from './common';
6
5
  export * from './discriminatorCondition';
7
6
  export * from './instructionAccountMeta';
8
7
  export * from './instructionAccountTypeParam';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fragments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fragments/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { InstructionAccountNode } from '@codama/nodes';
2
- import { Fragment } from './common';
2
+ import { Fragment } from '../utils';
3
3
  export declare function getInstructionAccountMetaFragment(instructionAccountNode: InstructionAccountNode): Fragment;
4
4
  //# sourceMappingURL=instructionAccountMeta.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instructionAccountMeta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,eAAe,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAE9C,wBAAgB,iCAAiC,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,QAAQ,CAwB1G"}
1
+ {"version":3,"file":"instructionAccountMeta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAc,MAAM,eAAe,CAAC;AAGnE,OAAO,EAAsB,QAAQ,EAAY,MAAM,UAAU,CAAC;AAElE,wBAAgB,iCAAiC,CAAC,sBAAsB,EAAE,sBAAsB,GAAG,QAAQ,CAgC1G"}
@@ -1,7 +1,7 @@
1
1
  import { InstructionAccountNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionAccountTypeParamFragment(scope: Pick<GlobalFragmentScope, 'linkables'> & {
6
6
  allowAccountMeta: boolean;
7
7
  instructionAccountPath: NodePath<InstructionAccountNode>;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionAccountTypeParam.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountTypeParam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAKH,QAAQ,EACX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAY,MAAM,UAAU,CAAC;AAE9C,wBAAgB,sCAAsC,CAClD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CAC5D,GACF,QAAQ,CAmBV"}
1
+ {"version":3,"file":"instructionAccountTypeParam.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionAccountTypeParam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAyC,MAAM,eAAe,CAAC;AAC9F,OAAO,EAKH,QAAQ,EAEX,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,sCAAsC,CAClD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,WAAW,CAAC,GAAG;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC;CAC5D,GACF,QAAQ,CAuBV"}
@@ -1,7 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionByteDeltaFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
6
6
  instructionPath: NodePath<InstructionNode>;
7
7
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionByteDelta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionByteDelta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,eAAe,EAAU,MAAM,eAAe,CAAC;AAC3G,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAUV"}
1
+ {"version":3,"file":"instructionByteDelta.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionByteDelta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqD,eAAe,EAAU,MAAM,eAAe,CAAC;AAE3G,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAA2C,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAEvG,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAUV"}
@@ -2,7 +2,7 @@ import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getInstructionDataFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  instructionPath: NodePath<InstructionNode>;
@@ -2,7 +2,7 @@ import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getInstructionExtraArgsFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
7
7
  extraArgsManifest: TypeManifest;
8
8
  instructionPath: NodePath<InstructionNode>;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionExtraArgs.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionExtraArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAaV"}
1
+ {"version":3,"file":"instructionExtraArgs.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionExtraArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAwD,MAAM,UAAU,CAAC;AAE1F,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;CAC9C,GACF,QAAQ,CAgBV"}
@@ -2,7 +2,7 @@ import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getInstructionFunctionFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  extraArgsManifest: TypeManifest;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,eAAe,EAAoC,MAAM,eAAe,CAAC;AACtH,OAAO,EAGH,QAAQ,EACR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAkD,MAAM,UAAU,CAAC;AAMpF,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CACP,mBAAmB,EACnB,gBAAgB,GAAG,uBAAuB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CACnG,GAAG;IACA,gBAAgB,EAAE,YAAY,CAAC;IAC/B,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAmIV"}
1
+ {"version":3,"file":"instructionFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,eAAe,EAAoC,MAAM,eAAe,CAAC;AAEtH,OAAO,EAGH,QAAQ,EAER,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAEH,QAAQ,EAQX,MAAM,UAAU,CAAC;AAMlB,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CACP,mBAAmB,EACnB,gBAAgB,GAAG,uBAAuB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CACnG,GAAG;IACA,gBAAgB,EAAE,YAAY,CAAC;IAC/B,iBAAiB,EAAE,YAAY,CAAC;IAChC,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA6HV"}
@@ -1,7 +1,7 @@
1
1
  import { OptionalAccountStrategy } from '@codama/nodes';
2
2
  import { ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionInputDefaultFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
6
6
  input: ResolvedInstructionInput;
7
7
  optionalAccountStrategy: OptionalAccountStrategy;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputDefault.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputDefault.ts"],"names":[],"mappings":"AACA,OAAO,EAAgD,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACtG,OAAO,EAAE,wBAAwB,EAAS,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,KAAK,EAAE,wBAAwB,CAAC;IAChC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAwOV"}
1
+ {"version":3,"file":"instructionInputDefault.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputDefault.ts"],"names":[],"mappings":"AACA,OAAO,EAAgD,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEtG,OAAO,EAAQ,wBAAwB,EAAS,MAAM,uBAAuB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAGH,QAAQ,EAKX,MAAM,UAAU,CAAC;AAElB,wBAAgB,kCAAkC,CAC9C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,KAAK,EAAE,wBAAwB,CAAC;IAChC,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA8QV"}
@@ -1,7 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionInputResolvedFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi' | 'typeManifestVisitor'> & {
6
6
  instructionPath: NodePath<InstructionNode>;
7
7
  resolvedInputs: ResolvedInstructionInput[];
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAwC,MAAM,eAAe,CAAC;AACjG,OAAO,EAAuB,QAAQ,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA0BV"}
1
+ {"version":3,"file":"instructionInputResolved.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputResolved.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAwC,MAAM,eAAe,CAAC;AAEjG,OAAO,EAAuB,QAAQ,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAEhG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,mCAAmC,CAC/C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,GAAG,qBAAqB,CAAC,GAAG;IACvG,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAwBV"}
@@ -2,7 +2,7 @@ import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath, ResolvedInstructionInput } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getInstructionInputTypeFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'customInstructionData' | 'nameApi'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  instructionPath: NodePath<InstructionNode>;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAIlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEH,QAAQ,EAGR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAkD,MAAM,UAAU,CAAC;AAEpF,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACvF,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CA6BV"}
1
+ {"version":3,"file":"instructionInputType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionInputType.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAIlB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEH,QAAQ,EAIR,wBAAwB,EAC3B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAEH,QAAQ,EAOX,MAAM,UAAU,CAAC;AAElB,wBAAgB,+BAA+B,CAC3C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,uBAAuB,GAAG,SAAS,CAAC,GAAG;IACvF,gBAAgB,EAAE,YAAY,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,EAAE,wBAAwB,EAAE,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAgCV"}
@@ -2,7 +2,7 @@ import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
4
  import { TypeManifest } from '../TypeManifest';
5
- import { Fragment } from './common';
5
+ import { Fragment } from '../utils';
6
6
  export declare function getInstructionParseFunctionFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'nameApi'> & {
7
7
  dataArgsManifest: TypeManifest;
8
8
  instructionPath: NodePath<InstructionNode>;
@@ -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,CA2CV"}
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,EAAQ,MAAM,uBAAuB,CAAC;AAErG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,QAAQ,EAAwD,MAAM,UAAU,CAAC;AAE9G,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,CAoDV"}
@@ -1,7 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionRemainingAccountsFragment(scope: Pick<GlobalFragmentScope, 'asyncResolvers' | 'getImportFrom' | 'nameApi'> & {
6
6
  instructionPath: NodePath<InstructionNode>;
7
7
  useAsync: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"instructionRemainingAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionRemainingAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAuB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAE9D,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAUV"}
1
+ {"version":3,"file":"instructionRemainingAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionRemainingAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAGlB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAuB,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAE5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAA2C,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAEvG,wBAAgB,uCAAuC,CACnD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,gBAAgB,GAAG,eAAe,GAAG,SAAS,CAAC,GAAG;IAC/E,eAAe,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC3C,QAAQ,EAAE,OAAO,CAAC;CACrB,GACF,QAAQ,CAaV"}
@@ -1,7 +1,7 @@
1
1
  import { InstructionNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getInstructionTypeFragment(scope: Pick<GlobalFragmentScope, 'customInstructionData' | 'linkables' | 'nameApi'> & {
6
6
  instructionPath: NodePath<InstructionNode>;
7
7
  }): Fragment;
@@ -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,CAyDV"}
1
+ {"version":3,"file":"instructionType.d.ts","sourceRoot":"","sources":["../../../src/fragments/instructionType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,eAAe,CAAC;AAE5D,OAAO,EAAgD,QAAQ,EAAQ,MAAM,uBAAuB,CAAC;AAErG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAA8D,MAAM,UAAU,CAAC;AAIpH,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,CA2DV"}
@@ -1,7 +1,7 @@
1
1
  import { PdaNode } from '@codama/nodes';
2
2
  import { NodePath } from '@codama/visitors-core';
3
3
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getPdaFunctionFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
6
6
  pdaPath: NodePath<PdaNode>;
7
7
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"pdaFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/pdaFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgD,QAAQ,EAAS,MAAM,uBAAuB,CAAC;AAEtG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,GACF,QAAQ,CAmCV"}
1
+ {"version":3,"file":"pdaFunction.d.ts","sourceRoot":"","sources":["../../../src/fragments/pdaFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAgD,QAAQ,EAAe,MAAM,uBAAuB,CAAC;AAE5G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,OAAO,EAAsB,QAAQ,EAA8C,MAAM,UAAU,CAAC;AAEpG,wBAAgB,sBAAsB,CAClC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,GACF,QAAQ,CA0CV"}
@@ -1,6 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getProgramFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
5
5
  programNode: ProgramNode;
6
6
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../../src/fragments/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAOV"}
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../../src/fragments/program.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE9E,wBAAgB,kBAAkB,CAC9B,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAUV"}
@@ -1,6 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getProgramAccountsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'typeManifestVisitor'> & {
5
5
  programNode: ProgramNode;
6
6
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"programAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/programAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAEnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAMV"}
1
+ {"version":3,"file":"programAccounts.d.ts","sourceRoot":"","sources":["../../../src/fragments/programAccounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAyB,MAAM,eAAe,CAAC;AAInE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAGlF,wBAAgB,0BAA0B,CACtC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,qBAAqB,CAAC,GAAG;IAClE,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAMV"}
@@ -1,6 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getProgramErrorsFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
5
5
  programNode: ProgramNode;
6
6
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"programErrors.d.ts","sourceRoot":"","sources":["../../../src/fragments/programErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE1D,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAkBV"}
1
+ {"version":3,"file":"programErrors.d.ts","sourceRoot":"","sources":["../../../src/fragments/programErrors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAAwB,MAAM,UAAU,CAAC;AAE9E,wBAAgB,wBAAwB,CACpC,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAqBV"}
@@ -1,6 +1,6 @@
1
1
  import { ProgramNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getProgramInstructionsFragment(scope: Pick<GlobalFragmentScope, 'nameApi' | 'renderParentInstructions' | 'typeManifestVisitor'> & {
5
5
  programNode: ProgramNode;
6
6
  }): Fragment;
@@ -1 +1 @@
1
- {"version":3,"file":"programInstructions.d.ts","sourceRoot":"","sources":["../../../src/fragments/programInstructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,WAAW,EAEd,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAG9D,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC,GAAG;IAC/F,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAeV"}
1
+ {"version":3,"file":"programInstructions.d.ts","sourceRoot":"","sources":["../../../src/fragments/programInstructions.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,WAAW,EAEd,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAA4B,MAAM,UAAU,CAAC;AAGlF,wBAAgB,8BAA8B,CAC1C,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,GAAG,0BAA0B,GAAG,qBAAqB,CAAC,GAAG;IAC/F,WAAW,EAAE,WAAW,CAAC;CAC5B,GACF,QAAQ,CAeV"}
@@ -1,6 +1,6 @@
1
1
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
2
2
  import { TypeManifest } from '../TypeManifest';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getTypeFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
5
5
  docs?: string[];
6
6
  manifest: TypeManifest;
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/fragments/type.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,eAAe,CAC3B,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB,GACF,QAAQ,CAcV"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/fragments/type.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAA8C,MAAM,UAAU,CAAC;AAEhF,wBAAgB,eAAe,CAC3B,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,YAAY,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;CAChB,GACF,QAAQ,CAYV"}
@@ -1,7 +1,7 @@
1
1
  import type { TypeNode } from '@codama/nodes';
2
2
  import { GlobalFragmentScope } from '../getRenderMapVisitor';
3
3
  import { TypeManifest } from '../TypeManifest';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getTypeCodecFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
6
  codecDocs?: string[];
7
7
  decoderDocs?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"typeCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeCodec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAoBV"}
1
+ {"version":3,"file":"typeCodec.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeCodec.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,QAAQ,EAAwC,MAAM,UAAU,CAAC;AAI9F,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAuBV"}
@@ -1,7 +1,7 @@
1
1
  import { TypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
3
  import { TypeManifest } from '../TypeManifest';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getTypeDecoderFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
6
  docs?: string[];
7
7
  manifest: Pick<TypeManifest, 'decoder'>;
@@ -1 +1 @@
1
- {"version":3,"file":"typeDecoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE7D,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAgBV"}
1
+ {"version":3,"file":"typeDecoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDecoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,QAAQ,EAA8C,MAAM,UAAU,CAAC;AAEpG,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAkBV"}
@@ -1,6 +1,6 @@
1
1
  import { TypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
- import { Fragment } from './common';
3
+ import { Fragment } from '../utils';
4
4
  export declare function getTypeDiscriminatedUnionHelpersFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
5
5
  name: string;
6
6
  typeNode: TypeNode;
@@ -1 +1 @@
1
- {"version":3,"file":"typeDiscriminatedUnionHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDiscriminatedUnionHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAEpE,wBAAgB,wCAAwC,CACpD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACtB,GACF,QAAQ,CAoBV"}
1
+ {"version":3,"file":"typeDiscriminatedUnionHelpers.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeDiscriminatedUnionHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAsB,QAAQ,EAAkC,MAAM,UAAU,CAAC;AAExF,wBAAgB,wCAAwC,CACpD,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;CACtB,GACF,QAAQ,CAwBV"}
@@ -1,7 +1,7 @@
1
1
  import { TypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
3
  import { TypeManifest } from '../TypeManifest';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getTypeEncoderFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
6
  docs?: string[];
7
7
  manifest: Pick<TypeManifest, 'encoder'>;
@@ -1 +1 @@
1
- {"version":3,"file":"typeEncoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE7D,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAgBV"}
1
+ {"version":3,"file":"typeEncoder.d.ts","sourceRoot":"","sources":["../../../src/fragments/typeEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAsB,QAAQ,EAA8C,MAAM,UAAU,CAAC;AAEpG,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,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB,GACF,QAAQ,CAkBV"}
@@ -1,7 +1,7 @@
1
1
  import type { TypeNode } from '@codama/nodes';
2
2
  import type { GlobalFragmentScope } from '../getRenderMapVisitor';
3
3
  import { TypeManifest } from '../TypeManifest';
4
- import { Fragment } from './common';
4
+ import { Fragment } from '../utils';
5
5
  export declare function getTypeWithCodecFragment(scope: Pick<GlobalFragmentScope, 'nameApi'> & {
6
6
  codecDocs?: string[];
7
7
  decoderDocs?: string[];