@codama/visitors
Advanced tools
Comparing version 1.0.0 to 1.1.0
import { InstructionInputValueNode, InstructionNode } from '@codama/nodes'; | ||
import { LinkableDictionary, Visitor } from '@codama/visitors-core'; | ||
import { LinkableDictionary, NodePath, Visitor } from '@codama/visitors-core'; | ||
/** | ||
@@ -15,3 +15,3 @@ * Fills in default values for variable PDA seeds that are not explicitly provided. | ||
*/ | ||
export declare function fillDefaultPdaSeedValuesVisitor(instruction: InstructionNode, linkables: LinkableDictionary, strictMode?: boolean): Visitor<InstructionInputValueNode, InstructionInputValueNode["kind"]>; | ||
export declare function fillDefaultPdaSeedValuesVisitor(instructionPath: NodePath<InstructionNode>, linkables: LinkableDictionary, strictMode?: boolean): Visitor<InstructionInputValueNode, InstructionInputValueNode["kind"]>; | ||
//# sourceMappingURL=fillDefaultPdaSeedValuesVisitor.d.ts.map |
{ | ||
"name": "@codama/visitors", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "All visitors for the Codama framework", | ||
@@ -38,5 +38,5 @@ "exports": { | ||
"dependencies": { | ||
"@codama/errors": "1.0.0", | ||
"@codama/nodes": "1.0.0", | ||
"@codama/visitors-core": "1.0.0" | ||
"@codama/errors": "1.1.0", | ||
"@codama/nodes": "1.1.0", | ||
"@codama/visitors-core": "1.1.0" | ||
}, | ||
@@ -43,0 +43,0 @@ "license": "MIT", |
@@ -99,3 +99,3 @@ # Codama ➤ Visitors | ||
This visitor fills any missing `PdaSeedValueNodes` from `PdaValueNodes` using the provided `InstructionNode` such that: | ||
This visitor fills any missing `PdaSeedValueNodes` from `PdaValueNodes` using the provided `NodePath<InstructionNode>` such that: | ||
@@ -111,3 +111,3 @@ - If a `VariablePdaSeedNode` is of type `PublicKeyTypeNode` and the name of the seed matches the name of an account in the `InstructionNode`, then a new `PdaSeedValueNode` will be added with the matching account. | ||
```ts | ||
codama.update(fillDefaultPdaSeedValuesVisitor(instructionNode, linkables, strictMode)); | ||
codama.update(fillDefaultPdaSeedValuesVisitor(instructionPath, linkables, strictMode)); | ||
``` | ||
@@ -114,0 +114,0 @@ |
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
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
927313
6151
+ Added@codama/errors@1.1.0(transitive)
+ Added@codama/node-types@1.1.0(transitive)
+ Added@codama/nodes@1.1.0(transitive)
+ Added@codama/visitors-core@1.1.0(transitive)
- Removed@codama/errors@1.0.0(transitive)
- Removed@codama/node-types@1.0.0(transitive)
- Removed@codama/nodes@1.0.0(transitive)
- Removed@codama/visitors-core@1.0.0(transitive)
Updated@codama/errors@1.1.0
Updated@codama/nodes@1.1.0
Updated@codama/visitors-core@1.1.0