@codama/renderers-js 1.1.2 → 1.2.0

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.
@@ -429,7 +429,7 @@ function getAccountPdaHelpersFragment(scope) {
429
429
  const { accountPath, nameApi, linkables, customAccountData, typeManifest: typeManifest2 } = scope;
430
430
  const accountNode = getLastNodeFromPath(accountPath);
431
431
  const programNode = findProgramNodeFromPath(accountPath);
432
- const pdaNode = accountNode.pda ? linkables.get([...accountPath, accountNode.pda]) : void 0;
432
+ const pdaNode = accountNode.pda ? linkables.get([...accountPath, accountNode.pda]) : undefined;
433
433
  if (!pdaNode) {
434
434
  return fragment("");
435
435
  }
@@ -781,7 +781,7 @@ function getInstructionInputDefaultFragment(scope) {
781
781
  if (input.kind === "instructionAccountNode" && isNode(defaultValue, "resolverValueNode")) {
782
782
  return fragment(`accounts.${inputName} = { ...accounts.${inputName}, ...${renderedValue} };`);
783
783
  }
784
- if (input.kind === "instructionAccountNode" && isWritable === void 0) {
784
+ if (input.kind === "instructionAccountNode" && isWritable === undefined) {
785
785
  return fragment(`accounts.${inputName}.value = ${renderedValue};`);
786
786
  }
787
787
  if (input.kind === "instructionAccountNode") {
@@ -967,7 +967,7 @@ ${ifTrueRenderer ? ifTrueRenderer.render : ifFalseRenderer?.render}
967
967
  }
968
968
  function renderNestedInstructionDefault(scope) {
969
969
  const { input, defaultValue } = scope;
970
- if (!defaultValue) return void 0;
970
+ if (!defaultValue) return undefined;
971
971
  return getInstructionInputDefaultFragment({
972
972
  ...scope,
973
973
  input: { ...input, defaultValue }
@@ -2128,11 +2128,8 @@ function getTypeManifestVisitor(input) {
2128
2128
  },
2129
2129
  visitSolAmountType({ number }, { self }) {
2130
2130
  const numberManifest = visit(number, self);
2131
- const lamportsType = "LamportsUnsafeBeyond2Pow53Minus1";
2132
- const lamportsImport = new ImportMap().add(
2133
- "solanaRpcTypes",
2134
- "type LamportsUnsafeBeyond2Pow53Minus1"
2135
- );
2131
+ const lamportsType = "Lamports";
2132
+ const lamportsImport = new ImportMap().add("solanaRpcTypes", "type Lamports");
2136
2133
  return {
2137
2134
  ...numberManifest,
2138
2135
  decoder: numberManifest.decoder.mapRender((r) => `getLamportsDecoder(${r})`).addImports("solanaRpcTypes", "getLamportsDecoder"),