Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link AccountNodes to PdaNodes #128

Merged
merged 26 commits into from
Jan 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3d50dd6
Rewire account and PDA nodes
lorisleiva Dec 31, 2023
089d719
Update renderers
lorisleiva Dec 31, 2023
7f83a4d
Remove function input for update visitors
lorisleiva Dec 31, 2023
cce8bff
Update updateDefinedTypesVisitor.ts
lorisleiva Dec 31, 2023
9ea6254
Update updateAccountsVisitor.ts
lorisleiva Jan 1, 2024
df85535
Revert "Update updateDefinedTypesVisitor.ts"
lorisleiva Jan 1, 2024
c958457
Add update account visitor tests
lorisleiva Jan 1, 2024
496ef4b
Add more tests
lorisleiva Jan 1, 2024
863717f
Fix bug in updateAccountsVisitor
lorisleiva Jan 1, 2024
96d2e47
Update getRenderMapVisitor.ts
lorisleiva Jan 1, 2024
bb9f627
Fix PDA template generation
lorisleiva Jan 1, 2024
ab81e73
Update PDA templates
lorisleiva Jan 1, 2024
8a633b4
Generate js-experimental changes
lorisleiva Jan 1, 2024
d498330
Add LinkableDictionary and recordLinkablesVisitor
lorisleiva Jan 1, 2024
dbcaf6b
Add recordNodeStackVisitor
lorisleiva Jan 1, 2024
6869611
Use recordLinkablesVisitor
lorisleiva Jan 1, 2024
1ab81f1
Use recordLinkablesVisitor
lorisleiva Jan 1, 2024
005e3ec
Use recordLinkablesVisitor
lorisleiva Jan 1, 2024
ea7a970
Remove tapDefinedTypesVisitor
lorisleiva Jan 1, 2024
8f48bc9
Use recordNodeStackVisitor
lorisleiva Jan 1, 2024
f3cfddb
Use recordNodeStackVisitor
lorisleiva Jan 1, 2024
bf76a63
Use recordLinkablesVisitor
lorisleiva Jan 1, 2024
f73bc10
Fix hasVariableSeeds from accountPdaHelpers
lorisleiva Jan 1, 2024
fca1262
Fix imports from accountPdaHelpers
lorisleiva Jan 1, 2024
e7c378f
Add changeset
lorisleiva Jan 1, 2024
4a1aaad
Update programLinkNode name when updating programNode name
lorisleiva Jan 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update updateDefinedTypesVisitor.ts
lorisleiva committed Dec 31, 2023
commit cce8bffb7604bc8d9cf9e6ce912fb8f1e607a33d
2 changes: 1 addition & 1 deletion src/visitors/updateDefinedTypesVisitor.ts
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ export function updateDefinedTypesVisitor(

if (newName) {
transforms.push({
select: `${selectorStack.join('.')}.[definedTypeLinkNode]${name}`,
select: `[definedTypeLinkNode]${name}`,
transform: (node) => {
assertIsNode(node, 'definedTypeLinkNode');
if (node.importFrom) return node;