@codama/spec 1.6.0-rc.5 → 1.6.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.
@@ -643,7 +643,7 @@ var pdaValueNode = defineNode("pdaValueNode", {
643
643
  attribute("pda", union("pdaValuePda"), {
644
644
  docs: ["The PDA being derived \u2014 either a link to a defined PDA or an inline `pdaNode`."]
645
645
  }),
646
- optionalAttribute("seeds", array(node("pdaSeedValueNode")), {
646
+ attribute("seeds", array(node("pdaSeedValueNode")), {
647
647
  docs: ["The seed values used to derive the PDA, paired with their seed names."]
648
648
  }),
649
649
  optionalAttribute("programId", union("pdaValueProgramId"), {
@@ -941,10 +941,10 @@ var instructionNode = defineNode("instructionNode", {
941
941
  optionalAttribute("optionalAccountStrategy", enumeration("optionalAccountStrategy"), {
942
942
  docs: ["How absent optional accounts are represented when serialising the instruction."]
943
943
  }),
944
- optionalAttribute("accounts", array(node("instructionAccountNode")), {
944
+ attribute("accounts", array(node("instructionAccountNode")), {
945
945
  docs: ["The accounts the instruction operates on, in order."]
946
946
  }),
947
- optionalAttribute("arguments", array(node("instructionArgumentNode")), {
947
+ attribute("arguments", array(node("instructionArgumentNode")), {
948
948
  docs: ["The serialised arguments of the instruction, in order."]
949
949
  }),
950
950
  optionalAttribute("extraArguments", array(node("instructionArgumentNode")), {
@@ -1162,7 +1162,7 @@ var pdaNode = defineNode("pdaNode", {
1162
1162
  "The base58-encoded program ID used to derive the PDA. When omitted, the surrounding program is assumed."
1163
1163
  ]
1164
1164
  }),
1165
- optionalAttribute("seeds", array(union("pdaSeedNode")), {
1165
+ attribute("seeds", array(union("pdaSeedNode")), {
1166
1166
  docs: ["The seeds used to derive the PDA, in order."]
1167
1167
  })
1168
1168
  ]
@@ -1240,25 +1240,25 @@ var programNode = defineNode("programNode", {
1240
1240
  optionalAttribute("docs", docs(), {
1241
1241
  docs: ["Markdown documentation for the program."]
1242
1242
  }),
1243
- optionalAttribute("accounts", array(node("accountNode")), {
1243
+ attribute("accounts", array(node("accountNode")), {
1244
1244
  docs: ["The accounts owned by the program."]
1245
1245
  }),
1246
- optionalAttribute("instructions", array(node("instructionNode")), {
1246
+ attribute("instructions", array(node("instructionNode")), {
1247
1247
  docs: ["The instructions exposed by the program."]
1248
1248
  }),
1249
- optionalAttribute("definedTypes", array(node("definedTypeNode")), {
1249
+ attribute("definedTypes", array(node("definedTypeNode")), {
1250
1250
  docs: ["The reusable types defined by the program."]
1251
1251
  }),
1252
- optionalAttribute("pdas", array(node("pdaNode")), {
1252
+ attribute("pdas", array(node("pdaNode")), {
1253
1253
  docs: ["The PDAs derived by the program."]
1254
1254
  }),
1255
- optionalAttribute("events", array(node("eventNode")), {
1255
+ attribute("events", array(node("eventNode")), {
1256
1256
  docs: ["The events emitted by the program."]
1257
1257
  }),
1258
- optionalAttribute("errors", array(node("errorNode")), {
1258
+ attribute("errors", array(node("errorNode")), {
1259
1259
  docs: ["The errors returned by the program."]
1260
1260
  }),
1261
- optionalAttribute("constants", array(node("constantNode")), {
1261
+ attribute("constants", array(node("constantNode")), {
1262
1262
  docs: ["The constants exposed by the program."]
1263
1263
  })
1264
1264
  ]
@@ -1280,7 +1280,7 @@ var rootNode = defineNode("rootNode", {
1280
1280
  attribute("program", node("programNode"), {
1281
1281
  docs: ["The primary program described by the document."]
1282
1282
  }),
1283
- optionalAttribute("additionalPrograms", array(node("programNode")), {
1283
+ attribute("additionalPrograms", array(node("programNode")), {
1284
1284
  docs: ["Additional programs referenced by the primary program."]
1285
1285
  })
1286
1286
  ]