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