A Codama visitor for renaming accounts, instructions, and defined types within Solana programs.
Full documentation and examples are available at coda.ianm.com/docs/packages/codama-rename-visitor.
npm install @macalinao/codama-rename-visitor
import { renameVisitor } from "@macalinao/codama-rename-visitor";
const visitor = renameVisitor({
myProgram: {
instructions: {
oldName: "newName"
},
accounts: {
oldAccount: "newAccount"
},
definedTypes: {
oldType: "newType"
}
}
});
Copyright © 2025 Ian Macalinao
Licensed under the Apache License, Version 2.0