@codama/node-types
Advanced tools
Comparing version
@@ -9,3 +9,3 @@ import type { DiscriminatorNode } from './discriminatorNodes'; | ||
readonly size?: number | null; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly data: TData; | ||
@@ -12,0 +12,0 @@ readonly pda?: TPda; |
@@ -7,5 +7,5 @@ import type { CamelCaseString, Docs } from '../shared'; | ||
readonly name: CamelCaseString; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly dependsOn?: TDependsOn; | ||
} | ||
//# sourceMappingURL=ResolverValueNode.d.ts.map |
@@ -6,5 +6,5 @@ import type { CamelCaseString, Docs } from './shared'; | ||
readonly name: CamelCaseString; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly type: TType; | ||
} | ||
//# sourceMappingURL=DefinedTypeNode.d.ts.map |
@@ -7,4 +7,4 @@ import type { CamelCaseString, Docs } from './shared'; | ||
readonly message: string; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
} | ||
//# sourceMappingURL=ErrorNode.d.ts.map |
@@ -8,6 +8,6 @@ import type { InstructionInputValueNode } from './contextualValueNodes'; | ||
readonly isSigner: boolean | 'either'; | ||
readonly isOptional: boolean; | ||
readonly docs: Docs; | ||
readonly isOptional?: boolean; | ||
readonly docs?: Docs; | ||
readonly defaultValue?: TDefaultValue; | ||
} | ||
//# sourceMappingURL=InstructionAccountNode.d.ts.map |
@@ -8,3 +8,3 @@ import type { InstructionInputValueNode } from './contextualValueNodes'; | ||
readonly defaultValueStrategy?: 'omitted' | 'optional'; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly type: TypeNode; | ||
@@ -11,0 +11,0 @@ readonly defaultValue?: TDefaultValue; |
@@ -8,7 +8,8 @@ import type { DiscriminatorNode } from './discriminatorNodes'; | ||
type SubInstructionNode = InstructionNode; | ||
export type OptionalAccountStrategy = 'omitted' | 'programId'; | ||
export interface InstructionNode<TAccounts extends InstructionAccountNode[] = InstructionAccountNode[], TArguments extends InstructionArgumentNode[] = InstructionArgumentNode[], TExtraArguments extends InstructionArgumentNode[] | undefined = InstructionArgumentNode[] | undefined, TRemainingAccounts extends InstructionRemainingAccountsNode[] | undefined = InstructionRemainingAccountsNode[] | undefined, TByteDeltas extends InstructionByteDeltaNode[] | undefined = InstructionByteDeltaNode[] | undefined, TDiscriminators extends DiscriminatorNode[] | undefined = DiscriminatorNode[] | undefined, TSubInstructions extends SubInstructionNode[] | undefined = SubInstructionNode[] | undefined> { | ||
readonly kind: 'instructionNode'; | ||
readonly name: CamelCaseString; | ||
readonly docs: Docs; | ||
readonly optionalAccountStrategy: 'omitted' | 'programId'; | ||
readonly docs?: Docs; | ||
readonly optionalAccountStrategy?: OptionalAccountStrategy; | ||
readonly accounts: TAccounts; | ||
@@ -15,0 +16,0 @@ readonly arguments: TArguments; |
@@ -8,5 +8,5 @@ import type { ArgumentValueNode, ResolverValueNode } from './contextualValueNodes'; | ||
readonly isWritable?: boolean; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly value: TValue; | ||
} | ||
//# sourceMappingURL=InstructionRemainingAccountsNode.d.ts.map |
@@ -6,3 +6,3 @@ import type { PdaSeedNode } from './pdaSeedNodes'; | ||
readonly name: CamelCaseString; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly programId?: string; | ||
@@ -9,0 +9,0 @@ readonly seeds: TSeeds; |
@@ -6,5 +6,5 @@ import type { CamelCaseString, Docs } from '../shared'; | ||
readonly name: CamelCaseString; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly type: TType; | ||
} | ||
//# sourceMappingURL=VariablePdaSeedNode.d.ts.map |
@@ -13,3 +13,3 @@ import type { AccountNode } from './AccountNode'; | ||
readonly origin?: 'anchor' | 'shank'; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly accounts: TAccounts; | ||
@@ -16,0 +16,0 @@ readonly instructions: TInstructions; |
@@ -6,3 +6,3 @@ import type { NestedTypeNode } from './NestedTypeNode'; | ||
readonly kind: 'optionTypeNode'; | ||
readonly fixed: boolean; | ||
readonly fixed?: boolean; | ||
readonly item: TItem; | ||
@@ -9,0 +9,0 @@ readonly prefix: TPrefix; |
@@ -8,3 +8,3 @@ import type { CamelCaseString, Docs } from '../shared'; | ||
readonly defaultValueStrategy?: 'omitted' | 'optional'; | ||
readonly docs: Docs; | ||
readonly docs?: Docs; | ||
readonly type: TType; | ||
@@ -11,0 +11,0 @@ readonly defaultValue?: TDefaultValue; |
{ | ||
"name": "@codama/node-types", | ||
"version": "1.2.10", | ||
"version": "1.2.11", | ||
"description": "Node specifications for the Codama standard", | ||
@@ -5,0 +5,0 @@ "exports": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99430
0.19%856
0.12%