From 4b42851055c5bbf229348d013e5e2384b4876b55 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:39:26 +0100 Subject: [PATCH 01/14] Rename `kinobi-so` to `codama` --- .changeset/config.json | 14 ++++---- README.md | 22 ++++++------- package.json | 2 +- packages/errors/README.md | 16 +++++----- packages/errors/package.json | 30 ++++++++--------- packages/errors/src/cli.ts | 2 +- packages/errors/src/codes.ts | 2 +- packages/errors/src/context.ts | 2 +- packages/errors/src/message-formatter.ts | 2 +- packages/errors/test/error.typetest.ts | 2 +- packages/errors/tsconfig.json | 2 +- packages/internals/package.json | 2 +- packages/internals/scripts/test-unit.mjs | 2 +- packages/library/README.md | 12 +++---- packages/library/package.json | 32 +++++++++---------- packages/library/src/index.ts | 8 ++--- packages/library/src/kinobi.ts | 8 ++--- packages/node-types/README.md | 14 ++++---- packages/node-types/package.json | 18 +++++------ packages/node-types/tsconfig.json | 2 +- packages/nodes-from-anchor/README.md | 10 +++--- packages/nodes-from-anchor/package.json | 32 +++++++++---------- .../nodes-from-anchor/src/defaultVisitor.ts | 4 +-- .../nodes-from-anchor/src/discriminators.ts | 2 +- packages/nodes-from-anchor/src/index.ts | 4 +-- .../nodes-from-anchor/src/v00/AccountNode.ts | 2 +- .../src/v00/DefinedTypeNode.ts | 2 +- .../nodes-from-anchor/src/v00/ErrorNode.ts | 2 +- .../src/v00/InstructionAccountNode.ts | 2 +- .../src/v00/InstructionArgumentNode.ts | 2 +- .../src/v00/InstructionNode.ts | 2 +- packages/nodes-from-anchor/src/v00/PdaNode.ts | 2 +- .../nodes-from-anchor/src/v00/ProgramNode.ts | 2 +- .../nodes-from-anchor/src/v00/RootNode.ts | 2 +- .../src/v00/typeNodes/ArrayTypeNode.ts | 2 +- .../v00/typeNodes/EnumEmptyVariantTypeNode.ts | 2 +- .../typeNodes/EnumStructVariantTypeNode.ts | 2 +- .../v00/typeNodes/EnumTupleVariantTypeNode.ts | 2 +- .../src/v00/typeNodes/EnumTypeNode.ts | 2 +- .../src/v00/typeNodes/MapTypeNode.ts | 2 +- .../src/v00/typeNodes/OptionTypeNode.ts | 2 +- .../src/v00/typeNodes/SetTypeNode.ts | 2 +- .../src/v00/typeNodes/StructFieldTypeNode.ts | 2 +- .../src/v00/typeNodes/StructTypeNode.ts | 2 +- .../src/v00/typeNodes/TupleTypeNode.ts | 2 +- .../src/v00/typeNodes/TypeNode.ts | 4 +-- .../nodes-from-anchor/src/v01/AccountNode.ts | 4 +-- .../src/v01/DefinedTypeNode.ts | 2 +- .../nodes-from-anchor/src/v01/ErrorNode.ts | 2 +- .../src/v01/InstructionAccountNode.ts | 4 +-- .../src/v01/InstructionArgumentNode.ts | 2 +- .../src/v01/InstructionNode.ts | 2 +- .../nodes-from-anchor/src/v01/ProgramNode.ts | 2 +- .../nodes-from-anchor/src/v01/RootNode.ts | 2 +- .../src/v01/typeNodes/ArrayTypeNode.ts | 2 +- .../v01/typeNodes/EnumEmptyVariantTypeNode.ts | 2 +- .../typeNodes/EnumStructVariantTypeNode.ts | 2 +- .../v01/typeNodes/EnumTupleVariantTypeNode.ts | 2 +- .../src/v01/typeNodes/EnumTypeNode.ts | 2 +- .../src/v01/typeNodes/OptionTypeNode.ts | 2 +- .../src/v01/typeNodes/StructFieldTypeNode.ts | 4 +-- .../src/v01/typeNodes/StructTypeNode.ts | 2 +- .../src/v01/typeNodes/TupleTypeNode.ts | 2 +- .../src/v01/typeNodes/TypeNode.ts | 4 +-- .../test/discriminator.test.ts | 2 +- .../test/rootNodeFromAnchor.test.ts | 2 +- .../test/v00/AccountNode.test.ts | 2 +- .../test/v00/DefinedTypeNode.test.ts | 2 +- .../test/v00/ErrorNode.test.ts | 2 +- .../test/v00/InstructionAccountNode.test.ts | 2 +- .../test/v00/InstructionArgumentNode.test.ts | 2 +- .../test/v00/InstructionNode.test.ts | 2 +- .../test/v00/PdaNode.test.ts | 2 +- .../test/v00/ProgramNode.test.ts | 2 +- .../test/v00/RootNode.test.ts | 2 +- .../test/v00/typeNodes/ArrayTypeNode.test.ts | 2 +- .../v00/typeNodes/BooleanTypeNode.test.ts | 2 +- .../test/v00/typeNodes/BytesTypeNode.test.ts | 2 +- .../test/v00/typeNodes/EnumTypeNode.test.ts | 2 +- .../test/v00/typeNodes/MapTypeNode.test.ts | 2 +- .../test/v00/typeNodes/NumberTypeNode.test.ts | 2 +- .../test/v00/typeNodes/OptionTypeNode.test.ts | 2 +- .../v00/typeNodes/PublicKeyTypeNode.test.ts | 2 +- .../test/v00/typeNodes/SetTypeNode.test.ts | 2 +- .../test/v00/typeNodes/StringTypeNode.test.ts | 2 +- .../test/v00/typeNodes/StructTypeNode.test.ts | 8 +---- .../test/v00/typeNodes/TupleTypeNode.test.ts | 2 +- .../test/v01/AccountNode.test.ts | 2 +- .../test/v01/DefinedTypeNode.test.ts | 2 +- .../test/v01/ErrorNode.test.ts | 2 +- .../test/v01/InstructionAccountNode.test.ts | 2 +- .../test/v01/InstructionArgumentNode.test.ts | 2 +- .../test/v01/InstructionNode.test.ts | 2 +- .../test/v01/ProgramNode.test.ts | 2 +- .../test/v01/RootNode.test.ts | 2 +- .../test/v01/typeNodes/ArrayTypeNode.test.ts | 2 +- .../v01/typeNodes/BooleanTypeNode.test.ts | 2 +- .../test/v01/typeNodes/BytesTypeNode.test.ts | 2 +- .../test/v01/typeNodes/EnumTypeNode.test.ts | 2 +- .../test/v01/typeNodes/NumberTypeNode.test.ts | 2 +- .../test/v01/typeNodes/OptionTypeNode.test.ts | 2 +- .../v01/typeNodes/PublicKeyTypeNode.test.ts | 2 +- .../test/v01/typeNodes/StringTypeNode.test.ts | 2 +- .../test/v01/typeNodes/StructTypeNode.test.ts | 4 +-- .../test/v01/typeNodes/TupleTypeNode.test.ts | 2 +- packages/nodes-from-anchor/tsconfig.json | 2 +- packages/nodes/README.md | 10 +++--- packages/nodes/docs/AccountNode.md | 2 +- packages/nodes/docs/DefinedTypeNode.md | 2 +- packages/nodes/docs/ErrorNode.md | 2 +- packages/nodes/docs/InstructionAccountNode.md | 2 +- .../nodes/docs/InstructionArgumentNode.md | 2 +- packages/nodes/docs/InstructionNode.md | 2 +- packages/nodes/docs/PdaNode.md | 2 +- packages/nodes/docs/ProgramNode.md | 2 +- packages/nodes/docs/RootNode.md | 2 +- .../nodes/docs/typeNodes/ArrayTypeNode.md | 2 +- .../nodes/docs/typeNodes/NumberTypeNode.md | 6 ++-- packages/nodes/package.json | 30 ++++++++--------- packages/nodes/src/AccountNode.ts | 8 +---- packages/nodes/src/DefinedTypeNode.ts | 2 +- packages/nodes/src/ErrorNode.ts | 2 +- packages/nodes/src/InstructionAccountNode.ts | 2 +- packages/nodes/src/InstructionArgumentNode.ts | 2 +- .../nodes/src/InstructionByteDeltaNode.ts | 2 +- packages/nodes/src/InstructionNode.ts | 2 +- .../src/InstructionRemainingAccountsNode.ts | 2 +- packages/nodes/src/Node.ts | 4 +-- packages/nodes/src/PdaNode.ts | 2 +- packages/nodes/src/ProgramNode.ts | 2 +- packages/nodes/src/RootNode.ts | 2 +- .../AccountBumpValueNode.ts | 2 +- .../contextualValueNodes/AccountValueNode.ts | 2 +- .../contextualValueNodes/ArgumentValueNode.ts | 2 +- .../ConditionalValueNode.ts | 2 +- .../contextualValueNodes/IdentityValueNode.ts | 2 +- .../contextualValueNodes/PayerValueNode.ts | 2 +- .../contextualValueNodes/PdaSeedValueNode.ts | 2 +- .../src/contextualValueNodes/PdaValueNode.ts | 2 +- .../ProgramIdValueNode.ts | 2 +- .../contextualValueNodes/ResolverValueNode.ts | 2 +- .../nodes/src/countNodes/FixedCountNode.ts | 2 +- .../nodes/src/countNodes/PrefixedCountNode.ts | 2 +- .../src/countNodes/RemainderCountNode.ts | 2 +- .../ConstantDiscriminatorNode.ts | 2 +- .../FieldDiscriminatorNode.ts | 2 +- .../SizeDiscriminatorNode.ts | 2 +- packages/nodes/src/index.ts | 2 +- .../nodes/src/linkNodes/AccountLinkNode.ts | 2 +- .../src/linkNodes/DefinedTypeLinkNode.ts | 2 +- .../linkNodes/InstructionAccountLinkNode.ts | 2 +- .../linkNodes/InstructionArgumentLinkNode.ts | 2 +- .../src/linkNodes/InstructionLinkNode.ts | 2 +- packages/nodes/src/linkNodes/PdaLinkNode.ts | 2 +- .../nodes/src/linkNodes/ProgramLinkNode.ts | 2 +- .../src/pdaSeedNodes/ConstantPdaSeedNode.ts | 8 +---- .../src/pdaSeedNodes/VariablePdaSeedNode.ts | 2 +- packages/nodes/src/shared/docs.ts | 2 +- packages/nodes/src/shared/stringCases.ts | 2 +- .../nodes/src/typeNodes/AmountTypeNode.ts | 2 +- packages/nodes/src/typeNodes/ArrayTypeNode.ts | 2 +- .../nodes/src/typeNodes/BooleanTypeNode.ts | 2 +- packages/nodes/src/typeNodes/BytesTypeNode.ts | 2 +- .../nodes/src/typeNodes/DateTimeTypeNode.ts | 2 +- .../src/typeNodes/EnumEmptyVariantTypeNode.ts | 2 +- .../typeNodes/EnumStructVariantTypeNode.ts | 2 +- .../src/typeNodes/EnumTupleVariantTypeNode.ts | 2 +- packages/nodes/src/typeNodes/EnumTypeNode.ts | 2 +- .../nodes/src/typeNodes/FixedSizeTypeNode.ts | 2 +- .../src/typeNodes/HiddenPrefixTypeNode.ts | 2 +- .../src/typeNodes/HiddenSuffixTypeNode.ts | 2 +- packages/nodes/src/typeNodes/MapTypeNode.ts | 2 +- .../nodes/src/typeNodes/NestedTypeNode.ts | 4 +-- .../nodes/src/typeNodes/NumberTypeNode.ts | 2 +- .../nodes/src/typeNodes/OptionTypeNode.ts | 2 +- .../nodes/src/typeNodes/PostOffsetTypeNode.ts | 2 +- .../nodes/src/typeNodes/PreOffsetTypeNode.ts | 2 +- .../nodes/src/typeNodes/PublicKeyTypeNode.ts | 2 +- .../src/typeNodes/RemainderOptionTypeNode.ts | 2 +- .../nodes/src/typeNodes/SentinelTypeNode.ts | 2 +- packages/nodes/src/typeNodes/SetTypeNode.ts | 2 +- .../nodes/src/typeNodes/SizePrefixTypeNode.ts | 2 +- .../nodes/src/typeNodes/SolAmountTypeNode.ts | 2 +- .../nodes/src/typeNodes/StringTypeNode.ts | 2 +- .../src/typeNodes/StructFieldTypeNode.ts | 2 +- .../nodes/src/typeNodes/StructTypeNode.ts | 2 +- packages/nodes/src/typeNodes/TupleTypeNode.ts | 2 +- .../src/typeNodes/ZeroableOptionTypeNode.ts | 2 +- .../nodes/src/valueNodes/ArrayValueNode.ts | 2 +- .../nodes/src/valueNodes/BooleanValueNode.ts | 2 +- .../nodes/src/valueNodes/BytesValueNode.ts | 2 +- .../nodes/src/valueNodes/ConstantValueNode.ts | 2 +- .../nodes/src/valueNodes/EnumValueNode.ts | 2 +- .../nodes/src/valueNodes/MapEntryValueNode.ts | 2 +- packages/nodes/src/valueNodes/MapValueNode.ts | 2 +- .../nodes/src/valueNodes/NoneValueNode.ts | 2 +- .../nodes/src/valueNodes/NumberValueNode.ts | 2 +- .../src/valueNodes/PublicKeyValueNode.ts | 2 +- packages/nodes/src/valueNodes/SetValueNode.ts | 2 +- .../nodes/src/valueNodes/SomeValueNode.ts | 2 +- .../nodes/src/valueNodes/StringValueNode.ts | 2 +- .../src/valueNodes/StructFieldValueNode.ts | 2 +- .../nodes/src/valueNodes/StructValueNode.ts | 2 +- .../nodes/src/valueNodes/TupleValueNode.ts | 2 +- packages/nodes/test/Node.typetest.ts | 2 +- packages/nodes/test/RootNode.test.ts | 2 +- .../ContextualValueNode.typetest.ts | 2 +- .../test/countNodes/CountNode.typetest.ts | 2 +- .../DiscriminatorNode.typetest.ts | 2 +- .../nodes/test/linkNodes/LinkNode.typetest.ts | 2 +- .../test/pdaSeedNodes/PdaSeedNode.typetest.ts | 2 +- .../nodes/test/typeNodes/TypeNode.typetest.ts | 2 +- .../test/valueNodes/ValueNode.typetest.ts | 2 +- packages/nodes/tsconfig.json | 2 +- packages/renderers-core/README.md | 24 +++++++------- packages/renderers-core/package.json | 32 +++++++++---------- packages/renderers-core/src/RenderMap.ts | 2 +- packages/renderers-core/src/fs.ts | 2 +- .../src/writeRenderMapVisitor.ts | 4 +-- packages/renderers-core/test/fs.test.ts | 2 +- packages/renderers-core/tsconfig.json | 2 +- packages/renderers-js-umi/README.md | 10 +++--- packages/renderers-js-umi/e2e/generate.cjs | 6 ++-- .../renderers-js-umi/e2e/memo/package.json | 2 +- .../renderers-js-umi/e2e/system/package.json | 2 +- packages/renderers-js-umi/package.json | 32 +++++++++---------- .../public/templates/layout.njk | 2 +- .../src/getRenderMapVisitor.ts | 8 ++--- .../src/getTypeManifestVisitor.ts | 6 ++-- .../src/getValidatorBagVisitor.ts | 13 ++------ .../src/renderInstructionDefaults.ts | 4 +-- .../renderers-js-umi/src/renderVisitor.ts | 6 ++-- packages/renderers-js-umi/src/utils/codecs.ts | 2 +- .../renderers-js-umi/src/utils/customData.ts | 2 +- .../renderers-js-umi/src/utils/gpaField.ts | 4 +-- .../src/utils/linkOverrides.ts | 4 +-- packages/renderers-js-umi/src/utils/render.ts | 2 +- packages/renderers-js-umi/test/_setup.ts | 2 +- .../test/accountsPage.test.ts | 4 +-- .../test/exports/commonjs.cjs | 4 +-- .../renderers-js-umi/test/exports/module.mjs | 4 +-- .../test/instructionsPage.test.ts | 4 +-- .../test/programsPage.test.ts | 4 +-- packages/renderers-js-umi/tsconfig.json | 2 +- packages/renderers-js/README.md | 10 +++--- packages/renderers-js/e2e/anchor/package.json | 4 +-- packages/renderers-js/e2e/generate.cjs | 8 ++--- packages/renderers-js/e2e/memo/package.json | 4 +-- packages/renderers-js/e2e/system/package.json | 4 +-- packages/renderers-js/e2e/token/package.json | 4 +-- packages/renderers-js/package.json | 32 +++++++++---------- .../renderers-js/public/templates/layout.njk | 2 +- .../src/fragments/accountFetchHelpers.ts | 2 +- .../src/fragments/accountPdaHelpers.ts | 2 +- .../src/fragments/accountSizeHelpers.ts | 2 +- .../renderers-js/src/fragments/accountType.ts | 2 +- .../src/fragments/discriminatorCondition.ts | 4 +-- .../src/fragments/discriminatorConstants.ts | 4 +-- .../src/fragments/instructionAccountMeta.ts | 2 +- .../fragments/instructionAccountTypeParam.ts | 4 +-- .../src/fragments/instructionByteDelta.ts | 2 +- .../src/fragments/instructionData.ts | 2 +- .../src/fragments/instructionExtraArgs.ts | 2 +- .../src/fragments/instructionFunction.ts | 4 +-- .../src/fragments/instructionInputDefault.ts | 4 +-- .../src/fragments/instructionInputResolved.ts | 4 +-- .../src/fragments/instructionInputType.ts | 4 +-- .../src/fragments/instructionParseFunction.ts | 2 +- .../fragments/instructionRemainingAccounts.ts | 2 +- .../src/fragments/instructionType.ts | 2 +- .../renderers-js/src/fragments/pdaFunction.ts | 4 +-- .../renderers-js/src/fragments/program.ts | 2 +- .../src/fragments/programAccounts.ts | 2 +- .../src/fragments/programErrors.ts | 2 +- .../src/fragments/programInstructions.ts | 2 +- .../typeDiscriminatedUnionHelpers.ts | 2 +- .../renderers-js/src/getRenderMapVisitor.ts | 8 ++--- .../src/getTypeManifestVisitor.ts | 4 +-- packages/renderers-js/src/nameTransformers.ts | 2 +- packages/renderers-js/src/renderVisitor.ts | 4 +-- packages/renderers-js/src/utils/async.ts | 4 +-- packages/renderers-js/src/utils/codecs.ts | 2 +- packages/renderers-js/src/utils/customData.ts | 2 +- .../renderers-js/src/utils/linkOverrides.ts | 4 +-- packages/renderers-js/src/utils/render.ts | 2 +- packages/renderers-js/test/_setup.ts | 2 +- .../renderers-js/test/accountsPage.test.ts | 4 +-- .../renderers-js/test/exports/commonjs.cjs | 4 +-- packages/renderers-js/test/exports/module.mjs | 4 +-- .../test/instructionsPage.test.ts | 4 +-- .../renderers-js/test/links/account.test.ts | 4 +-- .../test/links/definedType.test.ts | 4 +-- packages/renderers-js/test/links/pda.test.ts | 4 +-- .../renderers-js/test/links/program.test.ts | 4 +-- packages/renderers-js/test/pdasPage.test.ts | 4 +-- .../renderers-js/test/programsPage.test.ts | 4 +-- .../test/types/discriminatedUnions.test.ts | 4 +-- .../renderers-js/test/types/fixedSize.test.ts | 4 +-- .../test/types/hiddenPrefix.test.ts | 4 +-- .../test/types/hiddenSuffix.test.ts | 4 +-- .../test/types/postOffset.test.ts | 4 +-- .../renderers-js/test/types/preOffset.test.ts | 4 +-- .../test/types/remainderOption.test.ts | 4 +-- .../renderers-js/test/types/sentinel.test.ts | 4 +-- .../test/types/sizePrefix.test.ts | 4 +-- .../renderers-js/test/types/solAmount.test.ts | 4 +-- .../test/types/zeroableOption.test.ts | 4 +-- packages/renderers-js/tsconfig.json | 2 +- packages/renderers-rust/README.md | 10 +++--- packages/renderers-rust/e2e/generate.cjs | 6 ++-- packages/renderers-rust/package.json | 30 ++++++++--------- .../public/templates/layout.njk | 2 +- .../renderers-rust/src/getRenderMapVisitor.ts | 8 ++--- .../src/getTypeManifestVisitor.ts | 6 ++-- .../src/renderValueNodeVisitor.ts | 4 +-- packages/renderers-rust/src/renderVisitor.ts | 6 ++-- packages/renderers-rust/src/utils/codecs.ts | 2 +- .../renderers-rust/src/utils/linkOverrides.ts | 4 +-- packages/renderers-rust/src/utils/render.ts | 2 +- .../renderers-rust/test/accountsPage.test.ts | 4 +-- .../test/definedTypesPage.test.ts | 4 +-- .../renderers-rust/test/errorsPage.test.ts | 4 +-- .../renderers-rust/test/exports/commonjs.cjs | 4 +-- .../renderers-rust/test/exports/module.mjs | 4 +-- .../test/instructionsPage.test.ts | 4 +-- .../renderers-rust/test/types/array.test.ts | 4 +-- .../renderers-rust/test/types/number.test.ts | 4 +-- packages/renderers-rust/tsconfig.json | 2 +- packages/renderers/README.md | 16 +++++----- packages/renderers/package.json | 28 ++++++++-------- packages/renderers/src/index.ts | 6 ++-- packages/renderers/tsconfig.json | 2 +- packages/validators/README.md | 12 +++---- packages/validators/package.json | 32 +++++++++---------- packages/validators/src/ValidationItem.ts | 4 +-- .../src/getValidationItemsVisitor.ts | 4 +-- .../src/throwValidatorItemsVisitor.ts | 6 ++-- .../test/getValidationItemsVisitor.test.ts | 4 +-- packages/validators/tsconfig.json | 2 +- packages/visitors-core/README.md | 12 +++---- packages/visitors-core/package.json | 30 ++++++++--------- .../visitors-core/src/LinkableDictionary.ts | 4 +-- packages/visitors-core/src/NodeSelector.ts | 2 +- packages/visitors-core/src/NodeStack.ts | 2 +- .../src/bottomUpTransformerVisitor.ts | 2 +- .../visitors-core/src/consoleLogVisitor.ts | 2 +- .../visitors-core/src/deleteNodesVisitor.ts | 2 +- packages/visitors-core/src/extendVisitor.ts | 4 +-- .../visitors-core/src/getByteSizeVisitor.ts | 2 +- .../src/getDebugStringVisitor.ts | 2 +- .../getResolvedInstructionInputsVisitor.ts | 4 +-- packages/visitors-core/src/identityVisitor.ts | 2 +- .../src/interceptFirstVisitVisitor.ts | 2 +- .../visitors-core/src/interceptVisitor.ts | 2 +- packages/visitors-core/src/mapVisitor.ts | 2 +- packages/visitors-core/src/mergeVisitor.ts | 2 +- .../src/nonNullableIdentityVisitor.ts | 2 +- .../src/recordLinkablesVisitor.ts | 2 +- .../src/recordNodeStackVisitor.ts | 2 +- .../visitors-core/src/removeDocsVisitor.ts | 2 +- .../visitors-core/src/singleNodeVisitor.ts | 2 +- packages/visitors-core/src/staticVisitor.ts | 2 +- packages/visitors-core/src/tapVisitor.ts | 2 +- .../src/topDownTransformerVisitor.ts | 2 +- packages/visitors-core/src/visitor.ts | 4 +-- packages/visitors-core/src/voidVisitor.ts | 2 +- .../visitors-core/test/NodeSelector.test.ts | 2 +- .../test/bottomUpTransformerVisitor.test.ts | 2 +- .../test/deleteNodesVisitor.test.ts | 2 +- .../visitors-core/test/extendVisitor.test.ts | 4 +-- .../test/getByteSizeVisitor.test.ts | 2 +- .../test/getDebugStringVisitor.test.ts | 2 +- ...etResolvedInstructionInputsVisitor.test.ts | 2 +- .../test/getUniqueHashStringVisitor.test.ts | 8 +---- .../test/identityVisitor.test.ts | 2 +- .../test/interceptFirstVisitVisitor.test.ts | 2 +- .../test/interceptVisitor.test.ts | 2 +- .../visitors-core/test/mapVisitor.test.ts | 2 +- .../visitors-core/test/mergeVisitor.test.ts | 2 +- .../test/nodes/AccountNode.test.ts | 2 +- .../test/nodes/DefinedTypeNode.test.ts | 2 +- .../test/nodes/ErrorNode.test.ts | 2 +- .../test/nodes/InstructionAccountNode.test.ts | 2 +- .../nodes/InstructionArgumentNode.test.ts | 2 +- .../nodes/InstructionByteDeltaNode.test.ts | 2 +- .../test/nodes/InstructionNode.test.ts | 2 +- .../InstructionRemainingAccountsNode.test.ts | 2 +- .../visitors-core/test/nodes/PdaNode.test.ts | 2 +- .../test/nodes/ProgramNode.test.ts | 2 +- .../visitors-core/test/nodes/RootNode.test.ts | 2 +- packages/visitors-core/test/nodes/_setup.ts | 2 +- .../AccountBumpValueNode.test.ts | 2 +- .../AccountValueNode.test.ts | 2 +- .../ArgumentValueNode.test.ts | 2 +- .../ConditionalValueNode.test.ts | 2 +- .../IdentityValueNode.test.ts | 2 +- .../PayerValueNode.test.ts | 2 +- .../PdaSeedValueNode.test.ts | 2 +- .../contextualValueNodes/PdaValueNode.test.ts | 2 +- .../ProgramIdValueNode.test.ts | 2 +- .../ResolverValueNode.test.ts | 2 +- .../ConstantDiscriminatorNode.test.ts | 2 +- .../FieldDiscriminatorNode.test.ts | 2 +- .../SizeDiscriminatorNode.test.ts | 2 +- .../nodes/linkNodes/AccountLinkNode.test.ts | 2 +- .../linkNodes/DefinedTypeLinkNode.test.ts | 2 +- .../InstructionAccountLinkNode.test.ts | 2 +- .../InstructionArgumentLinkNode.test.ts | 2 +- .../linkNodes/InstructionLinkNode.test.ts | 2 +- .../test/nodes/linkNodes/PdaLinkNode.test.ts | 2 +- .../nodes/linkNodes/ProgramLinkNode.test.ts | 2 +- .../pdaSeedNodes/ConstantPdaSeedNode.test.ts | 2 +- .../pdaSeedNodes/VariablePdaSeedNode.test.ts | 2 +- .../nodes/sizeNodes/FixedSizeNode.test.ts | 2 +- .../nodes/sizeNodes/PrefixedSizeNode.test.ts | 2 +- .../nodes/sizeNodes/RemainderSizeNode.test.ts | 2 +- .../nodes/typeNodes/AmountTypeNode.test.ts | 2 +- .../nodes/typeNodes/ArrayTypeNode.test.ts | 2 +- .../nodes/typeNodes/BooleanTypeNode.test.ts | 2 +- .../nodes/typeNodes/BytesTypeNode.test.ts | 2 +- .../nodes/typeNodes/DateTimeTypeNode.test.ts | 2 +- .../EnumEmptyVariantTypeNode.test.ts | 2 +- .../EnumStructVariantTypeNode.test.ts | 2 +- .../EnumTupleVariantTypeNode.test.ts | 2 +- .../test/nodes/typeNodes/EnumTypeNode.test.ts | 2 +- .../nodes/typeNodes/FixedSizeTypeNode.test.ts | 2 +- .../typeNodes/HiddenPrefixTypeNode.test.ts | 2 +- .../typeNodes/HiddenSuffixTypeNode.test.ts | 2 +- .../test/nodes/typeNodes/MapTypeNode.test.ts | 2 +- .../nodes/typeNodes/NumberTypeNode.test.ts | 2 +- .../nodes/typeNodes/OptionTypeNode.test.ts | 2 +- .../typeNodes/PostOffsetTypeNode.test.ts | 2 +- .../nodes/typeNodes/PreOffsetTypeNode.test.ts | 2 +- .../nodes/typeNodes/PublicKeyTypeNode.test.ts | 2 +- .../typeNodes/RemainderOptionTypeNode.test.ts | 2 +- .../nodes/typeNodes/SentinelTypeNode.test.ts | 2 +- .../test/nodes/typeNodes/SetTypeNode.test.ts | 2 +- .../typeNodes/SizePrefixTypeNode.test.ts | 2 +- .../nodes/typeNodes/SolAmountTypeNode.test.ts | 2 +- .../nodes/typeNodes/StringTypeNode.test.ts | 2 +- .../typeNodes/StructFieldTypeNode.test.ts | 2 +- .../nodes/typeNodes/StructTypeNode.test.ts | 2 +- .../nodes/typeNodes/TupleTypeNode.test.ts | 2 +- .../typeNodes/ZeroableOptionTypeNode.test.ts | 2 +- .../nodes/valueNodes/ArrayValueNode.test.ts | 2 +- .../nodes/valueNodes/BooleanValueNode.test.ts | 2 +- .../nodes/valueNodes/BytesValueNode.test.ts | 2 +- .../valueNodes/ConstantValueNode.test.ts | 2 +- .../nodes/valueNodes/EnumValueNode.test.ts | 2 +- .../valueNodes/MapEntryValueNode.test.ts | 2 +- .../nodes/valueNodes/MapValueNode.test.ts | 2 +- .../nodes/valueNodes/NoneValueNode.test.ts | 2 +- .../nodes/valueNodes/NumberValueNode.test.ts | 2 +- .../valueNodes/PublicKeyValueNode.test.ts | 2 +- .../nodes/valueNodes/SetValueNode.test.ts | 2 +- .../nodes/valueNodes/SomeValueNode.test.ts | 2 +- .../nodes/valueNodes/StringValueNode.test.ts | 2 +- .../valueNodes/StructFieldValueNode.test.ts | 2 +- .../nodes/valueNodes/StructValueNode.test.ts | 2 +- .../nodes/valueNodes/TupleValueNode.test.ts | 2 +- .../test/nonNullableIdentityVisitor.test.ts | 2 +- .../test/recordLinkablesVisitor.test.ts | 4 +-- .../test/recordNodeStackVisitor.test.ts | 2 +- .../test/removeDocsVisitor.test.ts | 2 +- .../test/singleNodeVisitor.test.ts | 2 +- .../visitors-core/test/staticVisitor.test.ts | 2 +- .../visitors-core/test/tapVisitor.test.ts | 2 +- .../test/topDownTransformerVisitor.test.ts | 2 +- packages/visitors-core/test/visitor.test.ts | 2 +- .../visitors-core/test/voidVisitor.test.ts | 2 +- packages/visitors-core/tsconfig.json | 2 +- packages/visitors/README.md | 12 +++---- packages/visitors/package.json | 32 +++++++++---------- packages/visitors/src/addPdasVisitor.ts | 6 ++-- ...reateSubInstructionsFromEnumArgsVisitor.ts | 6 ++-- ...deduplicateIdenticalDefinedTypesVisitor.ts | 4 +-- .../src/fillDefaultPdaSeedValuesVisitor.ts | 6 ++-- .../flattenInstructionDataArgumentsVisitor.ts | 9 ++---- packages/visitors/src/flattenStructVisitor.ts | 9 ++---- .../src/getDefinedTypeHistogramVisitor.ts | 4 +-- packages/visitors/src/index.ts | 2 +- packages/visitors/src/renameHelpers.ts | 2 +- ...setAccountDiscriminatorFromFieldVisitor.ts | 6 ++-- .../src/setFixedAccountSizesVisitor.ts | 4 +-- ...tInstructionAccountDefaultValuesVisitor.ts | 4 +-- .../setInstructionDiscriminatorsVisitor.ts | 4 +-- .../visitors/src/setNumberWrappersVisitor.ts | 6 ++-- .../src/setStructDefaultValuesVisitor.ts | 4 +-- ...ransformDefinedTypesIntoAccountsVisitor.ts | 4 +-- .../src/transformU8ArraysToBytesVisitor.ts | 4 +-- .../visitors/src/unwrapDefinedTypesVisitor.ts | 4 +-- ...nwrapInstructionArgsDefinedTypesVisitor.ts | 4 +-- .../unwrapTupleEnumWithSingleStructVisitor.ts | 4 +-- .../src/unwrapTypeDefinedLinksVisitor.ts | 4 +-- .../visitors/src/updateAccountsVisitor.ts | 4 +-- .../visitors/src/updateDefinedTypesVisitor.ts | 4 +-- packages/visitors/src/updateErrorsVisitor.ts | 4 +-- .../visitors/src/updateInstructionsVisitor.ts | 4 +-- .../visitors/src/updateProgramsVisitor.ts | 4 +-- packages/visitors/test/addPdasVisitor.test.ts | 6 ++-- .../fillDefaultPdaSeedValuesVisitor.test.ts | 4 +-- .../getDefinedTypeHistogramVisitor.test.ts | 4 +-- .../setStructDefaultValuesVisitor.test.ts | 4 +-- .../test/updateAccountsVisitor.test.ts | 4 +-- .../test/updateInstructionsVisitor.test.ts | 4 +-- packages/visitors/tsconfig.json | 2 +- 506 files changed, 926 insertions(+), 963 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 84b044820..963fc9cd8 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,21 +2,21 @@ "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "kinobi-so/kinobi" } + { "repo": "codama/kinobi" } ], "commit": false, "fixed": [ [ "kinobi", - "@kinobi-so/errors", - "@kinobi-so/node-types", - "@kinobi-so/nodes", - "@kinobi-so/validators", - "@kinobi-so/visitors*" + "@codama/errors", + "@codama/node-types", + "@codama/nodes", + "@codama/validators", + "@codama/visitors*" ] ], "linked": [], - "ignore": ["@kinobi-so/internals"], + "ignore": ["@codama/internals"], "access": "public", "baseBranch": "main", "privatePackages": { diff --git a/README.md b/README.md index 249419553..1b0c37272 100644 --- a/README.md +++ b/README.md @@ -7,33 +7,33 @@ [npm-downloads-image]: https://img.shields.io/npm/dm/kinobi.svg?style=flat [npm-image]: https://img.shields.io/npm/v/kinobi.svg?style=flat [npm-url]: https://www.npmjs.com/package/kinobi -[ci-image]: https://img.shields.io/github/actions/workflow/status/kinobi-so/kinobi/main.yml?logo=GitHub -[ci-url]: https://github.com/kinobi-so/kinobi/actions/workflows/main.yml +[ci-image]: https://img.shields.io/github/actions/workflow/status/codama/kinobi/main.yml?logo=GitHub +[ci-url]: https://github.com/codama/kinobi/actions/workflows/main.yml Kinobi is a tool that describes any Solana program in a powerful standardised format known as the Kinobi IDL. This IDL can then be used to create a variety of utility such as rendering client code for your programs in various languages/frameworks, generating CLIs and providing more information to explorers. -![Kinobi header: A small double-sided mind-map with the Kinobi logo in the middle. On the left, we see the various ways to get a Kinobi IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/kinobi-so/kinobi/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) +![Kinobi header: A small double-sided mind-map with the Kinobi logo in the middle. On the left, we see the various ways to get a Kinobi IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/kinobi/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) ## Nodes and visitors The Kinobi IDL is designed as a tree of nodes starting with the `RootNode` which contains a `ProgramNode` and additional data such as the Kinobi version used when the IDL was created. Kinobi provides over 60 different types of nodes that help describe just about any aspect of your Solana programs. [You can read more about the Kinobi nodes here](./packages/nodes). -![A small example of a Kinobi IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/kinobi-so/kinobi/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) +![A small example of a Kinobi IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/kinobi/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) Because everything is designed as a `Node`, we can transform the IDL, aggregate information and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Kinobi visitors](./packages/visitors). -![A small example of how a visitor can transform a Kinobi IDL into another Kinobi IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/kinobi-so/kinobi/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) +![A small example of how a visitor can transform a Kinobi IDL into another Kinobi IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/kinobi/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) ## From program to Kinobi There are various ways to extract information from your Solana programs in order to obtain a Kinobi IDL. - **Using Kinobi macros**. This is not yet available but you will soon have access to a set of Rust macros that help attach IDL information directly within your Rust code. These macros enable Kinobi IDLs to be generated whenever you build your programs. -- **From Anchor IDLs**. If you are using [Anchor programs](https://github.com/coral-xyz/anchor) or [Shank macros](https://github.com/metaplex-foundation/shank), then you can get an Anchor IDL from them. You can then use the `@kinobi-so/nodes-from-anchor` package to convert that IDL into a Kinobi IDL as shown in the code snippet below. Note that the Anchor IDL might not offer all the information that Kinobi can hold and therefore, you may want to transform your Kinobi IDL to provide additional information. You can learn more about this in the next section. +- **From Anchor IDLs**. If you are using [Anchor programs](https://github.com/coral-xyz/anchor) or [Shank macros](https://github.com/metaplex-foundation/shank), then you can get an Anchor IDL from them. You can then use the `@codama/nodes-from-anchor` package to convert that IDL into a Kinobi IDL as shown in the code snippet below. Note that the Anchor IDL might not offer all the information that Kinobi can hold and therefore, you may want to transform your Kinobi IDL to provide additional information. You can learn more about this in the next section. ```ts import { createFromRoot } from 'kinobi'; - import { rootNodeFromAnchor } from '@kinobi-so/nodes-from-anchor'; + import { rootNodeFromAnchor } from '@codama/nodes-from-anchor'; import anchorIdl from 'anchor-idl.json'; const kinobi = createFromRoot(rootNodeFromAnchor(anchorIdl)); @@ -60,15 +60,15 @@ _Note that some features such as rendering CLIs are not yet available. However, - **Rendering client code**. Want people to start interacting with your Solana program? You can use special visitors that go through your Kinobi IDL and generate client code that you can then publish for your end-users. Currently, we have the following renderers available: - - `@kinobi-so/renderers-js`: Renders a JavaScript client compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). - - `@kinobi-so/renderers-js-umi`: Renders a JavaScript client compatible with Metaplex’s [Umi](https://github.com/metaplex-foundation/umi) framework. - - `@kinobi-so/renderers-rust`: Renders a Rust client that removes the need for publishing the program crate and offers a better developer experience. + - `@codama/renderers-js`: Renders a JavaScript client compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). + - `@codama/renderers-js-umi`: Renders a JavaScript client compatible with Metaplex’s [Umi](https://github.com/metaplex-foundation/umi) framework. + - `@codama/renderers-rust`: Renders a Rust client that removes the need for publishing the program crate and offers a better developer experience. - _And more to come._ Here’s an example of how to generate JavaScript and Rust client code for your program. ```ts - import { renderJavaScriptVisitor, renderRustVisitor } from '@kinobi-so/renderers'; + import { renderJavaScriptVisitor, renderRustVisitor } from '@codama/renderers'; kinobi.accept(renderJavaScriptVisitor('clients/js/src/generated', { ... })); kinobi.accept(renderRustVisitor('clients/rust/src/generated', { ... })); diff --git a/package.json b/package.json index d8b975e21..bd6b335ea 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "devDependencies": { "@changesets/changelog-github": "^0.5.0", "@changesets/cli": "^2.27.9", - "@kinobi-so/internals": "workspace:*", + "@codama/internals": "workspace:*", "@solana/eslint-config-solana": "^3.0.3", "@solana/prettier-config-solana": "0.0.5", "@types/node": "^20", diff --git a/packages/errors/README.md b/packages/errors/README.md index 76acab916..af1f4444b 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/errors.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/errors.svg?style=flat&label=%40kinobi-so%2Ferrors -[npm-url]: https://www.npmjs.com/package/@kinobi-so/errors +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/errors.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/errors.svg?style=flat&label=%40kinobi-so%2Ferrors +[npm-url]: https://www.npmjs.com/package/@codama/errors This package defines a `KinobiError` class that accepts a specific error code and a context object based on that code. It enables us to catch and handle errors in a more structured way. ## Installation ```sh -pnpm install @kinobi-so/errors +pnpm install @codama/errors ``` > [!NOTE] @@ -35,7 +35,7 @@ On the other hand, when `NODE_ENV` is set to `"production"`, error messages will For instance, to recover the error text for the error with code `123`: ```shell -npx @kinobi-so/errors decode -- 123 +npx @codama/errors decode -- 123 ``` ## Catching errors @@ -43,7 +43,7 @@ npx @kinobi-so/errors decode -- 123 When you catch a `KinobiError` and assert its error code using `isKinobiError()`, TypeScript will refine the error's context to the type associated with that error code. You can use that context to render useful error messages, or to make context-aware decisions that help your application to recover from the error. ```ts -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@codama/errors'; try { const kinobi = createFromJson(jsonIdl); @@ -70,8 +70,8 @@ To add a new error in Kinobi, follow these steps: 2. Add that new constant to the `KinobiErrorCode` union in `src/codes.ts`. 3. If you would like the new error to encapsulate context about the error itself define that context in `src/context.ts`. 4. Add the error's message to `src/messages.ts`. Any context values that you defined above will be interpolated into the message wherever you write `$key`, where `key` is the index of a value in the context (eg. ``'Unrecognized node `$kind`.'``). -5. Publish a new version of `@kinobi-so/errors` using changesets — maintainers will handle this via tha changesets CI workflow. -6. Bump the version of `@kinobi-so/errors` or `kinobi` in the consumer package from which the error is thrown. +5. Publish a new version of `@codama/errors` using changesets — maintainers will handle this via tha changesets CI workflow. +6. Bump the version of `@codama/errors` or `kinobi` in the consumer package from which the error is thrown. ### Removing an error message diff --git a/packages/errors/package.json b/packages/errors/package.json index a1b063215..1d614537d 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/errors", + "name": "@codama/errors", "version": "0.22.0", "description": "Error management for Kinobi", "exports": { @@ -39,31 +39,31 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:cli && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:cli": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs cli", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:cli": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs cli", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/node-types": "workspace:*", + "@codama/node-types": "workspace:*", "commander": "^12.1.0", "chalk": "^5.3.0" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/errors/src/cli.ts b/packages/errors/src/cli.ts index 765ce98d2..88db34f37 100755 --- a/packages/errors/src/cli.ts +++ b/packages/errors/src/cli.ts @@ -14,7 +14,7 @@ import { KinobiErrorMessages } from './messages'; const program = new Command(); -program.name('@kinobi-so/errors').description('Decode Kinobi JavaScript errors thrown in production').version(version); +program.name('@codama/errors').description('Decode Kinobi JavaScript errors thrown in production').version(version); program .command('decode') diff --git a/packages/errors/src/codes.ts b/packages/errors/src/codes.ts index ad69999f1..577d287e3 100644 --- a/packages/errors/src/codes.ts +++ b/packages/errors/src/codes.ts @@ -72,7 +72,7 @@ export const KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; * single error code) would be forced to bundle every code and its label. * * Const enums appear to solve this problem by letting the compiler inline only the codes that are - * actually used. Unfortunately exporting ambient (const) enums from a library like `@kinobi-so/errors` + * actually used. Unfortunately exporting ambient (const) enums from a library like `@codama/errors` * is not safe, for a variety of reasons covered here: https://stackoverflow.com/a/28818850 */ export type KinobiErrorCode = diff --git a/packages/errors/src/context.ts b/packages/errors/src/context.ts index 33364252f..dd9451406 100644 --- a/packages/errors/src/context.ts +++ b/packages/errors/src/context.ts @@ -16,7 +16,7 @@ import { PdaNode, PdaSeedValueNode, ProgramNode, -} from '@kinobi-so/node-types'; +} from '@codama/node-types'; import { KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, diff --git a/packages/errors/src/message-formatter.ts b/packages/errors/src/message-formatter.ts index 1551e05e8..33abc8c4b 100644 --- a/packages/errors/src/message-formatter.ts +++ b/packages/errors/src/message-formatter.ts @@ -22,7 +22,7 @@ export function getErrorMessage(code: TError if (process.env.NODE_ENV !== 'production') { return getHumanReadableErrorMessage(code, context); } else { - let decodingAdviceMessage = `Kinobi error #${code}; Decode this error by running \`npx @kinobi-so/errors decode -- ${code}`; + let decodingAdviceMessage = `Kinobi error #${code}; Decode this error by running \`npx @codama/errors decode -- ${code}`; if (Object.keys(context).length) { /** * DANGER: Be sure that the shell command is escaped in such a way that makes it diff --git a/packages/errors/test/error.typetest.ts b/packages/errors/test/error.typetest.ts index 8e1a48241..0f7725249 100644 --- a/packages/errors/test/error.typetest.ts +++ b/packages/errors/test/error.typetest.ts @@ -1,4 +1,4 @@ -import { PublicKeyTypeNode } from '@kinobi-so/node-types'; +import { PublicKeyTypeNode } from '@codama/node-types'; import { isKinobiError, KinobiError, KinobiErrorCode } from '../src'; import * as KinobiErrorCodeModule from '../src/codes'; diff --git a/packages/errors/tsconfig.json b/packages/errors/tsconfig.json index 22925eb2a..4cc377726 100644 --- a/packages/errors/tsconfig.json +++ b/packages/errors/tsconfig.json @@ -4,7 +4,7 @@ "lib": ["DOM", "ES2015", "ES2022.Error"], "resolveJsonModule": true }, - "display": "@kinobi-so/errors", + "display": "@codama/errors", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/internals/package.json b/packages/internals/package.json index 858c45d5b..84d48eb09 100644 --- a/packages/internals/package.json +++ b/packages/internals/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/internals", + "name": "@codama/internals", "version": "0.0.0", "private": true, "files": [ diff --git a/packages/internals/scripts/test-unit.mjs b/packages/internals/scripts/test-unit.mjs index b7e9e0644..db06e429a 100644 --- a/packages/internals/scripts/test-unit.mjs +++ b/packages/internals/scripts/test-unit.mjs @@ -5,7 +5,7 @@ $.stdio = 'inherit'; const platform = argv._[0]; const watch = argv.watch; -const testArgs = ['--config', `../../node_modules/@kinobi-so/internals/vitest.config.${platform}.mts`]; +const testArgs = ['--config', `../../node_modules/@codama/internals/vitest.config.${platform}.mts`]; if (watch) { await $`vitest ${testArgs}`; diff --git a/packages/library/README.md b/packages/library/README.md index e10b0422c..dcfbe7bdd 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -19,12 +19,12 @@ pnpm install kinobi This package includes the following packages. Note that some of them also re-export other packages. -- [`@kinobi-so/errors`](../errors) -- [`@kinobi-so/nodes`](../nodes) - - [`@kinobi-so/node-types`](../node-types) -- [`@kinobi-so/validators`](../validators) -- [`@kinobi-so/visitors`](../visitors) - - [`@kinobi-so/visitor-core`](../visitor-core) +- [`@codama/errors`](../errors) +- [`@codama/nodes`](../nodes) + - [`@codama/node-types`](../node-types) +- [`@codama/validators`](../validators) +- [`@codama/visitors`](../visitors) + - [`@codama/visitor-core`](../visitor-core) ## The Kinobi helper diff --git a/packages/library/package.json b/packages/library/package.json index 3f541531b..1e7e5e9a9 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -40,31 +40,31 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs library", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs library", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/validators": "workspace:*", - "@kinobi-so/visitors": "workspace:*" + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/validators": "workspace:*", + "@codama/visitors": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/library/src/index.ts b/packages/library/src/index.ts index 9481bc79f..96aa4f4da 100644 --- a/packages/library/src/index.ts +++ b/packages/library/src/index.ts @@ -1,6 +1,6 @@ -export * from '@kinobi-so/errors'; -export * from '@kinobi-so/nodes'; -export * from '@kinobi-so/validators'; -export * from '@kinobi-so/visitors'; +export * from '@codama/errors'; +export * from '@codama/nodes'; +export * from '@codama/validators'; +export * from '@codama/visitors'; export * from './kinobi'; diff --git a/packages/library/src/kinobi.ts b/packages/library/src/kinobi.ts index c4591708c..2c9c7eb91 100644 --- a/packages/library/src/kinobi.ts +++ b/packages/library/src/kinobi.ts @@ -1,7 +1,7 @@ -import { KINOBI_ERROR__VERSION_MISMATCH } from '@kinobi-so/errors'; -import { KinobiError } from '@kinobi-so/errors'; -import { assertIsNode, KinobiVersion, Node, RootNode } from '@kinobi-so/nodes'; -import { visit, Visitor } from '@kinobi-so/visitors'; +import { KINOBI_ERROR__VERSION_MISMATCH } from '@codama/errors'; +import { KinobiError } from '@codama/errors'; +import { assertIsNode, KinobiVersion, Node, RootNode } from '@codama/nodes'; +import { visit, Visitor } from '@codama/visitors'; export interface Kinobi { accept(visitor: Visitor): T; diff --git a/packages/node-types/README.md b/packages/node-types/README.md index 47830a5d4..16b11774b 100644 --- a/packages/node-types/README.md +++ b/packages/node-types/README.md @@ -3,22 +3,22 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/node-types.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/node-types.svg?style=flat&label=%40kinobi-so%2Fnode-types -[npm-url]: https://www.npmjs.com/package/@kinobi-so/node-types +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/node-types.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/node-types.svg?style=flat&label=%40kinobi-so%2Fnode-types +[npm-url]: https://www.npmjs.com/package/@codama/node-types -This package is the type-only version of the `@kinobi-so/nodes` package. Check out the [nodes documentation](../nodes) for more information. +This package is the type-only version of the `@codama/nodes` package. Check out the [nodes documentation](../nodes) for more information. ## Installation ```sh -pnpm install @kinobi-so/node-types +pnpm install @codama/node-types ``` > [!NOTE] -> This package is included in the [`@kinobi-so/nodes`](../nodes) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/nodes`](../nodes) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. > > ```sh -> pnpm install @kinobi-so/nodes +> pnpm install @codama/nodes > pnpm install kinobi > ``` diff --git a/packages/node-types/package.json b/packages/node-types/package.json index 3a8d63d70..3211dc6ea 100644 --- a/packages/node-types/package.json +++ b/packages/node-types/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/node-types", + "name": "@codama/node-types", "version": "0.22.0", "description": "Node specifications for the Kinobi standard", "exports": { @@ -36,21 +36,21 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/node-types/tsconfig.json b/packages/node-types/tsconfig.json index b8abb08f3..5c9722e14 100644 --- a/packages/node-types/tsconfig.json +++ b/packages/node-types/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/node-types", + "display": "@codama/node-types", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/nodes-from-anchor/README.md b/packages/nodes-from-anchor/README.md index e31603ed0..5b1c59a78 100644 --- a/packages/nodes-from-anchor/README.md +++ b/packages/nodes-from-anchor/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/nodes-from-anchor.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/nodes-from-anchor.svg?style=flat&label=%40kinobi-so%2Fnodes-from-anchor -[npm-url]: https://www.npmjs.com/package/@kinobi-so/nodes-from-anchor +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/nodes-from-anchor.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/nodes-from-anchor.svg?style=flat&label=%40kinobi-so%2Fnodes-from-anchor +[npm-url]: https://www.npmjs.com/package/@codama/nodes-from-anchor This package converts Anchor IDLs from various versions into Kinobi IDLs. ## Installation ```sh -pnpm install @kinobi-so/nodes-from-anchor +pnpm install @codama/nodes-from-anchor ``` > [!NOTE] @@ -26,7 +26,7 @@ This function takes a valid Anchor IDL and returns a `RootNode`. ```js // node ./kinobi.mjs -import { rootNodeFromAnchor } from '@kinobi-so/nodes-from-anchor'; +import { rootNodeFromAnchor } from '@codama/nodes-from-anchor'; import { createFromRoot } from 'kinobi'; import { readFileSync } from 'node:fs'; import path from 'path'; diff --git a/packages/nodes-from-anchor/package.json b/packages/nodes-from-anchor/package.json index ff972b590..4bd68bbd3 100644 --- a/packages/nodes-from-anchor/package.json +++ b/packages/nodes-from-anchor/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/nodes-from-anchor", + "name": "@codama/nodes-from-anchor", "version": "0.22.0", "description": "Node specifications and helpers for the Kinobi standard", "exports": { @@ -36,31 +36,31 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/visitors": "workspace:*", + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/visitors": "workspace:*", "@noble/hashes": "^1.5.0" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes-from-anchor/src/defaultVisitor.ts b/packages/nodes-from-anchor/src/defaultVisitor.ts index 5a04ba4e0..fee223079 100644 --- a/packages/nodes-from-anchor/src/defaultVisitor.ts +++ b/packages/nodes-from-anchor/src/defaultVisitor.ts @@ -1,4 +1,4 @@ -import { assertIsNode, Node, RootNode } from '@kinobi-so/nodes'; +import { assertIsNode, Node, RootNode } from '@codama/nodes'; import { deduplicateIdenticalDefinedTypesVisitor, flattenInstructionDataArgumentsVisitor, @@ -10,7 +10,7 @@ import { unwrapInstructionArgsDefinedTypesVisitor, visit, Visitor, -} from '@kinobi-so/visitors'; +} from '@codama/visitors'; export function defaultVisitor() { return rootNodeVisitor(currentRoot => { diff --git a/packages/nodes-from-anchor/src/discriminators.ts b/packages/nodes-from-anchor/src/discriminators.ts index 834c9b061..959e9cf42 100644 --- a/packages/nodes-from-anchor/src/discriminators.ts +++ b/packages/nodes-from-anchor/src/discriminators.ts @@ -1,4 +1,4 @@ -import { BytesValueNode, bytesValueNode, pascalCase, snakeCase } from '@kinobi-so/nodes'; +import { BytesValueNode, bytesValueNode, pascalCase, snakeCase } from '@codama/nodes'; import { sha256 } from '@noble/hashes/sha256'; import { hex } from './utils'; diff --git a/packages/nodes-from-anchor/src/index.ts b/packages/nodes-from-anchor/src/index.ts index 317174913..4e93957a4 100644 --- a/packages/nodes-from-anchor/src/index.ts +++ b/packages/nodes-from-anchor/src/index.ts @@ -1,5 +1,5 @@ -import { RootNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors'; +import { RootNode } from '@codama/nodes'; +import { visit } from '@codama/visitors'; import { defaultVisitor } from './defaultVisitor'; import { IdlV00, rootNodeFromAnchorV00 } from './v00'; diff --git a/packages/nodes-from-anchor/src/v00/AccountNode.ts b/packages/nodes-from-anchor/src/v00/AccountNode.ts index 117edd496..e0ee151c2 100644 --- a/packages/nodes-from-anchor/src/v00/AccountNode.ts +++ b/packages/nodes-from-anchor/src/v00/AccountNode.ts @@ -11,7 +11,7 @@ import { structFieldTypeNode, StructTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { getAnchorAccountDiscriminatorV00 } from '../discriminators'; import { IdlV00AccountDef } from './idl'; diff --git a/packages/nodes-from-anchor/src/v00/DefinedTypeNode.ts b/packages/nodes-from-anchor/src/v00/DefinedTypeNode.ts index d91447767..b06259799 100644 --- a/packages/nodes-from-anchor/src/v00/DefinedTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/DefinedTypeNode.ts @@ -1,4 +1,4 @@ -import { DefinedTypeNode, definedTypeNode } from '@kinobi-so/nodes'; +import { DefinedTypeNode, definedTypeNode } from '@codama/nodes'; import { IdlV00TypeDef } from './idl'; import { typeNodeFromAnchorV00 } from './typeNodes'; diff --git a/packages/nodes-from-anchor/src/v00/ErrorNode.ts b/packages/nodes-from-anchor/src/v00/ErrorNode.ts index 454fb7036..d26ef57df 100644 --- a/packages/nodes-from-anchor/src/v00/ErrorNode.ts +++ b/packages/nodes-from-anchor/src/v00/ErrorNode.ts @@ -1,4 +1,4 @@ -import { ErrorNode, errorNode } from '@kinobi-so/nodes'; +import { ErrorNode, errorNode } from '@codama/nodes'; import { IdlV00ErrorCode } from './idl'; diff --git a/packages/nodes-from-anchor/src/v00/InstructionAccountNode.ts b/packages/nodes-from-anchor/src/v00/InstructionAccountNode.ts index d4a8d9ec2..8e2022b48 100644 --- a/packages/nodes-from-anchor/src/v00/InstructionAccountNode.ts +++ b/packages/nodes-from-anchor/src/v00/InstructionAccountNode.ts @@ -1,4 +1,4 @@ -import { InstructionAccountNode, instructionAccountNode } from '@kinobi-so/nodes'; +import { InstructionAccountNode, instructionAccountNode } from '@codama/nodes'; import { IdlV00Account, IdlV00AccountItem } from './idl'; diff --git a/packages/nodes-from-anchor/src/v00/InstructionArgumentNode.ts b/packages/nodes-from-anchor/src/v00/InstructionArgumentNode.ts index 84e554645..cce47d921 100644 --- a/packages/nodes-from-anchor/src/v00/InstructionArgumentNode.ts +++ b/packages/nodes-from-anchor/src/v00/InstructionArgumentNode.ts @@ -1,4 +1,4 @@ -import { InstructionArgumentNode, instructionArgumentNode } from '@kinobi-so/nodes'; +import { InstructionArgumentNode, instructionArgumentNode } from '@codama/nodes'; import { IdlV00Field } from './idl'; import { typeNodeFromAnchorV00 } from './typeNodes'; diff --git a/packages/nodes-from-anchor/src/v00/InstructionNode.ts b/packages/nodes-from-anchor/src/v00/InstructionNode.ts index 1baef3755..ded832ae5 100644 --- a/packages/nodes-from-anchor/src/v00/InstructionNode.ts +++ b/packages/nodes-from-anchor/src/v00/InstructionNode.ts @@ -8,7 +8,7 @@ import { InstructionNode, instructionNode, numberValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { getAnchorInstructionDiscriminatorV00 } from '../discriminators'; import { IdlV00Instruction } from './idl'; diff --git a/packages/nodes-from-anchor/src/v00/PdaNode.ts b/packages/nodes-from-anchor/src/v00/PdaNode.ts index 20d3d853a..cec5be7f3 100644 --- a/packages/nodes-from-anchor/src/v00/PdaNode.ts +++ b/packages/nodes-from-anchor/src/v00/PdaNode.ts @@ -11,7 +11,7 @@ import { stringTypeNode, stringValueNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV00PdaDef } from './idl'; import { typeNodeFromAnchorV00 } from './typeNodes'; diff --git a/packages/nodes-from-anchor/src/v00/ProgramNode.ts b/packages/nodes-from-anchor/src/v00/ProgramNode.ts index 0bd1fe1d2..c31692b9c 100644 --- a/packages/nodes-from-anchor/src/v00/ProgramNode.ts +++ b/packages/nodes-from-anchor/src/v00/ProgramNode.ts @@ -1,4 +1,4 @@ -import { ProgramNode, programNode, ProgramVersion } from '@kinobi-so/nodes'; +import { ProgramNode, programNode, ProgramVersion } from '@codama/nodes'; import { accountNodeFromAnchorV00 } from './AccountNode'; import { definedTypeNodeFromAnchorV00 } from './DefinedTypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/RootNode.ts b/packages/nodes-from-anchor/src/v00/RootNode.ts index df0aa9767..de5dcad5d 100644 --- a/packages/nodes-from-anchor/src/v00/RootNode.ts +++ b/packages/nodes-from-anchor/src/v00/RootNode.ts @@ -1,4 +1,4 @@ -import { RootNode, rootNode } from '@kinobi-so/nodes'; +import { RootNode, rootNode } from '@codama/nodes'; import { IdlV00 } from './idl'; import { programNodeFromAnchorV00 } from './ProgramNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/ArrayTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/ArrayTypeNode.ts index fc0cb5ade..e10a1a238 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/ArrayTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/ArrayTypeNode.ts @@ -5,7 +5,7 @@ import { numberTypeNode, prefixedCountNode, remainderCountNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV00TypeArray, IdlV00TypeVec } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/EnumEmptyVariantTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/EnumEmptyVariantTypeNode.ts index bff524d54..78b266fe1 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/EnumEmptyVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/EnumEmptyVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumEmptyVariantTypeNode, enumEmptyVariantTypeNode } from '@kinobi-so/nodes'; +import { EnumEmptyVariantTypeNode, enumEmptyVariantTypeNode } from '@codama/nodes'; import { IdlV00EnumVariant } from '../idl'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/EnumStructVariantTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/EnumStructVariantTypeNode.ts index 28e412e26..f6bd56829 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/EnumStructVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/EnumStructVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumStructVariantTypeNode, enumStructVariantTypeNode, StructTypeNode } from '@kinobi-so/nodes'; +import { EnumStructVariantTypeNode, enumStructVariantTypeNode, StructTypeNode } from '@codama/nodes'; import { IdlV00EnumFieldsNamed, IdlV00EnumVariant } from '../idl'; import { structTypeNodeFromAnchorV00 } from './StructTypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/EnumTupleVariantTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/EnumTupleVariantTypeNode.ts index bbfab7556..479e71408 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/EnumTupleVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/EnumTupleVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumTupleVariantTypeNode, enumTupleVariantTypeNode, TupleTypeNode } from '@kinobi-so/nodes'; +import { EnumTupleVariantTypeNode, enumTupleVariantTypeNode, TupleTypeNode } from '@codama/nodes'; import { IdlV00EnumFieldsTuple, IdlV00EnumVariant } from '../idl'; import { tupleTypeNodeFromAnchorV00 } from './TupleTypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/EnumTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/EnumTypeNode.ts index a6e7bf788..682d361cb 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/EnumTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/EnumTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumTypeNode, enumTypeNode, EnumVariantTypeNode, NumberTypeNode, numberTypeNode } from '@kinobi-so/nodes'; +import { EnumTypeNode, enumTypeNode, EnumVariantTypeNode, NumberTypeNode, numberTypeNode } from '@codama/nodes'; import { IdlV00EnumFieldsNamed, IdlV00EnumFieldsTuple, IdlV00EnumVariant, IdlV00TypeDefTyEnum } from '../idl'; import { enumEmptyVariantTypeNodeFromAnchorV00 } from './EnumEmptyVariantTypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/MapTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/MapTypeNode.ts index 87d5a71d7..f90c5ead0 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/MapTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/MapTypeNode.ts @@ -6,7 +6,7 @@ import { numberTypeNode, prefixedCountNode, remainderCountNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV00TypeMap } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/OptionTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/OptionTypeNode.ts index 92c7205ec..0fffd9a17 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/OptionTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/OptionTypeNode.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, OptionTypeNode, optionTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, OptionTypeNode, optionTypeNode } from '@codama/nodes'; import { IdlV00TypeOption } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/SetTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/SetTypeNode.ts index bf7a51c2b..10767189d 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/SetTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/SetTypeNode.ts @@ -5,7 +5,7 @@ import { remainderCountNode, SetTypeNode, setTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV00TypeSet } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/StructFieldTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/StructFieldTypeNode.ts index a9f2709e6..e5546da5f 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/StructFieldTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/StructFieldTypeNode.ts @@ -1,4 +1,4 @@ -import { StructFieldTypeNode, structFieldTypeNode } from '@kinobi-so/nodes'; +import { StructFieldTypeNode, structFieldTypeNode } from '@codama/nodes'; import { IdlV00Field } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/StructTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/StructTypeNode.ts index fabb5ea72..a58b923cc 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/StructTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/StructTypeNode.ts @@ -1,4 +1,4 @@ -import { StructTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { StructTypeNode, structTypeNode } from '@codama/nodes'; import { IdlV00TypeDefTyStruct } from '../idl'; import { structFieldTypeNodeFromAnchorV00 } from './StructFieldTypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/TupleTypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/TupleTypeNode.ts index 16d1b8013..bda82f717 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/TupleTypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/TupleTypeNode.ts @@ -1,4 +1,4 @@ -import { TupleTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { TupleTypeNode, tupleTypeNode } from '@codama/nodes'; import { IdlV00TypeTuple } from '../idl'; import { typeNodeFromAnchorV00 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts index e21e1a3c5..0512c1fc7 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -8,7 +8,7 @@ import { sizePrefixTypeNode, stringTypeNode, TypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV00Type, diff --git a/packages/nodes-from-anchor/src/v01/AccountNode.ts b/packages/nodes-from-anchor/src/v01/AccountNode.ts index 7f3a552ac..90f058009 100644 --- a/packages/nodes-from-anchor/src/v01/AccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/AccountNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, KinobiError } from '@codama/errors'; import { AccountNode, accountNode, @@ -9,7 +9,7 @@ import { fixedSizeTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { getAnchorDiscriminatorV01 } from './../discriminators'; import { IdlV01Account, IdlV01TypeDef } from './idl'; diff --git a/packages/nodes-from-anchor/src/v01/DefinedTypeNode.ts b/packages/nodes-from-anchor/src/v01/DefinedTypeNode.ts index a6f0bd29d..71e3224bd 100644 --- a/packages/nodes-from-anchor/src/v01/DefinedTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/DefinedTypeNode.ts @@ -1,4 +1,4 @@ -import { DefinedTypeNode, definedTypeNode } from '@kinobi-so/nodes'; +import { DefinedTypeNode, definedTypeNode } from '@codama/nodes'; import { IdlV01TypeDef } from './idl'; import { typeNodeFromAnchorV01 } from './typeNodes'; diff --git a/packages/nodes-from-anchor/src/v01/ErrorNode.ts b/packages/nodes-from-anchor/src/v01/ErrorNode.ts index 243e9df7f..cb9e1bba3 100644 --- a/packages/nodes-from-anchor/src/v01/ErrorNode.ts +++ b/packages/nodes-from-anchor/src/v01/ErrorNode.ts @@ -1,4 +1,4 @@ -import { ErrorNode, errorNode } from '@kinobi-so/nodes'; +import { ErrorNode, errorNode } from '@codama/nodes'; import { IdlV01ErrorCode } from './idl'; diff --git a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts index 572053a29..45b995e5c 100644 --- a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts @@ -4,7 +4,7 @@ import { KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, KinobiError, -} from '@kinobi-so/errors'; +} from '@codama/errors'; import { AccountNode, accountValueNode, @@ -25,7 +25,7 @@ import { publicKeyValueNode, resolveNestedTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { hex } from '../utils'; import { IdlV01InstructionAccount, IdlV01InstructionAccountItem, IdlV01Seed } from './idl'; diff --git a/packages/nodes-from-anchor/src/v01/InstructionArgumentNode.ts b/packages/nodes-from-anchor/src/v01/InstructionArgumentNode.ts index 36599643f..834338aab 100644 --- a/packages/nodes-from-anchor/src/v01/InstructionArgumentNode.ts +++ b/packages/nodes-from-anchor/src/v01/InstructionArgumentNode.ts @@ -1,4 +1,4 @@ -import { InstructionArgumentNode, instructionArgumentNode } from '@kinobi-so/nodes'; +import { InstructionArgumentNode, instructionArgumentNode } from '@codama/nodes'; import { IdlV01Field } from './idl'; import { typeNodeFromAnchorV01 } from './typeNodes'; diff --git a/packages/nodes-from-anchor/src/v01/InstructionNode.ts b/packages/nodes-from-anchor/src/v01/InstructionNode.ts index 7885ce8e5..67b9b7e00 100644 --- a/packages/nodes-from-anchor/src/v01/InstructionNode.ts +++ b/packages/nodes-from-anchor/src/v01/InstructionNode.ts @@ -7,7 +7,7 @@ import { instructionArgumentNode, InstructionNode, instructionNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { getAnchorDiscriminatorV01 } from '../discriminators'; import { IdlV01Instruction } from './idl'; diff --git a/packages/nodes-from-anchor/src/v01/ProgramNode.ts b/packages/nodes-from-anchor/src/v01/ProgramNode.ts index 5341752e0..6f6c678f7 100644 --- a/packages/nodes-from-anchor/src/v01/ProgramNode.ts +++ b/packages/nodes-from-anchor/src/v01/ProgramNode.ts @@ -1,4 +1,4 @@ -import { ProgramNode, programNode, ProgramVersion } from '@kinobi-so/nodes'; +import { ProgramNode, programNode, ProgramVersion } from '@codama/nodes'; import { accountNodeFromAnchorV01WithTypeDefinition } from './AccountNode'; import { definedTypeNodeFromAnchorV01 } from './DefinedTypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/RootNode.ts b/packages/nodes-from-anchor/src/v01/RootNode.ts index eca0ba147..54c8a3343 100644 --- a/packages/nodes-from-anchor/src/v01/RootNode.ts +++ b/packages/nodes-from-anchor/src/v01/RootNode.ts @@ -1,4 +1,4 @@ -import { RootNode, rootNode } from '@kinobi-so/nodes'; +import { RootNode, rootNode } from '@codama/nodes'; import { IdlV01 } from './idl'; import { programNodeFromAnchorV01 } from './ProgramNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/ArrayTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/ArrayTypeNode.ts index 215e54bc8..be661f54a 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/ArrayTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/ArrayTypeNode.ts @@ -1,4 +1,4 @@ -import { ArrayTypeNode, arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode } from '@kinobi-so/nodes'; +import { ArrayTypeNode, arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode } from '@codama/nodes'; import { IdlV01TypeArray, IdlV01TypeVec } from '../idl'; import { typeNodeFromAnchorV01 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/EnumEmptyVariantTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/EnumEmptyVariantTypeNode.ts index b0cdc3645..d33142167 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/EnumEmptyVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/EnumEmptyVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumEmptyVariantTypeNode, enumEmptyVariantTypeNode } from '@kinobi-so/nodes'; +import { EnumEmptyVariantTypeNode, enumEmptyVariantTypeNode } from '@codama/nodes'; import { IdlV01EnumVariant } from '../idl'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/EnumStructVariantTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/EnumStructVariantTypeNode.ts index a479a8708..22bd11b7c 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/EnumStructVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/EnumStructVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumStructVariantTypeNode, enumStructVariantTypeNode, StructTypeNode } from '@kinobi-so/nodes'; +import { EnumStructVariantTypeNode, enumStructVariantTypeNode, StructTypeNode } from '@codama/nodes'; import { IdlV01DefinedFieldsNamed, IdlV01EnumVariant } from '../idl'; import { structTypeNodeFromAnchorV01 } from './StructTypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/EnumTupleVariantTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/EnumTupleVariantTypeNode.ts index 8960f7efe..7799292d8 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/EnumTupleVariantTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/EnumTupleVariantTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumTupleVariantTypeNode, enumTupleVariantTypeNode, TupleTypeNode } from '@kinobi-so/nodes'; +import { EnumTupleVariantTypeNode, enumTupleVariantTypeNode, TupleTypeNode } from '@codama/nodes'; import { IdlV01DefinedFieldsTuple, IdlV01EnumVariant } from '../idl'; import { tupleTypeNodeFromAnchorV01 } from './TupleTypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/EnumTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/EnumTypeNode.ts index c904ba52f..82c18e42b 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/EnumTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/EnumTypeNode.ts @@ -1,4 +1,4 @@ -import { EnumTypeNode, enumTypeNode, EnumVariantTypeNode, NumberTypeNode } from '@kinobi-so/nodes'; +import { EnumTypeNode, enumTypeNode, EnumVariantTypeNode, NumberTypeNode } from '@codama/nodes'; import { IdlV01DefinedFieldsNamed, IdlV01DefinedFieldsTuple, IdlV01EnumVariant, IdlV01TypeDefTyEnum } from '../idl'; import { enumEmptyVariantTypeNodeFromAnchorV01 } from './EnumEmptyVariantTypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/OptionTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/OptionTypeNode.ts index 76ac6294f..7ec73b314 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/OptionTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/OptionTypeNode.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, OptionTypeNode, optionTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, OptionTypeNode, optionTypeNode } from '@codama/nodes'; import { IdlV01TypeCOption, IdlV01TypeOption } from '../idl'; import { typeNodeFromAnchorV01 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts index 707e94a50..53787eda6 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@kinobi-so/errors'; -import { StructFieldTypeNode, structFieldTypeNode } from '@kinobi-so/nodes'; +import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { StructFieldTypeNode, structFieldTypeNode } from '@codama/nodes'; import { IdlV01Field, IdlV01Type } from '../idl'; import { typeNodeFromAnchorV01 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/StructTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/StructTypeNode.ts index 1cd191335..aff965a9a 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/StructTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/StructTypeNode.ts @@ -1,4 +1,4 @@ -import { StructTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { StructTypeNode, structTypeNode } from '@codama/nodes'; import { IdlV01DefinedFields, IdlV01TypeDefTyStruct } from '../idl'; import { structFieldTypeNodeFromAnchorV01 } from './StructFieldTypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/TupleTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/TupleTypeNode.ts index 591baa0f1..b578ba628 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/TupleTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/TupleTypeNode.ts @@ -1,4 +1,4 @@ -import { TupleTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { TupleTypeNode, tupleTypeNode } from '@codama/nodes'; import { IdlV01DefinedFieldsTuple } from '../idl'; import { typeNodeFromAnchorV01 } from './TypeNode'; diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts index a7ad814e9..00bccec76 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -8,7 +8,7 @@ import { sizePrefixTypeNode, stringTypeNode, TypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { IdlV01DefinedFields, diff --git a/packages/nodes-from-anchor/test/discriminator.test.ts b/packages/nodes-from-anchor/test/discriminator.test.ts index 936fa6181..1153eb8ea 100644 --- a/packages/nodes-from-anchor/test/discriminator.test.ts +++ b/packages/nodes-from-anchor/test/discriminator.test.ts @@ -1,4 +1,4 @@ -import { bytesValueNode } from '@kinobi-so/nodes'; +import { bytesValueNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { getAnchorAccountDiscriminatorV00, getAnchorInstructionDiscriminatorV00 } from '../src/index.js'; diff --git a/packages/nodes-from-anchor/test/rootNodeFromAnchor.test.ts b/packages/nodes-from-anchor/test/rootNodeFromAnchor.test.ts index 08a5677da..3c76ac965 100644 --- a/packages/nodes-from-anchor/test/rootNodeFromAnchor.test.ts +++ b/packages/nodes-from-anchor/test/rootNodeFromAnchor.test.ts @@ -1,4 +1,4 @@ -import { programNode, rootNode } from '@kinobi-so/nodes'; +import { programNode, rootNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { rootNodeFromAnchor } from '../src'; diff --git a/packages/nodes-from-anchor/test/v00/AccountNode.test.ts b/packages/nodes-from-anchor/test/v00/AccountNode.test.ts index 13c70f9f6..8d6d120e5 100644 --- a/packages/nodes-from-anchor/test/v00/AccountNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/AccountNode.test.ts @@ -7,7 +7,7 @@ import { numberTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { accountNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/DefinedTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/DefinedTypeNode.test.ts index f25e96124..93f3a48d1 100644 --- a/packages/nodes-from-anchor/test/v00/DefinedTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/DefinedTypeNode.test.ts @@ -1,4 +1,4 @@ -import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { definedTypeNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/ErrorNode.test.ts b/packages/nodes-from-anchor/test/v00/ErrorNode.test.ts index ce450ead8..958596470 100644 --- a/packages/nodes-from-anchor/test/v00/ErrorNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/ErrorNode.test.ts @@ -1,4 +1,4 @@ -import { errorNode } from '@kinobi-so/nodes'; +import { errorNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { errorNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/InstructionAccountNode.test.ts b/packages/nodes-from-anchor/test/v00/InstructionAccountNode.test.ts index 87be9bc65..41a9fac03 100644 --- a/packages/nodes-from-anchor/test/v00/InstructionAccountNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/InstructionAccountNode.test.ts @@ -1,4 +1,4 @@ -import { instructionAccountNode } from '@kinobi-so/nodes'; +import { instructionAccountNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { instructionAccountNodeFromAnchorV00, instructionAccountNodesFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/InstructionArgumentNode.test.ts b/packages/nodes-from-anchor/test/v00/InstructionArgumentNode.test.ts index b2d0b15bd..401e46249 100644 --- a/packages/nodes-from-anchor/test/v00/InstructionArgumentNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/InstructionArgumentNode.test.ts @@ -1,4 +1,4 @@ -import { instructionArgumentNode, numberTypeNode } from '@kinobi-so/nodes'; +import { instructionArgumentNode, numberTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { instructionArgumentNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/InstructionNode.test.ts b/packages/nodes-from-anchor/test/v00/InstructionNode.test.ts index d992c49ee..55e9feea2 100644 --- a/packages/nodes-from-anchor/test/v00/InstructionNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/InstructionNode.test.ts @@ -7,7 +7,7 @@ import { instructionArgumentNode, instructionNode, numberTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { instructionNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/PdaNode.test.ts b/packages/nodes-from-anchor/test/v00/PdaNode.test.ts index a6c407580..d3c6b48a5 100644 --- a/packages/nodes-from-anchor/test/v00/PdaNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/PdaNode.test.ts @@ -5,7 +5,7 @@ import { numberValueNode, pdaNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { pdaNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/ProgramNode.test.ts b/packages/nodes-from-anchor/test/v00/ProgramNode.test.ts index 3b54a089b..173bd0c34 100644 --- a/packages/nodes-from-anchor/test/v00/ProgramNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/ProgramNode.test.ts @@ -8,7 +8,7 @@ import { pdaNode, programNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { programNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/RootNode.test.ts b/packages/nodes-from-anchor/test/v00/RootNode.test.ts index e54e236fc..5a9d56117 100644 --- a/packages/nodes-from-anchor/test/v00/RootNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/RootNode.test.ts @@ -1,4 +1,4 @@ -import { programNode, rootNode } from '@kinobi-so/nodes'; +import { programNode, rootNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { rootNodeFromAnchorV00 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/ArrayTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/ArrayTypeNode.test.ts index 539f421f7..57f82b003 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/ArrayTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/ArrayTypeNode.test.ts @@ -1,4 +1,4 @@ -import { arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode, remainderCountNode } from '@kinobi-so/nodes'; +import { arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode, remainderCountNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/BooleanTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/BooleanTypeNode.test.ts index e840732eb..89c0401f2 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/BooleanTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/BooleanTypeNode.test.ts @@ -1,4 +1,4 @@ -import { booleanTypeNode } from '@kinobi-so/nodes'; +import { booleanTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/BytesTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/BytesTypeNode.test.ts index 0edd1fe4d..8d8d97833 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/BytesTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/BytesTypeNode.test.ts @@ -1,4 +1,4 @@ -import { bytesTypeNode, numberTypeNode, sizePrefixTypeNode } from '@kinobi-so/nodes'; +import { bytesTypeNode, numberTypeNode, sizePrefixTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/EnumTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/EnumTypeNode.test.ts index 177203024..a5b992730 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/EnumTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/EnumTypeNode.test.ts @@ -8,7 +8,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/MapTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/MapTypeNode.test.ts index 544668fcd..e2d1a3101 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/MapTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/MapTypeNode.test.ts @@ -5,7 +5,7 @@ import { numberTypeNode, prefixedCountNode, remainderCountNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/NumberTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/NumberTypeNode.test.ts index b95e8d2e4..e3470dd12 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/NumberTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/NumberTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/OptionTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/OptionTypeNode.test.ts index 4f49e1433..395492b33 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/OptionTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/OptionTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, optionTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, optionTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/PublicKeyTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/PublicKeyTypeNode.test.ts index ef777789c..b3a4256aa 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/PublicKeyTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/PublicKeyTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/SetTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/SetTypeNode.test.ts index a6f747716..a4dc3844c 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/SetTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/SetTypeNode.test.ts @@ -1,4 +1,4 @@ -import { fixedCountNode, numberTypeNode, prefixedCountNode, remainderCountNode, setTypeNode } from '@kinobi-so/nodes'; +import { fixedCountNode, numberTypeNode, prefixedCountNode, remainderCountNode, setTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/StringTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/StringTypeNode.test.ts index 82d7a65c9..92776f2cb 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/StringTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/StringTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/StructTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/StructTypeNode.test.ts index 1c1d62d70..5e795e875 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/StructTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/StructTypeNode.test.ts @@ -1,10 +1,4 @@ -import { - numberTypeNode, - sizePrefixTypeNode, - stringTypeNode, - structFieldTypeNode, - structTypeNode, -} from '@kinobi-so/nodes'; +import { numberTypeNode, sizePrefixTypeNode, stringTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v00/typeNodes/TupleTypeNode.test.ts b/packages/nodes-from-anchor/test/v00/typeNodes/TupleTypeNode.test.ts index 359b8941f..c030abfc3 100644 --- a/packages/nodes-from-anchor/test/v00/typeNodes/TupleTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v00/typeNodes/TupleTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV00 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/AccountNode.test.ts b/packages/nodes-from-anchor/test/v01/AccountNode.test.ts index 72d742fff..636fd6354 100644 --- a/packages/nodes-from-anchor/test/v01/AccountNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/AccountNode.test.ts @@ -6,7 +6,7 @@ import { numberTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { accountNodeFromAnchorV01, getAnchorDiscriminatorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/DefinedTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/DefinedTypeNode.test.ts index 13b5f6f7a..1cebd4457 100644 --- a/packages/nodes-from-anchor/test/v01/DefinedTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/DefinedTypeNode.test.ts @@ -1,4 +1,4 @@ -import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { definedTypeNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/ErrorNode.test.ts b/packages/nodes-from-anchor/test/v01/ErrorNode.test.ts index ac06bfa12..0dff622dc 100644 --- a/packages/nodes-from-anchor/test/v01/ErrorNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/ErrorNode.test.ts @@ -1,4 +1,4 @@ -import { errorNode } from '@kinobi-so/nodes'; +import { errorNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { errorNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/InstructionAccountNode.test.ts b/packages/nodes-from-anchor/test/v01/InstructionAccountNode.test.ts index 8b26cf869..baa24a8f7 100644 --- a/packages/nodes-from-anchor/test/v01/InstructionAccountNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/InstructionAccountNode.test.ts @@ -15,7 +15,7 @@ import { structFieldTypeNode, structTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { instructionAccountNodeFromAnchorV01, instructionAccountNodesFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/InstructionArgumentNode.test.ts b/packages/nodes-from-anchor/test/v01/InstructionArgumentNode.test.ts index e273bdc16..3c66e103d 100644 --- a/packages/nodes-from-anchor/test/v01/InstructionArgumentNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/InstructionArgumentNode.test.ts @@ -1,4 +1,4 @@ -import { instructionArgumentNode, numberTypeNode } from '@kinobi-so/nodes'; +import { instructionArgumentNode, numberTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { instructionArgumentNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/InstructionNode.test.ts b/packages/nodes-from-anchor/test/v01/InstructionNode.test.ts index 60bfe5e3b..129244ac4 100644 --- a/packages/nodes-from-anchor/test/v01/InstructionNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/InstructionNode.test.ts @@ -10,7 +10,7 @@ import { publicKeyTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { getAnchorDiscriminatorV01, instructionNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/ProgramNode.test.ts b/packages/nodes-from-anchor/test/v01/ProgramNode.test.ts index c6080bf4f..3de49aac8 100644 --- a/packages/nodes-from-anchor/test/v01/ProgramNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/ProgramNode.test.ts @@ -19,7 +19,7 @@ import { structFieldTypeNode, structTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { getAnchorDiscriminatorV01, programNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/RootNode.test.ts b/packages/nodes-from-anchor/test/v01/RootNode.test.ts index 75d4f523c..9f25a8bca 100644 --- a/packages/nodes-from-anchor/test/v01/RootNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/RootNode.test.ts @@ -1,4 +1,4 @@ -import { programNode, rootNode } from '@kinobi-so/nodes'; +import { programNode, rootNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { rootNodeFromAnchorV01 } from '../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/ArrayTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/ArrayTypeNode.test.ts index ca8bc24f2..9c0ef061f 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/ArrayTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/ArrayTypeNode.test.ts @@ -1,4 +1,4 @@ -import { arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode } from '@kinobi-so/nodes'; +import { arrayTypeNode, fixedCountNode, numberTypeNode, prefixedCountNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/BooleanTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/BooleanTypeNode.test.ts index cab7dea10..6c6feb2bd 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/BooleanTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/BooleanTypeNode.test.ts @@ -1,4 +1,4 @@ -import { booleanTypeNode } from '@kinobi-so/nodes'; +import { booleanTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/BytesTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/BytesTypeNode.test.ts index 1fad8fa30..0fc7eaae8 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/BytesTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/BytesTypeNode.test.ts @@ -1,4 +1,4 @@ -import { bytesTypeNode, numberTypeNode, sizePrefixTypeNode } from '@kinobi-so/nodes'; +import { bytesTypeNode, numberTypeNode, sizePrefixTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/EnumTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/EnumTypeNode.test.ts index d59e864f7..a663dd6ba 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/EnumTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/EnumTypeNode.test.ts @@ -8,7 +8,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/NumberTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/NumberTypeNode.test.ts index 7727e41b0..c5b6c8f04 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/NumberTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/NumberTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/OptionTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/OptionTypeNode.test.ts index 28c202c7e..7803c0c62 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/OptionTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/OptionTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, optionTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, optionTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/PublicKeyTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/PublicKeyTypeNode.test.ts index cb01f2f9b..3c74e4987 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/PublicKeyTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/PublicKeyTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/StringTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/StringTypeNode.test.ts index 32c7893ca..6391562ed 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/StringTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/StringTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts index 3784621c7..985d47502 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { arrayTypeNode, numberTypeNode, @@ -9,7 +9,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/TupleTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/TupleTypeNode.test.ts index 22623f928..2feb74687 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/TupleTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/TupleTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { typeNodeFromAnchorV01 } from '../../../src'; diff --git a/packages/nodes-from-anchor/tsconfig.json b/packages/nodes-from-anchor/tsconfig.json index 719dada3c..17e6eca9d 100644 --- a/packages/nodes-from-anchor/tsconfig.json +++ b/packages/nodes-from-anchor/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/nodes-from-anchor", + "display": "@codama/nodes-from-anchor", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/nodes/README.md b/packages/nodes/README.md index 0032ee96c..c5d5079a7 100644 --- a/packages/nodes/README.md +++ b/packages/nodes/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/nodes.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/nodes.svg?style=flat&label=%40kinobi-so%2Fnodes -[npm-url]: https://www.npmjs.com/package/@kinobi-so/nodes +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/nodes.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/nodes.svg?style=flat&label=%40kinobi-so%2Fnodes +[npm-url]: https://www.npmjs.com/package/@codama/nodes -This package defines the various nodes that make up the Kinobi IDL. It provides types and helper functions to work with these nodes. If you are looking for a type-only version of these nodes, you can find them in the [`@kinobi-so/node-types`](../node-types) package. +This package defines the various nodes that make up the Kinobi IDL. It provides types and helper functions to work with these nodes. If you are looking for a type-only version of these nodes, you can find them in the [`@codama/node-types`](../node-types) package. ## Installation ```sh -pnpm install @kinobi-so/nodes +pnpm install @codama/nodes ``` > [!NOTE] diff --git a/packages/nodes/docs/AccountNode.md b/packages/nodes/docs/AccountNode.md index 60d110d42..7ab4720ba 100644 --- a/packages/nodes/docs/AccountNode.md +++ b/packages/nodes/docs/AccountNode.md @@ -2,7 +2,7 @@ This node defines an on-chain account. It is characterized by its name, data structure, and optional attributes such as PDA definition and account discriminators. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) +![Diagram](https://github.com/codama/kinobi/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) ## Attributes diff --git a/packages/nodes/docs/DefinedTypeNode.md b/packages/nodes/docs/DefinedTypeNode.md index c13086fdf..aecedc684 100644 --- a/packages/nodes/docs/DefinedTypeNode.md +++ b/packages/nodes/docs/DefinedTypeNode.md @@ -2,7 +2,7 @@ This node defines a named type that can be reused in other types using a [`DefinedTypeLinkNode`](./linkNodes/DefinedTypeLinkNode.md). -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) +![Diagram](https://github.com/codama/kinobi/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) ## Attributes diff --git a/packages/nodes/docs/ErrorNode.md b/packages/nodes/docs/ErrorNode.md index 4dca3e6eb..0ebe3ab22 100644 --- a/packages/nodes/docs/ErrorNode.md +++ b/packages/nodes/docs/ErrorNode.md @@ -2,7 +2,7 @@ This node defines an error that can be returned by a program. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) +![Diagram](https://github.com/codama/kinobi/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) ## Attributes diff --git a/packages/nodes/docs/InstructionAccountNode.md b/packages/nodes/docs/InstructionAccountNode.md index b76590879..5cc1bff05 100644 --- a/packages/nodes/docs/InstructionAccountNode.md +++ b/packages/nodes/docs/InstructionAccountNode.md @@ -2,7 +2,7 @@ This node defines an account used by an instruction. It is characterized by its name and various requirements such as whether it needs to be writable or a signer. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) +![Diagram](https://github.com/codama/kinobi/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) ## Attributes diff --git a/packages/nodes/docs/InstructionArgumentNode.md b/packages/nodes/docs/InstructionArgumentNode.md index b193e4890..51b14083b 100644 --- a/packages/nodes/docs/InstructionArgumentNode.md +++ b/packages/nodes/docs/InstructionArgumentNode.md @@ -2,7 +2,7 @@ This node defines an argument that is passed to an instruction. When all arguments are combined and serialized next to each other, they form the instruction's data. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) +![Diagram](https://github.com/codama/kinobi/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) ## Attributes diff --git a/packages/nodes/docs/InstructionNode.md b/packages/nodes/docs/InstructionNode.md index 755dd5611..50d3d8971 100644 --- a/packages/nodes/docs/InstructionNode.md +++ b/packages/nodes/docs/InstructionNode.md @@ -2,7 +2,7 @@ This node represents an instruction in a program. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) +![Diagram](https://github.com/codama/kinobi/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) ## Attributes diff --git a/packages/nodes/docs/PdaNode.md b/packages/nodes/docs/PdaNode.md index 28b713b5b..2f67a4e6b 100644 --- a/packages/nodes/docs/PdaNode.md +++ b/packages/nodes/docs/PdaNode.md @@ -2,7 +2,7 @@ This node provides a definition for a specific Program-Derived Address (PDA). It is characterized by a name and a list of seeds that can either be constant or variable. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) +![Diagram](https://github.com/codama/kinobi/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) ## Attributes diff --git a/packages/nodes/docs/ProgramNode.md b/packages/nodes/docs/ProgramNode.md index 0e193b72d..c49a62a2d 100644 --- a/packages/nodes/docs/ProgramNode.md +++ b/packages/nodes/docs/ProgramNode.md @@ -2,7 +2,7 @@ This node represents an entire program deployed on-chain. It defines all elements of a program such as accounts, instructions, PDAs, errors, etc. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) +![Diagram](https://github.com/codama/kinobi/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) ## Attributes diff --git a/packages/nodes/docs/RootNode.md b/packages/nodes/docs/RootNode.md index 7be824475..2e225cdec 100644 --- a/packages/nodes/docs/RootNode.md +++ b/packages/nodes/docs/RootNode.md @@ -2,7 +2,7 @@ This node represents the starting point of the Kinobi IDL. It contains a single `ProgramNode` which the Kinobi IDL is describing as well as any additional programs that may be referenced by the main program. This node is also responsible for setting the standard and version of the IDL. -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) +![Diagram](https://github.com/codama/kinobi/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) ## Attributes diff --git a/packages/nodes/docs/typeNodes/ArrayTypeNode.md b/packages/nodes/docs/typeNodes/ArrayTypeNode.md index 9d1eb4e6e..aa5c09390 100644 --- a/packages/nodes/docs/typeNodes/ArrayTypeNode.md +++ b/packages/nodes/docs/typeNodes/ArrayTypeNode.md @@ -31,7 +31,7 @@ const node = arrayTypeNode(publicKeyTypeNode(), prefixedCountNode(numberTypeNode ### u32 prefixed array of u8 numbers -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) +![Diagram](https://github.com/codama/kinobi/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) ```ts arrayTypeNode(numberTypeNode('u8'), prefixedCountNode(numberTypeNode('u32'))); diff --git a/packages/nodes/docs/typeNodes/NumberTypeNode.md b/packages/nodes/docs/typeNodes/NumberTypeNode.md index d497cd238..d2f0ed37a 100644 --- a/packages/nodes/docs/typeNodes/NumberTypeNode.md +++ b/packages/nodes/docs/typeNodes/NumberTypeNode.md @@ -103,7 +103,7 @@ isDecimal(numberTypeNode('f32')); // true ### Encoding `u32` integers -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) +![Diagram](https://github.com/codama/kinobi/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) ```ts numberTypeNode('u32'); @@ -115,7 +115,7 @@ numberTypeNode('u32'); ### Encoding `f32` big-endian decimal numbers -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) +![Diagram](https://github.com/codama/kinobi/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) ```ts numberTypeNode('f32', 'be'); @@ -127,7 +127,7 @@ numberTypeNode('f32', 'be'); ### Encoding `shortU16` integers -![Diagram](https://github.com/kinobi-so/kinobi/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) +![Diagram](https://github.com/codama/kinobi/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) ```ts numberTypeNode('shortU16'); diff --git a/packages/nodes/package.json b/packages/nodes/package.json index 20c9960a6..6d9db4da9 100644 --- a/packages/nodes/package.json +++ b/packages/nodes/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/nodes", + "name": "@codama/nodes", "version": "0.22.0", "description": "Node specifications and helpers for the Kinobi standard", "exports": { @@ -36,29 +36,29 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/node-types": "workspace:*" + "@codama/errors": "workspace:*", + "@codama/node-types": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes/src/AccountNode.ts b/packages/nodes/src/AccountNode.ts index a93c76f0f..a89b991c8 100644 --- a/packages/nodes/src/AccountNode.ts +++ b/packages/nodes/src/AccountNode.ts @@ -1,10 +1,4 @@ -import type { - AccountNode, - DiscriminatorNode, - NestedTypeNode, - PdaLinkNode, - StructTypeNode, -} from '@kinobi-so/node-types'; +import type { AccountNode, DiscriminatorNode, NestedTypeNode, PdaLinkNode, StructTypeNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; import { structTypeNode } from './typeNodes'; diff --git a/packages/nodes/src/DefinedTypeNode.ts b/packages/nodes/src/DefinedTypeNode.ts index 382b261d3..241aa9811 100644 --- a/packages/nodes/src/DefinedTypeNode.ts +++ b/packages/nodes/src/DefinedTypeNode.ts @@ -1,4 +1,4 @@ -import type { DefinedTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { DefinedTypeNode, TypeNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/ErrorNode.ts b/packages/nodes/src/ErrorNode.ts index e2cf06f3a..47cb0bbcc 100644 --- a/packages/nodes/src/ErrorNode.ts +++ b/packages/nodes/src/ErrorNode.ts @@ -1,4 +1,4 @@ -import type { ErrorNode } from '@kinobi-so/node-types'; +import type { ErrorNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/InstructionAccountNode.ts b/packages/nodes/src/InstructionAccountNode.ts index 90fa17a46..4b5a337c5 100644 --- a/packages/nodes/src/InstructionAccountNode.ts +++ b/packages/nodes/src/InstructionAccountNode.ts @@ -1,4 +1,4 @@ -import type { InstructionAccountNode, InstructionInputValueNode } from '@kinobi-so/node-types'; +import type { InstructionAccountNode, InstructionInputValueNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/InstructionArgumentNode.ts b/packages/nodes/src/InstructionArgumentNode.ts index 4800ae919..172cf2796 100644 --- a/packages/nodes/src/InstructionArgumentNode.ts +++ b/packages/nodes/src/InstructionArgumentNode.ts @@ -1,4 +1,4 @@ -import type { InstructionArgumentNode, InstructionInputValueNode } from '@kinobi-so/node-types'; +import type { InstructionArgumentNode, InstructionInputValueNode } from '@codama/node-types'; import { isNode } from './Node'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/InstructionByteDeltaNode.ts b/packages/nodes/src/InstructionByteDeltaNode.ts index e65ebb0cd..d96eb921a 100644 --- a/packages/nodes/src/InstructionByteDeltaNode.ts +++ b/packages/nodes/src/InstructionByteDeltaNode.ts @@ -1,4 +1,4 @@ -import type { InstructionByteDeltaNode } from '@kinobi-so/node-types'; +import type { InstructionByteDeltaNode } from '@codama/node-types'; import { isNode } from './Node'; diff --git a/packages/nodes/src/InstructionNode.ts b/packages/nodes/src/InstructionNode.ts index 1fb6aaf47..912b9dfaa 100644 --- a/packages/nodes/src/InstructionNode.ts +++ b/packages/nodes/src/InstructionNode.ts @@ -7,7 +7,7 @@ import type { InstructionRemainingAccountsNode, ProgramNode, RootNode, -} from '@kinobi-so/node-types'; +} from '@codama/node-types'; import { isNode } from './Node'; import { getAllInstructions } from './ProgramNode'; diff --git a/packages/nodes/src/InstructionRemainingAccountsNode.ts b/packages/nodes/src/InstructionRemainingAccountsNode.ts index a7c9905d5..59e4ef972 100644 --- a/packages/nodes/src/InstructionRemainingAccountsNode.ts +++ b/packages/nodes/src/InstructionRemainingAccountsNode.ts @@ -1,4 +1,4 @@ -import type { ArgumentValueNode, InstructionRemainingAccountsNode, ResolverValueNode } from '@kinobi-so/node-types'; +import type { ArgumentValueNode, InstructionRemainingAccountsNode, ResolverValueNode } from '@codama/node-types'; import { DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/Node.ts b/packages/nodes/src/Node.ts index e2a3ecda7..acca1d107 100644 --- a/packages/nodes/src/Node.ts +++ b/packages/nodes/src/Node.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; -import type { GetNodeFromKind, Node, NodeKind } from '@kinobi-so/node-types'; +import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import type { GetNodeFromKind, Node, NodeKind } from '@codama/node-types'; import { REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS } from './contextualValueNodes/ContextualValueNode'; import { REGISTERED_COUNT_NODE_KINDS } from './countNodes/CountNode'; diff --git a/packages/nodes/src/PdaNode.ts b/packages/nodes/src/PdaNode.ts index ca4447f66..3150e26ea 100644 --- a/packages/nodes/src/PdaNode.ts +++ b/packages/nodes/src/PdaNode.ts @@ -1,4 +1,4 @@ -import type { PdaNode, PdaSeedNode } from '@kinobi-so/node-types'; +import type { PdaNode, PdaSeedNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/ProgramNode.ts b/packages/nodes/src/ProgramNode.ts index 3809d8f55..1184b6dcb 100644 --- a/packages/nodes/src/ProgramNode.ts +++ b/packages/nodes/src/ProgramNode.ts @@ -6,7 +6,7 @@ import type { PdaNode, ProgramNode, RootNode, -} from '@kinobi-so/node-types'; +} from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from './shared'; diff --git a/packages/nodes/src/RootNode.ts b/packages/nodes/src/RootNode.ts index 13903ea23..d35122850 100644 --- a/packages/nodes/src/RootNode.ts +++ b/packages/nodes/src/RootNode.ts @@ -1,4 +1,4 @@ -import type { KinobiVersion, ProgramNode, RootNode } from '@kinobi-so/node-types'; +import type { KinobiVersion, ProgramNode, RootNode } from '@codama/node-types'; export function rootNode( program: TProgram, diff --git a/packages/nodes/src/contextualValueNodes/AccountBumpValueNode.ts b/packages/nodes/src/contextualValueNodes/AccountBumpValueNode.ts index 50cb1120a..ba781731c 100644 --- a/packages/nodes/src/contextualValueNodes/AccountBumpValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/AccountBumpValueNode.ts @@ -1,4 +1,4 @@ -import type { AccountBumpValueNode } from '@kinobi-so/node-types'; +import type { AccountBumpValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/contextualValueNodes/AccountValueNode.ts b/packages/nodes/src/contextualValueNodes/AccountValueNode.ts index e384a0c12..0620540d3 100644 --- a/packages/nodes/src/contextualValueNodes/AccountValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/AccountValueNode.ts @@ -1,4 +1,4 @@ -import type { AccountValueNode } from '@kinobi-so/node-types'; +import type { AccountValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/contextualValueNodes/ArgumentValueNode.ts b/packages/nodes/src/contextualValueNodes/ArgumentValueNode.ts index 182c1d4df..8f6ba9ea4 100644 --- a/packages/nodes/src/contextualValueNodes/ArgumentValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/ArgumentValueNode.ts @@ -1,4 +1,4 @@ -import type { ArgumentValueNode } from '@kinobi-so/node-types'; +import type { ArgumentValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/contextualValueNodes/ConditionalValueNode.ts b/packages/nodes/src/contextualValueNodes/ConditionalValueNode.ts index 6fdf97eed..290ed4039 100644 --- a/packages/nodes/src/contextualValueNodes/ConditionalValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/ConditionalValueNode.ts @@ -5,7 +5,7 @@ import type { InstructionInputValueNode, ResolverValueNode, ValueNode, -} from '@kinobi-so/node-types'; +} from '@codama/node-types'; type ConditionNode = AccountValueNode | ArgumentValueNode | ResolverValueNode; diff --git a/packages/nodes/src/contextualValueNodes/IdentityValueNode.ts b/packages/nodes/src/contextualValueNodes/IdentityValueNode.ts index 469a7ad73..8a6763526 100644 --- a/packages/nodes/src/contextualValueNodes/IdentityValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/IdentityValueNode.ts @@ -1,4 +1,4 @@ -import type { IdentityValueNode } from '@kinobi-so/node-types'; +import type { IdentityValueNode } from '@codama/node-types'; export function identityValueNode(): IdentityValueNode { return Object.freeze({ kind: 'identityValueNode' }); diff --git a/packages/nodes/src/contextualValueNodes/PayerValueNode.ts b/packages/nodes/src/contextualValueNodes/PayerValueNode.ts index e610324b8..e44471fd2 100644 --- a/packages/nodes/src/contextualValueNodes/PayerValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/PayerValueNode.ts @@ -1,4 +1,4 @@ -import type { PayerValueNode } from '@kinobi-so/node-types'; +import type { PayerValueNode } from '@codama/node-types'; export function payerValueNode(): PayerValueNode { return Object.freeze({ kind: 'payerValueNode' }); diff --git a/packages/nodes/src/contextualValueNodes/PdaSeedValueNode.ts b/packages/nodes/src/contextualValueNodes/PdaSeedValueNode.ts index a86202afb..1ab252efd 100644 --- a/packages/nodes/src/contextualValueNodes/PdaSeedValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/PdaSeedValueNode.ts @@ -1,4 +1,4 @@ -import type { AccountValueNode, ArgumentValueNode, PdaSeedValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { AccountValueNode, ArgumentValueNode, PdaSeedValueNode, ValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/contextualValueNodes/PdaValueNode.ts b/packages/nodes/src/contextualValueNodes/PdaValueNode.ts index 84a663d69..b141515f8 100644 --- a/packages/nodes/src/contextualValueNodes/PdaValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/PdaValueNode.ts @@ -1,4 +1,4 @@ -import type { PdaLinkNode, PdaNode, PdaSeedValueNode, PdaValueNode } from '@kinobi-so/node-types'; +import type { PdaLinkNode, PdaNode, PdaSeedValueNode, PdaValueNode } from '@codama/node-types'; import { pdaLinkNode } from '../linkNodes'; diff --git a/packages/nodes/src/contextualValueNodes/ProgramIdValueNode.ts b/packages/nodes/src/contextualValueNodes/ProgramIdValueNode.ts index 11f5573ea..6030bb881 100644 --- a/packages/nodes/src/contextualValueNodes/ProgramIdValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/ProgramIdValueNode.ts @@ -1,4 +1,4 @@ -import type { ProgramIdValueNode } from '@kinobi-so/node-types'; +import type { ProgramIdValueNode } from '@codama/node-types'; export function programIdValueNode(): ProgramIdValueNode { return Object.freeze({ kind: 'programIdValueNode' }); diff --git a/packages/nodes/src/contextualValueNodes/ResolverValueNode.ts b/packages/nodes/src/contextualValueNodes/ResolverValueNode.ts index 50fc6b22e..0451ca75a 100644 --- a/packages/nodes/src/contextualValueNodes/ResolverValueNode.ts +++ b/packages/nodes/src/contextualValueNodes/ResolverValueNode.ts @@ -1,4 +1,4 @@ -import type { AccountValueNode, ArgumentValueNode, ResolverValueNode } from '@kinobi-so/node-types'; +import type { AccountValueNode, ArgumentValueNode, ResolverValueNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from '../shared'; diff --git a/packages/nodes/src/countNodes/FixedCountNode.ts b/packages/nodes/src/countNodes/FixedCountNode.ts index ea7c76880..d5c9399bd 100644 --- a/packages/nodes/src/countNodes/FixedCountNode.ts +++ b/packages/nodes/src/countNodes/FixedCountNode.ts @@ -1,4 +1,4 @@ -import type { FixedCountNode } from '@kinobi-so/node-types'; +import type { FixedCountNode } from '@codama/node-types'; export function fixedCountNode(value: number): FixedCountNode { return Object.freeze({ diff --git a/packages/nodes/src/countNodes/PrefixedCountNode.ts b/packages/nodes/src/countNodes/PrefixedCountNode.ts index c83b86c6d..6017d33e5 100644 --- a/packages/nodes/src/countNodes/PrefixedCountNode.ts +++ b/packages/nodes/src/countNodes/PrefixedCountNode.ts @@ -1,4 +1,4 @@ -import type { NestedTypeNode, NumberTypeNode, PrefixedCountNode } from '@kinobi-so/node-types'; +import type { NestedTypeNode, NumberTypeNode, PrefixedCountNode } from '@codama/node-types'; export function prefixedCountNode>( prefix: TPrefix, diff --git a/packages/nodes/src/countNodes/RemainderCountNode.ts b/packages/nodes/src/countNodes/RemainderCountNode.ts index 1410627c2..82775beec 100644 --- a/packages/nodes/src/countNodes/RemainderCountNode.ts +++ b/packages/nodes/src/countNodes/RemainderCountNode.ts @@ -1,4 +1,4 @@ -import type { RemainderCountNode } from '@kinobi-so/node-types'; +import type { RemainderCountNode } from '@codama/node-types'; export function remainderCountNode(): RemainderCountNode { return Object.freeze({ kind: 'remainderCountNode' }); diff --git a/packages/nodes/src/discriminatorNodes/ConstantDiscriminatorNode.ts b/packages/nodes/src/discriminatorNodes/ConstantDiscriminatorNode.ts index 7bc46c90e..1ad664c7e 100644 --- a/packages/nodes/src/discriminatorNodes/ConstantDiscriminatorNode.ts +++ b/packages/nodes/src/discriminatorNodes/ConstantDiscriminatorNode.ts @@ -1,4 +1,4 @@ -import type { ConstantDiscriminatorNode, ConstantValueNode } from '@kinobi-so/node-types'; +import type { ConstantDiscriminatorNode, ConstantValueNode } from '@codama/node-types'; export function constantDiscriminatorNode( constant: TConstant, diff --git a/packages/nodes/src/discriminatorNodes/FieldDiscriminatorNode.ts b/packages/nodes/src/discriminatorNodes/FieldDiscriminatorNode.ts index 59a48eb38..64c832e15 100644 --- a/packages/nodes/src/discriminatorNodes/FieldDiscriminatorNode.ts +++ b/packages/nodes/src/discriminatorNodes/FieldDiscriminatorNode.ts @@ -1,4 +1,4 @@ -import type { FieldDiscriminatorNode } from '@kinobi-so/node-types'; +import type { FieldDiscriminatorNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/discriminatorNodes/SizeDiscriminatorNode.ts b/packages/nodes/src/discriminatorNodes/SizeDiscriminatorNode.ts index 0af1e6358..15e83ed6c 100644 --- a/packages/nodes/src/discriminatorNodes/SizeDiscriminatorNode.ts +++ b/packages/nodes/src/discriminatorNodes/SizeDiscriminatorNode.ts @@ -1,4 +1,4 @@ -import type { SizeDiscriminatorNode } from '@kinobi-so/node-types'; +import type { SizeDiscriminatorNode } from '@codama/node-types'; export function sizeDiscriminatorNode(size: number): SizeDiscriminatorNode { return Object.freeze({ diff --git a/packages/nodes/src/index.ts b/packages/nodes/src/index.ts index 51cc47c57..70aecdaf9 100644 --- a/packages/nodes/src/index.ts +++ b/packages/nodes/src/index.ts @@ -1,4 +1,4 @@ -export * from '@kinobi-so/node-types'; +export * from '@codama/node-types'; export * from './contextualValueNodes'; export * from './countNodes'; diff --git a/packages/nodes/src/linkNodes/AccountLinkNode.ts b/packages/nodes/src/linkNodes/AccountLinkNode.ts index e0c6ccb1f..7b4f77c27 100644 --- a/packages/nodes/src/linkNodes/AccountLinkNode.ts +++ b/packages/nodes/src/linkNodes/AccountLinkNode.ts @@ -1,4 +1,4 @@ -import type { AccountLinkNode, ProgramLinkNode } from '@kinobi-so/node-types'; +import type { AccountLinkNode, ProgramLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { programLinkNode } from './ProgramLinkNode'; diff --git a/packages/nodes/src/linkNodes/DefinedTypeLinkNode.ts b/packages/nodes/src/linkNodes/DefinedTypeLinkNode.ts index 49110fc50..ccd80aaf4 100644 --- a/packages/nodes/src/linkNodes/DefinedTypeLinkNode.ts +++ b/packages/nodes/src/linkNodes/DefinedTypeLinkNode.ts @@ -1,4 +1,4 @@ -import type { DefinedTypeLinkNode, ProgramLinkNode } from '@kinobi-so/node-types'; +import type { DefinedTypeLinkNode, ProgramLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { programLinkNode } from './ProgramLinkNode'; diff --git a/packages/nodes/src/linkNodes/InstructionAccountLinkNode.ts b/packages/nodes/src/linkNodes/InstructionAccountLinkNode.ts index 6cfd26d07..74b88e782 100644 --- a/packages/nodes/src/linkNodes/InstructionAccountLinkNode.ts +++ b/packages/nodes/src/linkNodes/InstructionAccountLinkNode.ts @@ -1,4 +1,4 @@ -import type { InstructionAccountLinkNode, InstructionLinkNode } from '@kinobi-so/node-types'; +import type { InstructionAccountLinkNode, InstructionLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { instructionLinkNode } from './InstructionLinkNode'; diff --git a/packages/nodes/src/linkNodes/InstructionArgumentLinkNode.ts b/packages/nodes/src/linkNodes/InstructionArgumentLinkNode.ts index 0a6ac88be..6c0f71918 100644 --- a/packages/nodes/src/linkNodes/InstructionArgumentLinkNode.ts +++ b/packages/nodes/src/linkNodes/InstructionArgumentLinkNode.ts @@ -1,4 +1,4 @@ -import type { InstructionArgumentLinkNode, InstructionLinkNode } from '@kinobi-so/node-types'; +import type { InstructionArgumentLinkNode, InstructionLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { instructionLinkNode } from './InstructionLinkNode'; diff --git a/packages/nodes/src/linkNodes/InstructionLinkNode.ts b/packages/nodes/src/linkNodes/InstructionLinkNode.ts index 65921e1f1..c76caf54b 100644 --- a/packages/nodes/src/linkNodes/InstructionLinkNode.ts +++ b/packages/nodes/src/linkNodes/InstructionLinkNode.ts @@ -1,4 +1,4 @@ -import type { InstructionLinkNode, ProgramLinkNode } from '@kinobi-so/node-types'; +import type { InstructionLinkNode, ProgramLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { programLinkNode } from './ProgramLinkNode'; diff --git a/packages/nodes/src/linkNodes/PdaLinkNode.ts b/packages/nodes/src/linkNodes/PdaLinkNode.ts index 389f3373c..7b1348c39 100644 --- a/packages/nodes/src/linkNodes/PdaLinkNode.ts +++ b/packages/nodes/src/linkNodes/PdaLinkNode.ts @@ -1,4 +1,4 @@ -import type { PdaLinkNode, ProgramLinkNode } from '@kinobi-so/node-types'; +import type { PdaLinkNode, ProgramLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; import { programLinkNode } from './ProgramLinkNode'; diff --git a/packages/nodes/src/linkNodes/ProgramLinkNode.ts b/packages/nodes/src/linkNodes/ProgramLinkNode.ts index c7530af0f..13ddd59a3 100644 --- a/packages/nodes/src/linkNodes/ProgramLinkNode.ts +++ b/packages/nodes/src/linkNodes/ProgramLinkNode.ts @@ -1,4 +1,4 @@ -import type { ProgramLinkNode } from '@kinobi-so/node-types'; +import type { ProgramLinkNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/pdaSeedNodes/ConstantPdaSeedNode.ts b/packages/nodes/src/pdaSeedNodes/ConstantPdaSeedNode.ts index cad9d7af4..5cf9174de 100644 --- a/packages/nodes/src/pdaSeedNodes/ConstantPdaSeedNode.ts +++ b/packages/nodes/src/pdaSeedNodes/ConstantPdaSeedNode.ts @@ -1,10 +1,4 @@ -import type { - BytesEncoding, - ConstantPdaSeedNode, - ProgramIdValueNode, - TypeNode, - ValueNode, -} from '@kinobi-so/node-types'; +import type { BytesEncoding, ConstantPdaSeedNode, ProgramIdValueNode, TypeNode, ValueNode } from '@codama/node-types'; import { programIdValueNode } from '../contextualValueNodes/ProgramIdValueNode'; import { bytesTypeNode } from '../typeNodes/BytesTypeNode'; diff --git a/packages/nodes/src/pdaSeedNodes/VariablePdaSeedNode.ts b/packages/nodes/src/pdaSeedNodes/VariablePdaSeedNode.ts index e34262c4a..d8d3beba7 100644 --- a/packages/nodes/src/pdaSeedNodes/VariablePdaSeedNode.ts +++ b/packages/nodes/src/pdaSeedNodes/VariablePdaSeedNode.ts @@ -1,4 +1,4 @@ -import type { TypeNode, VariablePdaSeedNode } from '@kinobi-so/node-types'; +import type { TypeNode, VariablePdaSeedNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from '../shared'; diff --git a/packages/nodes/src/shared/docs.ts b/packages/nodes/src/shared/docs.ts index 0b5c7f219..7863ec04a 100644 --- a/packages/nodes/src/shared/docs.ts +++ b/packages/nodes/src/shared/docs.ts @@ -1,4 +1,4 @@ -import type { Docs } from '@kinobi-so/node-types'; +import type { Docs } from '@codama/node-types'; export type DocsInput = string[] | string; diff --git a/packages/nodes/src/shared/stringCases.ts b/packages/nodes/src/shared/stringCases.ts index 6c77f1dd6..078ab4980 100644 --- a/packages/nodes/src/shared/stringCases.ts +++ b/packages/nodes/src/shared/stringCases.ts @@ -4,7 +4,7 @@ import type { PascalCaseString, SnakeCaseString, TitleCaseString, -} from '@kinobi-so/node-types'; +} from '@codama/node-types'; export function capitalize(str: string): string { if (str.length === 0) return str; diff --git a/packages/nodes/src/typeNodes/AmountTypeNode.ts b/packages/nodes/src/typeNodes/AmountTypeNode.ts index bc537a413..5bb0db42a 100644 --- a/packages/nodes/src/typeNodes/AmountTypeNode.ts +++ b/packages/nodes/src/typeNodes/AmountTypeNode.ts @@ -1,4 +1,4 @@ -import type { AmountTypeNode, NestedTypeNode, NumberTypeNode } from '@kinobi-so/node-types'; +import type { AmountTypeNode, NestedTypeNode, NumberTypeNode } from '@codama/node-types'; export function amountTypeNode>( number: TNumber, diff --git a/packages/nodes/src/typeNodes/ArrayTypeNode.ts b/packages/nodes/src/typeNodes/ArrayTypeNode.ts index 9c041a524..7e7a5e749 100644 --- a/packages/nodes/src/typeNodes/ArrayTypeNode.ts +++ b/packages/nodes/src/typeNodes/ArrayTypeNode.ts @@ -1,4 +1,4 @@ -import type { ArrayTypeNode, CountNode, TypeNode } from '@kinobi-so/node-types'; +import type { ArrayTypeNode, CountNode, TypeNode } from '@codama/node-types'; export function arrayTypeNode( item: TItem, diff --git a/packages/nodes/src/typeNodes/BooleanTypeNode.ts b/packages/nodes/src/typeNodes/BooleanTypeNode.ts index 61fbfd50c..efb29d18b 100644 --- a/packages/nodes/src/typeNodes/BooleanTypeNode.ts +++ b/packages/nodes/src/typeNodes/BooleanTypeNode.ts @@ -1,4 +1,4 @@ -import type { BooleanTypeNode, NestedTypeNode, NumberTypeNode } from '@kinobi-so/node-types'; +import type { BooleanTypeNode, NestedTypeNode, NumberTypeNode } from '@codama/node-types'; import { numberTypeNode } from './NumberTypeNode'; diff --git a/packages/nodes/src/typeNodes/BytesTypeNode.ts b/packages/nodes/src/typeNodes/BytesTypeNode.ts index 24b90695d..57605d699 100644 --- a/packages/nodes/src/typeNodes/BytesTypeNode.ts +++ b/packages/nodes/src/typeNodes/BytesTypeNode.ts @@ -1,4 +1,4 @@ -import type { BytesTypeNode } from '@kinobi-so/node-types'; +import type { BytesTypeNode } from '@codama/node-types'; export function bytesTypeNode(): BytesTypeNode { return Object.freeze({ kind: 'bytesTypeNode' }); diff --git a/packages/nodes/src/typeNodes/DateTimeTypeNode.ts b/packages/nodes/src/typeNodes/DateTimeTypeNode.ts index 4f15f986c..ec25e16cf 100644 --- a/packages/nodes/src/typeNodes/DateTimeTypeNode.ts +++ b/packages/nodes/src/typeNodes/DateTimeTypeNode.ts @@ -1,4 +1,4 @@ -import type { DateTimeTypeNode, NestedTypeNode, NumberTypeNode } from '@kinobi-so/node-types'; +import type { DateTimeTypeNode, NestedTypeNode, NumberTypeNode } from '@codama/node-types'; export function dateTimeTypeNode = NestedTypeNode>( number: TNumber, diff --git a/packages/nodes/src/typeNodes/EnumEmptyVariantTypeNode.ts b/packages/nodes/src/typeNodes/EnumEmptyVariantTypeNode.ts index e002167f8..1cfe46a75 100644 --- a/packages/nodes/src/typeNodes/EnumEmptyVariantTypeNode.ts +++ b/packages/nodes/src/typeNodes/EnumEmptyVariantTypeNode.ts @@ -1,4 +1,4 @@ -import type { EnumEmptyVariantTypeNode } from '@kinobi-so/node-types'; +import type { EnumEmptyVariantTypeNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/typeNodes/EnumStructVariantTypeNode.ts b/packages/nodes/src/typeNodes/EnumStructVariantTypeNode.ts index a03cbad4d..1fc9e8545 100644 --- a/packages/nodes/src/typeNodes/EnumStructVariantTypeNode.ts +++ b/packages/nodes/src/typeNodes/EnumStructVariantTypeNode.ts @@ -1,4 +1,4 @@ -import type { EnumStructVariantTypeNode, NestedTypeNode, StructTypeNode } from '@kinobi-so/node-types'; +import type { EnumStructVariantTypeNode, NestedTypeNode, StructTypeNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/typeNodes/EnumTupleVariantTypeNode.ts b/packages/nodes/src/typeNodes/EnumTupleVariantTypeNode.ts index 28d88f668..9038e24cf 100644 --- a/packages/nodes/src/typeNodes/EnumTupleVariantTypeNode.ts +++ b/packages/nodes/src/typeNodes/EnumTupleVariantTypeNode.ts @@ -1,4 +1,4 @@ -import type { EnumTupleVariantTypeNode, NestedTypeNode, TupleTypeNode } from '@kinobi-so/node-types'; +import type { EnumTupleVariantTypeNode, NestedTypeNode, TupleTypeNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/typeNodes/EnumTypeNode.ts b/packages/nodes/src/typeNodes/EnumTypeNode.ts index 17436c52f..d71939222 100644 --- a/packages/nodes/src/typeNodes/EnumTypeNode.ts +++ b/packages/nodes/src/typeNodes/EnumTypeNode.ts @@ -1,4 +1,4 @@ -import type { EnumTypeNode, EnumVariantTypeNode, NestedTypeNode, NumberTypeNode } from '@kinobi-so/node-types'; +import type { EnumTypeNode, EnumVariantTypeNode, NestedTypeNode, NumberTypeNode } from '@codama/node-types'; import { numberTypeNode } from './NumberTypeNode'; diff --git a/packages/nodes/src/typeNodes/FixedSizeTypeNode.ts b/packages/nodes/src/typeNodes/FixedSizeTypeNode.ts index 6dbfe14a1..d692a464c 100644 --- a/packages/nodes/src/typeNodes/FixedSizeTypeNode.ts +++ b/packages/nodes/src/typeNodes/FixedSizeTypeNode.ts @@ -1,4 +1,4 @@ -import type { FixedSizeTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { FixedSizeTypeNode, TypeNode } from '@codama/node-types'; export function fixedSizeTypeNode(type: TType, size: number): FixedSizeTypeNode { return Object.freeze({ diff --git a/packages/nodes/src/typeNodes/HiddenPrefixTypeNode.ts b/packages/nodes/src/typeNodes/HiddenPrefixTypeNode.ts index 4d1e4fbc8..7e282c3d4 100644 --- a/packages/nodes/src/typeNodes/HiddenPrefixTypeNode.ts +++ b/packages/nodes/src/typeNodes/HiddenPrefixTypeNode.ts @@ -1,4 +1,4 @@ -import type { ConstantValueNode, HiddenPrefixTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { ConstantValueNode, HiddenPrefixTypeNode, TypeNode } from '@codama/node-types'; export function hiddenPrefixTypeNode( type: TType, diff --git a/packages/nodes/src/typeNodes/HiddenSuffixTypeNode.ts b/packages/nodes/src/typeNodes/HiddenSuffixTypeNode.ts index 1f69fd809..83e67dd79 100644 --- a/packages/nodes/src/typeNodes/HiddenSuffixTypeNode.ts +++ b/packages/nodes/src/typeNodes/HiddenSuffixTypeNode.ts @@ -1,4 +1,4 @@ -import type { ConstantValueNode, HiddenSuffixTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { ConstantValueNode, HiddenSuffixTypeNode, TypeNode } from '@codama/node-types'; export function hiddenSuffixTypeNode( type: TType, diff --git a/packages/nodes/src/typeNodes/MapTypeNode.ts b/packages/nodes/src/typeNodes/MapTypeNode.ts index b3bdc6ab7..63760a9cd 100644 --- a/packages/nodes/src/typeNodes/MapTypeNode.ts +++ b/packages/nodes/src/typeNodes/MapTypeNode.ts @@ -1,4 +1,4 @@ -import type { CountNode, MapTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { CountNode, MapTypeNode, TypeNode } from '@codama/node-types'; export function mapTypeNode( key: TKey, diff --git a/packages/nodes/src/typeNodes/NestedTypeNode.ts b/packages/nodes/src/typeNodes/NestedTypeNode.ts index 6e5132c46..fc4fc0015 100644 --- a/packages/nodes/src/typeNodes/NestedTypeNode.ts +++ b/packages/nodes/src/typeNodes/NestedTypeNode.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; -import type { NestedTypeNode, Node, TypeNode } from '@kinobi-so/node-types'; +import { KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, KinobiError } from '@codama/errors'; +import type { NestedTypeNode, Node, TypeNode } from '@codama/node-types'; import { isNode } from '../Node'; import { TYPE_NODES } from './TypeNode'; diff --git a/packages/nodes/src/typeNodes/NumberTypeNode.ts b/packages/nodes/src/typeNodes/NumberTypeNode.ts index a227b72e1..473849fc6 100644 --- a/packages/nodes/src/typeNodes/NumberTypeNode.ts +++ b/packages/nodes/src/typeNodes/NumberTypeNode.ts @@ -1,4 +1,4 @@ -import type { NumberFormat, NumberTypeNode } from '@kinobi-so/node-types'; +import type { NumberFormat, NumberTypeNode } from '@codama/node-types'; export function numberTypeNode( format: TFormat, diff --git a/packages/nodes/src/typeNodes/OptionTypeNode.ts b/packages/nodes/src/typeNodes/OptionTypeNode.ts index bdb69fb4a..339e52523 100644 --- a/packages/nodes/src/typeNodes/OptionTypeNode.ts +++ b/packages/nodes/src/typeNodes/OptionTypeNode.ts @@ -1,4 +1,4 @@ -import type { NestedTypeNode, NumberTypeNode, OptionTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { NestedTypeNode, NumberTypeNode, OptionTypeNode, TypeNode } from '@codama/node-types'; import { numberTypeNode } from './NumberTypeNode'; diff --git a/packages/nodes/src/typeNodes/PostOffsetTypeNode.ts b/packages/nodes/src/typeNodes/PostOffsetTypeNode.ts index c232b9eca..67ae341aa 100644 --- a/packages/nodes/src/typeNodes/PostOffsetTypeNode.ts +++ b/packages/nodes/src/typeNodes/PostOffsetTypeNode.ts @@ -1,4 +1,4 @@ -import type { PostOffsetTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { PostOffsetTypeNode, TypeNode } from '@codama/node-types'; export function postOffsetTypeNode( type: TType, diff --git a/packages/nodes/src/typeNodes/PreOffsetTypeNode.ts b/packages/nodes/src/typeNodes/PreOffsetTypeNode.ts index 09a792505..17f116090 100644 --- a/packages/nodes/src/typeNodes/PreOffsetTypeNode.ts +++ b/packages/nodes/src/typeNodes/PreOffsetTypeNode.ts @@ -1,4 +1,4 @@ -import type { PreOffsetTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { PreOffsetTypeNode, TypeNode } from '@codama/node-types'; export function preOffsetTypeNode( type: TType, diff --git a/packages/nodes/src/typeNodes/PublicKeyTypeNode.ts b/packages/nodes/src/typeNodes/PublicKeyTypeNode.ts index 229583dd7..ec2568ffb 100644 --- a/packages/nodes/src/typeNodes/PublicKeyTypeNode.ts +++ b/packages/nodes/src/typeNodes/PublicKeyTypeNode.ts @@ -1,4 +1,4 @@ -import type { PublicKeyTypeNode } from '@kinobi-so/node-types'; +import type { PublicKeyTypeNode } from '@codama/node-types'; export function publicKeyTypeNode(): PublicKeyTypeNode { return Object.freeze({ kind: 'publicKeyTypeNode' }); diff --git a/packages/nodes/src/typeNodes/RemainderOptionTypeNode.ts b/packages/nodes/src/typeNodes/RemainderOptionTypeNode.ts index 8b678b2a6..357eebc3f 100644 --- a/packages/nodes/src/typeNodes/RemainderOptionTypeNode.ts +++ b/packages/nodes/src/typeNodes/RemainderOptionTypeNode.ts @@ -1,4 +1,4 @@ -import type { RemainderOptionTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { RemainderOptionTypeNode, TypeNode } from '@codama/node-types'; export function remainderOptionTypeNode(item: TItem): RemainderOptionTypeNode { return Object.freeze({ diff --git a/packages/nodes/src/typeNodes/SentinelTypeNode.ts b/packages/nodes/src/typeNodes/SentinelTypeNode.ts index b0a15cd35..d3ea4a85d 100644 --- a/packages/nodes/src/typeNodes/SentinelTypeNode.ts +++ b/packages/nodes/src/typeNodes/SentinelTypeNode.ts @@ -1,4 +1,4 @@ -import type { ConstantValueNode, SentinelTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { ConstantValueNode, SentinelTypeNode, TypeNode } from '@codama/node-types'; export function sentinelTypeNode( type: TType, diff --git a/packages/nodes/src/typeNodes/SetTypeNode.ts b/packages/nodes/src/typeNodes/SetTypeNode.ts index d4f6cfa81..6baddbd75 100644 --- a/packages/nodes/src/typeNodes/SetTypeNode.ts +++ b/packages/nodes/src/typeNodes/SetTypeNode.ts @@ -1,4 +1,4 @@ -import type { CountNode, SetTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { CountNode, SetTypeNode, TypeNode } from '@codama/node-types'; export function setTypeNode( item: TItem, diff --git a/packages/nodes/src/typeNodes/SizePrefixTypeNode.ts b/packages/nodes/src/typeNodes/SizePrefixTypeNode.ts index 400c6b92f..6c44adcec 100644 --- a/packages/nodes/src/typeNodes/SizePrefixTypeNode.ts +++ b/packages/nodes/src/typeNodes/SizePrefixTypeNode.ts @@ -1,4 +1,4 @@ -import type { NestedTypeNode, NumberTypeNode, SizePrefixTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { NestedTypeNode, NumberTypeNode, SizePrefixTypeNode, TypeNode } from '@codama/node-types'; export function sizePrefixTypeNode< TType extends TypeNode = TypeNode, diff --git a/packages/nodes/src/typeNodes/SolAmountTypeNode.ts b/packages/nodes/src/typeNodes/SolAmountTypeNode.ts index 0d69f21e9..6275cdeee 100644 --- a/packages/nodes/src/typeNodes/SolAmountTypeNode.ts +++ b/packages/nodes/src/typeNodes/SolAmountTypeNode.ts @@ -1,4 +1,4 @@ -import type { NestedTypeNode, NumberTypeNode, SolAmountTypeNode } from '@kinobi-so/node-types'; +import type { NestedTypeNode, NumberTypeNode, SolAmountTypeNode } from '@codama/node-types'; export function solAmountTypeNode>( number: TNumber, diff --git a/packages/nodes/src/typeNodes/StringTypeNode.ts b/packages/nodes/src/typeNodes/StringTypeNode.ts index 31168c063..669ced022 100644 --- a/packages/nodes/src/typeNodes/StringTypeNode.ts +++ b/packages/nodes/src/typeNodes/StringTypeNode.ts @@ -1,4 +1,4 @@ -import type { BytesEncoding, StringTypeNode } from '@kinobi-so/node-types'; +import type { BytesEncoding, StringTypeNode } from '@codama/node-types'; export function stringTypeNode(encoding: TEncoding): StringTypeNode { return Object.freeze({ diff --git a/packages/nodes/src/typeNodes/StructFieldTypeNode.ts b/packages/nodes/src/typeNodes/StructFieldTypeNode.ts index bccd5a7f2..8a7a5e386 100644 --- a/packages/nodes/src/typeNodes/StructFieldTypeNode.ts +++ b/packages/nodes/src/typeNodes/StructFieldTypeNode.ts @@ -1,4 +1,4 @@ -import type { StructFieldTypeNode, TypeNode, ValueNode } from '@kinobi-so/node-types'; +import type { StructFieldTypeNode, TypeNode, ValueNode } from '@codama/node-types'; import { camelCase, DocsInput, parseDocs } from '../shared'; diff --git a/packages/nodes/src/typeNodes/StructTypeNode.ts b/packages/nodes/src/typeNodes/StructTypeNode.ts index 6d86652fa..594bd651f 100644 --- a/packages/nodes/src/typeNodes/StructTypeNode.ts +++ b/packages/nodes/src/typeNodes/StructTypeNode.ts @@ -1,4 +1,4 @@ -import type { StructFieldTypeNode, StructTypeNode } from '@kinobi-so/node-types'; +import type { StructFieldTypeNode, StructTypeNode } from '@codama/node-types'; export function structTypeNode( fields: TFields, diff --git a/packages/nodes/src/typeNodes/TupleTypeNode.ts b/packages/nodes/src/typeNodes/TupleTypeNode.ts index c2eb4e092..a0a1b77dc 100644 --- a/packages/nodes/src/typeNodes/TupleTypeNode.ts +++ b/packages/nodes/src/typeNodes/TupleTypeNode.ts @@ -1,4 +1,4 @@ -import type { TupleTypeNode, TypeNode } from '@kinobi-so/node-types'; +import type { TupleTypeNode, TypeNode } from '@codama/node-types'; export function tupleTypeNode(items: TItems): TupleTypeNode { return Object.freeze({ diff --git a/packages/nodes/src/typeNodes/ZeroableOptionTypeNode.ts b/packages/nodes/src/typeNodes/ZeroableOptionTypeNode.ts index 0da5358a5..b1273b03e 100644 --- a/packages/nodes/src/typeNodes/ZeroableOptionTypeNode.ts +++ b/packages/nodes/src/typeNodes/ZeroableOptionTypeNode.ts @@ -1,4 +1,4 @@ -import type { ConstantValueNode, TypeNode, ZeroableOptionTypeNode } from '@kinobi-so/node-types'; +import type { ConstantValueNode, TypeNode, ZeroableOptionTypeNode } from '@codama/node-types'; export function zeroableOptionTypeNode( item: TItem, diff --git a/packages/nodes/src/valueNodes/ArrayValueNode.ts b/packages/nodes/src/valueNodes/ArrayValueNode.ts index deb69d110..2dbe7c834 100644 --- a/packages/nodes/src/valueNodes/ArrayValueNode.ts +++ b/packages/nodes/src/valueNodes/ArrayValueNode.ts @@ -1,4 +1,4 @@ -import type { ArrayValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { ArrayValueNode, ValueNode } from '@codama/node-types'; export function arrayValueNode(items: TItems): ArrayValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/BooleanValueNode.ts b/packages/nodes/src/valueNodes/BooleanValueNode.ts index 52b3a56a3..1c0c5a7a1 100644 --- a/packages/nodes/src/valueNodes/BooleanValueNode.ts +++ b/packages/nodes/src/valueNodes/BooleanValueNode.ts @@ -1,4 +1,4 @@ -import { BooleanValueNode } from '@kinobi-so/node-types'; +import { BooleanValueNode } from '@codama/node-types'; export function booleanValueNode(boolean: boolean): BooleanValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/BytesValueNode.ts b/packages/nodes/src/valueNodes/BytesValueNode.ts index 13e5f03cb..0fb64d87a 100644 --- a/packages/nodes/src/valueNodes/BytesValueNode.ts +++ b/packages/nodes/src/valueNodes/BytesValueNode.ts @@ -1,4 +1,4 @@ -import type { BytesEncoding, BytesValueNode } from '@kinobi-so/node-types'; +import type { BytesEncoding, BytesValueNode } from '@codama/node-types'; export function bytesValueNode(encoding: BytesEncoding, data: string): BytesValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/ConstantValueNode.ts b/packages/nodes/src/valueNodes/ConstantValueNode.ts index 27b3be390..d95fb02ab 100644 --- a/packages/nodes/src/valueNodes/ConstantValueNode.ts +++ b/packages/nodes/src/valueNodes/ConstantValueNode.ts @@ -1,4 +1,4 @@ -import type { BytesEncoding, ConstantValueNode, TypeNode, ValueNode } from '@kinobi-so/node-types'; +import type { BytesEncoding, ConstantValueNode, TypeNode, ValueNode } from '@codama/node-types'; import { bytesTypeNode, stringTypeNode } from '../typeNodes'; import { bytesValueNode } from './BytesValueNode'; diff --git a/packages/nodes/src/valueNodes/EnumValueNode.ts b/packages/nodes/src/valueNodes/EnumValueNode.ts index 6899f03b2..fbaa0160b 100644 --- a/packages/nodes/src/valueNodes/EnumValueNode.ts +++ b/packages/nodes/src/valueNodes/EnumValueNode.ts @@ -1,4 +1,4 @@ -import type { DefinedTypeLinkNode, EnumValueNode, StructValueNode, TupleValueNode } from '@kinobi-so/node-types'; +import type { DefinedTypeLinkNode, EnumValueNode, StructValueNode, TupleValueNode } from '@codama/node-types'; import { definedTypeLinkNode } from '../linkNodes'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/valueNodes/MapEntryValueNode.ts b/packages/nodes/src/valueNodes/MapEntryValueNode.ts index 4b468f0d6..77c5da07b 100644 --- a/packages/nodes/src/valueNodes/MapEntryValueNode.ts +++ b/packages/nodes/src/valueNodes/MapEntryValueNode.ts @@ -1,4 +1,4 @@ -import type { MapEntryValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { MapEntryValueNode, ValueNode } from '@codama/node-types'; export function mapEntryValueNode( key: TKey, diff --git a/packages/nodes/src/valueNodes/MapValueNode.ts b/packages/nodes/src/valueNodes/MapValueNode.ts index 097b5498f..ad8b69327 100644 --- a/packages/nodes/src/valueNodes/MapValueNode.ts +++ b/packages/nodes/src/valueNodes/MapValueNode.ts @@ -1,4 +1,4 @@ -import type { MapEntryValueNode, MapValueNode } from '@kinobi-so/node-types'; +import type { MapEntryValueNode, MapValueNode } from '@codama/node-types'; export function mapValueNode(entries: TEntries): MapValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/NoneValueNode.ts b/packages/nodes/src/valueNodes/NoneValueNode.ts index ce63bbba7..4267d8242 100644 --- a/packages/nodes/src/valueNodes/NoneValueNode.ts +++ b/packages/nodes/src/valueNodes/NoneValueNode.ts @@ -1,4 +1,4 @@ -import type { NoneValueNode } from '@kinobi-so/node-types'; +import type { NoneValueNode } from '@codama/node-types'; export function noneValueNode(): NoneValueNode { return Object.freeze({ kind: 'noneValueNode' }); diff --git a/packages/nodes/src/valueNodes/NumberValueNode.ts b/packages/nodes/src/valueNodes/NumberValueNode.ts index 77cac56e1..094546ec3 100644 --- a/packages/nodes/src/valueNodes/NumberValueNode.ts +++ b/packages/nodes/src/valueNodes/NumberValueNode.ts @@ -1,4 +1,4 @@ -import type { NumberValueNode } from '@kinobi-so/node-types'; +import type { NumberValueNode } from '@codama/node-types'; export function numberValueNode(number: number): NumberValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/PublicKeyValueNode.ts b/packages/nodes/src/valueNodes/PublicKeyValueNode.ts index a65a0d34c..87668ee33 100644 --- a/packages/nodes/src/valueNodes/PublicKeyValueNode.ts +++ b/packages/nodes/src/valueNodes/PublicKeyValueNode.ts @@ -1,4 +1,4 @@ -import type { PublicKeyValueNode } from '@kinobi-so/node-types'; +import type { PublicKeyValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/valueNodes/SetValueNode.ts b/packages/nodes/src/valueNodes/SetValueNode.ts index adf7b8105..d905b5779 100644 --- a/packages/nodes/src/valueNodes/SetValueNode.ts +++ b/packages/nodes/src/valueNodes/SetValueNode.ts @@ -1,4 +1,4 @@ -import type { SetValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { SetValueNode, ValueNode } from '@codama/node-types'; export function setValueNode(items: TItems): SetValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/SomeValueNode.ts b/packages/nodes/src/valueNodes/SomeValueNode.ts index 5c62ce94a..d61519c21 100644 --- a/packages/nodes/src/valueNodes/SomeValueNode.ts +++ b/packages/nodes/src/valueNodes/SomeValueNode.ts @@ -1,4 +1,4 @@ -import type { SomeValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { SomeValueNode, ValueNode } from '@codama/node-types'; export function someValueNode(value: TValue): SomeValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/StringValueNode.ts b/packages/nodes/src/valueNodes/StringValueNode.ts index ad0f99169..81ccdfcd4 100644 --- a/packages/nodes/src/valueNodes/StringValueNode.ts +++ b/packages/nodes/src/valueNodes/StringValueNode.ts @@ -1,4 +1,4 @@ -import type { StringValueNode } from '@kinobi-so/node-types'; +import type { StringValueNode } from '@codama/node-types'; export function stringValueNode(string: string): StringValueNode { return Object.freeze({ diff --git a/packages/nodes/src/valueNodes/StructFieldValueNode.ts b/packages/nodes/src/valueNodes/StructFieldValueNode.ts index 22fcfda1b..8f3ff37d3 100644 --- a/packages/nodes/src/valueNodes/StructFieldValueNode.ts +++ b/packages/nodes/src/valueNodes/StructFieldValueNode.ts @@ -1,4 +1,4 @@ -import type { StructFieldValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { StructFieldValueNode, ValueNode } from '@codama/node-types'; import { camelCase } from '../shared'; diff --git a/packages/nodes/src/valueNodes/StructValueNode.ts b/packages/nodes/src/valueNodes/StructValueNode.ts index b155aba36..c39f71c5b 100644 --- a/packages/nodes/src/valueNodes/StructValueNode.ts +++ b/packages/nodes/src/valueNodes/StructValueNode.ts @@ -1,4 +1,4 @@ -import type { StructFieldValueNode, StructValueNode } from '@kinobi-so/node-types'; +import type { StructFieldValueNode, StructValueNode } from '@codama/node-types'; export function structValueNode( fields: TFields, diff --git a/packages/nodes/src/valueNodes/TupleValueNode.ts b/packages/nodes/src/valueNodes/TupleValueNode.ts index c835b12a8..6d1c3a957 100644 --- a/packages/nodes/src/valueNodes/TupleValueNode.ts +++ b/packages/nodes/src/valueNodes/TupleValueNode.ts @@ -1,4 +1,4 @@ -import type { TupleValueNode, ValueNode } from '@kinobi-so/node-types'; +import type { TupleValueNode, ValueNode } from '@codama/node-types'; export function tupleValueNode(items: TItems): TupleValueNode { return Object.freeze({ diff --git a/packages/nodes/test/Node.typetest.ts b/packages/nodes/test/Node.typetest.ts index 6563ee321..dc4e0a378 100644 --- a/packages/nodes/test/Node.typetest.ts +++ b/packages/nodes/test/Node.typetest.ts @@ -1,4 +1,4 @@ -import type { Node, PublicKeyTypeNode, TupleTypeNode } from '@kinobi-so/node-types'; +import type { Node, PublicKeyTypeNode, TupleTypeNode } from '@codama/node-types'; import { assertIsNode, diff --git a/packages/nodes/test/RootNode.test.ts b/packages/nodes/test/RootNode.test.ts index 6b8cc120f..5cab543c5 100644 --- a/packages/nodes/test/RootNode.test.ts +++ b/packages/nodes/test/RootNode.test.ts @@ -1,4 +1,4 @@ -import type { KinobiVersion } from '@kinobi-so/node-types'; +import type { KinobiVersion } from '@codama/node-types'; import { expect, expectTypeOf, test } from 'vitest'; import { programNode, rootNode } from '../src'; diff --git a/packages/nodes/test/contextualValueNodes/ContextualValueNode.typetest.ts b/packages/nodes/test/contextualValueNodes/ContextualValueNode.typetest.ts index ae296fd2b..604853740 100644 --- a/packages/nodes/test/contextualValueNodes/ContextualValueNode.typetest.ts +++ b/packages/nodes/test/contextualValueNodes/ContextualValueNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredContextualValueNode } from '@kinobi-so/node-types'; +import type { RegisteredContextualValueNode } from '@codama/node-types'; import { REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/countNodes/CountNode.typetest.ts b/packages/nodes/test/countNodes/CountNode.typetest.ts index 79b286411..20c382539 100644 --- a/packages/nodes/test/countNodes/CountNode.typetest.ts +++ b/packages/nodes/test/countNodes/CountNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredCountNode } from '@kinobi-so/node-types'; +import type { RegisteredCountNode } from '@codama/node-types'; import { REGISTERED_COUNT_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/discriminatorNodes/DiscriminatorNode.typetest.ts b/packages/nodes/test/discriminatorNodes/DiscriminatorNode.typetest.ts index c5658100b..c85fc3750 100644 --- a/packages/nodes/test/discriminatorNodes/DiscriminatorNode.typetest.ts +++ b/packages/nodes/test/discriminatorNodes/DiscriminatorNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredDiscriminatorNode } from '@kinobi-so/node-types'; +import type { RegisteredDiscriminatorNode } from '@codama/node-types'; import { REGISTERED_DISCRIMINATOR_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/linkNodes/LinkNode.typetest.ts b/packages/nodes/test/linkNodes/LinkNode.typetest.ts index f1b9daf2a..cdf09cc43 100644 --- a/packages/nodes/test/linkNodes/LinkNode.typetest.ts +++ b/packages/nodes/test/linkNodes/LinkNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredLinkNode } from '@kinobi-so/node-types'; +import type { RegisteredLinkNode } from '@codama/node-types'; import { REGISTERED_LINK_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/pdaSeedNodes/PdaSeedNode.typetest.ts b/packages/nodes/test/pdaSeedNodes/PdaSeedNode.typetest.ts index 336445f06..06054c20b 100644 --- a/packages/nodes/test/pdaSeedNodes/PdaSeedNode.typetest.ts +++ b/packages/nodes/test/pdaSeedNodes/PdaSeedNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredPdaSeedNode } from '@kinobi-so/node-types'; +import type { RegisteredPdaSeedNode } from '@codama/node-types'; import { REGISTERED_PDA_SEED_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/typeNodes/TypeNode.typetest.ts b/packages/nodes/test/typeNodes/TypeNode.typetest.ts index 9555ca251..1e4fc4bf1 100644 --- a/packages/nodes/test/typeNodes/TypeNode.typetest.ts +++ b/packages/nodes/test/typeNodes/TypeNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredTypeNode } from '@kinobi-so/node-types'; +import type { RegisteredTypeNode } from '@codama/node-types'; import { REGISTERED_TYPE_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/test/valueNodes/ValueNode.typetest.ts b/packages/nodes/test/valueNodes/ValueNode.typetest.ts index 67332a4b2..88c53cd55 100644 --- a/packages/nodes/test/valueNodes/ValueNode.typetest.ts +++ b/packages/nodes/test/valueNodes/ValueNode.typetest.ts @@ -1,4 +1,4 @@ -import type { RegisteredValueNode } from '@kinobi-so/node-types'; +import type { RegisteredValueNode } from '@codama/node-types'; import { REGISTERED_VALUE_NODE_KINDS } from '../../src'; diff --git a/packages/nodes/tsconfig.json b/packages/nodes/tsconfig.json index 690c47627..d2d6f2e99 100644 --- a/packages/nodes/tsconfig.json +++ b/packages/nodes/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/nodes", + "display": "@codama/nodes", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/renderers-core/README.md b/packages/renderers-core/README.md index 1f45830da..ec7c98612 100644 --- a/packages/renderers-core/README.md +++ b/packages/renderers-core/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/renderers-core.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/renderers-core.svg?style=flat&label=%40kinobi-so%2Frenderers-core -[npm-url]: https://www.npmjs.com/package/@kinobi-so/renderers-core +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-core.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-core.svg?style=flat&label=%40kinobi-so%2Frenderers-core +[npm-url]: https://www.npmjs.com/package/@codama/renderers-core -This package provides the core utility for generating clients from Kinobi IDLs. Its aim is mainly to provide helpers for other renderer packages such as [`@kinobi-so/renderers-js`](../renderers-js) and [`@kinobi-so/renderers-rust`](../renderers-rust). +This package provides the core utility for generating clients from Kinobi IDLs. Its aim is mainly to provide helpers for other renderer packages such as [`@codama/renderers-js`](../renderers-js) and [`@codama/renderers-rust`](../renderers-rust). ## Installation ```sh -pnpm install @kinobi-so/renderers-core +pnpm install @codama/renderers-core ``` > [!NOTE] @@ -132,10 +132,10 @@ renderMap.write('src/generated'); ### Using visitors -When building renderers, you will most likely create a visitor that traverses the Kinobi IDL and returns a `RenderMap`. That way, you can test the generated content without having to write it to the filesystem. For instance, the [`@kinobi-so/renderers-js`](../renderers-js) package exports a `getRenderMapVisitor` function that does just that. +When building renderers, you will most likely create a visitor that traverses the Kinobi IDL and returns a `RenderMap`. That way, you can test the generated content without having to write it to the filesystem. For instance, the [`@codama/renderers-js`](../renderers-js) package exports a `getRenderMapVisitor` function that does just that. ```ts -import { getRenderMapVisitor } from '@kinobi-so/renderers-js'; +import { getRenderMapVisitor } from '@codama/renderers-js'; const renderMap = kinobi.accept(getRenderMapVisitor()); ``` @@ -143,17 +143,17 @@ const renderMap = kinobi.accept(getRenderMapVisitor()); If you have access to a visitor that returns a `RenderMap` — also described as `Visitor` — then, you can wrap it inside the `writeRenderMapVisitor` to directly write the content to the filesystem at the given base directory. ```ts -import { getRenderMapVisitor } from '@kinobi-so/renderers-js'; +import { getRenderMapVisitor } from '@codama/renderers-js'; kinobi.accept(writeRenderMapVisitor(getRenderMapVisitor(), 'src/generated')); ``` Note however that, if you are writing your own renderer, you should probably offer a higher-level visitor that includes this logic and also does some additional work such as deleting the base directory before writing the new content if it already exists. -For instance, the recommended way of using the `@kinobi-so/renderers-js` package is to use the following `renderVisitor` function. +For instance, the recommended way of using the `@codama/renderers-js` package is to use the following `renderVisitor` function. ```ts -import { renderVisitor } from '@kinobi-so/renderers-js'; +import { renderVisitor } from '@codama/renderers-js'; kinobi.accept(renderVisitor('src/generated')); ``` @@ -161,8 +161,8 @@ kinobi.accept(renderVisitor('src/generated')); Here's a simple example of how to set up the basis of a renderer from an existing `getRenderMapVisitor`. ```ts -import { deleteDirectory } from '@kinobi-so/renderers-core'; -import { rootNodeVisitor, visit } from '@kinobi-so/visitors-core'; +import { deleteDirectory } from '@codama/renderers-core'; +import { rootNodeVisitor, visit } from '@codama/visitors-core'; type RenderOptions = { deleteFolderBeforeRendering?: boolean; diff --git a/packages/renderers-core/package.json b/packages/renderers-core/package.json index 4426cf004..6755c68f6 100644 --- a/packages/renderers-core/package.json +++ b/packages/renderers-core/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-core", + "name": "@codama/renderers-core", "version": "0.22.0", "description": "Core types and helpers for Kinobi renderers to use", "exports": { @@ -36,30 +36,30 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*" + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/visitors-core": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-core/src/RenderMap.ts b/packages/renderers-core/src/RenderMap.ts index 19e31b94d..73d6a3995 100644 --- a/packages/renderers-core/src/RenderMap.ts +++ b/packages/renderers-core/src/RenderMap.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiError } from '@codama/errors'; import { createFile } from './fs'; diff --git a/packages/renderers-core/src/fs.ts b/packages/renderers-core/src/fs.ts index 8cbfb9e89..97f40acfb 100644 --- a/packages/renderers-core/src/fs.ts +++ b/packages/renderers-core/src/fs.ts @@ -1,6 +1,6 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; export function readJson(value: string): T { if (!__NODEJS__) { diff --git a/packages/renderers-core/src/writeRenderMapVisitor.ts b/packages/renderers-core/src/writeRenderMapVisitor.ts index bfdbcb58b..f9c57343a 100644 --- a/packages/renderers-core/src/writeRenderMapVisitor.ts +++ b/packages/renderers-core/src/writeRenderMapVisitor.ts @@ -1,5 +1,5 @@ -import { NodeKind } from '@kinobi-so/nodes'; -import { mapVisitor, Visitor } from '@kinobi-so/visitors-core'; +import { NodeKind } from '@codama/nodes'; +import { mapVisitor, Visitor } from '@codama/visitors-core'; import { RenderMap } from './RenderMap'; diff --git a/packages/renderers-core/test/fs.test.ts b/packages/renderers-core/test/fs.test.ts index 0d7149078..667b33aad 100644 --- a/packages/renderers-core/test/fs.test.ts +++ b/packages/renderers-core/test/fs.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; import { expect, test } from 'vitest'; import { createDirectory, createFile, deleteDirectory, readJson } from '../src'; diff --git a/packages/renderers-core/tsconfig.json b/packages/renderers-core/tsconfig.json index 660b48119..8e0870480 100644 --- a/packages/renderers-core/tsconfig.json +++ b/packages/renderers-core/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/renderers-core", + "display": "@codama/renderers-core", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/renderers-js-umi/README.md b/packages/renderers-js-umi/README.md index 0335c481f..4c2b96865 100644 --- a/packages/renderers-js-umi/README.md +++ b/packages/renderers-js-umi/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/renderers-js-umi.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/renderers-js-umi.svg?style=flat&label=%40kinobi-so%2Frenderers-js-umi -[npm-url]: https://www.npmjs.com/package/@kinobi-so/renderers-js-umi +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-js-umi.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js-umi.svg?style=flat&label=%40kinobi-so%2Frenderers-js-umi +[npm-url]: https://www.npmjs.com/package/@codama/renderers-js-umi This package generates JavaScript clients from your Kinobi IDLs. The generated clients are compatible with Metaplex's [Umi framework](https://github.com/metaplex-foundation/umi). ## Installation ```sh -pnpm install @kinobi-so/renderers-js-umi +pnpm install @codama/renderers-js-umi ``` > [!NOTE] @@ -26,7 +26,7 @@ Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to g ```ts // node ./kinobi.mjs -import { renderVisitor } from '@kinobi-so/renderers-js-umi'; +import { renderVisitor } from '@codama/renderers-js-umi'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'js', 'src', 'generated'); const options = {}; // See below. diff --git a/packages/renderers-js-umi/e2e/generate.cjs b/packages/renderers-js-umi/e2e/generate.cjs index 3d1f2f437..319cdf23a 100755 --- a/packages/renderers-js-umi/e2e/generate.cjs +++ b/packages/renderers-js-umi/e2e/generate.cjs @@ -3,9 +3,9 @@ const path = require('node:path'); const process = require('node:process'); -const { rootNode } = require('@kinobi-so/nodes'); -const { readJson } = require('@kinobi-so/renderers-core'); -const { visit } = require('@kinobi-so/visitors-core'); +const { rootNode } = require('@codama/nodes'); +const { readJson } = require('@codama/renderers-core'); +const { visit } = require('@codama/visitors-core'); const { renderVisitor } = require('../dist/index.node.cjs'); diff --git a/packages/renderers-js-umi/e2e/memo/package.json b/packages/renderers-js-umi/e2e/memo/package.json index 7f759a764..a60b651cd 100644 --- a/packages/renderers-js-umi/e2e/memo/package.json +++ b/packages/renderers-js-umi/e2e/memo/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-umi-e2e-memo", + "name": "@codama/renderers-js-umi-e2e-memo", "private": true, "version": "0.0.0", "type": "commonjs", diff --git a/packages/renderers-js-umi/e2e/system/package.json b/packages/renderers-js-umi/e2e/system/package.json index 8f83d11d2..7c05eea9f 100644 --- a/packages/renderers-js-umi/e2e/system/package.json +++ b/packages/renderers-js-umi/e2e/system/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-umi-e2e-system", + "name": "@codama/renderers-js-umi-e2e-system", "private": true, "version": "0.0.0", "type": "commonjs", diff --git a/packages/renderers-js-umi/package.json b/packages/renderers-js-umi/package.json index ec6f3f667..6a1da8781 100644 --- a/packages/renderers-js-umi/package.json +++ b/packages/renderers-js-umi/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-umi", + "name": "@codama/renderers-js-umi", "version": "0.22.0", "description": "JavaScript renderer compatible with the Umi framework", "exports": { @@ -30,24 +30,24 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs node", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs node", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:node && pnpm test:e2e && pnpm test:exports", "test:e2e": "./e2e/test.sh", "test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/renderers-core": "workspace:*", - "@kinobi-so/validators": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*", + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/renderers-core": "workspace:*", + "@codama/validators": "workspace:*", + "@codama/visitors-core": "workspace:*", "@solana/codecs-strings": "rc", "nunjucks": "^3.2.4", "prettier": "^3.3.3" @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js-umi/public/templates/layout.njk b/packages/renderers-js-umi/public/templates/layout.njk index 30b6a8387..f92c3eb50 100644 --- a/packages/renderers-js-umi/public/templates/layout.njk +++ b/packages/renderers-js-umi/public/templates/layout.njk @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/kinobi */ {% block main %}{% endblock %} diff --git a/packages/renderers-js-umi/src/getRenderMapVisitor.ts b/packages/renderers-js-umi/src/getRenderMapVisitor.ts index 383660250..99ac60af0 100644 --- a/packages/renderers-js-umi/src/getRenderMapVisitor.ts +++ b/packages/renderers-js-umi/src/getRenderMapVisitor.ts @@ -1,4 +1,4 @@ -import { logWarn } from '@kinobi-so/errors'; +import { logWarn } from '@codama/errors'; import { camelCase, CamelCaseString, @@ -18,8 +18,8 @@ import { SizeDiscriminatorNode, structTypeNodeFromInstructionArgumentNodes, VALUE_NODES, -} from '@kinobi-so/nodes'; -import { RenderMap } from '@kinobi-so/renderers-core'; +} from '@codama/nodes'; +import { RenderMap } from '@codama/renderers-core'; import { extendVisitor, getByteSizeVisitor, @@ -32,7 +32,7 @@ import { staticVisitor, visit, Visitor, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { ContextMap } from './ContextMap'; import { getTypeManifestVisitor as baseGetTypeManifestVisitor } from './getTypeManifestVisitor'; diff --git a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts index 738e3b8ed..845636a06 100644 --- a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts +++ b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; import { ArrayTypeNode, camelCase, @@ -16,8 +16,8 @@ import { structTypeNode, structTypeNodeFromInstructionArgumentNodes, TypeNode, -} from '@kinobi-so/nodes'; -import { extendVisitor, LinkableDictionary, pipe, staticVisitor, visit, Visitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { extendVisitor, LinkableDictionary, pipe, staticVisitor, visit, Visitor } from '@codama/visitors-core'; import { ImportMap } from './ImportMap'; import { getBytesFromBytesValueNode, GetImportFromFunction, jsDocblock, ParsedCustomDataOptions } from './utils'; diff --git a/packages/renderers-js-umi/src/getValidatorBagVisitor.ts b/packages/renderers-js-umi/src/getValidatorBagVisitor.ts index e8301a616..1c41f15b4 100644 --- a/packages/renderers-js-umi/src/getValidatorBagVisitor.ts +++ b/packages/renderers-js-umi/src/getValidatorBagVisitor.ts @@ -1,13 +1,6 @@ -import { camelCase, isDataEnum, isNode, Node, pascalCase, resolveNestedTypeNode, titleCase } from '@kinobi-so/nodes'; -import { ValidationItem, validationItem } from '@kinobi-so/validators'; -import { - extendVisitor, - mergeVisitor, - NodeStack, - pipe, - recordNodeStackVisitor, - Visitor, -} from '@kinobi-so/visitors-core'; +import { camelCase, isDataEnum, isNode, Node, pascalCase, resolveNestedTypeNode, titleCase } from '@codama/nodes'; +import { ValidationItem, validationItem } from '@codama/validators'; +import { extendVisitor, mergeVisitor, NodeStack, pipe, recordNodeStackVisitor, Visitor } from '@codama/visitors-core'; export function getValidationItemsVisitor(): Visitor { const exportMap: Map = new Map(); diff --git a/packages/renderers-js-umi/src/renderInstructionDefaults.ts b/packages/renderers-js-umi/src/renderInstructionDefaults.ts index f8dd4fe40..a72517462 100644 --- a/packages/renderers-js-umi/src/renderInstructionDefaults.ts +++ b/packages/renderers-js-umi/src/renderInstructionDefaults.ts @@ -1,6 +1,6 @@ /* eslint-disable no-case-declarations */ -import { camelCase, InstructionInputValueNode, isNode, pascalCase } from '@kinobi-so/nodes'; -import { ResolvedInstructionInput, visit } from '@kinobi-so/visitors-core'; +import { camelCase, InstructionInputValueNode, isNode, pascalCase } from '@codama/nodes'; +import { ResolvedInstructionInput, visit } from '@codama/visitors-core'; import { ContextMap } from './ContextMap'; import { getTypeManifestVisitor } from './getTypeManifestVisitor'; diff --git a/packages/renderers-js-umi/src/renderVisitor.ts b/packages/renderers-js-umi/src/renderVisitor.ts index 1536f7eb0..eb487a140 100644 --- a/packages/renderers-js-umi/src/renderVisitor.ts +++ b/packages/renderers-js-umi/src/renderVisitor.ts @@ -1,6 +1,6 @@ -import { deleteDirectory } from '@kinobi-so/renderers-core'; -import { LogLevel, throwValidatorItemsVisitor } from '@kinobi-so/validators'; -import { rootNodeVisitor, visit } from '@kinobi-so/visitors-core'; +import { deleteDirectory } from '@codama/renderers-core'; +import { LogLevel, throwValidatorItemsVisitor } from '@codama/validators'; +import { rootNodeVisitor, visit } from '@codama/visitors-core'; import * as estreePlugin from 'prettier/plugins/estree'; import * as typeScriptPlugin from 'prettier/plugins/typescript'; import { format } from 'prettier/standalone'; diff --git a/packages/renderers-js-umi/src/utils/codecs.ts b/packages/renderers-js-umi/src/utils/codecs.ts index b2b63b697..3a524c015 100644 --- a/packages/renderers-js-umi/src/utils/codecs.ts +++ b/packages/renderers-js-umi/src/utils/codecs.ts @@ -1,4 +1,4 @@ -import { BytesValueNode } from '@kinobi-so/nodes'; +import { BytesValueNode } from '@codama/nodes'; import { getBase16Encoder, getBase58Encoder, getBase64Encoder, getUtf8Encoder } from '@solana/codecs-strings'; export function getBytesFromBytesValueNode(node: BytesValueNode): Uint8Array { diff --git a/packages/renderers-js-umi/src/utils/customData.ts b/packages/renderers-js-umi/src/utils/customData.ts index d1419868d..b3a0edfc0 100644 --- a/packages/renderers-js-umi/src/utils/customData.ts +++ b/packages/renderers-js-umi/src/utils/customData.ts @@ -9,7 +9,7 @@ import { InstructionNode, isNode, structTypeNodeFromInstructionArgumentNodes, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; export type CustomDataOptions = | string diff --git a/packages/renderers-js-umi/src/utils/gpaField.ts b/packages/renderers-js-umi/src/utils/gpaField.ts index 5b7c4c7da..5ecd2851a 100644 --- a/packages/renderers-js-umi/src/utils/gpaField.ts +++ b/packages/renderers-js-umi/src/utils/gpaField.ts @@ -1,5 +1,5 @@ -import { type AccountNode, type RegisteredTypeNode, resolveNestedTypeNode, type TypeNode } from '@kinobi-so/nodes'; -import { visit, Visitor } from '@kinobi-so/visitors-core'; +import { type AccountNode, type RegisteredTypeNode, resolveNestedTypeNode, type TypeNode } from '@codama/nodes'; +import { visit, Visitor } from '@codama/visitors-core'; export type GpaField = { name: string; diff --git a/packages/renderers-js-umi/src/utils/linkOverrides.ts b/packages/renderers-js-umi/src/utils/linkOverrides.ts index 9d4ec9bca..5f875063b 100644 --- a/packages/renderers-js-umi/src/utils/linkOverrides.ts +++ b/packages/renderers-js-umi/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -6,7 +6,7 @@ import { PdaLinkNode, ProgramLinkNode, ResolverValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { ParsedCustomDataOptions } from './customData'; diff --git a/packages/renderers-js-umi/src/utils/render.ts b/packages/renderers-js-umi/src/utils/render.ts index 83c07be17..4bc0ffa49 100644 --- a/packages/renderers-js-umi/src/utils/render.ts +++ b/packages/renderers-js-umi/src/utils/render.ts @@ -1,7 +1,7 @@ import { dirname as pathDirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@kinobi-so/nodes'; +import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@codama/nodes'; import nunjucks, { ConfigureOptions as NunJucksOptions } from 'nunjucks'; export function jsDocblock(docs: string[]): string { diff --git a/packages/renderers-js-umi/test/_setup.ts b/packages/renderers-js-umi/test/_setup.ts index 72b34cc16..bb595c78f 100644 --- a/packages/renderers-js-umi/test/_setup.ts +++ b/packages/renderers-js-umi/test/_setup.ts @@ -1,4 +1,4 @@ -import { RenderMap } from '@kinobi-so/renderers-core'; +import { RenderMap } from '@codama/renderers-core'; import * as estreePlugin from 'prettier/plugins/estree'; import * as typeScriptPlugin from 'prettier/plugins/typescript'; import { format } from 'prettier/standalone'; diff --git a/packages/renderers-js-umi/test/accountsPage.test.ts b/packages/renderers-js-umi/test/accountsPage.test.ts index df900a4c8..0e3152e83 100644 --- a/packages/renderers-js-umi/test/accountsPage.test.ts +++ b/packages/renderers-js-umi/test/accountsPage.test.ts @@ -7,8 +7,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js-umi/test/exports/commonjs.cjs b/packages/renderers-js-umi/test/exports/commonjs.cjs index a48f5a0d3..a091a74b1 100644 --- a/packages/renderers-js-umi/test/exports/commonjs.cjs +++ b/packages/renderers-js-umi/test/exports/commonjs.cjs @@ -1,5 +1,5 @@ -const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); -const { visit } = require('@kinobi-so/visitors-core'); +const { definedTypeNode, numberTypeNode } = require('@codama/nodes'); +const { visit } = require('@codama/visitors-core'); const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); diff --git a/packages/renderers-js-umi/test/exports/module.mjs b/packages/renderers-js-umi/test/exports/module.mjs index c926e644b..87c6ff631 100644 --- a/packages/renderers-js-umi/test/exports/module.mjs +++ b/packages/renderers-js-umi/test/exports/module.mjs @@ -1,8 +1,8 @@ // This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. globalThis.__dirname = 'DO_NOT_USE'; -import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { getRenderMapVisitor } from '../../dist/index.node.mjs'; diff --git a/packages/renderers-js-umi/test/instructionsPage.test.ts b/packages/renderers-js-umi/test/instructionsPage.test.ts index a6cb1656b..7462ef58d 100644 --- a/packages/renderers-js-umi/test/instructionsPage.test.ts +++ b/packages/renderers-js-umi/test/instructionsPage.test.ts @@ -9,8 +9,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js-umi/test/programsPage.test.ts b/packages/renderers-js-umi/test/programsPage.test.ts index bbddf80f6..d31de9634 100644 --- a/packages/renderers-js-umi/test/programsPage.test.ts +++ b/packages/renderers-js-umi/test/programsPage.test.ts @@ -1,5 +1,5 @@ -import { programNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { programNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js-umi/tsconfig.json b/packages/renderers-js-umi/tsconfig.json index 935284a7e..86f8fdf47 100644 --- a/packages/renderers-js-umi/tsconfig.json +++ b/packages/renderers-js-umi/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/renderers-js-umi", + "display": "@codama/renderers-js-umi", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/renderers-js/README.md b/packages/renderers-js/README.md index 39cb49c85..60265ed57 100644 --- a/packages/renderers-js/README.md +++ b/packages/renderers-js/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/renderers-js.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/renderers-js.svg?style=flat&label=%40kinobi-so%2Frenderers-js -[npm-url]: https://www.npmjs.com/package/@kinobi-so/renderers-js +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-js.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js.svg?style=flat&label=%40kinobi-so%2Frenderers-js +[npm-url]: https://www.npmjs.com/package/@codama/renderers-js This package generates JavaScript clients from your Kinobi IDLs. The generated clients are compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). ## Installation ```sh -pnpm install @kinobi-so/renderers-js +pnpm install @codama/renderers-js ``` > [!NOTE] @@ -26,7 +26,7 @@ Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to g ```ts // node ./kinobi.mjs -import { renderVisitor } from '@kinobi-so/renderers-js'; +import { renderVisitor } from '@codama/renderers-js'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'js', 'src', 'generated'); const options = {}; // See below. diff --git a/packages/renderers-js/e2e/anchor/package.json b/packages/renderers-js/e2e/anchor/package.json index e8f8ef6c2..d78eca3db 100644 --- a/packages/renderers-js/e2e/anchor/package.json +++ b/packages/renderers-js/e2e/anchor/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-e2e-anchor", + "name": "@codama/renderers-js-e2e-anchor", "private": true, "version": "0.0.0", "type": "commonjs", @@ -46,4 +46,4 @@ } }, "packageManager": "pnpm@9.1.0" -} \ No newline at end of file +} diff --git a/packages/renderers-js/e2e/generate.cjs b/packages/renderers-js/e2e/generate.cjs index d16cc32e8..5ecb82120 100755 --- a/packages/renderers-js/e2e/generate.cjs +++ b/packages/renderers-js/e2e/generate.cjs @@ -3,10 +3,10 @@ const path = require('node:path'); const process = require('node:process'); -const { rootNode } = require('@kinobi-so/nodes'); -const { rootNodeFromAnchor } = require('@kinobi-so/nodes-from-anchor'); -const { readJson } = require('@kinobi-so/renderers-core'); -const { visit } = require('@kinobi-so/visitors-core'); +const { rootNode } = require('@codama/nodes'); +const { rootNodeFromAnchor } = require('@codama/nodes-from-anchor'); +const { readJson } = require('@codama/renderers-core'); +const { visit } = require('@codama/visitors-core'); const { renderVisitor } = require('../dist/index.node.cjs'); diff --git a/packages/renderers-js/e2e/memo/package.json b/packages/renderers-js/e2e/memo/package.json index 3d88a7fb0..951680d97 100644 --- a/packages/renderers-js/e2e/memo/package.json +++ b/packages/renderers-js/e2e/memo/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-e2e-memo", + "name": "@codama/renderers-js-e2e-memo", "private": true, "version": "0.0.0", "type": "commonjs", @@ -46,4 +46,4 @@ } }, "packageManager": "pnpm@9.1.0" -} \ No newline at end of file +} diff --git a/packages/renderers-js/e2e/system/package.json b/packages/renderers-js/e2e/system/package.json index edea3bcba..8d6160bbb 100644 --- a/packages/renderers-js/e2e/system/package.json +++ b/packages/renderers-js/e2e/system/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-e2e-system", + "name": "@codama/renderers-js-e2e-system", "private": true, "version": "0.0.0", "type": "commonjs", @@ -46,4 +46,4 @@ } }, "packageManager": "pnpm@9.1.0" -} \ No newline at end of file +} diff --git a/packages/renderers-js/e2e/token/package.json b/packages/renderers-js/e2e/token/package.json index 5f8d9c472..a4f763e8b 100644 --- a/packages/renderers-js/e2e/token/package.json +++ b/packages/renderers-js/e2e/token/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js-e2e-token", + "name": "@codama/renderers-js-e2e-token", "private": true, "version": "0.0.0", "type": "commonjs", @@ -46,4 +46,4 @@ } }, "packageManager": "pnpm@9.1.0" -} \ No newline at end of file +} diff --git a/packages/renderers-js/package.json b/packages/renderers-js/package.json index 3da04f02e..de83e95bb 100644 --- a/packages/renderers-js/package.json +++ b/packages/renderers-js/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-js", + "name": "@codama/renderers-js", "version": "0.22.0", "description": "JavaScript renderer compatible with the Solana web3.js library", "exports": { @@ -30,24 +30,24 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs node", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs node", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:node && pnpm test:e2e && pnpm test:exports", "test:e2e": "./e2e/test.sh", "test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/nodes-from-anchor": "workspace:*", - "@kinobi-so/renderers-core": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*", + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/nodes-from-anchor": "workspace:*", + "@codama/renderers-core": "workspace:*", + "@codama/visitors-core": "workspace:*", "@solana/codecs-strings": "rc", "nunjucks": "^3.2.4", "prettier": "^3.3.3" @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js/public/templates/layout.njk b/packages/renderers-js/public/templates/layout.njk index 30b6a8387..f92c3eb50 100644 --- a/packages/renderers-js/public/templates/layout.njk +++ b/packages/renderers-js/public/templates/layout.njk @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun kinobi to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/kinobi */ {% block main %}{% endblock %} diff --git a/packages/renderers-js/src/fragments/accountFetchHelpers.ts b/packages/renderers-js/src/fragments/accountFetchHelpers.ts index 1e8f8eec9..4cbe789ec 100644 --- a/packages/renderers-js/src/fragments/accountFetchHelpers.ts +++ b/packages/renderers-js/src/fragments/accountFetchHelpers.ts @@ -1,4 +1,4 @@ -import { AccountNode } from '@kinobi-so/nodes'; +import { AccountNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/accountPdaHelpers.ts b/packages/renderers-js/src/fragments/accountPdaHelpers.ts index f2132110e..7a6b0b861 100644 --- a/packages/renderers-js/src/fragments/accountPdaHelpers.ts +++ b/packages/renderers-js/src/fragments/accountPdaHelpers.ts @@ -1,4 +1,4 @@ -import { AccountNode, isNodeFilter, ProgramNode } from '@kinobi-so/nodes'; +import { AccountNode, isNodeFilter, ProgramNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import type { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/accountSizeHelpers.ts b/packages/renderers-js/src/fragments/accountSizeHelpers.ts index 2d202a976..b26d13560 100644 --- a/packages/renderers-js/src/fragments/accountSizeHelpers.ts +++ b/packages/renderers-js/src/fragments/accountSizeHelpers.ts @@ -1,4 +1,4 @@ -import { AccountNode } from '@kinobi-so/nodes'; +import { AccountNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, fragmentFromTemplate } from './common'; diff --git a/packages/renderers-js/src/fragments/accountType.ts b/packages/renderers-js/src/fragments/accountType.ts index 417aa1dfe..eac5dcd53 100644 --- a/packages/renderers-js/src/fragments/accountType.ts +++ b/packages/renderers-js/src/fragments/accountType.ts @@ -1,4 +1,4 @@ -import { AccountNode } from '@kinobi-so/nodes'; +import { AccountNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/discriminatorCondition.ts b/packages/renderers-js/src/fragments/discriminatorCondition.ts index 4d028bb68..456a1fe19 100644 --- a/packages/renderers-js/src/fragments/discriminatorCondition.ts +++ b/packages/renderers-js/src/fragments/discriminatorCondition.ts @@ -10,8 +10,8 @@ import { type ProgramNode, type SizeDiscriminatorNode, type StructTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { getBase64Decoder } from '@solana/codecs-strings'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; diff --git a/packages/renderers-js/src/fragments/discriminatorConstants.ts b/packages/renderers-js/src/fragments/discriminatorConstants.ts index b0f55869a..0862a4f3d 100644 --- a/packages/renderers-js/src/fragments/discriminatorConstants.ts +++ b/packages/renderers-js/src/fragments/discriminatorConstants.ts @@ -8,8 +8,8 @@ import { isNodeFilter, StructFieldTypeNode, VALUE_NODES, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/instructionAccountMeta.ts b/packages/renderers-js/src/fragments/instructionAccountMeta.ts index 4c7b37be9..e064f776a 100644 --- a/packages/renderers-js/src/fragments/instructionAccountMeta.ts +++ b/packages/renderers-js/src/fragments/instructionAccountMeta.ts @@ -1,4 +1,4 @@ -import { InstructionAccountNode, pascalCase } from '@kinobi-so/nodes'; +import { InstructionAccountNode, pascalCase } from '@codama/nodes'; import { Fragment, fragment } from './common'; diff --git a/packages/renderers-js/src/fragments/instructionAccountTypeParam.ts b/packages/renderers-js/src/fragments/instructionAccountTypeParam.ts index a160f10df..0fc88a3c8 100644 --- a/packages/renderers-js/src/fragments/instructionAccountTypeParam.ts +++ b/packages/renderers-js/src/fragments/instructionAccountTypeParam.ts @@ -4,8 +4,8 @@ import { InstructionNode, pascalCase, ProgramNode, -} from '@kinobi-so/nodes'; -import { LinkableDictionary } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { LinkableDictionary } from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { ImportMap } from '../ImportMap'; diff --git a/packages/renderers-js/src/fragments/instructionByteDelta.ts b/packages/renderers-js/src/fragments/instructionByteDelta.ts index 363caa44a..3c3c7fc82 100644 --- a/packages/renderers-js/src/fragments/instructionByteDelta.ts +++ b/packages/renderers-js/src/fragments/instructionByteDelta.ts @@ -1,4 +1,4 @@ -import { assertIsNode, camelCase, InstructionByteDeltaNode, InstructionNode, isNode } from '@kinobi-so/nodes'; +import { assertIsNode, camelCase, InstructionByteDeltaNode, InstructionNode, isNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/instructionData.ts b/packages/renderers-js/src/fragments/instructionData.ts index 21fcabca8..02840e4f4 100644 --- a/packages/renderers-js/src/fragments/instructionData.ts +++ b/packages/renderers-js/src/fragments/instructionData.ts @@ -1,4 +1,4 @@ -import { InstructionNode } from '@kinobi-so/nodes'; +import { InstructionNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/instructionExtraArgs.ts b/packages/renderers-js/src/fragments/instructionExtraArgs.ts index da551fac6..fe626d12c 100644 --- a/packages/renderers-js/src/fragments/instructionExtraArgs.ts +++ b/packages/renderers-js/src/fragments/instructionExtraArgs.ts @@ -1,4 +1,4 @@ -import { InstructionNode } from '@kinobi-so/nodes'; +import { InstructionNode } from '@codama/nodes'; import { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/instructionFunction.ts b/packages/renderers-js/src/fragments/instructionFunction.ts index ef022be86..f62f7e0ee 100644 --- a/packages/renderers-js/src/fragments/instructionFunction.ts +++ b/packages/renderers-js/src/fragments/instructionFunction.ts @@ -6,8 +6,8 @@ import { isNodeFilter, pascalCase, ProgramNode, -} from '@kinobi-so/nodes'; -import { ResolvedInstructionInput } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { ResolvedInstructionInput } from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { NameApi } from '../nameTransformers'; diff --git a/packages/renderers-js/src/fragments/instructionInputDefault.ts b/packages/renderers-js/src/fragments/instructionInputDefault.ts index 7b4f5dc68..56b12b362 100644 --- a/packages/renderers-js/src/fragments/instructionInputDefault.ts +++ b/packages/renderers-js/src/fragments/instructionInputDefault.ts @@ -1,6 +1,6 @@ /* eslint-disable no-case-declarations */ -import { camelCase, InstructionInputValueNode, isNode } from '@kinobi-so/nodes'; -import { ResolvedInstructionInput, visit } from '@kinobi-so/visitors-core'; +import { camelCase, InstructionInputValueNode, isNode } from '@codama/nodes'; +import { ResolvedInstructionInput, visit } from '@codama/visitors-core'; import { GlobalFragmentScope } from '../getRenderMapVisitor'; import { isAsyncDefaultValue } from '../utils'; diff --git a/packages/renderers-js/src/fragments/instructionInputResolved.ts b/packages/renderers-js/src/fragments/instructionInputResolved.ts index 5c6c571ad..ca27b7f5a 100644 --- a/packages/renderers-js/src/fragments/instructionInputResolved.ts +++ b/packages/renderers-js/src/fragments/instructionInputResolved.ts @@ -1,5 +1,5 @@ -import { camelCase, InstructionNode, isNode } from '@kinobi-so/nodes'; -import { ResolvedInstructionInput } from '@kinobi-so/visitors-core'; +import { camelCase, InstructionNode, isNode } from '@codama/nodes'; +import { ResolvedInstructionInput } from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/instructionInputType.ts b/packages/renderers-js/src/fragments/instructionInputType.ts index 7f275262c..25b5a9553 100644 --- a/packages/renderers-js/src/fragments/instructionInputType.ts +++ b/packages/renderers-js/src/fragments/instructionInputType.ts @@ -5,12 +5,12 @@ import { InstructionNode, isNode, pascalCase, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { ResolvedInstructionAccount, ResolvedInstructionArgument, ResolvedInstructionInput, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/instructionParseFunction.ts b/packages/renderers-js/src/fragments/instructionParseFunction.ts index 6a3f871fe..b24b0003e 100644 --- a/packages/renderers-js/src/fragments/instructionParseFunction.ts +++ b/packages/renderers-js/src/fragments/instructionParseFunction.ts @@ -1,4 +1,4 @@ -import { InstructionNode, ProgramNode } from '@kinobi-so/nodes'; +import { InstructionNode, ProgramNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { TypeManifest } from '../TypeManifest'; diff --git a/packages/renderers-js/src/fragments/instructionRemainingAccounts.ts b/packages/renderers-js/src/fragments/instructionRemainingAccounts.ts index 98287d480..312a0e847 100644 --- a/packages/renderers-js/src/fragments/instructionRemainingAccounts.ts +++ b/packages/renderers-js/src/fragments/instructionRemainingAccounts.ts @@ -5,7 +5,7 @@ import { InstructionNode, InstructionRemainingAccountsNode, isNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/instructionType.ts b/packages/renderers-js/src/fragments/instructionType.ts index 8137c763a..cc7acf844 100644 --- a/packages/renderers-js/src/fragments/instructionType.ts +++ b/packages/renderers-js/src/fragments/instructionType.ts @@ -1,4 +1,4 @@ -import { InstructionNode, pascalCase, ProgramNode } from '@kinobi-so/nodes'; +import { InstructionNode, pascalCase, ProgramNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragmentFromTemplate, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/pdaFunction.ts b/packages/renderers-js/src/fragments/pdaFunction.ts index 18c9980a3..7985c7fc8 100644 --- a/packages/renderers-js/src/fragments/pdaFunction.ts +++ b/packages/renderers-js/src/fragments/pdaFunction.ts @@ -1,5 +1,5 @@ -import { isNode, isNodeFilter, PdaNode, ProgramNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { isNode, isNodeFilter, PdaNode, ProgramNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { ImportMap } from '../ImportMap'; diff --git a/packages/renderers-js/src/fragments/program.ts b/packages/renderers-js/src/fragments/program.ts index 20ea701e0..a8027daef 100644 --- a/packages/renderers-js/src/fragments/program.ts +++ b/packages/renderers-js/src/fragments/program.ts @@ -1,4 +1,4 @@ -import { ProgramNode } from '@kinobi-so/nodes'; +import { ProgramNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragmentFromTemplate } from './common'; diff --git a/packages/renderers-js/src/fragments/programAccounts.ts b/packages/renderers-js/src/fragments/programAccounts.ts index 1409f3f4e..c11edd763 100644 --- a/packages/renderers-js/src/fragments/programAccounts.ts +++ b/packages/renderers-js/src/fragments/programAccounts.ts @@ -1,4 +1,4 @@ -import { ProgramNode, resolveNestedTypeNode } from '@kinobi-so/nodes'; +import { ProgramNode, resolveNestedTypeNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/programErrors.ts b/packages/renderers-js/src/fragments/programErrors.ts index f56daf5c0..6eaf7b11a 100644 --- a/packages/renderers-js/src/fragments/programErrors.ts +++ b/packages/renderers-js/src/fragments/programErrors.ts @@ -1,4 +1,4 @@ -import { ProgramNode } from '@kinobi-so/nodes'; +import { ProgramNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragmentFromTemplate } from './common'; diff --git a/packages/renderers-js/src/fragments/programInstructions.ts b/packages/renderers-js/src/fragments/programInstructions.ts index e261fa6ad..c6df4787c 100644 --- a/packages/renderers-js/src/fragments/programInstructions.ts +++ b/packages/renderers-js/src/fragments/programInstructions.ts @@ -3,7 +3,7 @@ import { InstructionNode, ProgramNode, structTypeNodeFromInstructionArgumentNodes, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, mergeFragments } from './common'; diff --git a/packages/renderers-js/src/fragments/typeDiscriminatedUnionHelpers.ts b/packages/renderers-js/src/fragments/typeDiscriminatedUnionHelpers.ts index 172301b80..1ac50c458 100644 --- a/packages/renderers-js/src/fragments/typeDiscriminatedUnionHelpers.ts +++ b/packages/renderers-js/src/fragments/typeDiscriminatedUnionHelpers.ts @@ -1,4 +1,4 @@ -import { isDataEnum, isNode, TypeNode } from '@kinobi-so/nodes'; +import { isDataEnum, isNode, TypeNode } from '@codama/nodes'; import type { GlobalFragmentScope } from '../getRenderMapVisitor'; import { Fragment, fragment, fragmentFromTemplate } from './common'; diff --git a/packages/renderers-js/src/getRenderMapVisitor.ts b/packages/renderers-js/src/getRenderMapVisitor.ts index 1874bb7c2..dd905f3e5 100644 --- a/packages/renderers-js/src/getRenderMapVisitor.ts +++ b/packages/renderers-js/src/getRenderMapVisitor.ts @@ -1,6 +1,6 @@ import { join } from 'node:path'; -import { logWarn } from '@kinobi-so/errors'; +import { logWarn } from '@codama/errors'; import { camelCase, CamelCaseString, @@ -13,8 +13,8 @@ import { ProgramNode, resolveNestedTypeNode, structTypeNodeFromInstructionArgumentNodes, -} from '@kinobi-so/nodes'; -import { RenderMap } from '@kinobi-so/renderers-core'; +} from '@codama/nodes'; +import { RenderMap } from '@codama/renderers-core'; import { extendVisitor, getResolvedInstructionInputsVisitor, @@ -23,7 +23,7 @@ import { recordLinkablesVisitor, staticVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import type { ConfigureOptions } from 'nunjucks'; import { diff --git a/packages/renderers-js/src/getTypeManifestVisitor.ts b/packages/renderers-js/src/getTypeManifestVisitor.ts index 1693cefec..90abceb4e 100644 --- a/packages/renderers-js/src/getTypeManifestVisitor.ts +++ b/packages/renderers-js/src/getTypeManifestVisitor.ts @@ -12,7 +12,7 @@ import { structTypeNode, structTypeNodeFromInstructionArgumentNodes, TypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { extendVisitor, LinkableDictionary, @@ -22,7 +22,7 @@ import { staticVisitor, visit, Visitor, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { Fragment, fragment, mergeFragments } from './fragments'; import { ImportMap } from './ImportMap'; diff --git a/packages/renderers-js/src/nameTransformers.ts b/packages/renderers-js/src/nameTransformers.ts index 23c52ddc5..9463e7eed 100644 --- a/packages/renderers-js/src/nameTransformers.ts +++ b/packages/renderers-js/src/nameTransformers.ts @@ -1,4 +1,4 @@ -import { camelCase, capitalize, kebabCase, pascalCase, snakeCase, titleCase } from '@kinobi-so/nodes'; +import { camelCase, capitalize, kebabCase, pascalCase, snakeCase, titleCase } from '@codama/nodes'; export type NameTransformerHelpers = { camelCase: (name: string) => string; diff --git a/packages/renderers-js/src/renderVisitor.ts b/packages/renderers-js/src/renderVisitor.ts index b1179379e..d720dc1b2 100644 --- a/packages/renderers-js/src/renderVisitor.ts +++ b/packages/renderers-js/src/renderVisitor.ts @@ -1,5 +1,5 @@ -import { deleteDirectory } from '@kinobi-so/renderers-core'; -import { rootNodeVisitor, visit } from '@kinobi-so/visitors-core'; +import { deleteDirectory } from '@codama/renderers-core'; +import { rootNodeVisitor, visit } from '@codama/visitors-core'; import * as estreePlugin from 'prettier/plugins/estree'; import * as typeScriptPlugin from 'prettier/plugins/typescript'; import { format } from 'prettier/standalone'; diff --git a/packages/renderers-js/src/utils/async.ts b/packages/renderers-js/src/utils/async.ts index d7cd31cc3..d980b5008 100644 --- a/packages/renderers-js/src/utils/async.ts +++ b/packages/renderers-js/src/utils/async.ts @@ -9,8 +9,8 @@ import { InstructionInputValueNode, InstructionNode, isNode, -} from '@kinobi-so/nodes'; -import { deduplicateInstructionDependencies, ResolvedInstructionInput } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { deduplicateInstructionDependencies, ResolvedInstructionInput } from '@codama/visitors-core'; export function hasAsyncFunction( instructionNode: InstructionNode, diff --git a/packages/renderers-js/src/utils/codecs.ts b/packages/renderers-js/src/utils/codecs.ts index b2b63b697..3a524c015 100644 --- a/packages/renderers-js/src/utils/codecs.ts +++ b/packages/renderers-js/src/utils/codecs.ts @@ -1,4 +1,4 @@ -import { BytesValueNode } from '@kinobi-so/nodes'; +import { BytesValueNode } from '@codama/nodes'; import { getBase16Encoder, getBase58Encoder, getBase64Encoder, getUtf8Encoder } from '@solana/codecs-strings'; export function getBytesFromBytesValueNode(node: BytesValueNode): Uint8Array { diff --git a/packages/renderers-js/src/utils/customData.ts b/packages/renderers-js/src/utils/customData.ts index d1419868d..b3a0edfc0 100644 --- a/packages/renderers-js/src/utils/customData.ts +++ b/packages/renderers-js/src/utils/customData.ts @@ -9,7 +9,7 @@ import { InstructionNode, isNode, structTypeNodeFromInstructionArgumentNodes, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; export type CustomDataOptions = | string diff --git a/packages/renderers-js/src/utils/linkOverrides.ts b/packages/renderers-js/src/utils/linkOverrides.ts index c6e71f365..f9d5a6b51 100644 --- a/packages/renderers-js/src/utils/linkOverrides.ts +++ b/packages/renderers-js/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -6,7 +6,7 @@ import { PdaLinkNode, ProgramLinkNode, ResolverValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { ParsedCustomDataOptions } from './customData'; diff --git a/packages/renderers-js/src/utils/render.ts b/packages/renderers-js/src/utils/render.ts index 83c07be17..4bc0ffa49 100644 --- a/packages/renderers-js/src/utils/render.ts +++ b/packages/renderers-js/src/utils/render.ts @@ -1,7 +1,7 @@ import { dirname as pathDirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@kinobi-so/nodes'; +import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@codama/nodes'; import nunjucks, { ConfigureOptions as NunJucksOptions } from 'nunjucks'; export function jsDocblock(docs: string[]): string { diff --git a/packages/renderers-js/test/_setup.ts b/packages/renderers-js/test/_setup.ts index e33ca6e36..1ba3408da 100644 --- a/packages/renderers-js/test/_setup.ts +++ b/packages/renderers-js/test/_setup.ts @@ -1,4 +1,4 @@ -import { RenderMap } from '@kinobi-so/renderers-core'; +import { RenderMap } from '@codama/renderers-core'; import * as estreePlugin from 'prettier/plugins/estree'; import * as typeScriptPlugin from 'prettier/plugins/typescript'; import { format } from 'prettier/standalone'; diff --git a/packages/renderers-js/test/accountsPage.test.ts b/packages/renderers-js/test/accountsPage.test.ts index cd9d4e9b5..a8cf7d579 100644 --- a/packages/renderers-js/test/accountsPage.test.ts +++ b/packages/renderers-js/test/accountsPage.test.ts @@ -17,8 +17,8 @@ import { publicKeyTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js/test/exports/commonjs.cjs b/packages/renderers-js/test/exports/commonjs.cjs index a48f5a0d3..a091a74b1 100644 --- a/packages/renderers-js/test/exports/commonjs.cjs +++ b/packages/renderers-js/test/exports/commonjs.cjs @@ -1,5 +1,5 @@ -const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); -const { visit } = require('@kinobi-so/visitors-core'); +const { definedTypeNode, numberTypeNode } = require('@codama/nodes'); +const { visit } = require('@codama/visitors-core'); const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); diff --git a/packages/renderers-js/test/exports/module.mjs b/packages/renderers-js/test/exports/module.mjs index c926e644b..87c6ff631 100644 --- a/packages/renderers-js/test/exports/module.mjs +++ b/packages/renderers-js/test/exports/module.mjs @@ -1,8 +1,8 @@ // This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. globalThis.__dirname = 'DO_NOT_USE'; -import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { getRenderMapVisitor } from '../../dist/index.node.mjs'; diff --git a/packages/renderers-js/test/instructionsPage.test.ts b/packages/renderers-js/test/instructionsPage.test.ts index b1185c7e1..9914438e3 100644 --- a/packages/renderers-js/test/instructionsPage.test.ts +++ b/packages/renderers-js/test/instructionsPage.test.ts @@ -17,8 +17,8 @@ import { publicKeyTypeNode, resolverValueNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js/test/links/account.test.ts b/packages/renderers-js/test/links/account.test.ts index 0a64c5f9f..60839ab4a 100644 --- a/packages/renderers-js/test/links/account.test.ts +++ b/packages/renderers-js/test/links/account.test.ts @@ -1,5 +1,5 @@ -import { accountLinkNode, accountNode, instructionByteDeltaNode, instructionNode, programNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { accountLinkNode, accountNode, instructionByteDeltaNode, instructionNode, programNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/links/definedType.test.ts b/packages/renderers-js/test/links/definedType.test.ts index 5a4655d47..de32739a9 100644 --- a/packages/renderers-js/test/links/definedType.test.ts +++ b/packages/renderers-js/test/links/definedType.test.ts @@ -6,8 +6,8 @@ import { stringTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/links/pda.test.ts b/packages/renderers-js/test/links/pda.test.ts index 744d7f041..a4c1c30a6 100644 --- a/packages/renderers-js/test/links/pda.test.ts +++ b/packages/renderers-js/test/links/pda.test.ts @@ -5,8 +5,8 @@ import { pdaNode, pdaValueNode, programNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/links/program.test.ts b/packages/renderers-js/test/links/program.test.ts index 5798924b3..215ea3721 100644 --- a/packages/renderers-js/test/links/program.test.ts +++ b/packages/renderers-js/test/links/program.test.ts @@ -5,8 +5,8 @@ import { programLinkNode, programNode, rootNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/pdasPage.test.ts b/packages/renderers-js/test/pdasPage.test.ts index e4e7e2fb9..410813ac4 100644 --- a/packages/renderers-js/test/pdasPage.test.ts +++ b/packages/renderers-js/test/pdasPage.test.ts @@ -6,8 +6,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js/test/programsPage.test.ts b/packages/renderers-js/test/programsPage.test.ts index 669adc70c..1f9701acf 100644 --- a/packages/renderers-js/test/programsPage.test.ts +++ b/packages/renderers-js/test/programsPage.test.ts @@ -11,8 +11,8 @@ import { sizeDiscriminatorNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-js/test/types/discriminatedUnions.test.ts b/packages/renderers-js/test/types/discriminatedUnions.test.ts index 410262b4c..7bab399be 100644 --- a/packages/renderers-js/test/types/discriminatedUnions.test.ts +++ b/packages/renderers-js/test/types/discriminatedUnions.test.ts @@ -9,8 +9,8 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/fixedSize.test.ts b/packages/renderers-js/test/types/fixedSize.test.ts index 2752aed58..05585af5c 100644 --- a/packages/renderers-js/test/types/fixedSize.test.ts +++ b/packages/renderers-js/test/types/fixedSize.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, fixedSizeTypeNode, stringTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, fixedSizeTypeNode, stringTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/hiddenPrefix.test.ts b/packages/renderers-js/test/types/hiddenPrefix.test.ts index a638b23ba..1368ddb93 100644 --- a/packages/renderers-js/test/types/hiddenPrefix.test.ts +++ b/packages/renderers-js/test/types/hiddenPrefix.test.ts @@ -4,8 +4,8 @@ import { definedTypeNode, hiddenPrefixTypeNode, numberTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/hiddenSuffix.test.ts b/packages/renderers-js/test/types/hiddenSuffix.test.ts index bbe5dfed2..74f42b3fa 100644 --- a/packages/renderers-js/test/types/hiddenSuffix.test.ts +++ b/packages/renderers-js/test/types/hiddenSuffix.test.ts @@ -4,8 +4,8 @@ import { definedTypeNode, hiddenSuffixTypeNode, numberTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/postOffset.test.ts b/packages/renderers-js/test/types/postOffset.test.ts index 5c0acaf59..0a0ee5caa 100644 --- a/packages/renderers-js/test/types/postOffset.test.ts +++ b/packages/renderers-js/test/types/postOffset.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, numberTypeNode, postOffsetTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode, postOffsetTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/preOffset.test.ts b/packages/renderers-js/test/types/preOffset.test.ts index f0c5fbdaa..ac2aab62b 100644 --- a/packages/renderers-js/test/types/preOffset.test.ts +++ b/packages/renderers-js/test/types/preOffset.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, numberTypeNode, preOffsetTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode, preOffsetTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/remainderOption.test.ts b/packages/renderers-js/test/types/remainderOption.test.ts index 84efa9257..565948ada 100644 --- a/packages/renderers-js/test/types/remainderOption.test.ts +++ b/packages/renderers-js/test/types/remainderOption.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, publicKeyTypeNode, remainderOptionTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, publicKeyTypeNode, remainderOptionTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/sentinel.test.ts b/packages/renderers-js/test/types/sentinel.test.ts index c8d464731..f32e247c3 100644 --- a/packages/renderers-js/test/types/sentinel.test.ts +++ b/packages/renderers-js/test/types/sentinel.test.ts @@ -1,5 +1,5 @@ -import { constantValueNodeFromBytes, definedTypeNode, sentinelTypeNode, stringTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { constantValueNodeFromBytes, definedTypeNode, sentinelTypeNode, stringTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/sizePrefix.test.ts b/packages/renderers-js/test/types/sizePrefix.test.ts index 682d03730..5b91ab155 100644 --- a/packages/renderers-js/test/types/sizePrefix.test.ts +++ b/packages/renderers-js/test/types/sizePrefix.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/solAmount.test.ts b/packages/renderers-js/test/types/solAmount.test.ts index c31089938..58318c0fd 100644 --- a/packages/renderers-js/test/types/solAmount.test.ts +++ b/packages/renderers-js/test/types/solAmount.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, numberTypeNode, solAmountTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode, solAmountTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/test/types/zeroableOption.test.ts b/packages/renderers-js/test/types/zeroableOption.test.ts index 43ce7c619..fe4296e9f 100644 --- a/packages/renderers-js/test/types/zeroableOption.test.ts +++ b/packages/renderers-js/test/types/zeroableOption.test.ts @@ -4,8 +4,8 @@ import { numberTypeNode, publicKeyTypeNode, zeroableOptionTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-js/tsconfig.json b/packages/renderers-js/tsconfig.json index c9b83c127..323df99f7 100644 --- a/packages/renderers-js/tsconfig.json +++ b/packages/renderers-js/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/renderers-js", + "display": "@codama/renderers-js", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/renderers-rust/README.md b/packages/renderers-rust/README.md index 64f8072f0..ce62a2a39 100644 --- a/packages/renderers-rust/README.md +++ b/packages/renderers-rust/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/renderers-rust.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/renderers-rust.svg?style=flat&label=%40kinobi-so%2Frenderers-rust -[npm-url]: https://www.npmjs.com/package/@kinobi-so/renderers-rust +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-rust.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-rust.svg?style=flat&label=%40kinobi-so%2Frenderers-rust +[npm-url]: https://www.npmjs.com/package/@codama/renderers-rust This package generates Rust clients from your Kinobi IDLs. ## Installation ```sh -pnpm install @kinobi-so/renderers-rust +pnpm install @codama/renderers-rust ``` > [!NOTE] @@ -26,7 +26,7 @@ Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to g ```ts // node ./kinobi.mjs -import { renderVisitor } from '@kinobi-so/renderers-rust'; +import { renderVisitor } from '@codama/renderers-rust'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'rust', 'src', 'generated'); const options = {}; // See below. diff --git a/packages/renderers-rust/e2e/generate.cjs b/packages/renderers-rust/e2e/generate.cjs index c7e19c7e8..f30672c7f 100755 --- a/packages/renderers-rust/e2e/generate.cjs +++ b/packages/renderers-rust/e2e/generate.cjs @@ -3,9 +3,9 @@ const path = require('node:path'); const process = require('node:process'); -const { rootNode } = require('@kinobi-so/nodes'); -const { readJson } = require('@kinobi-so/renderers-core'); -const { visit } = require('@kinobi-so/visitors-core'); +const { rootNode } = require('@codama/nodes'); +const { readJson } = require('@codama/renderers-core'); +const { visit } = require('@codama/visitors-core'); const { renderVisitor } = require('../dist/index.node.cjs'); diff --git a/packages/renderers-rust/package.json b/packages/renderers-rust/package.json index 28310fc54..fc11cb96b 100644 --- a/packages/renderers-rust/package.json +++ b/packages/renderers-rust/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers-rust", + "name": "@codama/renderers-rust", "version": "0.22.0", "description": "Renders Rust clients for your programs", "exports": { @@ -29,23 +29,23 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs node", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs node", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:node && pnpm test:e2e && pnpm test:exports", "test:e2e": "./e2e/test.sh", "test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/renderers-core": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*", + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/renderers-core": "workspace:*", + "@codama/visitors-core": "workspace:*", "@solana/codecs-strings": "rc", "nunjucks": "^3.2.4" }, @@ -55,10 +55,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-rust/public/templates/layout.njk b/packages/renderers-rust/public/templates/layout.njk index 1eb91e115..aae2f26ed 100644 --- a/packages/renderers-rust/public/templates/layout.njk +++ b/packages/renderers-rust/public/templates/layout.njk @@ -2,6 +2,6 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun kinobi to update it. //! -//! +//! //! {% block main %}{% endblock %} diff --git a/packages/renderers-rust/src/getRenderMapVisitor.ts b/packages/renderers-rust/src/getRenderMapVisitor.ts index f044d435e..05174b3f0 100644 --- a/packages/renderers-rust/src/getRenderMapVisitor.ts +++ b/packages/renderers-rust/src/getRenderMapVisitor.ts @@ -1,4 +1,4 @@ -import { logWarn } from '@kinobi-so/errors'; +import { logWarn } from '@codama/errors'; import { getAllAccounts, getAllDefinedTypes, @@ -13,8 +13,8 @@ import { snakeCase, structTypeNodeFromInstructionArgumentNodes, VALUE_NODES, -} from '@kinobi-so/nodes'; -import { RenderMap } from '@kinobi-so/renderers-core'; +} from '@codama/nodes'; +import { RenderMap } from '@codama/renderers-core'; import { extendVisitor, LinkableDictionary, @@ -22,7 +22,7 @@ import { recordLinkablesVisitor, staticVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { getTypeManifestVisitor } from './getTypeManifestVisitor'; import { ImportMap } from './ImportMap'; diff --git a/packages/renderers-rust/src/getTypeManifestVisitor.ts b/packages/renderers-rust/src/getTypeManifestVisitor.ts index da6762fb7..c8474107e 100644 --- a/packages/renderers-rust/src/getTypeManifestVisitor.ts +++ b/packages/renderers-rust/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; import { arrayTypeNode, CountNode, @@ -13,8 +13,8 @@ import { remainderCountNode, resolveNestedTypeNode, snakeCase, -} from '@kinobi-so/nodes'; -import { extendVisitor, mergeVisitor, pipe, visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { extendVisitor, mergeVisitor, pipe, visit } from '@codama/visitors-core'; import { ImportMap } from './ImportMap'; import { GetImportFromFunction, rustDocblock } from './utils'; diff --git a/packages/renderers-rust/src/renderValueNodeVisitor.ts b/packages/renderers-rust/src/renderValueNodeVisitor.ts index fbbabedd0..320678b6c 100644 --- a/packages/renderers-rust/src/renderValueNodeVisitor.ts +++ b/packages/renderers-rust/src/renderValueNodeVisitor.ts @@ -6,8 +6,8 @@ import { pascalCase, RegisteredValueNode, ValueNode, -} from '@kinobi-so/nodes'; -import { visit, Visitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit, Visitor } from '@codama/visitors-core'; import { ImportMap } from './ImportMap'; import { getBytesFromBytesValueNode, GetImportFromFunction } from './utils'; diff --git a/packages/renderers-rust/src/renderVisitor.ts b/packages/renderers-rust/src/renderVisitor.ts index 86fe887e2..2260b2796 100644 --- a/packages/renderers-rust/src/renderVisitor.ts +++ b/packages/renderers-rust/src/renderVisitor.ts @@ -1,6 +1,6 @@ -import { logError, logWarn } from '@kinobi-so/errors'; -import { deleteDirectory, writeRenderMapVisitor } from '@kinobi-so/renderers-core'; -import { rootNodeVisitor, visit } from '@kinobi-so/visitors-core'; +import { logError, logWarn } from '@codama/errors'; +import { deleteDirectory, writeRenderMapVisitor } from '@codama/renderers-core'; +import { rootNodeVisitor, visit } from '@codama/visitors-core'; import { spawnSync } from 'child_process'; import { GetRenderMapOptions, getRenderMapVisitor } from './getRenderMapVisitor'; diff --git a/packages/renderers-rust/src/utils/codecs.ts b/packages/renderers-rust/src/utils/codecs.ts index b2b63b697..3a524c015 100644 --- a/packages/renderers-rust/src/utils/codecs.ts +++ b/packages/renderers-rust/src/utils/codecs.ts @@ -1,4 +1,4 @@ -import { BytesValueNode } from '@kinobi-so/nodes'; +import { BytesValueNode } from '@codama/nodes'; import { getBase16Encoder, getBase58Encoder, getBase64Encoder, getUtf8Encoder } from '@solana/codecs-strings'; export function getBytesFromBytesValueNode(node: BytesValueNode): Uint8Array { diff --git a/packages/renderers-rust/src/utils/linkOverrides.ts b/packages/renderers-rust/src/utils/linkOverrides.ts index 577ca674d..1fc986271 100644 --- a/packages/renderers-rust/src/utils/linkOverrides.ts +++ b/packages/renderers-rust/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -6,7 +6,7 @@ import { PdaLinkNode, ProgramLinkNode, ResolverValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; export type LinkOverrides = { accounts?: Record; diff --git a/packages/renderers-rust/src/utils/render.ts b/packages/renderers-rust/src/utils/render.ts index d2aecc90f..fa14c0d62 100644 --- a/packages/renderers-rust/src/utils/render.ts +++ b/packages/renderers-rust/src/utils/render.ts @@ -1,7 +1,7 @@ import { dirname as pathDirname, join } from 'node:path'; import { fileURLToPath } from 'node:url'; -import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@kinobi-so/nodes'; +import { camelCase, kebabCase, pascalCase, snakeCase, titleCase } from '@codama/nodes'; import nunjucks, { ConfigureOptions as NunJucksOptions } from 'nunjucks'; export function rustDocblock(docs: string[]): string { diff --git a/packages/renderers-rust/test/accountsPage.test.ts b/packages/renderers-rust/test/accountsPage.test.ts index 594d8ec80..72c820061 100644 --- a/packages/renderers-rust/test/accountsPage.test.ts +++ b/packages/renderers-rust/test/accountsPage.test.ts @@ -12,8 +12,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-rust/test/definedTypesPage.test.ts b/packages/renderers-rust/test/definedTypesPage.test.ts index 6c52926ad..e19a763a8 100644 --- a/packages/renderers-rust/test/definedTypesPage.test.ts +++ b/packages/renderers-rust/test/definedTypesPage.test.ts @@ -9,8 +9,8 @@ import { stringTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-rust/test/errorsPage.test.ts b/packages/renderers-rust/test/errorsPage.test.ts index 5d90018e9..d1c05353c 100644 --- a/packages/renderers-rust/test/errorsPage.test.ts +++ b/packages/renderers-rust/test/errorsPage.test.ts @@ -1,5 +1,5 @@ -import { errorNode, programNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { errorNode, programNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-rust/test/exports/commonjs.cjs b/packages/renderers-rust/test/exports/commonjs.cjs index a48f5a0d3..a091a74b1 100644 --- a/packages/renderers-rust/test/exports/commonjs.cjs +++ b/packages/renderers-rust/test/exports/commonjs.cjs @@ -1,5 +1,5 @@ -const { definedTypeNode, numberTypeNode } = require('@kinobi-so/nodes'); -const { visit } = require('@kinobi-so/visitors-core'); +const { definedTypeNode, numberTypeNode } = require('@codama/nodes'); +const { visit } = require('@codama/visitors-core'); const { getRenderMapVisitor } = require('../../dist/index.node.cjs'); diff --git a/packages/renderers-rust/test/exports/module.mjs b/packages/renderers-rust/test/exports/module.mjs index c926e644b..87c6ff631 100644 --- a/packages/renderers-rust/test/exports/module.mjs +++ b/packages/renderers-rust/test/exports/module.mjs @@ -1,8 +1,8 @@ // This ensures that we do not rely on `__dirname` in ES modules even when it is polyfilled. globalThis.__dirname = 'DO_NOT_USE'; -import { definedTypeNode, numberTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { getRenderMapVisitor } from '../../dist/index.node.mjs'; diff --git a/packages/renderers-rust/test/instructionsPage.test.ts b/packages/renderers-rust/test/instructionsPage.test.ts index 78749084e..fdcb71257 100644 --- a/packages/renderers-rust/test/instructionsPage.test.ts +++ b/packages/renderers-rust/test/instructionsPage.test.ts @@ -1,5 +1,5 @@ -import { instructionArgumentNode, instructionNode, programNode, stringTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { instructionArgumentNode, instructionNode, programNode, stringTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../src'; diff --git a/packages/renderers-rust/test/types/array.test.ts b/packages/renderers-rust/test/types/array.test.ts index 27bb9edd1..e72adaa23 100644 --- a/packages/renderers-rust/test/types/array.test.ts +++ b/packages/renderers-rust/test/types/array.test.ts @@ -6,8 +6,8 @@ import { publicKeyTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-rust/test/types/number.test.ts b/packages/renderers-rust/test/types/number.test.ts index aae44a8da..e53c1136b 100644 --- a/packages/renderers-rust/test/types/number.test.ts +++ b/packages/renderers-rust/test/types/number.test.ts @@ -1,5 +1,5 @@ -import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { definedTypeNode, numberTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { test } from 'vitest'; import { getRenderMapVisitor } from '../../src'; diff --git a/packages/renderers-rust/tsconfig.json b/packages/renderers-rust/tsconfig.json index 6ffa359da..e3e899910 100644 --- a/packages/renderers-rust/tsconfig.json +++ b/packages/renderers-rust/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/renderers-rust", + "display": "@codama/renderers-rust", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/renderers/README.md b/packages/renderers/README.md index ef5e48e91..d3f94c1be 100644 --- a/packages/renderers/README.md +++ b/packages/renderers/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/renderers.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/renderers.svg?style=flat&label=%40kinobi-so%2Frenderers -[npm-url]: https://www.npmjs.com/package/@kinobi-so/renderers +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/renderers.svg?style=flat&label=%40kinobi-so%2Frenderers +[npm-url]: https://www.npmjs.com/package/@codama/renderers This package re-exports all available renderers for Kinobi IDLs. ## Installation ```sh -pnpm install @kinobi-so/renderers +pnpm install @codama/renderers ``` > [!NOTE] @@ -22,13 +22,13 @@ pnpm install @kinobi-so/renderers The following renderer packages are included in this package: -- [`@kinobi-so/renderers-js`](../renderers-js) as `renderJavaScriptVisitor` -- [`@kinobi-so/renderers-js-umi`](../renderers-js-umi) as `renderJavaScriptUmiVisitor` -- [`@kinobi-so/renderers-rust`](../renderers-rust) as `renderRustVisitor` +- [`@codama/renderers-js`](../renderers-js) as `renderJavaScriptVisitor` +- [`@codama/renderers-js-umi`](../renderers-js-umi) as `renderJavaScriptUmiVisitor` +- [`@codama/renderers-rust`](../renderers-rust) as `renderRustVisitor` ```ts // node ./kinobi.mjs -import { renderJavaScriptVisitor, renderJavaScriptUmiVisitor, renderRustVisitor } from '@kinobi-so/renderers'; +import { renderJavaScriptVisitor, renderJavaScriptUmiVisitor, renderRustVisitor } from '@codama/renderers'; kinobi.accept(renderJavaScriptVisitor('clients/js/src/generated')); kinobi.accept(renderJavaScriptUmiVisitor('clients/js-umi/src/generated')); diff --git a/packages/renderers/package.json b/packages/renderers/package.json index 506a3a52a..7fe2cf28f 100644 --- a/packages/renderers/package.json +++ b/packages/renderers/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/renderers", + "name": "@codama/renderers", "version": "0.22.0", "description": "Exports all Kinobi renderers", "exports": { @@ -27,28 +27,28 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs node", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs node", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:node", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/renderers-js": "workspace:*", - "@kinobi-so/renderers-js-umi": "workspace:*", - "@kinobi-so/renderers-rust": "workspace:*" + "@codama/renderers-js": "workspace:*", + "@codama/renderers-js-umi": "workspace:*", + "@codama/renderers-rust": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers/src/index.ts b/packages/renderers/src/index.ts index 8e5032d28..8db3128e8 100644 --- a/packages/renderers/src/index.ts +++ b/packages/renderers/src/index.ts @@ -1,3 +1,3 @@ -export { renderVisitor as renderJavaScriptVisitor } from '@kinobi-so/renderers-js'; -export { renderVisitor as renderJavaScriptUmiVisitor } from '@kinobi-so/renderers-js-umi'; -export { renderVisitor as renderRustVisitor } from '@kinobi-so/renderers-rust'; +export { renderVisitor as renderJavaScriptVisitor } from '@codama/renderers-js'; +export { renderVisitor as renderJavaScriptUmiVisitor } from '@codama/renderers-js-umi'; +export { renderVisitor as renderRustVisitor } from '@codama/renderers-rust'; diff --git a/packages/renderers/tsconfig.json b/packages/renderers/tsconfig.json index 17293562b..81dc8a1cb 100644 --- a/packages/renderers/tsconfig.json +++ b/packages/renderers/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/renderers", + "display": "@codama/renderers", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/validators/README.md b/packages/validators/README.md index 010f165fa..1bc73964d 100644 --- a/packages/validators/README.md +++ b/packages/validators/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/validators.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/validators.svg?style=flat&label=%40kinobi-so%2Fvalidators -[npm-url]: https://www.npmjs.com/package/@kinobi-so/validators +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/validators.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/validators.svg?style=flat&label=%40kinobi-so%2Fvalidators +[npm-url]: https://www.npmjs.com/package/@codama/validators This package offers a set of validation rules for Kinobi IDLs to ensure that they are correctly formatted. ## Installation ```sh -pnpm install @kinobi-so/validators +pnpm install @codama/validators ``` > [!NOTE] @@ -48,7 +48,7 @@ type ValidationItem = { The `getValidationItemsVisitor` function returns a visitor that collects all validation items from a Kinobi IDL. Note that this visitor is still a work in progress and does not cover all validation rules. ```ts -import { getValidationItemsVisitor } from '@kinobi-so/validators'; +import { getValidationItemsVisitor } from '@codama/validators'; const validationItems = kinobi.accept(getValidationItemsVisitor()); ``` @@ -58,7 +58,7 @@ const validationItems = kinobi.accept(getValidationItemsVisitor()); The `throwValidatorItemsVisitor` function accepts a `Visitor` and throws an error if any validation items above a certain level are found. By default, the level is set to `'error'` but a second argument can be passed to change it. ```ts -import { throwValidatorItemsVisitor, getValidationItemsVisitor } from '@kinobi-so/validators'; +import { throwValidatorItemsVisitor, getValidationItemsVisitor } from '@codama/validators'; // Throw if any "error" items are found. kinobi.accept(throwValidatorItemsVisitor(getValidationItemsVisitor())); diff --git a/packages/validators/package.json b/packages/validators/package.json index 9ef533ff6..aff53d741 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/validators", + "name": "@codama/validators", "version": "0.22.0", "description": "Validator visitors for the Kinobi framework", "exports": { @@ -36,30 +36,30 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*" + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/visitors-core": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/validators/src/ValidationItem.ts b/packages/validators/src/ValidationItem.ts index 18962a481..cec08c5d3 100644 --- a/packages/validators/src/ValidationItem.ts +++ b/packages/validators/src/ValidationItem.ts @@ -1,5 +1,5 @@ -import { Node } from '@kinobi-so/nodes'; -import { NodeStack } from '@kinobi-so/visitors-core'; +import { Node } from '@codama/nodes'; +import { NodeStack } from '@codama/visitors-core'; export const LOG_LEVELS = ['debug', 'trace', 'info', 'warn', 'error'] as const; export type LogLevel = (typeof LOG_LEVELS)[number]; diff --git a/packages/validators/src/getValidationItemsVisitor.ts b/packages/validators/src/getValidationItemsVisitor.ts index 7c91f58c3..438ab674f 100644 --- a/packages/validators/src/getValidationItemsVisitor.ts +++ b/packages/validators/src/getValidationItemsVisitor.ts @@ -1,4 +1,4 @@ -import { camelCase, getAllInstructionArguments, isNode } from '@kinobi-so/nodes'; +import { camelCase, getAllInstructionArguments, isNode } from '@codama/nodes'; import { extendVisitor, getResolvedInstructionInputsVisitor, @@ -10,7 +10,7 @@ import { recordNodeStackVisitor, visit, Visitor, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { ValidationItem, validationItem } from './ValidationItem'; diff --git a/packages/validators/src/throwValidatorItemsVisitor.ts b/packages/validators/src/throwValidatorItemsVisitor.ts index 426466d5a..03c473f5e 100644 --- a/packages/validators/src/throwValidatorItemsVisitor.ts +++ b/packages/validators/src/throwValidatorItemsVisitor.ts @@ -1,6 +1,6 @@ -import { KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, KinobiError } from '@kinobi-so/errors'; -import { NodeKind } from '@kinobi-so/nodes'; -import { mapVisitor, Visitor } from '@kinobi-so/visitors-core'; +import { KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, KinobiError } from '@codama/errors'; +import { NodeKind } from '@codama/nodes'; +import { mapVisitor, Visitor } from '@codama/visitors-core'; import { getLevelIndex, LogLevel, ValidationItem } from './ValidationItem'; diff --git a/packages/validators/test/getValidationItemsVisitor.test.ts b/packages/validators/test/getValidationItemsVisitor.test.ts index 850c630b0..cd57309bf 100644 --- a/packages/validators/test/getValidationItemsVisitor.test.ts +++ b/packages/validators/test/getValidationItemsVisitor.test.ts @@ -1,5 +1,5 @@ -import { programNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +import { programNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode, tupleTypeNode } from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { getValidationItemsVisitor, validationItem } from '../src'; diff --git a/packages/validators/tsconfig.json b/packages/validators/tsconfig.json index e6b3e096b..88aca1d62 100644 --- a/packages/validators/tsconfig.json +++ b/packages/validators/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/validators", + "display": "@codama/validators", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/visitors-core/README.md b/packages/visitors-core/README.md index 0db001e37..db37a6c72 100644 --- a/packages/visitors-core/README.md +++ b/packages/visitors-core/README.md @@ -3,23 +3,23 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/visitors-core.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/visitors-core.svg?style=flat&label=%40kinobi-so%2Fvisitors-core -[npm-url]: https://www.npmjs.com/package/@kinobi-so/visitors-core +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/visitors-core.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/visitors-core.svg?style=flat&label=%40kinobi-so%2Fvisitors-core +[npm-url]: https://www.npmjs.com/package/@codama/visitors-core This package provides core interfaces and utilities for creating visitors for Kinobi IDLs. ## Installation ```sh -pnpm install @kinobi-so/visitors-core +pnpm install @codama/visitors-core ``` > [!NOTE] -> This package is included in the [`@kinobi-so/visitors`](../visitors) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/visitors`](../visitors) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. > > ```sh -> pnpm install @kinobi-so/visitors +> pnpm install @codama/visitors > pnpm install kinobi > ``` diff --git a/packages/visitors-core/package.json b/packages/visitors-core/package.json index a9c568f58..98c35c357 100644 --- a/packages/visitors-core/package.json +++ b/packages/visitors-core/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/visitors-core", + "name": "@codama/visitors-core", "version": "0.22.0", "description": "Core visitors for the Kinobi framework", "exports": { @@ -36,21 +36,21 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", "json-stable-stringify": "^1.1.1" }, "devDependencies": { @@ -59,10 +59,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors-core/src/LinkableDictionary.ts b/packages/visitors-core/src/LinkableDictionary.ts index 7c22f4552..7b4e3933f 100644 --- a/packages/visitors-core/src/LinkableDictionary.ts +++ b/packages/visitors-core/src/LinkableDictionary.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; import { AccountLinkNode, AccountNode, @@ -17,7 +17,7 @@ import { PdaNode, ProgramLinkNode, ProgramNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { NodeStack } from './NodeStack'; diff --git a/packages/visitors-core/src/NodeSelector.ts b/packages/visitors-core/src/NodeSelector.ts index 50fba159e..b282bb803 100644 --- a/packages/visitors-core/src/NodeSelector.ts +++ b/packages/visitors-core/src/NodeSelector.ts @@ -1,4 +1,4 @@ -import { camelCase, CamelCaseString, Node } from '@kinobi-so/nodes'; +import { camelCase, CamelCaseString, Node } from '@codama/nodes'; import type { NodeStack } from './NodeStack'; diff --git a/packages/visitors-core/src/NodeStack.ts b/packages/visitors-core/src/NodeStack.ts index 31c56f063..ba76f3f92 100644 --- a/packages/visitors-core/src/NodeStack.ts +++ b/packages/visitors-core/src/NodeStack.ts @@ -1,4 +1,4 @@ -import { GetNodeFromKind, InstructionNode, isNode, Node, NodeKind, ProgramNode } from '@kinobi-so/nodes'; +import { GetNodeFromKind, InstructionNode, isNode, Node, NodeKind, ProgramNode } from '@codama/nodes'; export class NodeStack { private readonly stack: Node[]; diff --git a/packages/visitors-core/src/bottomUpTransformerVisitor.ts b/packages/visitors-core/src/bottomUpTransformerVisitor.ts index f0a863d55..e123ae093 100644 --- a/packages/visitors-core/src/bottomUpTransformerVisitor.ts +++ b/packages/visitors-core/src/bottomUpTransformerVisitor.ts @@ -1,4 +1,4 @@ -import { Node, NodeKind } from '@kinobi-so/nodes'; +import { Node, NodeKind } from '@codama/nodes'; import { identityVisitor } from './identityVisitor'; import { interceptVisitor } from './interceptVisitor'; diff --git a/packages/visitors-core/src/consoleLogVisitor.ts b/packages/visitors-core/src/consoleLogVisitor.ts index e08941ffc..d6f2cd4d7 100644 --- a/packages/visitors-core/src/consoleLogVisitor.ts +++ b/packages/visitors-core/src/consoleLogVisitor.ts @@ -1,4 +1,4 @@ -import { NodeKind } from '@kinobi-so/nodes'; +import { NodeKind } from '@codama/nodes'; import { mapVisitor } from './mapVisitor'; import { Visitor } from './visitor'; diff --git a/packages/visitors-core/src/deleteNodesVisitor.ts b/packages/visitors-core/src/deleteNodesVisitor.ts index 0fbaae993..636d96f47 100644 --- a/packages/visitors-core/src/deleteNodesVisitor.ts +++ b/packages/visitors-core/src/deleteNodesVisitor.ts @@ -1,4 +1,4 @@ -import { NodeKind } from '@kinobi-so/nodes'; +import { NodeKind } from '@codama/nodes'; import { NodeSelector } from './NodeSelector'; import { TopDownNodeTransformerWithSelector, topDownTransformerVisitor } from './topDownTransformerVisitor'; diff --git a/packages/visitors-core/src/extendVisitor.ts b/packages/visitors-core/src/extendVisitor.ts index f0f513b8c..cd48e7f8b 100644 --- a/packages/visitors-core/src/extendVisitor.ts +++ b/packages/visitors-core/src/extendVisitor.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@kinobi-so/errors'; -import { GetNodeFromKind, Node, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { GetNodeFromKind, Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/getByteSizeVisitor.ts b/packages/visitors-core/src/getByteSizeVisitor.ts index f0ad59fd5..0c5e84d2a 100644 --- a/packages/visitors-core/src/getByteSizeVisitor.ts +++ b/packages/visitors-core/src/getByteSizeVisitor.ts @@ -1,4 +1,4 @@ -import { isNode, isScalarEnum, REGISTERED_TYPE_NODE_KINDS, RegisteredTypeNode } from '@kinobi-so/nodes'; +import { isNode, isScalarEnum, REGISTERED_TYPE_NODE_KINDS, RegisteredTypeNode } from '@codama/nodes'; import { LinkableDictionary } from './LinkableDictionary'; import { mergeVisitor } from './mergeVisitor'; diff --git a/packages/visitors-core/src/getDebugStringVisitor.ts b/packages/visitors-core/src/getDebugStringVisitor.ts index 521cec3ba..f90c377a9 100644 --- a/packages/visitors-core/src/getDebugStringVisitor.ts +++ b/packages/visitors-core/src/getDebugStringVisitor.ts @@ -1,4 +1,4 @@ -import { Node } from '@kinobi-so/nodes'; +import { Node } from '@codama/nodes'; import { interceptVisitor } from './interceptVisitor'; import { mergeVisitor } from './mergeVisitor'; diff --git a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts index 202674e94..4101b0448 100644 --- a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts +++ b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts @@ -4,7 +4,7 @@ import { KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, KinobiError, -} from '@kinobi-so/errors'; +} from '@codama/errors'; import { AccountValueNode, accountValueNode, @@ -18,7 +18,7 @@ import { InstructionNode, isNode, VALUE_NODES, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { singleNodeVisitor } from './singleNodeVisitor'; import { Visitor } from './visitor'; diff --git a/packages/visitors-core/src/identityVisitor.ts b/packages/visitors-core/src/identityVisitor.ts index 333769f5f..b236e9216 100644 --- a/packages/visitors-core/src/identityVisitor.ts +++ b/packages/visitors-core/src/identityVisitor.ts @@ -70,7 +70,7 @@ import { VALUE_NODES, variablePdaSeedNode, zeroableOptionTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { staticVisitor } from './staticVisitor'; import { visit as baseVisit, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/interceptFirstVisitVisitor.ts b/packages/visitors-core/src/interceptFirstVisitVisitor.ts index b3898899b..79c3769d5 100644 --- a/packages/visitors-core/src/interceptFirstVisitVisitor.ts +++ b/packages/visitors-core/src/interceptFirstVisitVisitor.ts @@ -1,4 +1,4 @@ -import type { NodeKind } from '@kinobi-so/nodes'; +import type { NodeKind } from '@codama/nodes'; import { interceptVisitor, VisitorInterceptor } from './interceptVisitor'; import { Visitor } from './visitor'; diff --git a/packages/visitors-core/src/interceptVisitor.ts b/packages/visitors-core/src/interceptVisitor.ts index fbb50eb86..a0d44b684 100644 --- a/packages/visitors-core/src/interceptVisitor.ts +++ b/packages/visitors-core/src/interceptVisitor.ts @@ -1,4 +1,4 @@ -import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/mapVisitor.ts b/packages/visitors-core/src/mapVisitor.ts index e090a9ff4..843de8325 100644 --- a/packages/visitors-core/src/mapVisitor.ts +++ b/packages/visitors-core/src/mapVisitor.ts @@ -1,4 +1,4 @@ -import { GetNodeFromKind, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { GetNodeFromKind, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/mergeVisitor.ts b/packages/visitors-core/src/mergeVisitor.ts index a30ad4ee9..b88aae925 100644 --- a/packages/visitors-core/src/mergeVisitor.ts +++ b/packages/visitors-core/src/mergeVisitor.ts @@ -1,4 +1,4 @@ -import { getAllPrograms, Node, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { getAllPrograms, Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { staticVisitor } from './staticVisitor'; import { visit as baseVisit, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/nonNullableIdentityVisitor.ts b/packages/visitors-core/src/nonNullableIdentityVisitor.ts index 0c6935974..6e473c9b9 100644 --- a/packages/visitors-core/src/nonNullableIdentityVisitor.ts +++ b/packages/visitors-core/src/nonNullableIdentityVisitor.ts @@ -1,4 +1,4 @@ -import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { identityVisitor } from './identityVisitor'; import { Visitor } from './visitor'; diff --git a/packages/visitors-core/src/recordLinkablesVisitor.ts b/packages/visitors-core/src/recordLinkablesVisitor.ts index d8971891d..69babef4a 100644 --- a/packages/visitors-core/src/recordLinkablesVisitor.ts +++ b/packages/visitors-core/src/recordLinkablesVisitor.ts @@ -1,4 +1,4 @@ -import { isNode, type NodeKind } from '@kinobi-so/nodes'; +import { isNode, type NodeKind } from '@codama/nodes'; import { interceptFirstVisitVisitor } from './interceptFirstVisitVisitor'; import { interceptVisitor } from './interceptVisitor'; diff --git a/packages/visitors-core/src/recordNodeStackVisitor.ts b/packages/visitors-core/src/recordNodeStackVisitor.ts index 44d43218d..a0fb39376 100644 --- a/packages/visitors-core/src/recordNodeStackVisitor.ts +++ b/packages/visitors-core/src/recordNodeStackVisitor.ts @@ -1,4 +1,4 @@ -import { NodeKind } from '@kinobi-so/nodes'; +import { NodeKind } from '@codama/nodes'; import { interceptVisitor } from './interceptVisitor'; import { NodeStack } from './NodeStack'; diff --git a/packages/visitors-core/src/removeDocsVisitor.ts b/packages/visitors-core/src/removeDocsVisitor.ts index 47a93ea5e..525abc0b9 100644 --- a/packages/visitors-core/src/removeDocsVisitor.ts +++ b/packages/visitors-core/src/removeDocsVisitor.ts @@ -1,4 +1,4 @@ -import { NodeKind } from '@kinobi-so/nodes'; +import { NodeKind } from '@codama/nodes'; import { interceptVisitor } from './interceptVisitor'; import { nonNullableIdentityVisitor } from './nonNullableIdentityVisitor'; diff --git a/packages/visitors-core/src/singleNodeVisitor.ts b/packages/visitors-core/src/singleNodeVisitor.ts index 79b6d9b0d..037f632d9 100644 --- a/packages/visitors-core/src/singleNodeVisitor.ts +++ b/packages/visitors-core/src/singleNodeVisitor.ts @@ -1,4 +1,4 @@ -import { GetNodeFromKind, NodeKind, RootNode } from '@kinobi-so/nodes'; +import { GetNodeFromKind, NodeKind, RootNode } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/staticVisitor.ts b/packages/visitors-core/src/staticVisitor.ts index 59dea5d83..c9e03c710 100644 --- a/packages/visitors-core/src/staticVisitor.ts +++ b/packages/visitors-core/src/staticVisitor.ts @@ -1,4 +1,4 @@ -import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/tapVisitor.ts b/packages/visitors-core/src/tapVisitor.ts index b27da6ef3..4337e404b 100644 --- a/packages/visitors-core/src/tapVisitor.ts +++ b/packages/visitors-core/src/tapVisitor.ts @@ -1,4 +1,4 @@ -import { GetNodeFromKind, NodeKind } from '@kinobi-so/nodes'; +import { GetNodeFromKind, NodeKind } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; diff --git a/packages/visitors-core/src/topDownTransformerVisitor.ts b/packages/visitors-core/src/topDownTransformerVisitor.ts index 36fa7c91e..f31de4db0 100644 --- a/packages/visitors-core/src/topDownTransformerVisitor.ts +++ b/packages/visitors-core/src/topDownTransformerVisitor.ts @@ -1,4 +1,4 @@ -import { Node, NodeKind } from '@kinobi-so/nodes'; +import { Node, NodeKind } from '@codama/nodes'; import { identityVisitor } from './identityVisitor'; import { interceptVisitor } from './interceptVisitor'; diff --git a/packages/visitors-core/src/visitor.ts b/packages/visitors-core/src/visitor.ts index 981eb2778..767d99778 100644 --- a/packages/visitors-core/src/visitor.ts +++ b/packages/visitors-core/src/visitor.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError } from '@kinobi-so/errors'; -import { type GetNodeFromKind, type Node, type NodeKind, pascalCase, REGISTERED_NODE_KINDS } from '@kinobi-so/nodes'; +import { KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError } from '@codama/errors'; +import { type GetNodeFromKind, type Node, type NodeKind, pascalCase, REGISTERED_NODE_KINDS } from '@codama/nodes'; export type Visitor = { [K in TNodeKind as GetVisitorFunctionName]: (node: GetNodeFromKind) => TReturn; diff --git a/packages/visitors-core/src/voidVisitor.ts b/packages/visitors-core/src/voidVisitor.ts index 7a575211c..96f705579 100644 --- a/packages/visitors-core/src/voidVisitor.ts +++ b/packages/visitors-core/src/voidVisitor.ts @@ -1,4 +1,4 @@ -import type { NodeKind } from '@kinobi-so/nodes'; +import type { NodeKind } from '@codama/nodes'; import { mergeVisitor } from './mergeVisitor'; import { Visitor } from './visitor'; diff --git a/packages/visitors-core/test/NodeSelector.test.ts b/packages/visitors-core/test/NodeSelector.test.ts index 320e6cd5f..8ad164411 100644 --- a/packages/visitors-core/test/NodeSelector.test.ts +++ b/packages/visitors-core/test/NodeSelector.test.ts @@ -19,7 +19,7 @@ import { rootNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { diff --git a/packages/visitors-core/test/bottomUpTransformerVisitor.test.ts b/packages/visitors-core/test/bottomUpTransformerVisitor.test.ts index 95b741727..56de6780d 100644 --- a/packages/visitors-core/test/bottomUpTransformerVisitor.test.ts +++ b/packages/visitors-core/test/bottomUpTransformerVisitor.test.ts @@ -1,4 +1,4 @@ -import { isNode, numberTypeNode, publicKeyTypeNode, stringTypeNode, tupleTypeNode, TYPE_NODES } from '@kinobi-so/nodes'; +import { isNode, numberTypeNode, publicKeyTypeNode, stringTypeNode, tupleTypeNode, TYPE_NODES } from '@codama/nodes'; import { expect, test } from 'vitest'; import { bottomUpTransformerVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/deleteNodesVisitor.test.ts b/packages/visitors-core/test/deleteNodesVisitor.test.ts index eba1f7067..297b9e62c 100644 --- a/packages/visitors-core/test/deleteNodesVisitor.test.ts +++ b/packages/visitors-core/test/deleteNodesVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { deleteNodesVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/extendVisitor.test.ts b/packages/visitors-core/test/extendVisitor.test.ts index 01975590f..9007daef1 100644 --- a/packages/visitors-core/test/extendVisitor.test.ts +++ b/packages/visitors-core/test/extendVisitor.test.ts @@ -1,5 +1,5 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@kinobi-so/errors'; -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { extendVisitor, mergeVisitor, visit, voidVisitor } from '../src'; diff --git a/packages/visitors-core/test/getByteSizeVisitor.test.ts b/packages/visitors-core/test/getByteSizeVisitor.test.ts index f40482a58..c7c9fed9d 100644 --- a/packages/visitors-core/test/getByteSizeVisitor.test.ts +++ b/packages/visitors-core/test/getByteSizeVisitor.test.ts @@ -12,7 +12,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { getByteSizeVisitor, LinkableDictionary, visit, Visitor } from '../src'; diff --git a/packages/visitors-core/test/getDebugStringVisitor.test.ts b/packages/visitors-core/test/getDebugStringVisitor.test.ts index daf0308ee..b522e29b1 100644 --- a/packages/visitors-core/test/getDebugStringVisitor.test.ts +++ b/packages/visitors-core/test/getDebugStringVisitor.test.ts @@ -9,7 +9,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { getDebugStringVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/getResolvedInstructionInputsVisitor.test.ts b/packages/visitors-core/test/getResolvedInstructionInputsVisitor.test.ts index 2a4728121..86af1443b 100644 --- a/packages/visitors-core/test/getResolvedInstructionInputsVisitor.test.ts +++ b/packages/visitors-core/test/getResolvedInstructionInputsVisitor.test.ts @@ -5,7 +5,7 @@ import { instructionNode, numberTypeNode, publicKeyTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { getResolvedInstructionInputsVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/getUniqueHashStringVisitor.test.ts b/packages/visitors-core/test/getUniqueHashStringVisitor.test.ts index 714f5188c..0109a77ea 100644 --- a/packages/visitors-core/test/getUniqueHashStringVisitor.test.ts +++ b/packages/visitors-core/test/getUniqueHashStringVisitor.test.ts @@ -1,10 +1,4 @@ -import { - numberTypeNode, - publicKeyTypeNode, - structFieldTypeNode, - structTypeNode, - tupleTypeNode, -} from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { getUniqueHashStringVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/identityVisitor.test.ts b/packages/visitors-core/test/identityVisitor.test.ts index 2487f5220..34e8a0867 100644 --- a/packages/visitors-core/test/identityVisitor.test.ts +++ b/packages/visitors-core/test/identityVisitor.test.ts @@ -1,4 +1,4 @@ -import { assertIsNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { assertIsNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { identityVisitor, interceptVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/interceptFirstVisitVisitor.test.ts b/packages/visitors-core/test/interceptFirstVisitVisitor.test.ts index 208a5ee4e..27de14973 100644 --- a/packages/visitors-core/test/interceptFirstVisitVisitor.test.ts +++ b/packages/visitors-core/test/interceptFirstVisitVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { extendVisitor, interceptFirstVisitVisitor, visit, voidVisitor } from '../src'; diff --git a/packages/visitors-core/test/interceptVisitor.test.ts b/packages/visitors-core/test/interceptVisitor.test.ts index a8fc8ca01..9f0f11fdd 100644 --- a/packages/visitors-core/test/interceptVisitor.test.ts +++ b/packages/visitors-core/test/interceptVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { interceptVisitor, visit, voidVisitor } from '../src'; diff --git a/packages/visitors-core/test/mapVisitor.test.ts b/packages/visitors-core/test/mapVisitor.test.ts index 3cf6176cc..aef5c4144 100644 --- a/packages/visitors-core/test/mapVisitor.test.ts +++ b/packages/visitors-core/test/mapVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { mapVisitor, mergeVisitor, staticVisitor, visit, Visitor } from '../src'; diff --git a/packages/visitors-core/test/mergeVisitor.test.ts b/packages/visitors-core/test/mergeVisitor.test.ts index 9115090b8..e792cf7e4 100644 --- a/packages/visitors-core/test/mergeVisitor.test.ts +++ b/packages/visitors-core/test/mergeVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { mergeVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/nodes/AccountNode.test.ts b/packages/visitors-core/test/nodes/AccountNode.test.ts index e65554c02..a8e72ad6f 100644 --- a/packages/visitors-core/test/nodes/AccountNode.test.ts +++ b/packages/visitors-core/test/nodes/AccountNode.test.ts @@ -6,7 +6,7 @@ import { sizeDiscriminatorNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/DefinedTypeNode.test.ts b/packages/visitors-core/test/nodes/DefinedTypeNode.test.ts index 431724bbb..57989ad9c 100644 --- a/packages/visitors-core/test/nodes/DefinedTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/DefinedTypeNode.test.ts @@ -5,7 +5,7 @@ import { stringTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/ErrorNode.test.ts b/packages/visitors-core/test/nodes/ErrorNode.test.ts index 87e15e482..718151f68 100644 --- a/packages/visitors-core/test/nodes/ErrorNode.test.ts +++ b/packages/visitors-core/test/nodes/ErrorNode.test.ts @@ -1,4 +1,4 @@ -import { errorNode } from '@kinobi-so/nodes'; +import { errorNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/InstructionAccountNode.test.ts b/packages/visitors-core/test/nodes/InstructionAccountNode.test.ts index b73257667..67fb582fa 100644 --- a/packages/visitors-core/test/nodes/InstructionAccountNode.test.ts +++ b/packages/visitors-core/test/nodes/InstructionAccountNode.test.ts @@ -1,4 +1,4 @@ -import { accountValueNode, instructionAccountNode } from '@kinobi-so/nodes'; +import { accountValueNode, instructionAccountNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/InstructionArgumentNode.test.ts b/packages/visitors-core/test/nodes/InstructionArgumentNode.test.ts index 72583ddeb..c2b973220 100644 --- a/packages/visitors-core/test/nodes/InstructionArgumentNode.test.ts +++ b/packages/visitors-core/test/nodes/InstructionArgumentNode.test.ts @@ -1,4 +1,4 @@ -import { instructionArgumentNode, numberTypeNode, numberValueNode } from '@kinobi-so/nodes'; +import { instructionArgumentNode, numberTypeNode, numberValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/InstructionByteDeltaNode.test.ts b/packages/visitors-core/test/nodes/InstructionByteDeltaNode.test.ts index 7c31bbe8c..c3a51214b 100644 --- a/packages/visitors-core/test/nodes/InstructionByteDeltaNode.test.ts +++ b/packages/visitors-core/test/nodes/InstructionByteDeltaNode.test.ts @@ -1,4 +1,4 @@ -import { instructionByteDeltaNode, numberValueNode } from '@kinobi-so/nodes'; +import { instructionByteDeltaNode, numberValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/InstructionNode.test.ts b/packages/visitors-core/test/nodes/InstructionNode.test.ts index 1ddb52c42..60ee83359 100644 --- a/packages/visitors-core/test/nodes/InstructionNode.test.ts +++ b/packages/visitors-core/test/nodes/InstructionNode.test.ts @@ -9,7 +9,7 @@ import { numberValueNode, publicKeyTypeNode, resolverValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/InstructionRemainingAccountsNode.test.ts b/packages/visitors-core/test/nodes/InstructionRemainingAccountsNode.test.ts index ffa8692a5..1ef699a57 100644 --- a/packages/visitors-core/test/nodes/InstructionRemainingAccountsNode.test.ts +++ b/packages/visitors-core/test/nodes/InstructionRemainingAccountsNode.test.ts @@ -1,4 +1,4 @@ -import { argumentValueNode, instructionRemainingAccountsNode } from '@kinobi-so/nodes'; +import { argumentValueNode, instructionRemainingAccountsNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/PdaNode.test.ts b/packages/visitors-core/test/nodes/PdaNode.test.ts index fbbee794e..fc42d0747 100644 --- a/packages/visitors-core/test/nodes/PdaNode.test.ts +++ b/packages/visitors-core/test/nodes/PdaNode.test.ts @@ -5,7 +5,7 @@ import { pdaNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/ProgramNode.test.ts b/packages/visitors-core/test/nodes/ProgramNode.test.ts index 93e307b59..5cd0c5876 100644 --- a/packages/visitors-core/test/nodes/ProgramNode.test.ts +++ b/packages/visitors-core/test/nodes/ProgramNode.test.ts @@ -7,7 +7,7 @@ import { pdaNode, programNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/RootNode.test.ts b/packages/visitors-core/test/nodes/RootNode.test.ts index 780247eb3..7a6ffbb24 100644 --- a/packages/visitors-core/test/nodes/RootNode.test.ts +++ b/packages/visitors-core/test/nodes/RootNode.test.ts @@ -1,4 +1,4 @@ -import { programNode, rootNode } from '@kinobi-so/nodes'; +import { programNode, rootNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/_setup.ts b/packages/visitors-core/test/nodes/_setup.ts index dade7b4a4..bb6c487d6 100644 --- a/packages/visitors-core/test/nodes/_setup.ts +++ b/packages/visitors-core/test/nodes/_setup.ts @@ -1,4 +1,4 @@ -import type { Node } from '@kinobi-so/nodes'; +import type { Node } from '@codama/nodes'; import { expect } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/AccountBumpValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/AccountBumpValueNode.test.ts index a4518302e..f3f6ccb89 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/AccountBumpValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/AccountBumpValueNode.test.ts @@ -1,4 +1,4 @@ -import { accountBumpValueNode } from '@kinobi-so/nodes'; +import { accountBumpValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/AccountValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/AccountValueNode.test.ts index b902f4405..5a7f555f7 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/AccountValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/AccountValueNode.test.ts @@ -1,4 +1,4 @@ -import { accountValueNode } from '@kinobi-so/nodes'; +import { accountValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/ArgumentValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/ArgumentValueNode.test.ts index 6f43ad5d4..4b07dd429 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/ArgumentValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/ArgumentValueNode.test.ts @@ -1,4 +1,4 @@ -import { argumentValueNode } from '@kinobi-so/nodes'; +import { argumentValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/ConditionalValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/ConditionalValueNode.test.ts index eb31e3290..e8774c843 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/ConditionalValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/ConditionalValueNode.test.ts @@ -4,7 +4,7 @@ import { conditionalValueNode, enumValueNode, programIdValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/IdentityValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/IdentityValueNode.test.ts index 8bd82ecd3..b89463f5b 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/IdentityValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/IdentityValueNode.test.ts @@ -1,4 +1,4 @@ -import { identityValueNode } from '@kinobi-so/nodes'; +import { identityValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/PayerValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/PayerValueNode.test.ts index d7d7c5355..d54e48b8c 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/PayerValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/PayerValueNode.test.ts @@ -1,4 +1,4 @@ -import { payerValueNode } from '@kinobi-so/nodes'; +import { payerValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/PdaSeedValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/PdaSeedValueNode.test.ts index 7111308d7..379206af4 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/PdaSeedValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/PdaSeedValueNode.test.ts @@ -1,4 +1,4 @@ -import { accountValueNode, pdaSeedValueNode } from '@kinobi-so/nodes'; +import { accountValueNode, pdaSeedValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/PdaValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/PdaValueNode.test.ts index af84c4ad9..f7225156d 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/PdaValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/PdaValueNode.test.ts @@ -8,7 +8,7 @@ import { publicKeyTypeNode, publicKeyValueNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/ProgramIdValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/ProgramIdValueNode.test.ts index 49f3560ee..bf3ca3f89 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/ProgramIdValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/ProgramIdValueNode.test.ts @@ -1,4 +1,4 @@ -import { programIdValueNode } from '@kinobi-so/nodes'; +import { programIdValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/contextualValueNodes/ResolverValueNode.test.ts b/packages/visitors-core/test/nodes/contextualValueNodes/ResolverValueNode.test.ts index 213f072bc..0de2f4b16 100644 --- a/packages/visitors-core/test/nodes/contextualValueNodes/ResolverValueNode.test.ts +++ b/packages/visitors-core/test/nodes/contextualValueNodes/ResolverValueNode.test.ts @@ -1,4 +1,4 @@ -import { accountValueNode, argumentValueNode, resolverValueNode } from '@kinobi-so/nodes'; +import { accountValueNode, argumentValueNode, resolverValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/discriminatorNodes/ConstantDiscriminatorNode.test.ts b/packages/visitors-core/test/nodes/discriminatorNodes/ConstantDiscriminatorNode.test.ts index 95ddea2d7..f4c565390 100644 --- a/packages/visitors-core/test/nodes/discriminatorNodes/ConstantDiscriminatorNode.test.ts +++ b/packages/visitors-core/test/nodes/discriminatorNodes/ConstantDiscriminatorNode.test.ts @@ -1,4 +1,4 @@ -import { constantDiscriminatorNode, constantValueNodeFromBytes } from '@kinobi-so/nodes'; +import { constantDiscriminatorNode, constantValueNodeFromBytes } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/discriminatorNodes/FieldDiscriminatorNode.test.ts b/packages/visitors-core/test/nodes/discriminatorNodes/FieldDiscriminatorNode.test.ts index 8a936a7fb..899e81aff 100644 --- a/packages/visitors-core/test/nodes/discriminatorNodes/FieldDiscriminatorNode.test.ts +++ b/packages/visitors-core/test/nodes/discriminatorNodes/FieldDiscriminatorNode.test.ts @@ -1,4 +1,4 @@ -import { fieldDiscriminatorNode } from '@kinobi-so/nodes'; +import { fieldDiscriminatorNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/discriminatorNodes/SizeDiscriminatorNode.test.ts b/packages/visitors-core/test/nodes/discriminatorNodes/SizeDiscriminatorNode.test.ts index f8f5b5f1b..e343b5085 100644 --- a/packages/visitors-core/test/nodes/discriminatorNodes/SizeDiscriminatorNode.test.ts +++ b/packages/visitors-core/test/nodes/discriminatorNodes/SizeDiscriminatorNode.test.ts @@ -1,4 +1,4 @@ -import { sizeDiscriminatorNode } from '@kinobi-so/nodes'; +import { sizeDiscriminatorNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/AccountLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/AccountLinkNode.test.ts index 90e4cc1a2..7519180db 100644 --- a/packages/visitors-core/test/nodes/linkNodes/AccountLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/AccountLinkNode.test.ts @@ -1,4 +1,4 @@ -import { accountLinkNode } from '@kinobi-so/nodes'; +import { accountLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/DefinedTypeLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/DefinedTypeLinkNode.test.ts index 4bd3dcded..feb2d3ffe 100644 --- a/packages/visitors-core/test/nodes/linkNodes/DefinedTypeLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/DefinedTypeLinkNode.test.ts @@ -1,4 +1,4 @@ -import { definedTypeLinkNode } from '@kinobi-so/nodes'; +import { definedTypeLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/InstructionAccountLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/InstructionAccountLinkNode.test.ts index a15034ff9..69921396f 100644 --- a/packages/visitors-core/test/nodes/linkNodes/InstructionAccountLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/InstructionAccountLinkNode.test.ts @@ -1,4 +1,4 @@ -import { instructionAccountLinkNode, instructionLinkNode } from '@kinobi-so/nodes'; +import { instructionAccountLinkNode, instructionLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/InstructionArgumentLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/InstructionArgumentLinkNode.test.ts index 8c7b13874..1cdc14fac 100644 --- a/packages/visitors-core/test/nodes/linkNodes/InstructionArgumentLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/InstructionArgumentLinkNode.test.ts @@ -1,4 +1,4 @@ -import { instructionArgumentLinkNode, instructionLinkNode } from '@kinobi-so/nodes'; +import { instructionArgumentLinkNode, instructionLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/InstructionLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/InstructionLinkNode.test.ts index 5f1daeb5b..dc61d8345 100644 --- a/packages/visitors-core/test/nodes/linkNodes/InstructionLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/InstructionLinkNode.test.ts @@ -1,4 +1,4 @@ -import { instructionLinkNode } from '@kinobi-so/nodes'; +import { instructionLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/PdaLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/PdaLinkNode.test.ts index ffc3237a9..b0a7f8a83 100644 --- a/packages/visitors-core/test/nodes/linkNodes/PdaLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/PdaLinkNode.test.ts @@ -1,4 +1,4 @@ -import { pdaLinkNode } from '@kinobi-so/nodes'; +import { pdaLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/linkNodes/ProgramLinkNode.test.ts b/packages/visitors-core/test/nodes/linkNodes/ProgramLinkNode.test.ts index ed06cf79c..86a827fc2 100644 --- a/packages/visitors-core/test/nodes/linkNodes/ProgramLinkNode.test.ts +++ b/packages/visitors-core/test/nodes/linkNodes/ProgramLinkNode.test.ts @@ -1,4 +1,4 @@ -import { programLinkNode } from '@kinobi-so/nodes'; +import { programLinkNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/pdaSeedNodes/ConstantPdaSeedNode.test.ts b/packages/visitors-core/test/nodes/pdaSeedNodes/ConstantPdaSeedNode.test.ts index 363fe3852..d0ce42ffc 100644 --- a/packages/visitors-core/test/nodes/pdaSeedNodes/ConstantPdaSeedNode.test.ts +++ b/packages/visitors-core/test/nodes/pdaSeedNodes/ConstantPdaSeedNode.test.ts @@ -1,4 +1,4 @@ -import { constantPdaSeedNode, numberTypeNode, numberValueNode } from '@kinobi-so/nodes'; +import { constantPdaSeedNode, numberTypeNode, numberValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/pdaSeedNodes/VariablePdaSeedNode.test.ts b/packages/visitors-core/test/nodes/pdaSeedNodes/VariablePdaSeedNode.test.ts index fd4ac009e..afad320c9 100644 --- a/packages/visitors-core/test/nodes/pdaSeedNodes/VariablePdaSeedNode.test.ts +++ b/packages/visitors-core/test/nodes/pdaSeedNodes/VariablePdaSeedNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode, variablePdaSeedNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode, variablePdaSeedNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/sizeNodes/FixedSizeNode.test.ts b/packages/visitors-core/test/nodes/sizeNodes/FixedSizeNode.test.ts index 496194db0..1b49e1bf6 100644 --- a/packages/visitors-core/test/nodes/sizeNodes/FixedSizeNode.test.ts +++ b/packages/visitors-core/test/nodes/sizeNodes/FixedSizeNode.test.ts @@ -1,4 +1,4 @@ -import { fixedCountNode } from '@kinobi-so/nodes'; +import { fixedCountNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/sizeNodes/PrefixedSizeNode.test.ts b/packages/visitors-core/test/nodes/sizeNodes/PrefixedSizeNode.test.ts index cae0d0f05..0f6063b0d 100644 --- a/packages/visitors-core/test/nodes/sizeNodes/PrefixedSizeNode.test.ts +++ b/packages/visitors-core/test/nodes/sizeNodes/PrefixedSizeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, prefixedCountNode } from '@kinobi-so/nodes'; +import { numberTypeNode, prefixedCountNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/sizeNodes/RemainderSizeNode.test.ts b/packages/visitors-core/test/nodes/sizeNodes/RemainderSizeNode.test.ts index 93936845d..c320b1379 100644 --- a/packages/visitors-core/test/nodes/sizeNodes/RemainderSizeNode.test.ts +++ b/packages/visitors-core/test/nodes/sizeNodes/RemainderSizeNode.test.ts @@ -1,4 +1,4 @@ -import { remainderCountNode } from '@kinobi-so/nodes'; +import { remainderCountNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/AmountTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/AmountTypeNode.test.ts index 91e4a92b9..d3bc5a398 100644 --- a/packages/visitors-core/test/nodes/typeNodes/AmountTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/AmountTypeNode.test.ts @@ -1,4 +1,4 @@ -import { amountTypeNode, numberTypeNode } from '@kinobi-so/nodes'; +import { amountTypeNode, numberTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/ArrayTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/ArrayTypeNode.test.ts index 3785789dd..877974e35 100644 --- a/packages/visitors-core/test/nodes/typeNodes/ArrayTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/ArrayTypeNode.test.ts @@ -1,4 +1,4 @@ -import { arrayTypeNode, numberTypeNode, prefixedCountNode, publicKeyTypeNode } from '@kinobi-so/nodes'; +import { arrayTypeNode, numberTypeNode, prefixedCountNode, publicKeyTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/BooleanTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/BooleanTypeNode.test.ts index 1c6666fa8..6d55ba0c1 100644 --- a/packages/visitors-core/test/nodes/typeNodes/BooleanTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/BooleanTypeNode.test.ts @@ -1,4 +1,4 @@ -import { booleanTypeNode, numberTypeNode } from '@kinobi-so/nodes'; +import { booleanTypeNode, numberTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/BytesTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/BytesTypeNode.test.ts index 580ffa001..948b5dd83 100644 --- a/packages/visitors-core/test/nodes/typeNodes/BytesTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/BytesTypeNode.test.ts @@ -1,4 +1,4 @@ -import { bytesTypeNode } from '@kinobi-so/nodes'; +import { bytesTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/DateTimeTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/DateTimeTypeNode.test.ts index 7ca4a9996..01bf51ff5 100644 --- a/packages/visitors-core/test/nodes/typeNodes/DateTimeTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/DateTimeTypeNode.test.ts @@ -1,4 +1,4 @@ -import { dateTimeTypeNode, numberTypeNode } from '@kinobi-so/nodes'; +import { dateTimeTypeNode, numberTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/EnumEmptyVariantTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/EnumEmptyVariantTypeNode.test.ts index fc0ca3a2c..c8f8bd0ee 100644 --- a/packages/visitors-core/test/nodes/typeNodes/EnumEmptyVariantTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/EnumEmptyVariantTypeNode.test.ts @@ -1,4 +1,4 @@ -import { enumEmptyVariantTypeNode } from '@kinobi-so/nodes'; +import { enumEmptyVariantTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/EnumStructVariantTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/EnumStructVariantTypeNode.test.ts index 5fd67c500..22e5b66cf 100644 --- a/packages/visitors-core/test/nodes/typeNodes/EnumStructVariantTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/EnumStructVariantTypeNode.test.ts @@ -4,7 +4,7 @@ import { numberTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/EnumTupleVariantTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/EnumTupleVariantTypeNode.test.ts index dadecf5a1..c970cc9ec 100644 --- a/packages/visitors-core/test/nodes/typeNodes/EnumTupleVariantTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/EnumTupleVariantTypeNode.test.ts @@ -1,4 +1,4 @@ -import { enumEmptyVariantTypeNode, enumTupleVariantTypeNode, numberTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { enumEmptyVariantTypeNode, enumTupleVariantTypeNode, numberTypeNode, tupleTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/EnumTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/EnumTypeNode.test.ts index 0c8bfc5b8..8d145d297 100644 --- a/packages/visitors-core/test/nodes/typeNodes/EnumTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/EnumTypeNode.test.ts @@ -9,7 +9,7 @@ import { structFieldTypeNode, structTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/FixedSizeTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/FixedSizeTypeNode.test.ts index 6354017d0..947de8387 100644 --- a/packages/visitors-core/test/nodes/typeNodes/FixedSizeTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/FixedSizeTypeNode.test.ts @@ -1,4 +1,4 @@ -import { fixedSizeTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { fixedSizeTypeNode, stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/HiddenPrefixTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/HiddenPrefixTypeNode.test.ts index 794dab782..14c39469f 100644 --- a/packages/visitors-core/test/nodes/typeNodes/HiddenPrefixTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/HiddenPrefixTypeNode.test.ts @@ -3,7 +3,7 @@ import { constantValueNodeFromString, hiddenPrefixTypeNode, numberTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/HiddenSuffixTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/HiddenSuffixTypeNode.test.ts index 7f559110a..f892aab70 100644 --- a/packages/visitors-core/test/nodes/typeNodes/HiddenSuffixTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/HiddenSuffixTypeNode.test.ts @@ -3,7 +3,7 @@ import { constantValueNodeFromString, hiddenSuffixTypeNode, numberTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/MapTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/MapTypeNode.test.ts index b47c00cb6..6f2ad5cbd 100644 --- a/packages/visitors-core/test/nodes/typeNodes/MapTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/MapTypeNode.test.ts @@ -5,7 +5,7 @@ import { prefixedCountNode, publicKeyTypeNode, stringTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/NumberTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/NumberTypeNode.test.ts index fb4b9aeff..907741d53 100644 --- a/packages/visitors-core/test/nodes/typeNodes/NumberTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/NumberTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/OptionTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/OptionTypeNode.test.ts index 1b4b50bc5..ac0dac0dd 100644 --- a/packages/visitors-core/test/nodes/typeNodes/OptionTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/OptionTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, optionTypeNode, publicKeyTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, optionTypeNode, publicKeyTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/PostOffsetTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/PostOffsetTypeNode.test.ts index 5522867e8..f332ddf50 100644 --- a/packages/visitors-core/test/nodes/typeNodes/PostOffsetTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/PostOffsetTypeNode.test.ts @@ -1,4 +1,4 @@ -import { postOffsetTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { postOffsetTypeNode, stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/PreOffsetTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/PreOffsetTypeNode.test.ts index 6ef3320fc..fd9570c79 100644 --- a/packages/visitors-core/test/nodes/typeNodes/PreOffsetTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/PreOffsetTypeNode.test.ts @@ -1,4 +1,4 @@ -import { preOffsetTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { preOffsetTypeNode, stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/PublicKeyTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/PublicKeyTypeNode.test.ts index 03d7be702..e417666a4 100644 --- a/packages/visitors-core/test/nodes/typeNodes/PublicKeyTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/PublicKeyTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/RemainderOptionTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/RemainderOptionTypeNode.test.ts index 35a125af5..1fe49c557 100644 --- a/packages/visitors-core/test/nodes/typeNodes/RemainderOptionTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/RemainderOptionTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode, remainderOptionTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode, remainderOptionTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/SentinelTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/SentinelTypeNode.test.ts index 1cb6d6049..b72e9db76 100644 --- a/packages/visitors-core/test/nodes/typeNodes/SentinelTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/SentinelTypeNode.test.ts @@ -1,4 +1,4 @@ -import { constantValueNodeFromBytes, sentinelTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { constantValueNodeFromBytes, sentinelTypeNode, stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/SetTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/SetTypeNode.test.ts index 5e033a73f..6d64841b1 100644 --- a/packages/visitors-core/test/nodes/typeNodes/SetTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/SetTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode, remainderCountNode, setTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode, remainderCountNode, setTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/SizePrefixTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/SizePrefixTypeNode.test.ts index d5e028b3a..214c11d43 100644 --- a/packages/visitors-core/test/nodes/typeNodes/SizePrefixTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/SizePrefixTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, sizePrefixTypeNode, stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/SolAmountTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/SolAmountTypeNode.test.ts index 129440428..ddd13f772 100644 --- a/packages/visitors-core/test/nodes/typeNodes/SolAmountTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/SolAmountTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, solAmountTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, solAmountTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/StringTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/StringTypeNode.test.ts index 2a2052d67..a980486c1 100644 --- a/packages/visitors-core/test/nodes/typeNodes/StringTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/StringTypeNode.test.ts @@ -1,4 +1,4 @@ -import { stringTypeNode } from '@kinobi-so/nodes'; +import { stringTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/StructFieldTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/StructFieldTypeNode.test.ts index da1836982..b63ba9d63 100644 --- a/packages/visitors-core/test/nodes/typeNodes/StructFieldTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/StructFieldTypeNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyTypeNode, publicKeyValueNode, structFieldTypeNode } from '@kinobi-so/nodes'; +import { publicKeyTypeNode, publicKeyValueNode, structFieldTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/StructTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/StructTypeNode.test.ts index 1a5add185..026ea68f8 100644 --- a/packages/visitors-core/test/nodes/typeNodes/StructTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/StructTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/TupleTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/TupleTypeNode.test.ts index e46f3946e..a76e4b850 100644 --- a/packages/visitors-core/test/nodes/typeNodes/TupleTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/TupleTypeNode.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/typeNodes/ZeroableOptionTypeNode.test.ts b/packages/visitors-core/test/nodes/typeNodes/ZeroableOptionTypeNode.test.ts index 4e1966bdf..e7628ab41 100644 --- a/packages/visitors-core/test/nodes/typeNodes/ZeroableOptionTypeNode.test.ts +++ b/packages/visitors-core/test/nodes/typeNodes/ZeroableOptionTypeNode.test.ts @@ -1,4 +1,4 @@ -import { constantValueNodeFromBytes, publicKeyTypeNode, zeroableOptionTypeNode } from '@kinobi-so/nodes'; +import { constantValueNodeFromBytes, publicKeyTypeNode, zeroableOptionTypeNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/ArrayValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/ArrayValueNode.test.ts index 960c2619f..9c6025eeb 100644 --- a/packages/visitors-core/test/nodes/valueNodes/ArrayValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/ArrayValueNode.test.ts @@ -1,4 +1,4 @@ -import { arrayValueNode, publicKeyValueNode } from '@kinobi-so/nodes'; +import { arrayValueNode, publicKeyValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/BooleanValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/BooleanValueNode.test.ts index 4cdc234f9..e1a49e6b2 100644 --- a/packages/visitors-core/test/nodes/valueNodes/BooleanValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/BooleanValueNode.test.ts @@ -1,4 +1,4 @@ -import { booleanValueNode } from '@kinobi-so/nodes'; +import { booleanValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/BytesValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/BytesValueNode.test.ts index 2412dfa60..f11303cd2 100644 --- a/packages/visitors-core/test/nodes/valueNodes/BytesValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/BytesValueNode.test.ts @@ -1,4 +1,4 @@ -import { bytesValueNode } from '@kinobi-so/nodes'; +import { bytesValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/ConstantValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/ConstantValueNode.test.ts index 72f0a8348..6f33fcf96 100644 --- a/packages/visitors-core/test/nodes/valueNodes/ConstantValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/ConstantValueNode.test.ts @@ -1,4 +1,4 @@ -import { constantValueNode, numberTypeNode, numberValueNode } from '@kinobi-so/nodes'; +import { constantValueNode, numberTypeNode, numberValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/EnumValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/EnumValueNode.test.ts index 029653f67..ee2d959a6 100644 --- a/packages/visitors-core/test/nodes/valueNodes/EnumValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/EnumValueNode.test.ts @@ -5,7 +5,7 @@ import { stringValueNode, structFieldValueNode, structValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/MapEntryValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/MapEntryValueNode.test.ts index 552c403ca..f6b6b5139 100644 --- a/packages/visitors-core/test/nodes/valueNodes/MapEntryValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/MapEntryValueNode.test.ts @@ -1,4 +1,4 @@ -import { mapEntryValueNode, publicKeyValueNode, stringValueNode } from '@kinobi-so/nodes'; +import { mapEntryValueNode, publicKeyValueNode, stringValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/MapValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/MapValueNode.test.ts index d1b7e85e2..9fafb9122 100644 --- a/packages/visitors-core/test/nodes/valueNodes/MapValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/MapValueNode.test.ts @@ -1,4 +1,4 @@ -import { mapEntryValueNode, mapValueNode, numberValueNode, stringValueNode } from '@kinobi-so/nodes'; +import { mapEntryValueNode, mapValueNode, numberValueNode, stringValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/NoneValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/NoneValueNode.test.ts index 4ee5cef8a..5bf1fb2cc 100644 --- a/packages/visitors-core/test/nodes/valueNodes/NoneValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/NoneValueNode.test.ts @@ -1,4 +1,4 @@ -import { noneValueNode } from '@kinobi-so/nodes'; +import { noneValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/NumberValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/NumberValueNode.test.ts index d9d8c6c11..f77eace5b 100644 --- a/packages/visitors-core/test/nodes/valueNodes/NumberValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/NumberValueNode.test.ts @@ -1,4 +1,4 @@ -import { numberValueNode } from '@kinobi-so/nodes'; +import { numberValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/PublicKeyValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/PublicKeyValueNode.test.ts index bab5fb47a..58bd2fa53 100644 --- a/packages/visitors-core/test/nodes/valueNodes/PublicKeyValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/PublicKeyValueNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyValueNode } from '@kinobi-so/nodes'; +import { publicKeyValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/SetValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/SetValueNode.test.ts index 950e8343c..ef9825afb 100644 --- a/packages/visitors-core/test/nodes/valueNodes/SetValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/SetValueNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyValueNode, setValueNode } from '@kinobi-so/nodes'; +import { publicKeyValueNode, setValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/SomeValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/SomeValueNode.test.ts index 9ef91f231..d4af79ed5 100644 --- a/packages/visitors-core/test/nodes/valueNodes/SomeValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/SomeValueNode.test.ts @@ -1,4 +1,4 @@ -import { publicKeyValueNode, someValueNode } from '@kinobi-so/nodes'; +import { publicKeyValueNode, someValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/StringValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/StringValueNode.test.ts index 2cdeaac96..a183c4243 100644 --- a/packages/visitors-core/test/nodes/valueNodes/StringValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/StringValueNode.test.ts @@ -1,4 +1,4 @@ -import { stringValueNode } from '@kinobi-so/nodes'; +import { stringValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/StructFieldValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/StructFieldValueNode.test.ts index 4ba92bfa4..47b2e7765 100644 --- a/packages/visitors-core/test/nodes/valueNodes/StructFieldValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/StructFieldValueNode.test.ts @@ -1,4 +1,4 @@ -import { stringValueNode, structFieldValueNode } from '@kinobi-so/nodes'; +import { stringValueNode, structFieldValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/StructValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/StructValueNode.test.ts index 5b858cdeb..db026ebd2 100644 --- a/packages/visitors-core/test/nodes/valueNodes/StructValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/StructValueNode.test.ts @@ -1,4 +1,4 @@ -import { numberValueNode, stringValueNode, structFieldValueNode, structValueNode } from '@kinobi-so/nodes'; +import { numberValueNode, stringValueNode, structFieldValueNode, structValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nodes/valueNodes/TupleValueNode.test.ts b/packages/visitors-core/test/nodes/valueNodes/TupleValueNode.test.ts index 038e7ffd8..fad9f2363 100644 --- a/packages/visitors-core/test/nodes/valueNodes/TupleValueNode.test.ts +++ b/packages/visitors-core/test/nodes/valueNodes/TupleValueNode.test.ts @@ -1,4 +1,4 @@ -import { numberValueNode, publicKeyValueNode, stringValueNode, tupleValueNode } from '@kinobi-so/nodes'; +import { numberValueNode, publicKeyValueNode, stringValueNode, tupleValueNode } from '@codama/nodes'; import { test } from 'vitest'; import { diff --git a/packages/visitors-core/test/nonNullableIdentityVisitor.test.ts b/packages/visitors-core/test/nonNullableIdentityVisitor.test.ts index 7d44e158d..8b57c919b 100644 --- a/packages/visitors-core/test/nonNullableIdentityVisitor.test.ts +++ b/packages/visitors-core/test/nonNullableIdentityVisitor.test.ts @@ -1,4 +1,4 @@ -import { assertIsNode, Node, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { assertIsNode, Node, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { nonNullableIdentityVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/recordLinkablesVisitor.test.ts b/packages/visitors-core/test/recordLinkablesVisitor.test.ts index c4d9ec7e6..fa1c970cd 100644 --- a/packages/visitors-core/test/recordLinkablesVisitor.test.ts +++ b/packages/visitors-core/test/recordLinkablesVisitor.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; import { accountLinkNode, AccountNode, @@ -19,7 +19,7 @@ import { programLinkNode, programNode, rootNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { diff --git a/packages/visitors-core/test/recordNodeStackVisitor.test.ts b/packages/visitors-core/test/recordNodeStackVisitor.test.ts index 1033dd372..ae7423457 100644 --- a/packages/visitors-core/test/recordNodeStackVisitor.test.ts +++ b/packages/visitors-core/test/recordNodeStackVisitor.test.ts @@ -1,4 +1,4 @@ -import { definedTypeNode, numberTypeNode, publicKeyTypeNode, TupleTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { definedTypeNode, numberTypeNode, publicKeyTypeNode, TupleTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { NodeStack, pipe, recordNodeStackVisitor, tapVisitor, visit, voidVisitor } from '../src'; diff --git a/packages/visitors-core/test/removeDocsVisitor.test.ts b/packages/visitors-core/test/removeDocsVisitor.test.ts index 9b9b40383..f1963f6f1 100644 --- a/packages/visitors-core/test/removeDocsVisitor.test.ts +++ b/packages/visitors-core/test/removeDocsVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, structFieldTypeNode, structTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { removeDocsVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/singleNodeVisitor.test.ts b/packages/visitors-core/test/singleNodeVisitor.test.ts index 5cbe635f9..0ccc9b2c7 100644 --- a/packages/visitors-core/test/singleNodeVisitor.test.ts +++ b/packages/visitors-core/test/singleNodeVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, ProgramNode, publicKeyTypeNode, rootNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, ProgramNode, publicKeyTypeNode, rootNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { rootNodeVisitor, singleNodeVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/staticVisitor.test.ts b/packages/visitors-core/test/staticVisitor.test.ts index 0b987b402..0b01cd0f3 100644 --- a/packages/visitors-core/test/staticVisitor.test.ts +++ b/packages/visitors-core/test/staticVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { staticVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/tapVisitor.test.ts b/packages/visitors-core/test/tapVisitor.test.ts index 2cb6fbcb3..9d6ca240d 100644 --- a/packages/visitors-core/test/tapVisitor.test.ts +++ b/packages/visitors-core/test/tapVisitor.test.ts @@ -1,4 +1,4 @@ -import { NumberTypeNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { NumberTypeNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { mergeVisitor, tapVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/topDownTransformerVisitor.test.ts b/packages/visitors-core/test/topDownTransformerVisitor.test.ts index ff2520c41..773bf51b1 100644 --- a/packages/visitors-core/test/topDownTransformerVisitor.test.ts +++ b/packages/visitors-core/test/topDownTransformerVisitor.test.ts @@ -1,4 +1,4 @@ -import { assertIsNode, isNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { assertIsNode, isNode, numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { topDownTransformerVisitor, visit } from '../src'; diff --git a/packages/visitors-core/test/visitor.test.ts b/packages/visitors-core/test/visitor.test.ts index 8e88a5105..68c905054 100644 --- a/packages/visitors-core/test/visitor.test.ts +++ b/packages/visitors-core/test/visitor.test.ts @@ -5,7 +5,7 @@ import { publicKeyTypeNode, TupleTypeNode, tupleTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { expect, test } from 'vitest'; import { visit, Visitor, visitOrElse } from '../src'; diff --git a/packages/visitors-core/test/voidVisitor.test.ts b/packages/visitors-core/test/voidVisitor.test.ts index e1c634b69..41cf853d9 100644 --- a/packages/visitors-core/test/voidVisitor.test.ts +++ b/packages/visitors-core/test/voidVisitor.test.ts @@ -1,4 +1,4 @@ -import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@kinobi-so/nodes'; +import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; import { extendVisitor, visit, voidVisitor } from '../src'; diff --git a/packages/visitors-core/tsconfig.json b/packages/visitors-core/tsconfig.json index 1665bfa9b..02cd6dfbe 100644 --- a/packages/visitors-core/tsconfig.json +++ b/packages/visitors-core/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/visitors-core", + "display": "@codama/visitors-core", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/visitors/README.md b/packages/visitors/README.md index fcc6a6192..dcc412a57 100644 --- a/packages/visitors/README.md +++ b/packages/visitors/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/@kinobi-so/visitors.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@kinobi-so/visitors.svg?style=flat&label=%40kinobi-so%2Fvisitors -[npm-url]: https://www.npmjs.com/package/@kinobi-so/visitors +[npm-downloads-image]: https://img.shields.io/npm/dm/@codama/visitors.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/@codama/visitors.svg?style=flat&label=%40kinobi-so%2Fvisitors +[npm-url]: https://www.npmjs.com/package/@codama/visitors This package offers various visitors for Kinobi IDLs to traverse and manipulate their nodes. ## Installation ```sh -pnpm install @kinobi-so/visitors +pnpm install @codama/visitors ``` > [!NOTE] @@ -24,9 +24,9 @@ pnpm install @kinobi-so/visitors ## Understanding visitors -This package includes and re-exports the [`@kinobi-so/visitors-core`](../visitors-core/README.md) package which provides the core interfaces and functions to create and compose visitors. +This package includes and re-exports the [`@codama/visitors-core`](../visitors-core/README.md) package which provides the core interfaces and functions to create and compose visitors. -To get a better understanding of visitors and how they work, please refer to the [`@kinobi-so/visitors-core` documentation](../visitors-core/README.md). +To get a better understanding of visitors and how they work, please refer to the [`@codama/visitors-core` documentation](../visitors-core/README.md). In the rest of this documentation, we focus on the high-level visitors that are only available in this package. The main goal of these visitors is to provide a set of specific operations that can be applied to Kinobi IDLs — as opposed to the generic primitives provided by the core package. diff --git a/packages/visitors/package.json b/packages/visitors/package.json index a2657d769..eeeecc8bd 100644 --- a/packages/visitors/package.json +++ b/packages/visitors/package.json @@ -1,5 +1,5 @@ { - "name": "@kinobi-so/visitors", + "name": "@codama/visitors", "version": "0.22.0", "description": "All visitors for the Kinobi framework", "exports": { @@ -36,30 +36,30 @@ ], "scripts": { "build": "rimraf dist && pnpm build:src && pnpm build:types", - "build:src": "zx ../../node_modules/@kinobi-so/internals/scripts/build-src.mjs package", - "build:types": "zx ../../node_modules/@kinobi-so/internals/scripts/build-types.mjs", - "dev": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node --watch", - "lint": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs", - "lint:fix": "zx ../../node_modules/@kinobi-so/internals/scripts/lint.mjs --fix", + "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package", + "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs", + "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch", + "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs", + "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix", "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native", - "test:browser": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs browser", - "test:node": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs node", - "test:react-native": "zx ../../node_modules/@kinobi-so/internals/scripts/test-unit.mjs react-native", - "test:treeshakability": "zx ../../node_modules/@kinobi-so/internals/scripts/test-treeshakability.mjs", - "test:types": "zx ../../node_modules/@kinobi-so/internals/scripts/test-types.mjs" + "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser", + "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node", + "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native", + "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs", + "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs" }, "dependencies": { - "@kinobi-so/errors": "workspace:*", - "@kinobi-so/nodes": "workspace:*", - "@kinobi-so/visitors-core": "workspace:*" + "@codama/errors": "workspace:*", + "@codama/nodes": "workspace:*", + "@codama/visitors-core": "workspace:*" }, "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/kinobi-so/kinobi" + "url": "https://github.com/codama/kinobi" }, "bugs": { - "url": "http://github.com/kinobi-so/kinobi/issues" + "url": "http://github.com/codama/kinobi/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors/src/addPdasVisitor.ts b/packages/visitors/src/addPdasVisitor.ts index b8eb0222e..d913e5b84 100644 --- a/packages/visitors/src/addPdasVisitor.ts +++ b/packages/visitors/src/addPdasVisitor.ts @@ -1,6 +1,6 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@kinobi-so/errors'; -import { assertIsNode, camelCase, pdaNode, PdaSeedNode, programNode } from '@kinobi-so/nodes'; -import { bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; +import { assertIsNode, camelCase, pdaNode, PdaSeedNode, programNode } from '@codama/nodes'; +import { bottomUpTransformerVisitor } from '@codama/visitors-core'; export function addPdasVisitor(pdas: Record) { return bottomUpTransformerVisitor( diff --git a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts index f678dac50..e1d65db0d 100644 --- a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts +++ b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -9,13 +9,13 @@ import { isNode, numberTypeNode, numberValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor, LinkableDictionary, recordLinkablesVisitor, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { flattenInstructionArguments } from './flattenInstructionDataArgumentsVisitor'; diff --git a/packages/visitors/src/deduplicateIdenticalDefinedTypesVisitor.ts b/packages/visitors/src/deduplicateIdenticalDefinedTypesVisitor.ts index 70df3fde8..7e2b72d6d 100644 --- a/packages/visitors/src/deduplicateIdenticalDefinedTypesVisitor.ts +++ b/packages/visitors/src/deduplicateIdenticalDefinedTypesVisitor.ts @@ -1,11 +1,11 @@ -import { assertIsNode, DefinedTypeNode, getAllPrograms, ProgramNode } from '@kinobi-so/nodes'; +import { assertIsNode, DefinedTypeNode, getAllPrograms, ProgramNode } from '@codama/nodes'; import { deleteNodesVisitor, getUniqueHashStringVisitor, NodeSelector, rootNodeVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; type DefinedTypeWithProgram = { program: ProgramNode; diff --git a/packages/visitors/src/fillDefaultPdaSeedValuesVisitor.ts b/packages/visitors/src/fillDefaultPdaSeedValuesVisitor.ts index 888d20d14..078e313bf 100644 --- a/packages/visitors/src/fillDefaultPdaSeedValuesVisitor.ts +++ b/packages/visitors/src/fillDefaultPdaSeedValuesVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, KinobiError } from '@codama/errors'; import { accountValueNode, argumentValueNode, @@ -13,8 +13,8 @@ import { PdaSeedValueNode, pdaSeedValueNode, pdaValueNode, -} from '@kinobi-so/nodes'; -import { extendVisitor, identityVisitor, LinkableDictionary, pipe, Visitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { extendVisitor, identityVisitor, LinkableDictionary, pipe, Visitor } from '@codama/visitors-core'; /** * Fills in default values for variable PDA seeds that are not explicitly provided. diff --git a/packages/visitors/src/flattenInstructionDataArgumentsVisitor.ts b/packages/visitors/src/flattenInstructionDataArgumentsVisitor.ts index 6c4ecd414..beb64e6ba 100644 --- a/packages/visitors/src/flattenInstructionDataArgumentsVisitor.ts +++ b/packages/visitors/src/flattenInstructionDataArgumentsVisitor.ts @@ -1,7 +1,4 @@ -import { - KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, - KinobiError, -} from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -9,8 +6,8 @@ import { instructionArgumentNode, instructionNode, isNode, -} from '@kinobi-so/nodes'; -import { bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { bottomUpTransformerVisitor } from '@codama/visitors-core'; export function flattenInstructionDataArgumentsVisitor() { return bottomUpTransformerVisitor([ diff --git a/packages/visitors/src/flattenStructVisitor.ts b/packages/visitors/src/flattenStructVisitor.ts index 4da2f94b2..345d6c4d1 100644 --- a/packages/visitors/src/flattenStructVisitor.ts +++ b/packages/visitors/src/flattenStructVisitor.ts @@ -1,7 +1,4 @@ -import { - KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, - KinobiError, -} from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -10,8 +7,8 @@ import { StructFieldTypeNode, StructTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; export type FlattenStructOptions = string[] | '*'; diff --git a/packages/visitors/src/getDefinedTypeHistogramVisitor.ts b/packages/visitors/src/getDefinedTypeHistogramVisitor.ts index 67f0b775c..067800c20 100644 --- a/packages/visitors/src/getDefinedTypeHistogramVisitor.ts +++ b/packages/visitors/src/getDefinedTypeHistogramVisitor.ts @@ -1,5 +1,5 @@ -import { CamelCaseString } from '@kinobi-so/nodes'; -import { extendVisitor, interceptVisitor, mergeVisitor, pipe, visit, Visitor } from '@kinobi-so/visitors-core'; +import { CamelCaseString } from '@codama/nodes'; +import { extendVisitor, interceptVisitor, mergeVisitor, pipe, visit, Visitor } from '@codama/visitors-core'; export type DefinedTypeHistogram = { [key: CamelCaseString]: { diff --git a/packages/visitors/src/index.ts b/packages/visitors/src/index.ts index 2775b1436..917a8cf93 100644 --- a/packages/visitors/src/index.ts +++ b/packages/visitors/src/index.ts @@ -1,4 +1,4 @@ -export * from '@kinobi-so/visitors-core'; +export * from '@codama/visitors-core'; export * from './addPdasVisitor'; export * from './createSubInstructionsFromEnumArgsVisitor'; diff --git a/packages/visitors/src/renameHelpers.ts b/packages/visitors/src/renameHelpers.ts index 1e711b614..ad0ecfb6a 100644 --- a/packages/visitors/src/renameHelpers.ts +++ b/packages/visitors/src/renameHelpers.ts @@ -9,7 +9,7 @@ import { structFieldTypeNode, StructTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; export function renameStructNode(node: StructTypeNode, map: Record): StructTypeNode { return structTypeNode( diff --git a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts index b4fd12d9f..a1c66d8be 100644 --- a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts +++ b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, KinobiError } from '@codama/errors'; import { accountNode, assertIsNode, @@ -8,8 +8,8 @@ import { structTypeNode, transformNestedTypeNode, ValueNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; export function setAccountDiscriminatorFromFieldVisitor( map: Record, diff --git a/packages/visitors/src/setFixedAccountSizesVisitor.ts b/packages/visitors/src/setFixedAccountSizesVisitor.ts index ac68e54c4..28042043b 100644 --- a/packages/visitors/src/setFixedAccountSizesVisitor.ts +++ b/packages/visitors/src/setFixedAccountSizesVisitor.ts @@ -1,11 +1,11 @@ -import { accountNode, assertIsNode, isNode } from '@kinobi-so/nodes'; +import { accountNode, assertIsNode, isNode } from '@codama/nodes'; import { getByteSizeVisitor, LinkableDictionary, recordLinkablesVisitor, topDownTransformerVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; export function setFixedAccountSizesVisitor() { const linkables = new LinkableDictionary(); diff --git a/packages/visitors/src/setInstructionAccountDefaultValuesVisitor.ts b/packages/visitors/src/setInstructionAccountDefaultValuesVisitor.ts index 6372d4bcd..6b2c4cbf5 100644 --- a/packages/visitors/src/setInstructionAccountDefaultValuesVisitor.ts +++ b/packages/visitors/src/setInstructionAccountDefaultValuesVisitor.ts @@ -8,7 +8,7 @@ import { payerValueNode, programIdValueNode, publicKeyValueNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { extendVisitor, LinkableDictionary, @@ -16,7 +16,7 @@ import { pipe, recordLinkablesVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { fillDefaultPdaSeedValuesVisitor } from './fillDefaultPdaSeedValuesVisitor'; diff --git a/packages/visitors/src/setInstructionDiscriminatorsVisitor.ts b/packages/visitors/src/setInstructionDiscriminatorsVisitor.ts index 13e92593e..d76f512db 100644 --- a/packages/visitors/src/setInstructionDiscriminatorsVisitor.ts +++ b/packages/visitors/src/setInstructionDiscriminatorsVisitor.ts @@ -6,8 +6,8 @@ import { numberTypeNode, TypeNode, ValueNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; type Discriminator = { /** @defaultValue `[]` */ diff --git a/packages/visitors/src/setNumberWrappersVisitor.ts b/packages/visitors/src/setNumberWrappersVisitor.ts index 72ab329e3..80a2e1ae9 100644 --- a/packages/visitors/src/setNumberWrappersVisitor.ts +++ b/packages/visitors/src/setNumberWrappersVisitor.ts @@ -1,6 +1,6 @@ -import { KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, KinobiError } from '@kinobi-so/errors'; -import { amountTypeNode, assertIsNestedTypeNode, dateTimeTypeNode, solAmountTypeNode } from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +import { KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, KinobiError } from '@codama/errors'; +import { amountTypeNode, assertIsNestedTypeNode, dateTimeTypeNode, solAmountTypeNode } from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; export type NumberWrapper = | { decimals: number; kind: 'Amount'; unit?: string } diff --git a/packages/visitors/src/setStructDefaultValuesVisitor.ts b/packages/visitors/src/setStructDefaultValuesVisitor.ts index ba1b1deaf..7ed24ebb0 100644 --- a/packages/visitors/src/setStructDefaultValuesVisitor.ts +++ b/packages/visitors/src/setStructDefaultValuesVisitor.ts @@ -8,8 +8,8 @@ import { structFieldTypeNode, structTypeNode, ValueNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; type StructDefaultValueMap = Record>; type StructDefaultValue = ValueNode | { strategy?: 'omitted' | 'optional'; value: ValueNode } | null; diff --git a/packages/visitors/src/transformDefinedTypesIntoAccountsVisitor.ts b/packages/visitors/src/transformDefinedTypesIntoAccountsVisitor.ts index 281cef07e..8a10cae4a 100644 --- a/packages/visitors/src/transformDefinedTypesIntoAccountsVisitor.ts +++ b/packages/visitors/src/transformDefinedTypesIntoAccountsVisitor.ts @@ -1,5 +1,5 @@ -import { accountNode, assertIsNode, programNode } from '@kinobi-so/nodes'; -import { extendVisitor, nonNullableIdentityVisitor, pipe } from '@kinobi-so/visitors-core'; +import { accountNode, assertIsNode, programNode } from '@codama/nodes'; +import { extendVisitor, nonNullableIdentityVisitor, pipe } from '@codama/visitors-core'; export function transformDefinedTypesIntoAccountsVisitor(definedTypes: string[]) { return pipe(nonNullableIdentityVisitor(['rootNode', 'programNode']), v => diff --git a/packages/visitors/src/transformU8ArraysToBytesVisitor.ts b/packages/visitors/src/transformU8ArraysToBytesVisitor.ts index b3d63fa4c..a24e01dd7 100644 --- a/packages/visitors/src/transformU8ArraysToBytesVisitor.ts +++ b/packages/visitors/src/transformU8ArraysToBytesVisitor.ts @@ -6,8 +6,8 @@ import { fixedSizeTypeNode, isNode, TYPE_NODES, -} from '@kinobi-so/nodes'; -import { extendVisitor, nonNullableIdentityVisitor, pipe, visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { extendVisitor, nonNullableIdentityVisitor, pipe, visit } from '@codama/visitors-core'; export function transformU8ArraysToBytesVisitor(sizes: number[] | '*' = [32, 64]) { const hasRequiredSize = (count: ArrayTypeNode['count']): boolean => { diff --git a/packages/visitors/src/unwrapDefinedTypesVisitor.ts b/packages/visitors/src/unwrapDefinedTypesVisitor.ts index 6ad4a2785..d3f0ae9ab 100644 --- a/packages/visitors/src/unwrapDefinedTypesVisitor.ts +++ b/packages/visitors/src/unwrapDefinedTypesVisitor.ts @@ -1,4 +1,4 @@ -import { assertIsNodeFilter, camelCase, CamelCaseString, programNode } from '@kinobi-so/nodes'; +import { assertIsNodeFilter, camelCase, CamelCaseString, programNode } from '@codama/nodes'; import { extendVisitor, LinkableDictionary, @@ -6,7 +6,7 @@ import { pipe, recordLinkablesVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; export function unwrapDefinedTypesVisitor(typesToInline: string[] | '*' = '*') { const linkables = new LinkableDictionary(); diff --git a/packages/visitors/src/unwrapInstructionArgsDefinedTypesVisitor.ts b/packages/visitors/src/unwrapInstructionArgsDefinedTypesVisitor.ts index 4916eff48..0e9d23958 100644 --- a/packages/visitors/src/unwrapInstructionArgsDefinedTypesVisitor.ts +++ b/packages/visitors/src/unwrapInstructionArgsDefinedTypesVisitor.ts @@ -1,5 +1,5 @@ -import { assertIsNode, CamelCaseString, getAllDefinedTypes, isNode } from '@kinobi-so/nodes'; -import { rootNodeVisitor, visit } from '@kinobi-so/visitors-core'; +import { assertIsNode, CamelCaseString, getAllDefinedTypes, isNode } from '@codama/nodes'; +import { rootNodeVisitor, visit } from '@codama/visitors-core'; import { getDefinedTypeHistogramVisitor } from './getDefinedTypeHistogramVisitor'; import { unwrapDefinedTypesVisitor } from './unwrapDefinedTypesVisitor'; diff --git a/packages/visitors/src/unwrapTupleEnumWithSingleStructVisitor.ts b/packages/visitors/src/unwrapTupleEnumWithSingleStructVisitor.ts index 7278d913a..107b405db 100644 --- a/packages/visitors/src/unwrapTupleEnumWithSingleStructVisitor.ts +++ b/packages/visitors/src/unwrapTupleEnumWithSingleStructVisitor.ts @@ -9,7 +9,7 @@ import { resolveNestedTypeNode, StructTypeNode, transformNestedTypeNode, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { bottomUpTransformerVisitor, getNodeSelectorFunction, @@ -17,7 +17,7 @@ import { NodeStack, rootNodeVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { getDefinedTypeHistogramVisitor } from './getDefinedTypeHistogramVisitor'; import { unwrapDefinedTypesVisitor } from './unwrapDefinedTypesVisitor'; diff --git a/packages/visitors/src/unwrapTypeDefinedLinksVisitor.ts b/packages/visitors/src/unwrapTypeDefinedLinksVisitor.ts index eaf0d0a3f..f7034a947 100644 --- a/packages/visitors/src/unwrapTypeDefinedLinksVisitor.ts +++ b/packages/visitors/src/unwrapTypeDefinedLinksVisitor.ts @@ -1,11 +1,11 @@ -import { assertIsNode } from '@kinobi-so/nodes'; +import { assertIsNode } from '@codama/nodes'; import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor, LinkableDictionary, pipe, recordLinkablesVisitor, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; export function unwrapTypeDefinedLinksVisitor(definedLinksType: string[]) { const linkables = new LinkableDictionary(); diff --git a/packages/visitors/src/updateAccountsVisitor.ts b/packages/visitors/src/updateAccountsVisitor.ts index 964bd64b6..b62584b04 100644 --- a/packages/visitors/src/updateAccountsVisitor.ts +++ b/packages/visitors/src/updateAccountsVisitor.ts @@ -11,8 +11,8 @@ import { PdaSeedNode, programNode, transformNestedTypeNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; import { renameStructNode } from './renameHelpers'; diff --git a/packages/visitors/src/updateDefinedTypesVisitor.ts b/packages/visitors/src/updateDefinedTypesVisitor.ts index a2e9762c5..adcfd2786 100644 --- a/packages/visitors/src/updateDefinedTypesVisitor.ts +++ b/packages/visitors/src/updateDefinedTypesVisitor.ts @@ -5,8 +5,8 @@ import { definedTypeNode, DefinedTypeNodeInput, isNode, -} from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; import { renameEnumNode, renameStructNode } from './renameHelpers'; diff --git a/packages/visitors/src/updateErrorsVisitor.ts b/packages/visitors/src/updateErrorsVisitor.ts index e7a6b9750..3901a3d8e 100644 --- a/packages/visitors/src/updateErrorsVisitor.ts +++ b/packages/visitors/src/updateErrorsVisitor.ts @@ -1,5 +1,5 @@ -import { assertIsNode, errorNode, ErrorNodeInput } from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +import { assertIsNode, errorNode, ErrorNodeInput } from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; export type ErrorUpdates = Partial | { delete: true }; diff --git a/packages/visitors/src/updateInstructionsVisitor.ts b/packages/visitors/src/updateInstructionsVisitor.ts index 79c7a2f3e..602413c38 100644 --- a/packages/visitors/src/updateInstructionsVisitor.ts +++ b/packages/visitors/src/updateInstructionsVisitor.ts @@ -11,7 +11,7 @@ import { instructionNode, InstructionNodeInput, TYPE_NODES, -} from '@kinobi-so/nodes'; +} from '@codama/nodes'; import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor, @@ -19,7 +19,7 @@ import { pipe, recordLinkablesVisitor, visit, -} from '@kinobi-so/visitors-core'; +} from '@codama/visitors-core'; import { fillDefaultPdaSeedValuesVisitor } from './fillDefaultPdaSeedValuesVisitor'; diff --git a/packages/visitors/src/updateProgramsVisitor.ts b/packages/visitors/src/updateProgramsVisitor.ts index 0dedf7ff8..d9fb15a1d 100644 --- a/packages/visitors/src/updateProgramsVisitor.ts +++ b/packages/visitors/src/updateProgramsVisitor.ts @@ -1,5 +1,5 @@ -import { assertIsNode, camelCase, programLinkNode, programNode, ProgramNodeInput } from '@kinobi-so/nodes'; -import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@kinobi-so/visitors-core'; +import { assertIsNode, camelCase, programLinkNode, programNode, ProgramNodeInput } from '@codama/nodes'; +import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; export type ProgramUpdates = | Partial> diff --git a/packages/visitors/test/addPdasVisitor.test.ts b/packages/visitors/test/addPdasVisitor.test.ts index 54d5d0f8d..f64408c18 100644 --- a/packages/visitors/test/addPdasVisitor.test.ts +++ b/packages/visitors/test/addPdasVisitor.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@kinobi-so/errors'; +import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; import { constantPdaSeedNodeFromProgramId, constantPdaSeedNodeFromString, @@ -6,8 +6,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { addPdasVisitor } from '../src'; diff --git a/packages/visitors/test/fillDefaultPdaSeedValuesVisitor.test.ts b/packages/visitors/test/fillDefaultPdaSeedValuesVisitor.test.ts index 0d03f796f..3b19de5c1 100644 --- a/packages/visitors/test/fillDefaultPdaSeedValuesVisitor.test.ts +++ b/packages/visitors/test/fillDefaultPdaSeedValuesVisitor.test.ts @@ -13,8 +13,8 @@ import { programNode, publicKeyTypeNode, variablePdaSeedNode, -} from '@kinobi-so/nodes'; -import { LinkableDictionary, visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { LinkableDictionary, visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { fillDefaultPdaSeedValuesVisitor } from '../src'; diff --git a/packages/visitors/test/getDefinedTypeHistogramVisitor.test.ts b/packages/visitors/test/getDefinedTypeHistogramVisitor.test.ts index 978dc173c..85c6bed08 100644 --- a/packages/visitors/test/getDefinedTypeHistogramVisitor.test.ts +++ b/packages/visitors/test/getDefinedTypeHistogramVisitor.test.ts @@ -8,8 +8,8 @@ import { programNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { getDefinedTypeHistogramVisitor } from '../src'; diff --git a/packages/visitors/test/setStructDefaultValuesVisitor.test.ts b/packages/visitors/test/setStructDefaultValuesVisitor.test.ts index 1fe945836..edca2abcb 100644 --- a/packages/visitors/test/setStructDefaultValuesVisitor.test.ts +++ b/packages/visitors/test/setStructDefaultValuesVisitor.test.ts @@ -12,8 +12,8 @@ import { resolveNestedTypeNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { setStructDefaultValuesVisitor } from '../src'; diff --git a/packages/visitors/test/updateAccountsVisitor.test.ts b/packages/visitors/test/updateAccountsVisitor.test.ts index 5e0f94b87..311c1c57b 100644 --- a/packages/visitors/test/updateAccountsVisitor.test.ts +++ b/packages/visitors/test/updateAccountsVisitor.test.ts @@ -11,8 +11,8 @@ import { rootNode, structFieldTypeNode, structTypeNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { updateAccountsVisitor } from '../src'; diff --git a/packages/visitors/test/updateInstructionsVisitor.test.ts b/packages/visitors/test/updateInstructionsVisitor.test.ts index d04df949c..0dac84a49 100644 --- a/packages/visitors/test/updateInstructionsVisitor.test.ts +++ b/packages/visitors/test/updateInstructionsVisitor.test.ts @@ -8,8 +8,8 @@ import { numberValueNode, programNode, rootNode, -} from '@kinobi-so/nodes'; -import { visit } from '@kinobi-so/visitors-core'; +} from '@codama/nodes'; +import { visit } from '@codama/visitors-core'; import { expect, test } from 'vitest'; import { updateInstructionsVisitor } from '../src'; diff --git a/packages/visitors/tsconfig.json b/packages/visitors/tsconfig.json index d2b41eaae..6fbe1455a 100644 --- a/packages/visitors/tsconfig.json +++ b/packages/visitors/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "@kinobi-so/visitors", + "display": "@codama/visitors", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } From 4e44a2149e5b0d17269a14e8160ec286429bbdba Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:42:06 +0100 Subject: [PATCH 02/14] Rename `kinobi` to `codama` --- .changeset/config.json | 4 +- README.md | 30 +- package.json | 2 +- packages/errors/README.md | 8 +- packages/errors/package.json | 4 +- packages/internals/tsup.config.base.ts | 2 +- packages/library/README.md | 24 +- packages/library/package.json | 6 +- packages/library/src/index.ts | 2 +- packages/library/test/index.test.ts | 10 +- packages/library/tsconfig.json | 2 +- packages/node-types/README.md | 4 +- packages/node-types/package.json | 4 +- packages/node-types/src/RootNode.ts | 2 +- packages/nodes-from-anchor/README.md | 8 +- packages/nodes-from-anchor/package.json | 4 +- packages/nodes/README.md | 4 +- packages/nodes/docs/AccountNode.md | 2 +- packages/nodes/docs/DefinedTypeNode.md | 2 +- packages/nodes/docs/ErrorNode.md | 2 +- packages/nodes/docs/InstructionAccountNode.md | 2 +- .../nodes/docs/InstructionArgumentNode.md | 2 +- packages/nodes/docs/InstructionNode.md | 2 +- packages/nodes/docs/PdaNode.md | 2 +- packages/nodes/docs/ProgramNode.md | 2 +- packages/nodes/docs/RootNode.md | 6 +- .../nodes/docs/typeNodes/ArrayTypeNode.md | 2 +- .../nodes/docs/typeNodes/NumberTypeNode.md | 6 +- packages/nodes/package.json | 4 +- packages/nodes/src/RootNode.ts | 2 +- packages/nodes/test/RootNode.test.ts | 2 +- packages/renderers-core/README.md | 8 +- packages/renderers-core/package.json | 4 +- packages/renderers-js-umi/README.md | 6 +- packages/renderers-js-umi/e2e/memo/idl.json | 2 +- packages/renderers-js-umi/e2e/system/idl.json | 2 +- packages/renderers-js-umi/package.json | 4 +- .../public/templates/layout.njk | 6 +- packages/renderers-js/README.md | 6 +- packages/renderers-js/e2e/memo/idl.json | 2 +- packages/renderers-js/e2e/system/idl.json | 2 +- packages/renderers-js/e2e/token/idl.json | 2 +- packages/renderers-js/package.json | 4 +- .../renderers-js/public/templates/layout.njk | 6 +- packages/renderers-rust/README.md | 6 +- packages/renderers-rust/e2e/memo/Cargo.lock | 2 +- packages/renderers-rust/e2e/memo/Cargo.toml | 2 +- packages/renderers-rust/e2e/memo/idl.json | 80 +- packages/renderers-rust/e2e/system/Cargo.lock | 2 +- packages/renderers-rust/e2e/system/Cargo.toml | 2 +- packages/renderers-rust/e2e/system/idl.json | 2030 ++++++++--------- packages/renderers-rust/package.json | 4 +- .../public/templates/layout.njk | 6 +- packages/renderers/README.md | 10 +- packages/renderers/package.json | 4 +- packages/validators/README.md | 10 +- packages/validators/package.json | 4 +- packages/visitors-core/README.md | 10 +- packages/visitors-core/package.json | 4 +- packages/visitors/README.md | 52 +- packages/visitors/package.json | 4 +- 61 files changed, 1216 insertions(+), 1228 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 963fc9cd8..81117843c 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,12 +2,12 @@ "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "codama/kinobi" } + { "repo": "codama/codama" } ], "commit": false, "fixed": [ [ - "kinobi", + "codama", "@codama/errors", "@codama/node-types", "@codama/nodes", diff --git a/README.md b/README.md index 1b0c37272..90735bdb2 100644 --- a/README.md +++ b/README.md @@ -4,25 +4,25 @@ [![npm-downloads][npm-downloads-image]][npm-url] [![ci][ci-image]][ci-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/kinobi.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/kinobi.svg?style=flat -[npm-url]: https://www.npmjs.com/package/kinobi -[ci-image]: https://img.shields.io/github/actions/workflow/status/codama/kinobi/main.yml?logo=GitHub -[ci-url]: https://github.com/codama/kinobi/actions/workflows/main.yml +[npm-downloads-image]: https://img.shields.io/npm/dm/codama.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat +[npm-url]: https://www.npmjs.com/package/codama +[ci-image]: https://img.shields.io/github/actions/workflow/status/codama/codama/main.yml?logo=GitHub +[ci-url]: https://github.com/codama/codama/actions/workflows/main.yml Kinobi is a tool that describes any Solana program in a powerful standardised format known as the Kinobi IDL. This IDL can then be used to create a variety of utility such as rendering client code for your programs in various languages/frameworks, generating CLIs and providing more information to explorers. -![Kinobi header: A small double-sided mind-map with the Kinobi logo in the middle. On the left, we see the various ways to get a Kinobi IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/kinobi/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) +![Kinobi header: A small double-sided mind-map with the Kinobi logo in the middle. On the left, we see the various ways to get a Kinobi IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/codama/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) ## Nodes and visitors The Kinobi IDL is designed as a tree of nodes starting with the `RootNode` which contains a `ProgramNode` and additional data such as the Kinobi version used when the IDL was created. Kinobi provides over 60 different types of nodes that help describe just about any aspect of your Solana programs. [You can read more about the Kinobi nodes here](./packages/nodes). -![A small example of a Kinobi IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/kinobi/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) +![A small example of a Kinobi IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/codama/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) Because everything is designed as a `Node`, we can transform the IDL, aggregate information and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Kinobi visitors](./packages/visitors). -![A small example of how a visitor can transform a Kinobi IDL into another Kinobi IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/kinobi/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) +![A small example of how a visitor can transform a Kinobi IDL into another Kinobi IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/codama/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) ## From program to Kinobi @@ -32,11 +32,11 @@ There are various ways to extract information from your Solana programs in order - **From Anchor IDLs**. If you are using [Anchor programs](https://github.com/coral-xyz/anchor) or [Shank macros](https://github.com/metaplex-foundation/shank), then you can get an Anchor IDL from them. You can then use the `@codama/nodes-from-anchor` package to convert that IDL into a Kinobi IDL as shown in the code snippet below. Note that the Anchor IDL might not offer all the information that Kinobi can hold and therefore, you may want to transform your Kinobi IDL to provide additional information. You can learn more about this in the next section. ```ts - import { createFromRoot } from 'kinobi'; + import { createFromRoot } from 'codama'; import { rootNodeFromAnchor } from '@codama/nodes-from-anchor'; import anchorIdl from 'anchor-idl.json'; - const kinobi = createFromRoot(rootNodeFromAnchor(anchorIdl)); + const codama = createFromRoot(rootNodeFromAnchor(anchorIdl)); ``` - **By hand**. If your Solana program cannot be updated to use Kinobi macros and you don’t have an Anchor IDL, you may design your Kinobi IDL by hand. We may provide tools such as a Kinobi Playground to help with that in the future. @@ -46,10 +46,10 @@ There are various ways to extract information from your Solana programs in order Once you have your Kinobi IDL, you may use visitors to transform it. This can be useful when the Kinobi IDL was obtained from another source that may not contain some necessary information. Here is an example using two provided visitors that adjusts the accounts and instructions on the program. ```ts -import { updateAccountsVisitor, updateInstructionsVisitor } from 'kinobi'; +import { updateAccountsVisitor, updateInstructionsVisitor } from 'codama'; -kinobi.update(updateAccountsVisitor({ ... })); -kinobi.update(updateInstructionsVisitor({ ... })); +codama.update(updateAccountsVisitor({ ... })); +codama.update(updateInstructionsVisitor({ ... })); ``` ## From Kinobi to utility @@ -70,8 +70,8 @@ _Note that some features such as rendering CLIs are not yet available. However, ```ts import { renderJavaScriptVisitor, renderRustVisitor } from '@codama/renderers'; - kinobi.accept(renderJavaScriptVisitor('clients/js/src/generated', { ... })); - kinobi.accept(renderRustVisitor('clients/rust/src/generated', { ... })); + codama.accept(renderJavaScriptVisitor('clients/js/src/generated', { ... })); + codama.accept(renderRustVisitor('clients/rust/src/generated', { ... })); ``` - **Registering your Kinobi IDL on-chain** (_Coming soon_). Perhaps the biggest benefit of having a Kinobi IDL from your program is that you can share it on-chain with the rest of the ecosystem. This means explorers may now use this information to provide a better experience for users of your programs. Additionally, anyone can now grab your Kinobi IDL, select the portion they are interested in and benefit from the same ecosystem of Kinobi visitors to iterate over it. For instance, an app could decide to grab the IDLs of all programs they depend on, filter out the accounts and instructions they don’t need and generate a bespoke client for their app that only contains the functions the app needs. diff --git a/package.json b/package.json index bd6b335ea..fe462655d 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "kinobi-monorepo", + "name": "codama-monorepo", "private": true, "workspaces": [ "packages/*" diff --git a/packages/errors/README.md b/packages/errors/README.md index af1f4444b..ed8b2272f 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -16,10 +16,10 @@ pnpm install @codama/errors ``` > [!NOTE] -> This package is included in the main [`kinobi`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. > > ```sh -> pnpm install kinobi +> pnpm install codama > ``` ## Reading error messages @@ -46,7 +46,7 @@ When you catch a `KinobiError` and assert its error code using `isKinobiError()` import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@codama/errors'; try { - const kinobi = createFromJson(jsonIdl); + const codama = createFromJson(jsonIdl); } catch (e) { if (isKinobiError(e, KINOBI_ERROR__UNEXPECTED_NODE_KIND)) { const { expectedKinds, kind, node } = e.context; @@ -71,7 +71,7 @@ To add a new error in Kinobi, follow these steps: 3. If you would like the new error to encapsulate context about the error itself define that context in `src/context.ts`. 4. Add the error's message to `src/messages.ts`. Any context values that you defined above will be interpolated into the message wherever you write `$key`, where `key` is the index of a value in the context (eg. ``'Unrecognized node `$kind`.'``). 5. Publish a new version of `@codama/errors` using changesets — maintainers will handle this via tha changesets CI workflow. -6. Bump the version of `@codama/errors` or `kinobi` in the consumer package from which the error is thrown. +6. Bump the version of `@codama/errors` or `codama` in the consumer package from which the error is thrown. ### Removing an error message diff --git a/packages/errors/package.json b/packages/errors/package.json index 1d614537d..378bef994 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -60,10 +60,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/internals/tsup.config.base.ts b/packages/internals/tsup.config.base.ts index c24c02af9..6f8410cfe 100644 --- a/packages/internals/tsup.config.base.ts +++ b/packages/internals/tsup.config.base.ts @@ -37,7 +37,7 @@ export function getBuildConfig(options: BuildOptions): TsupConfig { }, external: ['node:fs', 'node:path', 'node:url'], format, - globalName: 'globalThis.kinobi', + globalName: 'globalThis.codama', name: platform, // Inline private, non-published packages. // WARNING: This inlines packages recursively. Make sure these don't have deep dep trees. diff --git a/packages/library/README.md b/packages/library/README.md index dcfbe7bdd..c006ec03e 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -3,16 +3,16 @@ [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] -[npm-downloads-image]: https://img.shields.io/npm/dm/kinobi.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/kinobi.svg?style=flat&label=%40kinobi-so%2Fnodes -[npm-url]: https://www.npmjs.com/package/kinobi +[npm-downloads-image]: https://img.shields.io/npm/dm/codama.svg?style=flat +[npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat&label=%40kinobi-so%2Fnodes +[npm-url]: https://www.npmjs.com/package/codama This package is the main library for Kinobi. It re-exports most of the other packages in the Kinobi monorepo and offers a `Kinobi` type with a few helpers to help bind everything together. ## Installation ```sh -pnpm install kinobi +pnpm install codama ``` ## Packages included @@ -48,17 +48,17 @@ The `accept` function allows us to visit the wrapped `RootNode` using the provid ```ts // Log the Kinobi IDL in the console. -kinobi.accept(consoleLogVisitor(getDebugStringVisitor({ indent: true }))); +codama.accept(consoleLogVisitor(getDebugStringVisitor({ indent: true }))); ``` The `update` function also accepts a visitor, but it uses the return value of that visitor to update the wrapped `RootNode`. This means that, given a `RootNode`, the provided visitor should also return a `RootNode`. An error will be thrown otherwise. ```ts // Delete account nodes named "mint". -kinobi.update(deleteNodesVisitor(['[accountNode]mint'])); +codama.update(deleteNodesVisitor(['[accountNode]mint'])); // Transform all number nodes into u64 number nodes. -kinobi.update( +codama.update( bottomUpTransformerVisitor([ { select: '[numberTypeNode]', @@ -75,9 +75,9 @@ Other helper functions include: - `getRoot()`: Returns the wrapped `RootNode`. ```ts -const clonedKinobi = kinobi.clone(); -const jsonIdl = kinobi.getJson(); -const rootNode = kinobi.getRoot(); +const clonedKinobi = codama.clone(); +const jsonIdl = codama.getJson(); +const rootNode = codama.getRoot(); ``` ### `createFromRoot(rootNode)` @@ -85,7 +85,7 @@ const rootNode = kinobi.getRoot(); The `createFromRoot` function creates a new instance of the `Kinobi` interface from a `RootNode`. ```ts -const kinobi = createFromRoot(rootNode(programNode({ ... }))); +const codama = createFromRoot(rootNode(programNode({ ... }))); ``` ### `createFromJson(jsonIdl)` @@ -94,5 +94,5 @@ The `createFromJson` function creates a new instance of the `Kinobi` interface f ```ts const json: string = fs.readFileSync('path/to/kinobiIdl.json', 'utf-8'); -const kinobi = createFromJson(json); +const codama = createFromJson(json); ``` diff --git a/packages/library/package.json b/packages/library/package.json index 1e7e5e9a9..315cf75fd 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -1,5 +1,5 @@ { - "name": "kinobi", + "name": "codama", "version": "0.22.0", "description": "A Solana framework for building standardised programs", "exports": { @@ -61,10 +61,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/library/src/index.ts b/packages/library/src/index.ts index 96aa4f4da..946319360 100644 --- a/packages/library/src/index.ts +++ b/packages/library/src/index.ts @@ -3,4 +3,4 @@ export * from '@codama/nodes'; export * from '@codama/validators'; export * from '@codama/visitors'; -export * from './kinobi'; +export * from './codama'; diff --git a/packages/library/test/index.test.ts b/packages/library/test/index.test.ts index ae33ab8b0..ded3def98 100644 --- a/packages/library/test/index.test.ts +++ b/packages/library/test/index.test.ts @@ -11,15 +11,15 @@ test('it exports visitors', () => { }); test('it accepts visitors', () => { - const kinobi = createFromRoot(rootNode(programNode({ name: 'myProgram', publicKey: '1111' }))); + const codama = createFromRoot(rootNode(programNode({ name: 'myProgram', publicKey: '1111' }))); const visitor = voidVisitor(['rootNode']); - const result = kinobi.accept(visitor) satisfies void; + const result = codama.accept(visitor) satisfies void; expect(typeof result).toBe('undefined'); }); test('it updates the root node returned by visitors', () => { - const kinobi = createFromRoot(rootNode(programNode({ name: 'myProgram', publicKey: '1111' }))); + const codama = createFromRoot(rootNode(programNode({ name: 'myProgram', publicKey: '1111' }))); const visitor = rootNodeVisitor(node => rootNode(programNode({ ...node.program, name: 'myTransformedProgram' }))); - kinobi.update(visitor) satisfies void; - expect(kinobi.getRoot()).toEqual(rootNode(programNode({ name: 'myTransformedProgram', publicKey: '1111' }))); + codama.update(visitor) satisfies void; + expect(codama.getRoot()).toEqual(rootNode(programNode({ name: 'myTransformedProgram', publicKey: '1111' }))); }); diff --git a/packages/library/tsconfig.json b/packages/library/tsconfig.json index 7a5169d68..4c76df4c0 100644 --- a/packages/library/tsconfig.json +++ b/packages/library/tsconfig.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "lib": [] }, - "display": "kinobi", + "display": "codama", "extends": "../internals/tsconfig.base.json", "include": ["src", "test"] } diff --git a/packages/node-types/README.md b/packages/node-types/README.md index 16b11774b..fcb831568 100644 --- a/packages/node-types/README.md +++ b/packages/node-types/README.md @@ -16,9 +16,9 @@ pnpm install @codama/node-types ``` > [!NOTE] -> This package is included in the [`@codama/nodes`](../nodes) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/nodes`](../nodes) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. > > ```sh > pnpm install @codama/nodes -> pnpm install kinobi +> pnpm install codama > ``` diff --git a/packages/node-types/package.json b/packages/node-types/package.json index 3211dc6ea..1c70d43ef 100644 --- a/packages/node-types/package.json +++ b/packages/node-types/package.json @@ -47,10 +47,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/node-types/src/RootNode.ts b/packages/node-types/src/RootNode.ts index 55fb02b88..fc1a99032 100644 --- a/packages/node-types/src/RootNode.ts +++ b/packages/node-types/src/RootNode.ts @@ -8,7 +8,7 @@ export interface RootNode< readonly kind: 'rootNode'; // Data. - readonly standard: 'kinobi'; + readonly standard: 'codama'; readonly version: KinobiVersion; // Children. diff --git a/packages/nodes-from-anchor/README.md b/packages/nodes-from-anchor/README.md index 5b1c59a78..05ffbe578 100644 --- a/packages/nodes-from-anchor/README.md +++ b/packages/nodes-from-anchor/README.md @@ -16,7 +16,7 @@ pnpm install @codama/nodes-from-anchor ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. ## Functions @@ -25,9 +25,9 @@ pnpm install @codama/nodes-from-anchor This function takes a valid Anchor IDL and returns a `RootNode`. ```js -// node ./kinobi.mjs +// node ./codama.mjs import { rootNodeFromAnchor } from '@codama/nodes-from-anchor'; -import { createFromRoot } from 'kinobi'; +import { createFromRoot } from 'codama'; import { readFileSync } from 'node:fs'; import path from 'path'; @@ -36,5 +36,5 @@ const anchorIdlPath = path.join(__dirname, 'target', 'idl', 'anchor_program.json const anchorIdl = JSON.parse(readFileSync(anchorIdlPath, 'utf-8')); // Parse it into a Kinobi IDL. -const kinobi = createFromRoot(rootNodeFromAnchor(anchorIdl)); +const codama = createFromRoot(rootNodeFromAnchor(anchorIdl)); ``` diff --git a/packages/nodes-from-anchor/package.json b/packages/nodes-from-anchor/package.json index 4bd68bbd3..6683d2938 100644 --- a/packages/nodes-from-anchor/package.json +++ b/packages/nodes-from-anchor/package.json @@ -57,10 +57,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes/README.md b/packages/nodes/README.md index c5d5079a7..14fc73f09 100644 --- a/packages/nodes/README.md +++ b/packages/nodes/README.md @@ -16,10 +16,10 @@ pnpm install @codama/nodes ``` > [!NOTE] -> This package is included in the main [`kinobi`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. > > ```sh -> pnpm install kinobi +> pnpm install codama > ``` ## All available nodes diff --git a/packages/nodes/docs/AccountNode.md b/packages/nodes/docs/AccountNode.md index 7ab4720ba..be753aa28 100644 --- a/packages/nodes/docs/AccountNode.md +++ b/packages/nodes/docs/AccountNode.md @@ -2,7 +2,7 @@ This node defines an on-chain account. It is characterized by its name, data structure, and optional attributes such as PDA definition and account discriminators. -![Diagram](https://github.com/codama/kinobi/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) +![Diagram](https://github.com/codama/codama/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) ## Attributes diff --git a/packages/nodes/docs/DefinedTypeNode.md b/packages/nodes/docs/DefinedTypeNode.md index aecedc684..becf021f2 100644 --- a/packages/nodes/docs/DefinedTypeNode.md +++ b/packages/nodes/docs/DefinedTypeNode.md @@ -2,7 +2,7 @@ This node defines a named type that can be reused in other types using a [`DefinedTypeLinkNode`](./linkNodes/DefinedTypeLinkNode.md). -![Diagram](https://github.com/codama/kinobi/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) +![Diagram](https://github.com/codama/codama/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) ## Attributes diff --git a/packages/nodes/docs/ErrorNode.md b/packages/nodes/docs/ErrorNode.md index 0ebe3ab22..5f9d73709 100644 --- a/packages/nodes/docs/ErrorNode.md +++ b/packages/nodes/docs/ErrorNode.md @@ -2,7 +2,7 @@ This node defines an error that can be returned by a program. -![Diagram](https://github.com/codama/kinobi/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) +![Diagram](https://github.com/codama/codama/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) ## Attributes diff --git a/packages/nodes/docs/InstructionAccountNode.md b/packages/nodes/docs/InstructionAccountNode.md index 5cc1bff05..d15f4de2a 100644 --- a/packages/nodes/docs/InstructionAccountNode.md +++ b/packages/nodes/docs/InstructionAccountNode.md @@ -2,7 +2,7 @@ This node defines an account used by an instruction. It is characterized by its name and various requirements such as whether it needs to be writable or a signer. -![Diagram](https://github.com/codama/kinobi/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) +![Diagram](https://github.com/codama/codama/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) ## Attributes diff --git a/packages/nodes/docs/InstructionArgumentNode.md b/packages/nodes/docs/InstructionArgumentNode.md index 51b14083b..3fb89ff69 100644 --- a/packages/nodes/docs/InstructionArgumentNode.md +++ b/packages/nodes/docs/InstructionArgumentNode.md @@ -2,7 +2,7 @@ This node defines an argument that is passed to an instruction. When all arguments are combined and serialized next to each other, they form the instruction's data. -![Diagram](https://github.com/codama/kinobi/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) +![Diagram](https://github.com/codama/codama/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) ## Attributes diff --git a/packages/nodes/docs/InstructionNode.md b/packages/nodes/docs/InstructionNode.md index 50d3d8971..d67db5d36 100644 --- a/packages/nodes/docs/InstructionNode.md +++ b/packages/nodes/docs/InstructionNode.md @@ -2,7 +2,7 @@ This node represents an instruction in a program. -![Diagram](https://github.com/codama/kinobi/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) +![Diagram](https://github.com/codama/codama/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) ## Attributes diff --git a/packages/nodes/docs/PdaNode.md b/packages/nodes/docs/PdaNode.md index 2f67a4e6b..5e04cf1a3 100644 --- a/packages/nodes/docs/PdaNode.md +++ b/packages/nodes/docs/PdaNode.md @@ -2,7 +2,7 @@ This node provides a definition for a specific Program-Derived Address (PDA). It is characterized by a name and a list of seeds that can either be constant or variable. -![Diagram](https://github.com/codama/kinobi/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) +![Diagram](https://github.com/codama/codama/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) ## Attributes diff --git a/packages/nodes/docs/ProgramNode.md b/packages/nodes/docs/ProgramNode.md index c49a62a2d..971eddb12 100644 --- a/packages/nodes/docs/ProgramNode.md +++ b/packages/nodes/docs/ProgramNode.md @@ -2,7 +2,7 @@ This node represents an entire program deployed on-chain. It defines all elements of a program such as accounts, instructions, PDAs, errors, etc. -![Diagram](https://github.com/codama/kinobi/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) +![Diagram](https://github.com/codama/codama/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) ## Attributes diff --git a/packages/nodes/docs/RootNode.md b/packages/nodes/docs/RootNode.md index 2e225cdec..108f4274a 100644 --- a/packages/nodes/docs/RootNode.md +++ b/packages/nodes/docs/RootNode.md @@ -2,7 +2,7 @@ This node represents the starting point of the Kinobi IDL. It contains a single `ProgramNode` which the Kinobi IDL is describing as well as any additional programs that may be referenced by the main program. This node is also responsible for setting the standard and version of the IDL. -![Diagram](https://github.com/codama/kinobi/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) +![Diagram](https://github.com/codama/codama/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) ## Attributes @@ -11,7 +11,7 @@ This node represents the starting point of the Kinobi IDL. It contains a single | Attribute | Type | Description | | ---------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `kind` | `"rootNode"` | The node discriminator. | -| `standard` | `"kinobi"` | The IDL standard used by the `RootNode` which is always `"kinobi"`. This can help other communities fork the Kinobi standard. | +| `standard` | `"codama"` | The IDL standard used by the `RootNode` which is always `"codama"`. This can help other communities fork the Kinobi standard. | | `version` | `\d.\d.\d` | The semantic version of the standard used by the `RootNode`. That is — unless a different standard is used — this will be the Kinobi version from which this entire tree of node was created. | ### Children @@ -25,7 +25,7 @@ This node represents the starting point of the Kinobi IDL. It contains a single ### `rootNode(program, additionalPrograms?)` -Helper function that creates a `RootNode` object from a `ProgramNode` and an optional array of additional `ProgramNodes`. Note that the `standard` is automatically set to `"kinobi"` and the `version` is set to the Kinobi version installed. +Helper function that creates a `RootNode` object from a `ProgramNode` and an optional array of additional `ProgramNodes`. Note that the `standard` is automatically set to `"codama"` and the `version` is set to the Kinobi version installed. ```ts const node = rootNode(programNode({ ... })); diff --git a/packages/nodes/docs/typeNodes/ArrayTypeNode.md b/packages/nodes/docs/typeNodes/ArrayTypeNode.md index aa5c09390..e9b31ac6f 100644 --- a/packages/nodes/docs/typeNodes/ArrayTypeNode.md +++ b/packages/nodes/docs/typeNodes/ArrayTypeNode.md @@ -31,7 +31,7 @@ const node = arrayTypeNode(publicKeyTypeNode(), prefixedCountNode(numberTypeNode ### u32 prefixed array of u8 numbers -![Diagram](https://github.com/codama/kinobi/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) +![Diagram](https://github.com/codama/codama/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) ```ts arrayTypeNode(numberTypeNode('u8'), prefixedCountNode(numberTypeNode('u32'))); diff --git a/packages/nodes/docs/typeNodes/NumberTypeNode.md b/packages/nodes/docs/typeNodes/NumberTypeNode.md index d2f0ed37a..381c13965 100644 --- a/packages/nodes/docs/typeNodes/NumberTypeNode.md +++ b/packages/nodes/docs/typeNodes/NumberTypeNode.md @@ -103,7 +103,7 @@ isDecimal(numberTypeNode('f32')); // true ### Encoding `u32` integers -![Diagram](https://github.com/codama/kinobi/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) +![Diagram](https://github.com/codama/codama/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) ```ts numberTypeNode('u32'); @@ -115,7 +115,7 @@ numberTypeNode('u32'); ### Encoding `f32` big-endian decimal numbers -![Diagram](https://github.com/codama/kinobi/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) +![Diagram](https://github.com/codama/codama/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) ```ts numberTypeNode('f32', 'be'); @@ -127,7 +127,7 @@ numberTypeNode('f32', 'be'); ### Encoding `shortU16` integers -![Diagram](https://github.com/codama/kinobi/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) +![Diagram](https://github.com/codama/codama/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) ```ts numberTypeNode('shortU16'); diff --git a/packages/nodes/package.json b/packages/nodes/package.json index 6d9db4da9..b853391c9 100644 --- a/packages/nodes/package.json +++ b/packages/nodes/package.json @@ -55,10 +55,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes/src/RootNode.ts b/packages/nodes/src/RootNode.ts index d35122850..378d073be 100644 --- a/packages/nodes/src/RootNode.ts +++ b/packages/nodes/src/RootNode.ts @@ -8,7 +8,7 @@ export function rootNode { test('it returns the right Kinobi standard', () => { const root = rootNode(programNode({ name: 'foo', publicKey: '1111' })); - expect(root.standard).toBe('kinobi'); + expect(root.standard).toBe('codama'); }); test('it returns the right Kinobi version', () => { diff --git a/packages/renderers-core/README.md b/packages/renderers-core/README.md index ec7c98612..e200b67f2 100644 --- a/packages/renderers-core/README.md +++ b/packages/renderers-core/README.md @@ -16,7 +16,7 @@ pnpm install @codama/renderers-core ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. ## Filesystem wrappers @@ -137,7 +137,7 @@ When building renderers, you will most likely create a visitor that traverses th ```ts import { getRenderMapVisitor } from '@codama/renderers-js'; -const renderMap = kinobi.accept(getRenderMapVisitor()); +const renderMap = codama.accept(getRenderMapVisitor()); ``` If you have access to a visitor that returns a `RenderMap` — also described as `Visitor` — then, you can wrap it inside the `writeRenderMapVisitor` to directly write the content to the filesystem at the given base directory. @@ -145,7 +145,7 @@ If you have access to a visitor that returns a `RenderMap` — also described as ```ts import { getRenderMapVisitor } from '@codama/renderers-js'; -kinobi.accept(writeRenderMapVisitor(getRenderMapVisitor(), 'src/generated')); +codama.accept(writeRenderMapVisitor(getRenderMapVisitor(), 'src/generated')); ``` Note however that, if you are writing your own renderer, you should probably offer a higher-level visitor that includes this logic and also does some additional work such as deleting the base directory before writing the new content if it already exists. @@ -155,7 +155,7 @@ For instance, the recommended way of using the `@codama/renderers-js` package is ```ts import { renderVisitor } from '@codama/renderers-js'; -kinobi.accept(renderVisitor('src/generated')); +codama.accept(renderVisitor('src/generated')); ``` Here's a simple example of how to set up the basis of a renderer from an existing `getRenderMapVisitor`. diff --git a/packages/renderers-core/package.json b/packages/renderers-core/package.json index 6755c68f6..cfb98a02e 100644 --- a/packages/renderers-core/package.json +++ b/packages/renderers-core/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js-umi/README.md b/packages/renderers-js-umi/README.md index 4c2b96865..38dacb885 100644 --- a/packages/renderers-js-umi/README.md +++ b/packages/renderers-js-umi/README.md @@ -16,7 +16,7 @@ pnpm install @codama/renderers-js-umi ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. > > However, note that the [`renderers`](../renderers) package re-exports the `renderVisitor` function of this package as `renderJavaScriptUmiVisitor`. @@ -25,12 +25,12 @@ pnpm install @codama/renderers-js-umi Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate JavaScript clients compatible with Umi. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts -// node ./kinobi.mjs +// node ./codama.mjs import { renderVisitor } from '@codama/renderers-js-umi'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'js', 'src', 'generated'); const options = {}; // See below. -kinobi.accept(renderVisitor(pathToGeneratedFolder, options)); +codama.accept(renderVisitor(pathToGeneratedFolder, options)); ``` ## Options diff --git a/packages/renderers-js-umi/e2e/memo/idl.json b/packages/renderers-js-umi/e2e/memo/idl.json index 43ec12573..e5dbf00ca 100644 --- a/packages/renderers-js-umi/e2e/memo/idl.json +++ b/packages/renderers-js-umi/e2e/memo/idl.json @@ -39,6 +39,6 @@ "origin": "shank" }, "additionalPrograms": [], - "standard": "kinobi", + "standard": "codama", "version": "0.19.0" } diff --git a/packages/renderers-js-umi/e2e/system/idl.json b/packages/renderers-js-umi/e2e/system/idl.json index 5a980e656..1dc89edab 100644 --- a/packages/renderers-js-umi/e2e/system/idl.json +++ b/packages/renderers-js-umi/e2e/system/idl.json @@ -1049,6 +1049,6 @@ "origin": "shank" }, "additionalPrograms": [], - "standard": "kinobi", + "standard": "codama", "version": "0.20.0" } diff --git a/packages/renderers-js-umi/package.json b/packages/renderers-js-umi/package.json index 6a1da8781..8c5872f37 100644 --- a/packages/renderers-js-umi/package.json +++ b/packages/renderers-js-umi/package.json @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js-umi/public/templates/layout.njk b/packages/renderers-js-umi/public/templates/layout.njk index f92c3eb50..0003eae19 100644 --- a/packages/renderers-js-umi/public/templates/layout.njk +++ b/packages/renderers-js-umi/public/templates/layout.njk @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/codama/kinobi + * @see https://github.com/codama/codama */ {% block main %}{% endblock %} diff --git a/packages/renderers-js/README.md b/packages/renderers-js/README.md index 60265ed57..d1a004c4a 100644 --- a/packages/renderers-js/README.md +++ b/packages/renderers-js/README.md @@ -16,7 +16,7 @@ pnpm install @codama/renderers-js ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. > > However, note that the [`renderers`](../renderers) package re-exports the `renderVisitor` function of this package as `renderJavaScriptVisitor`. @@ -25,12 +25,12 @@ pnpm install @codama/renderers-js Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate JavaScript clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts -// node ./kinobi.mjs +// node ./codama.mjs import { renderVisitor } from '@codama/renderers-js'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'js', 'src', 'generated'); const options = {}; // See below. -kinobi.accept(renderVisitor(pathToGeneratedFolder, options)); +codama.accept(renderVisitor(pathToGeneratedFolder, options)); ``` ## Options diff --git a/packages/renderers-js/e2e/memo/idl.json b/packages/renderers-js/e2e/memo/idl.json index 43ec12573..e5dbf00ca 100644 --- a/packages/renderers-js/e2e/memo/idl.json +++ b/packages/renderers-js/e2e/memo/idl.json @@ -39,6 +39,6 @@ "origin": "shank" }, "additionalPrograms": [], - "standard": "kinobi", + "standard": "codama", "version": "0.19.0" } diff --git a/packages/renderers-js/e2e/system/idl.json b/packages/renderers-js/e2e/system/idl.json index 2c0aed591..baafbe5ab 100644 --- a/packages/renderers-js/e2e/system/idl.json +++ b/packages/renderers-js/e2e/system/idl.json @@ -1055,6 +1055,6 @@ "origin": "shank" }, "additionalPrograms": [], - "standard": "kinobi", + "standard": "codama", "version": "0.20.0" } diff --git a/packages/renderers-js/e2e/token/idl.json b/packages/renderers-js/e2e/token/idl.json index d032fd854..1bc26b80d 100644 --- a/packages/renderers-js/e2e/token/idl.json +++ b/packages/renderers-js/e2e/token/idl.json @@ -2855,6 +2855,6 @@ "origin": "shank" } ], - "standard": "kinobi", + "standard": "codama", "version": "0.20.0" } diff --git a/packages/renderers-js/package.json b/packages/renderers-js/package.json index de83e95bb..bc5beb8ef 100644 --- a/packages/renderers-js/package.json +++ b/packages/renderers-js/package.json @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js/public/templates/layout.njk b/packages/renderers-js/public/templates/layout.njk index f92c3eb50..0003eae19 100644 --- a/packages/renderers-js/public/templates/layout.njk +++ b/packages/renderers-js/public/templates/layout.njk @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/codama/kinobi + * @see https://github.com/codama/codama */ {% block main %}{% endblock %} diff --git a/packages/renderers-rust/README.md b/packages/renderers-rust/README.md index ce62a2a39..3b0b70c4b 100644 --- a/packages/renderers-rust/README.md +++ b/packages/renderers-rust/README.md @@ -16,7 +16,7 @@ pnpm install @codama/renderers-rust ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. > > However, note that the [`renderers`](../renderers) package re-exports the `renderVisitor` function of this package as `renderRustVisitor`. @@ -25,12 +25,12 @@ pnpm install @codama/renderers-rust Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate Rust clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts -// node ./kinobi.mjs +// node ./codama.mjs import { renderVisitor } from '@codama/renderers-rust'; const pathToGeneratedFolder = path.join(__dirname, 'clients', 'rust', 'src', 'generated'); const options = {}; // See below. -kinobi.accept(renderVisitor(pathToGeneratedFolder, options)); +codama.accept(renderVisitor(pathToGeneratedFolder, options)); ``` ## Options diff --git a/packages/renderers-rust/e2e/memo/Cargo.lock b/packages/renderers-rust/e2e/memo/Cargo.lock index c4d168b2e..b4351b94e 100644 --- a/packages/renderers-rust/e2e/memo/Cargo.lock +++ b/packages/renderers-rust/e2e/memo/Cargo.lock @@ -2167,7 +2167,7 @@ dependencies = [ ] [[package]] -name = "kinobi-renderers-rust-e2e-memo" +name = "codama-renderers-rust-e2e-memo" version = "0.0.0" dependencies = [ "anchor-lang", diff --git a/packages/renderers-rust/e2e/memo/Cargo.toml b/packages/renderers-rust/e2e/memo/Cargo.toml index 8acdfefd7..8eeaff5a5 100644 --- a/packages/renderers-rust/e2e/memo/Cargo.toml +++ b/packages/renderers-rust/e2e/memo/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "kinobi-renderers-rust-e2e-memo" +name = "codama-renderers-rust-e2e-memo" version = "0.0.0" edition = "2021" diff --git a/packages/renderers-rust/e2e/memo/idl.json b/packages/renderers-rust/e2e/memo/idl.json index 43ec12573..4cc2a54d4 100644 --- a/packages/renderers-rust/e2e/memo/idl.json +++ b/packages/renderers-rust/e2e/memo/idl.json @@ -1,44 +1,44 @@ { - "kind": "rootNode", - "program": { - "kind": "programNode", - "pdas": [], - "accounts": [], - "instructions": [ - { - "kind": "instructionNode", + "kind": "rootNode", + "program": { + "kind": "programNode", + "pdas": [], "accounts": [], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "memo", - "type": { "kind": "stringTypeNode", "encoding": "utf8" }, - "docs": [] - } + "instructions": [ + { + "kind": "instructionNode", + "accounts": [], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "memo", + "type": { "kind": "stringTypeNode", "encoding": "utf8" }, + "docs": [] + } + ], + "remainingAccounts": [ + { + "kind": "instructionRemainingAccountsNode", + "value": { "kind": "argumentValueNode", "name": "signers" }, + "isOptional": true, + "isSigner": true + } + ], + "name": "addMemo", + "idlName": "addMemo", + "docs": [], + "optionalAccountStrategy": "programId" + } ], - "remainingAccounts": [ - { - "kind": "instructionRemainingAccountsNode", - "value": { "kind": "argumentValueNode", "name": "signers" }, - "isOptional": true, - "isSigner": true - } - ], - "name": "addMemo", - "idlName": "addMemo", - "docs": [], - "optionalAccountStrategy": "programId" - } - ], - "definedTypes": [], - "errors": [], - "name": "memo", - "prefix": "", - "publicKey": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr", - "version": "3.0.1", - "origin": "shank" - }, - "additionalPrograms": [], - "standard": "kinobi", - "version": "0.19.0" + "definedTypes": [], + "errors": [], + "name": "memo", + "prefix": "", + "publicKey": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr", + "version": "3.0.1", + "origin": "shank" + }, + "additionalPrograms": [], + "standard": "codama", + "version": "0.19.0" } diff --git a/packages/renderers-rust/e2e/system/Cargo.lock b/packages/renderers-rust/e2e/system/Cargo.lock index c2a67af19..61dc019b8 100644 --- a/packages/renderers-rust/e2e/system/Cargo.lock +++ b/packages/renderers-rust/e2e/system/Cargo.lock @@ -2158,7 +2158,7 @@ dependencies = [ ] [[package]] -name = "kinobi-renderers-rust-e2e-system" +name = "codama-renderers-rust-e2e-system" version = "0.0.0" dependencies = [ "anchor-lang", diff --git a/packages/renderers-rust/e2e/system/Cargo.toml b/packages/renderers-rust/e2e/system/Cargo.toml index b80b8c6bd..6415ef890 100644 --- a/packages/renderers-rust/e2e/system/Cargo.toml +++ b/packages/renderers-rust/e2e/system/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "kinobi-renderers-rust-e2e-system" +name = "codama-renderers-rust-e2e-system" version = "0.0.0" edition = "2021" diff --git a/packages/renderers-rust/e2e/system/idl.json b/packages/renderers-rust/e2e/system/idl.json index 5a980e656..d488b69fd 100644 --- a/packages/renderers-rust/e2e/system/idl.json +++ b/packages/renderers-rust/e2e/system/idl.json @@ -1,1054 +1,1042 @@ { - "kind": "rootNode", - "program": { - "kind": "programNode", - "pdas": [], - "accounts": [ - { - "kind": "accountNode", - "data": { - "kind": "structTypeNode", - "fields": [ + "kind": "rootNode", + "program": { + "kind": "programNode", + "pdas": [], + "accounts": [ { - "kind": "structFieldTypeNode", - "name": "version", - "type": { "kind": "definedTypeLinkNode", "name": "nonceVersion" }, - "docs": [] - }, + "kind": "accountNode", + "data": { + "kind": "structTypeNode", + "fields": [ + { + "kind": "structFieldTypeNode", + "name": "version", + "type": { "kind": "definedTypeLinkNode", "name": "nonceVersion" }, + "docs": [] + }, + { + "kind": "structFieldTypeNode", + "name": "state", + "type": { "kind": "definedTypeLinkNode", "name": "nonceState" }, + "docs": [] + }, + { + "kind": "structFieldTypeNode", + "name": "authority", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + }, + { + "kind": "structFieldTypeNode", + "name": "blockhash", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + }, + { + "kind": "structFieldTypeNode", + "name": "lamportsPerSignature", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + } + ] + }, + "name": "nonce", + "idlName": "Nonce", + "docs": [], + "size": 80 + } + ], + "instructions": [ { - "kind": "structFieldTypeNode", - "name": "state", - "type": { "kind": "definedTypeLinkNode", "name": "nonceState" }, - "docs": [] + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "payer", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [], + "defaultValue": { "kind": "payerValueNode" } + }, + { + "kind": "instructionAccountNode", + "name": "newAccount", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 0 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "lamports", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "space", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "programAddress", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "byteDeltas": [ + { + "kind": "instructionByteDeltaNode", + "value": { "kind": "argumentValueNode", "name": "space" }, + "withHeader": true + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "createAccount", + "idlName": "CreateAccount", + "docs": [], + "optionalAccountStrategy": "programId" }, { - "kind": "structFieldTypeNode", - "name": "authority", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "account", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 1 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "programAddress", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "assign", + "idlName": "Assign", + "docs": [], + "optionalAccountStrategy": "programId" }, { - "kind": "structFieldTypeNode", - "name": "blockhash", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "source", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "destination", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 2 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "amount", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "transferSol", + "idlName": "TransferSol", + "docs": [], + "optionalAccountStrategy": "programId" }, { - "kind": "structFieldTypeNode", - "name": "lamportsPerSignature", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" - }, - "docs": [] - } - ] - }, - "name": "nonce", - "idlName": "Nonce", - "docs": [], - "size": 80 - } - ], - "instructions": [ - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "payer", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [], - "defaultValue": { "kind": "payerValueNode" } - }, - { - "kind": "instructionAccountNode", - "name": "newAccount", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 0 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "lamports", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" - }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "space", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "payer", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [], + "defaultValue": { "kind": "payerValueNode" } + }, + { + "kind": "instructionAccountNode", + "name": "newAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "baseAccount", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 3 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "base", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "seed", + "type": { + "kind": "sizePrefixTypeNode", + "type": { "kind": "stringTypeNode", "encoding": "utf8" }, + "prefix": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + } + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "amount", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "space", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "programAddress", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "createAccountWithSeed", + "idlName": "CreateAccountWithSeed", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "programAddress", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "byteDeltas": [ - { - "kind": "instructionByteDeltaNode", - "value": { "kind": "argumentValueNode", "name": "space" }, - "withHeader": true - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "createAccount", - "idlName": "CreateAccount", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "account", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "nonceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "recentBlockhashesSysvar", + "isWritable": false, + "isSigner": false, + "isOptional": false, + "docs": [], + "defaultValue": { + "kind": "publicKeyValueNode", + "publicKey": "SysvarRecentB1ockHashes11111111111111111111" + } + }, + { + "kind": "instructionAccountNode", + "name": "nonceAuthority", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 4 }, + "defaultValueStrategy": "omitted" + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "advanceNonceAccount", + "idlName": "AdvanceNonceAccount", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 1 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "programAddress", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "assign", - "idlName": "Assign", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "source", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "destination", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "nonceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "recipientAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "recentBlockhashesSysvar", + "isWritable": false, + "isSigner": false, + "isOptional": false, + "docs": [], + "defaultValue": { + "kind": "publicKeyValueNode", + "publicKey": "SysvarRecentB1ockHashes11111111111111111111" + } + }, + { + "kind": "instructionAccountNode", + "name": "rentSysvar", + "isWritable": false, + "isSigner": false, + "isOptional": false, + "docs": [], + "defaultValue": { + "kind": "publicKeyValueNode", + "publicKey": "SysvarRent111111111111111111111111111111111" + } + }, + { + "kind": "instructionAccountNode", + "name": "nonceAuthority", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 5 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "withdrawAmount", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "withdrawNonceAccount", + "idlName": "WithdrawNonceAccount", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 2 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "amount", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "nonceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "recentBlockhashesSysvar", + "isWritable": false, + "isSigner": false, + "isOptional": false, + "docs": [], + "defaultValue": { + "kind": "publicKeyValueNode", + "publicKey": "SysvarRecentB1ockHashes11111111111111111111" + } + }, + { + "kind": "instructionAccountNode", + "name": "rentSysvar", + "isWritable": false, + "isSigner": false, + "isOptional": false, + "docs": [], + "defaultValue": { + "kind": "publicKeyValueNode", + "publicKey": "SysvarRent111111111111111111111111111111111" + } + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 6 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "nonceAuthority", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "initializeNonceAccount", + "idlName": "InitializeNonceAccount", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "transferSol", - "idlName": "TransferSol", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "payer", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [], - "defaultValue": { "kind": "payerValueNode" } - }, - { - "kind": "instructionAccountNode", - "name": "newAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "baseAccount", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "nonceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "nonceAuthority", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 7 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "newNonceAuthority", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "authorizeNonceAccount", + "idlName": "AuthorizeNonceAccount", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 3 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "base", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "seed", - "type": { - "kind": "sizePrefixTypeNode", - "type": { "kind": "stringTypeNode", "encoding": "utf8" }, - "prefix": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - } + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "newAccount", + "isWritable": true, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 8 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "space", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "allocate", + "idlName": "Allocate", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "amount", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "newAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "baseAccount", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 9 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "base", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "seed", + "type": { + "kind": "sizePrefixTypeNode", + "type": { "kind": "stringTypeNode", "encoding": "utf8" }, + "prefix": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + } + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "space", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "programAddress", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "allocateWithSeed", + "idlName": "AllocateWithSeed", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "space", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "account", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "baseAccount", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 10 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "base", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "seed", + "type": { + "kind": "sizePrefixTypeNode", + "type": { "kind": "stringTypeNode", "encoding": "utf8" }, + "prefix": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + } + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "programAddress", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "assignWithSeed", + "idlName": "AssignWithSeed", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "programAddress", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "createAccountWithSeed", - "idlName": "CreateAccountWithSeed", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "nonceAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "recentBlockhashesSysvar", - "isWritable": false, - "isSigner": false, - "isOptional": false, - "docs": [], - "defaultValue": { - "kind": "publicKeyValueNode", - "publicKey": "SysvarRecentB1ockHashes11111111111111111111" - } - }, - { - "kind": "instructionAccountNode", - "name": "nonceAuthority", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "source", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "baseAccount", + "isWritable": false, + "isSigner": true, + "isOptional": false, + "docs": [] + }, + { + "kind": "instructionAccountNode", + "name": "destination", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 11 }, + "defaultValueStrategy": "omitted" + }, + { + "kind": "instructionArgumentNode", + "name": "amount", + "type": { + "kind": "numberTypeNode", + "format": "u64", + "endian": "le" + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "fromSeed", + "type": { + "kind": "sizePrefixTypeNode", + "type": { "kind": "stringTypeNode", "encoding": "utf8" }, + "prefix": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + } + }, + "docs": [] + }, + { + "kind": "instructionArgumentNode", + "name": "fromOwner", + "type": { "kind": "publicKeyTypeNode" }, + "docs": [] + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "transferSolWithSeed", + "idlName": "TransferSolWithSeed", + "docs": [], + "optionalAccountStrategy": "programId" }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 4 }, - "defaultValueStrategy": "omitted" - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "advanceNonceAccount", - "idlName": "AdvanceNonceAccount", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "nonceAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "recipientAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "recentBlockhashesSysvar", - "isWritable": false, - "isSigner": false, - "isOptional": false, - "docs": [], - "defaultValue": { - "kind": "publicKeyValueNode", - "publicKey": "SysvarRecentB1ockHashes11111111111111111111" - } - }, - { - "kind": "instructionAccountNode", - "name": "rentSysvar", - "isWritable": false, - "isSigner": false, - "isOptional": false, - "docs": [], - "defaultValue": { - "kind": "publicKeyValueNode", - "publicKey": "SysvarRent111111111111111111111111111111111" + { + "kind": "instructionNode", + "accounts": [ + { + "kind": "instructionAccountNode", + "name": "nonceAccount", + "isWritable": true, + "isSigner": false, + "isOptional": false, + "docs": [] + } + ], + "arguments": [ + { + "kind": "instructionArgumentNode", + "name": "discriminator", + "type": { + "kind": "numberTypeNode", + "format": "u32", + "endian": "le" + }, + "docs": [], + "defaultValue": { "kind": "numberValueNode", "number": 12 }, + "defaultValueStrategy": "omitted" + } + ], + "discriminators": [ + { + "kind": "fieldDiscriminatorNode", + "name": "discriminator", + "offset": 0 + } + ], + "name": "upgradeNonceAccount", + "idlName": "UpgradeNonceAccount", + "docs": [], + "optionalAccountStrategy": "programId" } - }, - { - "kind": "instructionAccountNode", - "name": "nonceAuthority", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 5 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "withdrawAmount", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + "definedTypes": [ + { + "kind": "definedTypeNode", + "name": "nonceVersion", + "type": { + "kind": "enumTypeNode", + "variants": [ + { "kind": "enumEmptyVariantTypeNode", "name": "legacy" }, + { "kind": "enumEmptyVariantTypeNode", "name": "current" } + ], + "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" } + }, + "idlName": "NonceVersion", + "docs": [] }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "withdrawNonceAccount", - "idlName": "WithdrawNonceAccount", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "nonceAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "recentBlockhashesSysvar", - "isWritable": false, - "isSigner": false, - "isOptional": false, - "docs": [], - "defaultValue": { - "kind": "publicKeyValueNode", - "publicKey": "SysvarRecentB1ockHashes11111111111111111111" - } - }, - { - "kind": "instructionAccountNode", - "name": "rentSysvar", - "isWritable": false, - "isSigner": false, - "isOptional": false, - "docs": [], - "defaultValue": { - "kind": "publicKeyValueNode", - "publicKey": "SysvarRent111111111111111111111111111111111" + { + "kind": "definedTypeNode", + "name": "nonceState", + "type": { + "kind": "enumTypeNode", + "variants": [ + { "kind": "enumEmptyVariantTypeNode", "name": "uninitialized" }, + { "kind": "enumEmptyVariantTypeNode", "name": "initialized" } + ], + "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" } + }, + "idlName": "NonceState", + "docs": [] } - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 6 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "nonceAuthority", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "initializeNonceAccount", - "idlName": "InitializeNonceAccount", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "nonceAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "nonceAuthority", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 7 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "newNonceAuthority", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } ], - "name": "authorizeNonceAccount", - "idlName": "AuthorizeNonceAccount", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "newAccount", - "isWritable": true, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 8 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "space", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" - }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "allocate", - "idlName": "Allocate", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "newAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "baseAccount", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 9 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "base", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "seed", - "type": { - "kind": "sizePrefixTypeNode", - "type": { "kind": "stringTypeNode", "encoding": "utf8" }, - "prefix": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - } + "errors": [ + { + "kind": "errorNode", + "name": "accountAlreadyInUse", + "idlName": "AccountAlreadyInUse", + "code": 0, + "message": "an account with the same address already exists", + "docs": ["AccountAlreadyInUse: an account with the same address already exists"] }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "space", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + { + "kind": "errorNode", + "name": "resultWithNegativeLamports", + "idlName": "ResultWithNegativeLamports", + "code": 1, + "message": "account does not have enough SOL to perform the operation", + "docs": ["ResultWithNegativeLamports: account does not have enough SOL to perform the operation"] }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "programAddress", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "allocateWithSeed", - "idlName": "AllocateWithSeed", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "account", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "baseAccount", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "errorNode", + "name": "invalidProgramId", + "idlName": "InvalidProgramId", + "code": 2, + "message": "cannot assign account to this program id", + "docs": ["InvalidProgramId: cannot assign account to this program id"] }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 10 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "base", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "seed", - "type": { - "kind": "sizePrefixTypeNode", - "type": { "kind": "stringTypeNode", "encoding": "utf8" }, - "prefix": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - } + { + "kind": "errorNode", + "name": "invalidAccountDataLength", + "idlName": "InvalidAccountDataLength", + "code": 3, + "message": "cannot allocate account data of this length", + "docs": ["InvalidAccountDataLength: cannot allocate account data of this length"] }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "programAddress", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "assignWithSeed", - "idlName": "AssignWithSeed", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "source", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "baseAccount", - "isWritable": false, - "isSigner": true, - "isOptional": false, - "docs": [] - }, - { - "kind": "instructionAccountNode", - "name": "destination", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "errorNode", + "name": "maxSeedLengthExceeded", + "idlName": "MaxSeedLengthExceeded", + "code": 4, + "message": "length of requested seed is too long", + "docs": ["MaxSeedLengthExceeded: length of requested seed is too long"] }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 11 }, - "defaultValueStrategy": "omitted" - }, - { - "kind": "instructionArgumentNode", - "name": "amount", - "type": { - "kind": "numberTypeNode", - "format": "u64", - "endian": "le" + { + "kind": "errorNode", + "name": "addressWithSeedMismatch", + "idlName": "AddressWithSeedMismatch", + "code": 5, + "message": "provided address does not match addressed derived from seed", + "docs": ["AddressWithSeedMismatch: provided address does not match addressed derived from seed"] }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "fromSeed", - "type": { - "kind": "sizePrefixTypeNode", - "type": { "kind": "stringTypeNode", "encoding": "utf8" }, - "prefix": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" - } + { + "kind": "errorNode", + "name": "nonceNoRecentBlockhashes", + "idlName": "NonceNoRecentBlockhashes", + "code": 6, + "message": "advancing stored nonce requires a populated RecentBlockhashes sysvar", + "docs": [ + "NonceNoRecentBlockhashes: advancing stored nonce requires a populated RecentBlockhashes sysvar" + ] }, - "docs": [] - }, - { - "kind": "instructionArgumentNode", - "name": "fromOwner", - "type": { "kind": "publicKeyTypeNode" }, - "docs": [] - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } - ], - "name": "transferSolWithSeed", - "idlName": "TransferSolWithSeed", - "docs": [], - "optionalAccountStrategy": "programId" - }, - { - "kind": "instructionNode", - "accounts": [ - { - "kind": "instructionAccountNode", - "name": "nonceAccount", - "isWritable": true, - "isSigner": false, - "isOptional": false, - "docs": [] - } - ], - "arguments": [ - { - "kind": "instructionArgumentNode", - "name": "discriminator", - "type": { - "kind": "numberTypeNode", - "format": "u32", - "endian": "le" + { + "kind": "errorNode", + "name": "nonceBlockhashNotExpired", + "idlName": "NonceBlockhashNotExpired", + "code": 7, + "message": "stored nonce is still in recent_blockhashes", + "docs": ["NonceBlockhashNotExpired: stored nonce is still in recent_blockhashes"] }, - "docs": [], - "defaultValue": { "kind": "numberValueNode", "number": 12 }, - "defaultValueStrategy": "omitted" - } - ], - "discriminators": [ - { - "kind": "fieldDiscriminatorNode", - "name": "discriminator", - "offset": 0 - } + { + "kind": "errorNode", + "name": "nonceUnexpectedBlockhashValue", + "idlName": "NonceUnexpectedBlockhashValue", + "code": 8, + "message": "specified nonce does not match stored nonce", + "docs": ["NonceUnexpectedBlockhashValue: specified nonce does not match stored nonce"] + } ], - "name": "upgradeNonceAccount", - "idlName": "UpgradeNonceAccount", - "docs": [], - "optionalAccountStrategy": "programId" - } - ], - "definedTypes": [ - { - "kind": "definedTypeNode", - "name": "nonceVersion", - "type": { - "kind": "enumTypeNode", - "variants": [ - { "kind": "enumEmptyVariantTypeNode", "name": "legacy" }, - { "kind": "enumEmptyVariantTypeNode", "name": "current" } - ], - "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" } - }, - "idlName": "NonceVersion", - "docs": [] - }, - { - "kind": "definedTypeNode", - "name": "nonceState", - "type": { - "kind": "enumTypeNode", - "variants": [ - { "kind": "enumEmptyVariantTypeNode", "name": "uninitialized" }, - { "kind": "enumEmptyVariantTypeNode", "name": "initialized" } - ], - "size": { "kind": "numberTypeNode", "format": "u32", "endian": "le" } - }, - "idlName": "NonceState", - "docs": [] - } - ], - "errors": [ - { - "kind": "errorNode", - "name": "accountAlreadyInUse", - "idlName": "AccountAlreadyInUse", - "code": 0, - "message": "an account with the same address already exists", - "docs": [ - "AccountAlreadyInUse: an account with the same address already exists" - ] - }, - { - "kind": "errorNode", - "name": "resultWithNegativeLamports", - "idlName": "ResultWithNegativeLamports", - "code": 1, - "message": "account does not have enough SOL to perform the operation", - "docs": [ - "ResultWithNegativeLamports: account does not have enough SOL to perform the operation" - ] - }, - { - "kind": "errorNode", - "name": "invalidProgramId", - "idlName": "InvalidProgramId", - "code": 2, - "message": "cannot assign account to this program id", - "docs": ["InvalidProgramId: cannot assign account to this program id"] - }, - { - "kind": "errorNode", - "name": "invalidAccountDataLength", - "idlName": "InvalidAccountDataLength", - "code": 3, - "message": "cannot allocate account data of this length", - "docs": [ - "InvalidAccountDataLength: cannot allocate account data of this length" - ] - }, - { - "kind": "errorNode", - "name": "maxSeedLengthExceeded", - "idlName": "MaxSeedLengthExceeded", - "code": 4, - "message": "length of requested seed is too long", - "docs": ["MaxSeedLengthExceeded: length of requested seed is too long"] - }, - { - "kind": "errorNode", - "name": "addressWithSeedMismatch", - "idlName": "AddressWithSeedMismatch", - "code": 5, - "message": "provided address does not match addressed derived from seed", - "docs": [ - "AddressWithSeedMismatch: provided address does not match addressed derived from seed" - ] - }, - { - "kind": "errorNode", - "name": "nonceNoRecentBlockhashes", - "idlName": "NonceNoRecentBlockhashes", - "code": 6, - "message": "advancing stored nonce requires a populated RecentBlockhashes sysvar", - "docs": [ - "NonceNoRecentBlockhashes: advancing stored nonce requires a populated RecentBlockhashes sysvar" - ] - }, - { - "kind": "errorNode", - "name": "nonceBlockhashNotExpired", - "idlName": "NonceBlockhashNotExpired", - "code": 7, - "message": "stored nonce is still in recent_blockhashes", - "docs": [ - "NonceBlockhashNotExpired: stored nonce is still in recent_blockhashes" - ] - }, - { - "kind": "errorNode", - "name": "nonceUnexpectedBlockhashValue", - "idlName": "NonceUnexpectedBlockhashValue", - "code": 8, - "message": "specified nonce does not match stored nonce", - "docs": [ - "NonceUnexpectedBlockhashValue: specified nonce does not match stored nonce" - ] - } - ], - "name": "system", - "prefix": "", - "publicKey": "11111111111111111111111111111111", - "version": "0.0.1", - "origin": "shank" - }, - "additionalPrograms": [], - "standard": "kinobi", - "version": "0.20.0" + "name": "system", + "prefix": "", + "publicKey": "11111111111111111111111111111111", + "version": "0.0.1", + "origin": "shank" + }, + "additionalPrograms": [], + "standard": "codama", + "version": "0.20.0" } diff --git a/packages/renderers-rust/package.json b/packages/renderers-rust/package.json index fc11cb96b..9fe6dfedb 100644 --- a/packages/renderers-rust/package.json +++ b/packages/renderers-rust/package.json @@ -55,10 +55,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-rust/public/templates/layout.njk b/packages/renderers-rust/public/templates/layout.njk index aae2f26ed..0460c3025 100644 --- a/packages/renderers-rust/public/templates/layout.njk +++ b/packages/renderers-rust/public/templates/layout.njk @@ -1,7 +1,7 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! {% block main %}{% endblock %} diff --git a/packages/renderers/README.md b/packages/renderers/README.md index d3f94c1be..02b5b1401 100644 --- a/packages/renderers/README.md +++ b/packages/renderers/README.md @@ -16,7 +16,7 @@ pnpm install @codama/renderers ``` > [!NOTE] -> This package is **not** included in the main [`kinobi`](../library) package. +> This package is **not** included in the main [`codama`](../library) package. ## Available renderers @@ -27,10 +27,10 @@ The following renderer packages are included in this package: - [`@codama/renderers-rust`](../renderers-rust) as `renderRustVisitor` ```ts -// node ./kinobi.mjs +// node ./codama.mjs import { renderJavaScriptVisitor, renderJavaScriptUmiVisitor, renderRustVisitor } from '@codama/renderers'; -kinobi.accept(renderJavaScriptVisitor('clients/js/src/generated')); -kinobi.accept(renderJavaScriptUmiVisitor('clients/js-umi/src/generated')); -kinobi.accept(renderRustVisitor('clients/rust/src/generated')); +codama.accept(renderJavaScriptVisitor('clients/js/src/generated')); +codama.accept(renderJavaScriptUmiVisitor('clients/js-umi/src/generated')); +codama.accept(renderRustVisitor('clients/rust/src/generated')); ``` diff --git a/packages/renderers/package.json b/packages/renderers/package.json index 7fe2cf28f..f49f916b9 100644 --- a/packages/renderers/package.json +++ b/packages/renderers/package.json @@ -45,10 +45,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/validators/README.md b/packages/validators/README.md index 1bc73964d..ba4cc726e 100644 --- a/packages/validators/README.md +++ b/packages/validators/README.md @@ -16,10 +16,10 @@ pnpm install @codama/validators ``` > [!NOTE] -> This package is included in the main [`kinobi`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. > > ```sh -> pnpm install kinobi +> pnpm install codama > ``` ## Types @@ -50,7 +50,7 @@ The `getValidationItemsVisitor` function returns a visitor that collects all val ```ts import { getValidationItemsVisitor } from '@codama/validators'; -const validationItems = kinobi.accept(getValidationItemsVisitor()); +const validationItems = codama.accept(getValidationItemsVisitor()); ``` ### `throwValidatorItemsVisitor(visitor)` @@ -61,8 +61,8 @@ The `throwValidatorItemsVisitor` function accepts a `Visitor` import { throwValidatorItemsVisitor, getValidationItemsVisitor } from '@codama/validators'; // Throw if any "error" items are found. -kinobi.accept(throwValidatorItemsVisitor(getValidationItemsVisitor())); +codama.accept(throwValidatorItemsVisitor(getValidationItemsVisitor())); // Throw if any "warn" or "error" items are found. -kinobi.accept(throwValidatorItemsVisitor(getValidationItemsVisitor(), 'warn')); +codama.accept(throwValidatorItemsVisitor(getValidationItemsVisitor(), 'warn')); ``` diff --git a/packages/validators/package.json b/packages/validators/package.json index aff53d741..39f38499f 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors-core/README.md b/packages/visitors-core/README.md index db37a6c72..eb1e81f02 100644 --- a/packages/visitors-core/README.md +++ b/packages/visitors-core/README.md @@ -16,11 +16,11 @@ pnpm install @codama/visitors-core ``` > [!NOTE] -> This package is included in the [`@codama/visitors`](../visitors) package and in the main [`kinobi`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/visitors`](../visitors) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. > > ```sh > pnpm install @codama/visitors -> pnpm install kinobi +> pnpm install codama > ``` ## Getting started with visitors @@ -78,14 +78,14 @@ The `visitOrElse` function can also be used to gracefully handle the case where const counter: number = visit(stringTypeNode, accountCounterVisitor(), () => 0); ``` -Also note that, if you are using [the `Kinobi` interface](../library/README#kinobi) — which is a simple wrapper around a `RootNode` — you may visit that root node using the provided helpers: +Also note that, if you are using [the `Kinobi` interface](../library/README#codama) — which is a simple wrapper around a `RootNode` — you may visit that root node using the provided helpers: ```ts // Runs the visitor and returns the result. -const result: number = kinobi.accept(myNumberVisitor()); +const result: number = codama.accept(myNumberVisitor()); // Runs the visitor and updates the wrapped `RootNode` with the result. -kinobi.update(myTransformerVisitor()); +codama.update(myTransformerVisitor()); ``` ## Core visitors diff --git a/packages/visitors-core/package.json b/packages/visitors-core/package.json index 98c35c357..b7e882095 100644 --- a/packages/visitors-core/package.json +++ b/packages/visitors-core/package.json @@ -59,10 +59,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors/README.md b/packages/visitors/README.md index dcc412a57..564bd7fe8 100644 --- a/packages/visitors/README.md +++ b/packages/visitors/README.md @@ -16,10 +16,10 @@ pnpm install @codama/visitors ``` > [!NOTE] -> This package is included in the main [`kinobi`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. > > ```sh -> pnpm install kinobi +> pnpm install codama > ``` ## Understanding visitors @@ -41,7 +41,7 @@ Let's go through all of them alphabetically. This visitor adds `PdaNodes` to the desired `ProgramNodes`. It accepts an object where the keys are the program names and the values are the `PdaNodes` to add within these programs. ```ts -kinobi.update( +codama.update( addPdasVisitor({ // Add a PDA to the 'token' program. token: [ @@ -77,7 +77,7 @@ kinobi.update( This visitor splits an instruction into multiple sub-instructions by using an enum argument such that each of its variants creates a different sub-instruction. It accepts an object where the keys are the instruction names and the values are the enum argument names that will be used to split the instruction. ```ts -kinobi.update( +codama.update( createSubInstructionsFromEnumArgsVisitor({ mint: 'mintArgs', transfer: 'transferArgs', @@ -91,7 +91,7 @@ kinobi.update( This visitor goes through the `DefinedTypeNodes` of all `ProgramNodes` inside the Kinobi IDL and removes any duplicates. A `DefinedTypeNode` is considered a duplicate if it has the same name and data structure as another `DefinedTypeNode`. This is useful when you have multiple programs that share the same types. ```ts -kinobi.update(deduplicateIdenticalDefinedTypesVisitor()); +codama.update(deduplicateIdenticalDefinedTypesVisitor()); ``` ### `fillDefaultPdaSeedValuesVisitor` @@ -107,7 +107,7 @@ It also requires a [`LinkableDictionary`](../visitors-core/README.md#linkable-di Note that this visitor is mainly used for internal purposes. ```ts -kinobi.update(fillDefaultPdaSeedValuesVisitor(instructionNode, linkables, strictMode)); +codama.update(fillDefaultPdaSeedValuesVisitor(instructionNode, linkables, strictMode)); ``` ### `flattenInstructionDataArgumentsVisitor` @@ -115,7 +115,7 @@ kinobi.update(fillDefaultPdaSeedValuesVisitor(instructionNode, linkables, strict This visitor flattens any instruction arguments of type `StructTypeNode` such that their fields are no longer nested. This can be useful to simplify the data structure of an instruction. ```ts -kinobi.update(flattenInstructionDataArgumentsVisitor()); +codama.update(flattenInstructionDataArgumentsVisitor()); ``` ### `flattenStructVisitor` @@ -123,7 +123,7 @@ kinobi.update(flattenInstructionDataArgumentsVisitor()); This visitor flattens any struct fields that are also structs such that their fields are no longer nested. It accepts an object such that the keys are the struct names and the values are the field names to flatten or `"*"` to flatten all struct fields. ```ts -kinobi.update( +codama.update( flattenStructVisitor({ counter: ['data', 'config'], escrow: '*', @@ -136,7 +136,7 @@ kinobi.update( This visitor goes through all `DefinedTypeNodes` and outputs a histogram of how many times each type is used in the Kinobi IDL. ```ts -const histogram = kinobi.accept(getDefinedTypeHistogramVisitor()); +const histogram = codama.accept(getDefinedTypeHistogramVisitor()); ``` The returned histogram is an object such that the keys are the names of visited `DefinedTypeNodes` and the values are objects with properties described below. @@ -165,7 +165,7 @@ This histogram is used internally in other visitors to understand how types are This visitor helps set account discriminators based on a field in the account data and the value it should take. This is typically used on the very first field of the account data which usually refers to a discriminator value that helps distinguish between multiple accounts in a program. ```ts -kinobi.update( +codama.update( setAccountDiscriminatorFromFieldVisitor({ counter: { field: 'discriminator', value: k.enumValueNode('accountState', 'counter') }, escrow: { field: 'discriminator', value: k.enumValueNode('accountState', 'escrow') }, @@ -179,7 +179,7 @@ kinobi.update( This visitor uses the [`getByteSizeVisitor`](../visitors-core/README.md#getbytesizevisitor) to check the size of all `AccountNodes` and, if a fixed-size is identified, it sets the `size` property of the account to that value. ```ts -kinobi.update(setFixedAccountSizesVisitor()); +codama.update(setFixedAccountSizesVisitor()); ``` ### `setInstructionAccountDefaultValuesVisitor` @@ -187,7 +187,7 @@ kinobi.update(setFixedAccountSizesVisitor()); This visitor helps set the default values of instruction accounts in bulk. It accepts an array of "rule" objects that must contain the default value to set and the name of the instruction account to set it on. The account name may also be a regular expression to match more complex patterns. ```ts -kinobi.update( +codama.update( setInstructionAccountDefaultValuesVisitor([ { // Set this public key as default value to any account named 'counterProgram'. @@ -208,7 +208,7 @@ kinobi.update( This visitor adds a new instruction argument to each of the provided instruction names. The new argument is added before any existing argument and marked as a discriminator of the instruction. This is useful if your Kinobi IDL is missing discriminators in the instruction data. ```ts -kinobi.update( +codama.update( setInstructionDiscriminatorsVisitor({ mint: { name: 'discriminator', type: numberTypeNode('u8'), value: numberValueNode(0) }, transfer: { name: 'discriminator', type: numberTypeNode('u8'), value: numberValueNode(1) }, @@ -222,7 +222,7 @@ kinobi.update( This visitor helps wrap `NumberTypeNodes` matching a given name with a specific number wrapper. ```ts -kinobi.update( +codama.update( setNumberWrappersVisitor({ lamports: { kind: 'SolAmount' }, timestamp: { kind: 'DateTime' }, @@ -236,7 +236,7 @@ kinobi.update( This visitor sets default values for all provided fields of a struct. It accepts an object where the keys are the struct names and the values are objects that map field names to their new default values. ```ts -kinobi.update( +codama.update( setStructDefaultValuesVisitor({ person: { age: numberValueNode(42), @@ -254,7 +254,7 @@ kinobi.update( This visitor transforms `DefinedTypeNodes` matching the provided names into `AccountNodes` within the same `ProgramNode`. ```ts -kinobi.update(transformDefinedTypesIntoAccountsVisitor(['counter', 'escrow'])); +codama.update(transformDefinedTypesIntoAccountsVisitor(['counter', 'escrow'])); ``` ### `transformU8ArraysToBytesVisitor` @@ -262,7 +262,7 @@ kinobi.update(transformDefinedTypesIntoAccountsVisitor(['counter', 'escrow'])); This visitor transforms any fixed-size array of `u8` numbers into a fixed-size `BytesTypeNode`. ```ts -kinobi.update(transformU8ArraysToBytesVisitor()); +codama.update(transformU8ArraysToBytesVisitor()); ``` ### `unwrapDefinedTypesVisitor` @@ -272,7 +272,7 @@ This visitor replaces any `DefinedTypeLinkNode` with the actual `DefinedTypeNode Note that if multiple link nodes point to the same defined type, each link node will be replaced by a copy of the defined type. ```ts -kinobi.update(unwrapDefinedTypesVisitor(['counter', 'escrow'])); +codama.update(unwrapDefinedTypesVisitor(['counter', 'escrow'])); ``` ### `unwrapInstructionArgsDefinedTypesVisitor` @@ -280,7 +280,7 @@ kinobi.update(unwrapDefinedTypesVisitor(['counter', 'escrow'])); This visitor replaces `DefinedTypeLinkNodes` used only once inside an instruction argument with the actual `DefinedTypeNodes` they refer to. ```ts -kinobi.update(unwrapInstructionArgsDefinedTypesVisitor()); +codama.update(unwrapInstructionArgsDefinedTypesVisitor()); ``` ### `unwrapTupleEnumWithSingleStructVisitor` @@ -288,7 +288,7 @@ kinobi.update(unwrapInstructionArgsDefinedTypesVisitor()); This visitor transforms `EnumTupleVariantTypeNodes` with a single `StructTypeNode` item into `EnumStructVariantTypeNodes`. By default, it will unwrap all tuple variants matching that criteria, but you can provide an array of names to only unwrap specific variants. ```ts -kinobi.update(unwrapTupleEnumWithSingleStructVisitor()); +codama.update(unwrapTupleEnumWithSingleStructVisitor()); ``` ### `unwrapTypeDefinedLinksVisitor` @@ -298,7 +298,7 @@ This visitor replaces any `DefinedTypeLinkNode` matching the provided `NodeSelec Contrary to the `unwrapDefinedTypesVisitor` though, it only replaces the requested `DefinedTypeLinkNodes` and does not remove the associated `DefinedTypeNode` from its `ProgramNode`. ```ts -kinobi.update(unwrapTypeDefinedLinksVisitor(['[accountNode]counter.data', '[instructionNode]transfer.config'])); +codama.update(unwrapTypeDefinedLinksVisitor(['[accountNode]counter.data', '[instructionNode]transfer.config'])); ``` ### `updateAccountsVisitor` @@ -306,7 +306,7 @@ kinobi.update(unwrapTypeDefinedLinksVisitor(['[accountNode]counter.data', '[inst This visitor allows us to update various aspects of `AccountNodes` and/or delete them. It accepts an object where the keys are the account names and the values are the operations to apply to these accounts. ```ts -kinobi.update( +codama.update( updateAccountsVisitor({ vault: { // Rename the 'vault' account to 'safe'. @@ -329,7 +329,7 @@ kinobi.update( This visitor allows us to update various aspects of `DefinedTypeNode` and/or delete them. It accepts an object where the keys are the defined type names and the values are the operations to apply to these types. ```ts -kinobi.update( +codama.update( updateDefinedTypesVisitor({ options: { // Rename the 'options' type to 'configs'. @@ -350,7 +350,7 @@ kinobi.update( This visitor allows us to update various aspects of `ErrorNodes` and/or delete them. It accepts an object where the keys are the error names and the values are the operations to apply to these errors. ```ts -kinobi.update( +codama.update( updateErrorsVisitor({ invalidPda: { // Rename the 'invalidPda' error to 'invalidProgramDerivedAddress'. @@ -373,7 +373,7 @@ kinobi.update( This visitor allows us to update various aspects of `InstructionNodes` and/or delete them. It accepts an object where the keys are the instruction names and the values are the operations to apply to these instructions. ```ts -kinobi.update( +codama.update( updateInstructionsVisitor({ send: { // Rename the 'send' instruction to 'transfer'. @@ -408,7 +408,7 @@ kinobi.update( This visitor allows us to update various aspects of `ProgramNodes` and/or delete them. It accepts an object where the keys are the program names and the values are the operations to apply to these programs. ```ts -kinobi.update( +codama.update( updateProgramsVisitor({ splToken: { // Rename the 'splToken' program to 'token'. diff --git a/packages/visitors/package.json b/packages/visitors/package.json index eeeecc8bd..878aff3ef 100644 --- a/packages/visitors/package.json +++ b/packages/visitors/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/kinobi" + "url": "https://github.com/codama/codama" }, "bugs": { - "url": "http://github.com/codama/kinobi/issues" + "url": "http://github.com/codama/codama/issues" }, "browserslist": [ "supports bigint and not dead", From a9d524422bb1e127f009fa5bb5faef4c93ad08dd Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:43:59 +0100 Subject: [PATCH 03/14] Rename `Kinobi` to `Codama` --- LICENSE | 2 +- README.md | 42 +++++++++---------- packages/errors/LICENSE | 2 +- packages/errors/README.md | 6 +-- packages/errors/package.json | 2 +- packages/errors/src/cli.ts | 4 +- packages/errors/src/codes.ts | 2 +- packages/errors/src/message-formatter.ts | 2 +- packages/errors/src/messages.ts | 2 +- packages/errors/test/error.test.ts | 4 +- packages/internals/README.md | 2 +- packages/library/LICENSE | 2 +- packages/library/README.md | 26 ++++++------ packages/library/src/kinobi.ts | 10 ++--- packages/node-types/LICENSE | 2 +- packages/node-types/README.md | 4 +- packages/node-types/package.json | 2 +- packages/nodes-from-anchor/LICENSE | 2 +- packages/nodes-from-anchor/README.md | 6 +-- packages/nodes-from-anchor/package.json | 2 +- packages/nodes/LICENSE | 2 +- packages/nodes/README.md | 8 ++-- packages/nodes/docs/RootNode.md | 8 ++-- .../contextualValueNodes/ResolverValueNode.md | 2 +- .../nodes/docs/linkNodes/AccountLinkNode.md | 2 +- .../docs/linkNodes/DefinedTypeLinkNode.md | 2 +- .../linkNodes/InstructionAccountLinkNode.md | 2 +- .../linkNodes/InstructionArgumentLinkNode.md | 2 +- .../docs/linkNodes/InstructionLinkNode.md | 2 +- packages/nodes/docs/linkNodes/PdaLinkNode.md | 2 +- .../nodes/docs/linkNodes/ProgramLinkNode.md | 2 +- packages/nodes/package.json | 2 +- packages/nodes/test/RootNode.test.ts | 4 +- packages/renderers-core/LICENSE | 2 +- packages/renderers-core/README.md | 6 +-- packages/renderers-core/package.json | 2 +- packages/renderers-js-umi/LICENSE | 2 +- packages/renderers-js-umi/README.md | 10 ++--- packages/renderers-js/LICENSE | 2 +- packages/renderers-js/README.md | 8 ++-- packages/renderers-rust/LICENSE | 2 +- packages/renderers-rust/README.md | 6 +-- packages/renderers/LICENSE | 2 +- packages/renderers/README.md | 4 +- packages/renderers/package.json | 2 +- packages/validators/LICENSE | 2 +- packages/validators/README.md | 10 ++--- packages/validators/package.json | 2 +- packages/visitors-core/LICENSE | 2 +- packages/visitors-core/README.md | 12 +++--- packages/visitors-core/package.json | 2 +- packages/visitors-core/src/NodeSelector.ts | 2 +- packages/visitors/LICENSE | 2 +- packages/visitors/README.md | 14 +++---- packages/visitors/package.json | 2 +- 55 files changed, 132 insertions(+), 132 deletions(-) diff --git a/LICENSE b/LICENSE index 8e3690394..991e8120b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/README.md b/README.md index 90735bdb2..204a4fd19 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Kinobi +# Codama [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -10,26 +10,26 @@ [ci-image]: https://img.shields.io/github/actions/workflow/status/codama/codama/main.yml?logo=GitHub [ci-url]: https://github.com/codama/codama/actions/workflows/main.yml -Kinobi is a tool that describes any Solana program in a powerful standardised format known as the Kinobi IDL. This IDL can then be used to create a variety of utility such as rendering client code for your programs in various languages/frameworks, generating CLIs and providing more information to explorers. +Codama is a tool that describes any Solana program in a powerful standardised format known as the Codama IDL. This IDL can then be used to create a variety of utility such as rendering client code for your programs in various languages/frameworks, generating CLIs and providing more information to explorers. -![Kinobi header: A small double-sided mind-map with the Kinobi logo in the middle. On the left, we see the various ways to get a Kinobi IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/codama/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) +![Codama header: A small double-sided mind-map with the Codama logo in the middle. On the left, we see the various ways to get a Codama IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/codama/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) ## Nodes and visitors -The Kinobi IDL is designed as a tree of nodes starting with the `RootNode` which contains a `ProgramNode` and additional data such as the Kinobi version used when the IDL was created. Kinobi provides over 60 different types of nodes that help describe just about any aspect of your Solana programs. [You can read more about the Kinobi nodes here](./packages/nodes). +The Codama IDL is designed as a tree of nodes starting with the `RootNode` which contains a `ProgramNode` and additional data such as the Codama version used when the IDL was created. Codama provides over 60 different types of nodes that help describe just about any aspect of your Solana programs. [You can read more about the Codama nodes here](./packages/nodes). -![A small example of a Kinobi IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/codama/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) +![A small example of a Codama IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/codama/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) -Because everything is designed as a `Node`, we can transform the IDL, aggregate information and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Kinobi visitors](./packages/visitors). +Because everything is designed as a `Node`, we can transform the IDL, aggregate information and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Codama visitors](./packages/visitors). -![A small example of how a visitor can transform a Kinobi IDL into another Kinobi IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/codama/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) +![A small example of how a visitor can transform a Codama IDL into another Codama IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/codama/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) -## From program to Kinobi +## From program to Codama -There are various ways to extract information from your Solana programs in order to obtain a Kinobi IDL. +There are various ways to extract information from your Solana programs in order to obtain a Codama IDL. -- **Using Kinobi macros**. This is not yet available but you will soon have access to a set of Rust macros that help attach IDL information directly within your Rust code. These macros enable Kinobi IDLs to be generated whenever you build your programs. -- **From Anchor IDLs**. If you are using [Anchor programs](https://github.com/coral-xyz/anchor) or [Shank macros](https://github.com/metaplex-foundation/shank), then you can get an Anchor IDL from them. You can then use the `@codama/nodes-from-anchor` package to convert that IDL into a Kinobi IDL as shown in the code snippet below. Note that the Anchor IDL might not offer all the information that Kinobi can hold and therefore, you may want to transform your Kinobi IDL to provide additional information. You can learn more about this in the next section. +- **Using Codama macros**. This is not yet available but you will soon have access to a set of Rust macros that help attach IDL information directly within your Rust code. These macros enable Codama IDLs to be generated whenever you build your programs. +- **From Anchor IDLs**. If you are using [Anchor programs](https://github.com/coral-xyz/anchor) or [Shank macros](https://github.com/metaplex-foundation/shank), then you can get an Anchor IDL from them. You can then use the `@codama/nodes-from-anchor` package to convert that IDL into a Codama IDL as shown in the code snippet below. Note that the Anchor IDL might not offer all the information that Codama can hold and therefore, you may want to transform your Codama IDL to provide additional information. You can learn more about this in the next section. ```ts import { createFromRoot } from 'codama'; @@ -39,11 +39,11 @@ There are various ways to extract information from your Solana programs in order const codama = createFromRoot(rootNodeFromAnchor(anchorIdl)); ``` -- **By hand**. If your Solana program cannot be updated to use Kinobi macros and you don’t have an Anchor IDL, you may design your Kinobi IDL by hand. We may provide tools such as a Kinobi Playground to help with that in the future. +- **By hand**. If your Solana program cannot be updated to use Codama macros and you don’t have an Anchor IDL, you may design your Codama IDL by hand. We may provide tools such as a Codama Playground to help with that in the future. -## Transforming Kinobi +## Transforming Codama -Once you have your Kinobi IDL, you may use visitors to transform it. This can be useful when the Kinobi IDL was obtained from another source that may not contain some necessary information. Here is an example using two provided visitors that adjusts the accounts and instructions on the program. +Once you have your Codama IDL, you may use visitors to transform it. This can be useful when the Codama IDL was obtained from another source that may not contain some necessary information. Here is an example using two provided visitors that adjusts the accounts and instructions on the program. ```ts import { updateAccountsVisitor, updateInstructionsVisitor } from 'codama'; @@ -52,13 +52,13 @@ codama.update(updateAccountsVisitor({ ... })); codama.update(updateInstructionsVisitor({ ... })); ``` -## From Kinobi to utility +## From Codama to utility -Now that you have the perfect Kinobi IDL for your Solana program, you can benefit from all the visitors and tools that provide utility such as rendering client code or registering your IDL on-chain so explorers can dynamically display relevant information for your program. +Now that you have the perfect Codama IDL for your Solana program, you can benefit from all the visitors and tools that provide utility such as rendering client code or registering your IDL on-chain so explorers can dynamically display relevant information for your program. -_Note that some features such as rendering CLIs are not yet available. However, because the Kinobi IDL is designed as a tree of nodes, these features are only a visitor away from being ready. Feel free to reach out if you’d like to contribute to this Kinobi ecosystem._ +_Note that some features such as rendering CLIs are not yet available. However, because the Codama IDL is designed as a tree of nodes, these features are only a visitor away from being ready. Feel free to reach out if you’d like to contribute to this Codama ecosystem._ -- **Rendering client code**. Want people to start interacting with your Solana program? You can use special visitors that go through your Kinobi IDL and generate client code that you can then publish for your end-users. Currently, we have the following renderers available: +- **Rendering client code**. Want people to start interacting with your Solana program? You can use special visitors that go through your Codama IDL and generate client code that you can then publish for your end-users. Currently, we have the following renderers available: - `@codama/renderers-js`: Renders a JavaScript client compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). - `@codama/renderers-js-umi`: Renders a JavaScript client compatible with Metaplex’s [Umi](https://github.com/metaplex-foundation/umi) framework. @@ -74,6 +74,6 @@ _Note that some features such as rendering CLIs are not yet available. However, codama.accept(renderRustVisitor('clients/rust/src/generated', { ... })); ``` -- **Registering your Kinobi IDL on-chain** (_Coming soon_). Perhaps the biggest benefit of having a Kinobi IDL from your program is that you can share it on-chain with the rest of the ecosystem. This means explorers may now use this information to provide a better experience for users of your programs. Additionally, anyone can now grab your Kinobi IDL, select the portion they are interested in and benefit from the same ecosystem of Kinobi visitors to iterate over it. For instance, an app could decide to grab the IDLs of all programs they depend on, filter out the accounts and instructions they don’t need and generate a bespoke client for their app that only contains the functions the app needs. -- **Rendering CLIs** (_Not yet available_). Whilst not available yet, we can imagine a set of CLI commands that can be generated from our Kinobi IDL (much like our clients) so that end-users can fetch decoded accounts and send instructions directly from their terminal. -- **Rendering documentation** (_Not yet available_). Similarly to CLIs, we may easily generate documentation in various formats from the information held by our Kinobi IDL. +- **Registering your Codama IDL on-chain** (_Coming soon_). Perhaps the biggest benefit of having a Codama IDL from your program is that you can share it on-chain with the rest of the ecosystem. This means explorers may now use this information to provide a better experience for users of your programs. Additionally, anyone can now grab your Codama IDL, select the portion they are interested in and benefit from the same ecosystem of Codama visitors to iterate over it. For instance, an app could decide to grab the IDLs of all programs they depend on, filter out the accounts and instructions they don’t need and generate a bespoke client for their app that only contains the functions the app needs. +- **Rendering CLIs** (_Not yet available_). Whilst not available yet, we can imagine a set of CLI commands that can be generated from our Codama IDL (much like our clients) so that end-users can fetch decoded accounts and send instructions directly from their terminal. +- **Rendering documentation** (_Not yet available_). Similarly to CLIs, we may easily generate documentation in various formats from the information held by our Codama IDL. diff --git a/packages/errors/LICENSE b/packages/errors/LICENSE index 2373f9fdc..22fd7b02c 100644 --- a/packages/errors/LICENSE +++ b/packages/errors/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the diff --git a/packages/errors/README.md b/packages/errors/README.md index ed8b2272f..9306e51b3 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Errors +# Codama ➤ Errors [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -16,7 +16,7 @@ pnpm install @codama/errors ``` > [!NOTE] -> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Codama this way. > > ```sh > pnpm install codama @@ -64,7 +64,7 @@ try { ### Adding a new error -To add a new error in Kinobi, follow these steps: +To add a new error in Codama, follow these steps: 1. Add a new exported error code constant to `src/codes.ts`. Find the most appropriate group for your error and ensure it is appended to the end of that group. 2. Add that new constant to the `KinobiErrorCode` union in `src/codes.ts`. diff --git a/packages/errors/package.json b/packages/errors/package.json index 378bef994..406b1a20c 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,7 +1,7 @@ { "name": "@codama/errors", "version": "0.22.0", - "description": "Error management for Kinobi", + "description": "Error management for Codama", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/errors/src/cli.ts b/packages/errors/src/cli.ts index 88db34f37..63aeb9ec9 100755 --- a/packages/errors/src/cli.ts +++ b/packages/errors/src/cli.ts @@ -14,7 +14,7 @@ import { KinobiErrorMessages } from './messages'; const program = new Command(); -program.name('@codama/errors').description('Decode Kinobi JavaScript errors thrown in production').version(version); +program.name('@codama/errors').description('Decode Codama JavaScript errors thrown in production').version(version); program .command('decode') @@ -50,7 +50,7 @@ ${ chalk.rgb(79, 212, 181)('e') + chalk.rgb(57, 227, 166)('d') + chalk.rgb(19, 241, 149)(']'), - ) + chalk.rgb(19, 241, 149)(' Kinobi error code #' + code) + ) + chalk.rgb(19, 241, 149)(' Codama error code #' + code) } - ${message}`); if (context) { diff --git a/packages/errors/src/codes.ts b/packages/errors/src/codes.ts index 577d287e3..699c3e85f 100644 --- a/packages/errors/src/codes.ts +++ b/packages/errors/src/codes.ts @@ -61,7 +61,7 @@ export const KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED = 2100004 as const; export const KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; /** - * A union of every Kinobi error code + * A union of every Codama error code * * You might be wondering why this is not a TypeScript enum or const enum. * diff --git a/packages/errors/src/message-formatter.ts b/packages/errors/src/message-formatter.ts index 33abc8c4b..259676f79 100644 --- a/packages/errors/src/message-formatter.ts +++ b/packages/errors/src/message-formatter.ts @@ -22,7 +22,7 @@ export function getErrorMessage(code: TError if (process.env.NODE_ENV !== 'production') { return getHumanReadableErrorMessage(code, context); } else { - let decodingAdviceMessage = `Kinobi error #${code}; Decode this error by running \`npx @codama/errors decode -- ${code}`; + let decodingAdviceMessage = `Codama error #${code}; Decode this error by running \`npx @codama/errors decode -- ${code}`; if (Object.keys(context).length) { /** * DANGER: Be sure that the shell command is escaped in such a way that makes it diff --git a/packages/errors/src/messages.ts b/packages/errors/src/messages.ts index 901295f28..10ad5f360 100644 --- a/packages/errors/src/messages.ts +++ b/packages/errors/src/messages.ts @@ -53,7 +53,7 @@ export const KinobiErrorMessages: Readonly<{ [KINOBI_ERROR__UNEXPECTED_NODE_KIND]: 'Expected node of kind [$expectedKinds], got [$kind].', [KINOBI_ERROR__UNRECOGNIZED_NODE_KIND]: 'Unrecognized node kind [$kind].', [KINOBI_ERROR__VERSION_MISMATCH]: - 'The provided RootNode version [$rootVersion] is not compatible with the installed Kinobi version [$kinobiVersion].', + 'The provided RootNode version [$rootVersion] is not compatible with the installed Codama version [$kinobiVersion].', [KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: 'Account [$name] does not have a field named [$missingField].', [KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: 'Cannot add PDAs to program [$programName] because the following PDA names already exist [$duplicatedPdaNames].', diff --git a/packages/errors/test/error.test.ts b/packages/errors/test/error.test.ts index e2d0511b4..37ae55e23 100644 --- a/packages/errors/test/error.test.ts +++ b/packages/errors/test/error.test.ts @@ -7,12 +7,12 @@ import { KinobiError, } from '../src'; -test('it exposes the Kinobi error context', () => { +test('it exposes the Codama error context', () => { const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.context.kind).toBe('missingNode'); }); -test('it exposes the Kinobi error code', () => { +test('it exposes the Codama error code', () => { const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.context.__code).toBe(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND); }); diff --git a/packages/internals/README.md b/packages/internals/README.md index f68574e16..c5356d38c 100644 --- a/packages/internals/README.md +++ b/packages/internals/README.md @@ -1,3 +1,3 @@ -# Kinobi ➤ Internals +# Codama ➤ Internals _This package is not exported and is only used for internal purposes._ diff --git a/packages/library/LICENSE b/packages/library/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/library/LICENSE +++ b/packages/library/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/library/README.md b/packages/library/README.md index c006ec03e..5482962ee 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Main Library +# Codama ➤ Main Library [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat&label=%40kinobi-so%2Fnodes [npm-url]: https://www.npmjs.com/package/codama -This package is the main library for Kinobi. It re-exports most of the other packages in the Kinobi monorepo and offers a `Kinobi` type with a few helpers to help bind everything together. +This package is the main library for Codama. It re-exports most of the other packages in the Codama monorepo and offers a `Codama` type with a few helpers to help bind everything together. ## Installation @@ -26,18 +26,18 @@ This package includes the following packages. Note that some of them also re-exp - [`@codama/visitors`](../visitors) - [`@codama/visitor-core`](../visitor-core) -## The Kinobi helper +## The Codama helper -Additionally, this package offers a `Kinobi` type and a few helper functions to help you work with Kinobi IDLs. +Additionally, this package offers a `Codama` type and a few helper functions to help you work with Codama IDLs. -### `Kinobi` +### `Codama` -The `Kinobi` interface wraps a `RootNode` and offers some helper methods to work with it. +The `Codama` interface wraps a `RootNode` and offers some helper methods to work with it. ```ts -export interface Kinobi { +export interface Codama { accept(visitor: Visitor): T; - clone(): Kinobi; + clone(): Codama; getJson(): string; getRoot(): RootNode; update(visitor: Visitor): void; @@ -47,7 +47,7 @@ export interface Kinobi { The `accept` function allows us to visit the wrapped `RootNode` using the provided visitor. ```ts -// Log the Kinobi IDL in the console. +// Log the Codama IDL in the console. codama.accept(consoleLogVisitor(getDebugStringVisitor({ indent: true }))); ``` @@ -70,8 +70,8 @@ codama.update( Other helper functions include: -- `clone()`: Creates a new instance of the `Kinobi` interface with a deep copy of the wrapped `RootNode`. -- `getJson()`: Returns the JSON representation of the Kinobi IDL. +- `clone()`: Creates a new instance of the `Codama` interface with a deep copy of the wrapped `RootNode`. +- `getJson()`: Returns the JSON representation of the Codama IDL. - `getRoot()`: Returns the wrapped `RootNode`. ```ts @@ -82,7 +82,7 @@ const rootNode = codama.getRoot(); ### `createFromRoot(rootNode)` -The `createFromRoot` function creates a new instance of the `Kinobi` interface from a `RootNode`. +The `createFromRoot` function creates a new instance of the `Codama` interface from a `RootNode`. ```ts const codama = createFromRoot(rootNode(programNode({ ... }))); @@ -90,7 +90,7 @@ const codama = createFromRoot(rootNode(programNode({ ... }))); ### `createFromJson(jsonIdl)` -The `createFromJson` function creates a new instance of the `Kinobi` interface from a JSON representation of a `RootNode`. +The `createFromJson` function creates a new instance of the `Codama` interface from a JSON representation of a `RootNode`. ```ts const json: string = fs.readFileSync('path/to/kinobiIdl.json', 'utf-8'); diff --git a/packages/library/src/kinobi.ts b/packages/library/src/kinobi.ts index 2c9c7eb91..727998f8e 100644 --- a/packages/library/src/kinobi.ts +++ b/packages/library/src/kinobi.ts @@ -3,22 +3,22 @@ import { KinobiError } from '@codama/errors'; import { assertIsNode, KinobiVersion, Node, RootNode } from '@codama/nodes'; import { visit, Visitor } from '@codama/visitors'; -export interface Kinobi { +export interface Codama { accept(visitor: Visitor): T; - clone(): Kinobi; + clone(): Codama; getJson(): string; getRoot(): RootNode; update(visitor: Visitor): void; } -export function createFromRoot(root: RootNode): Kinobi { +export function createFromRoot(root: RootNode): Codama { let currentRoot = root; validateKinobiVersion(currentRoot.version); return { accept(visitor: Visitor): T { return visit(currentRoot, visitor); }, - clone(): Kinobi { + clone(): Codama { return createFromRoot({ ...currentRoot }); }, getJson(): string { @@ -35,7 +35,7 @@ export function createFromRoot(root: RootNode): Kinobi { }; } -export function createFromJson(json: string): Kinobi { +export function createFromJson(json: string): Codama { return createFromRoot(JSON.parse(json) as RootNode); } diff --git a/packages/node-types/LICENSE b/packages/node-types/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/node-types/LICENSE +++ b/packages/node-types/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/node-types/README.md b/packages/node-types/README.md index fcb831568..07d5de86a 100644 --- a/packages/node-types/README.md +++ b/packages/node-types/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Node Types +# Codama ➤ Node Types [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -16,7 +16,7 @@ pnpm install @codama/node-types ``` > [!NOTE] -> This package is included in the [`@codama/nodes`](../nodes) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/nodes`](../nodes) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Codama in one of these ways. > > ```sh > pnpm install @codama/nodes diff --git a/packages/node-types/package.json b/packages/node-types/package.json index 1c70d43ef..ac273963a 100644 --- a/packages/node-types/package.json +++ b/packages/node-types/package.json @@ -1,7 +1,7 @@ { "name": "@codama/node-types", "version": "0.22.0", - "description": "Node specifications for the Kinobi standard", + "description": "Node specifications for the Codama standard", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/nodes-from-anchor/LICENSE b/packages/nodes-from-anchor/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/nodes-from-anchor/LICENSE +++ b/packages/nodes-from-anchor/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/nodes-from-anchor/README.md b/packages/nodes-from-anchor/README.md index 05ffbe578..e0f764498 100644 --- a/packages/nodes-from-anchor/README.md +++ b/packages/nodes-from-anchor/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Nodes From Anchor +# Codama ➤ Nodes From Anchor [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/nodes-from-anchor.svg?style=flat&label=%40kinobi-so%2Fnodes-from-anchor [npm-url]: https://www.npmjs.com/package/@codama/nodes-from-anchor -This package converts Anchor IDLs from various versions into Kinobi IDLs. +This package converts Anchor IDLs from various versions into Codama IDLs. ## Installation @@ -35,6 +35,6 @@ import path from 'path'; const anchorIdlPath = path.join(__dirname, 'target', 'idl', 'anchor_program.json'); const anchorIdl = JSON.parse(readFileSync(anchorIdlPath, 'utf-8')); -// Parse it into a Kinobi IDL. +// Parse it into a Codama IDL. const codama = createFromRoot(rootNodeFromAnchor(anchorIdl)); ``` diff --git a/packages/nodes-from-anchor/package.json b/packages/nodes-from-anchor/package.json index 6683d2938..b347aebf6 100644 --- a/packages/nodes-from-anchor/package.json +++ b/packages/nodes-from-anchor/package.json @@ -1,7 +1,7 @@ { "name": "@codama/nodes-from-anchor", "version": "0.22.0", - "description": "Node specifications and helpers for the Kinobi standard", + "description": "Node specifications and helpers for the Codama standard", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/nodes/LICENSE b/packages/nodes/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/nodes/LICENSE +++ b/packages/nodes/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/nodes/README.md b/packages/nodes/README.md index 14fc73f09..9bdfad8a9 100644 --- a/packages/nodes/README.md +++ b/packages/nodes/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Nodes +# Codama ➤ Nodes [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/nodes.svg?style=flat&label=%40kinobi-so%2Fnodes [npm-url]: https://www.npmjs.com/package/@codama/nodes -This package defines the various nodes that make up the Kinobi IDL. It provides types and helper functions to work with these nodes. If you are looking for a type-only version of these nodes, you can find them in the [`@codama/node-types`](../node-types) package. +This package defines the various nodes that make up the Codama IDL. It provides types and helper functions to work with these nodes. If you are looking for a type-only version of these nodes, you can find them in the [`@codama/node-types`](../node-types) package. ## Installation @@ -16,7 +16,7 @@ pnpm install @codama/nodes ``` > [!NOTE] -> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Codama this way. > > ```sh > pnpm install codama @@ -24,7 +24,7 @@ pnpm install @codama/nodes ## All available nodes -The Kinobi IDL is composed of various nodes that describe different aspects of a Solana program. Some nodes are categorised together as they share a similar purpose. For instance, all the nodes that describe a data structure that can be encoded and decoded into buffers are grouped under the `TypeNode` category. +The Codama IDL is composed of various nodes that describe different aspects of a Solana program. Some nodes are categorised together as they share a similar purpose. For instance, all the nodes that describe a data structure that can be encoded and decoded into buffers are grouped under the `TypeNode` category. Below are all of the available nodes and their documentation. Also note that you can refer to any node using the [`Node`](./docs/README.md) helper type. diff --git a/packages/nodes/docs/RootNode.md b/packages/nodes/docs/RootNode.md index 108f4274a..274eb73a7 100644 --- a/packages/nodes/docs/RootNode.md +++ b/packages/nodes/docs/RootNode.md @@ -1,6 +1,6 @@ # `RootNode` -This node represents the starting point of the Kinobi IDL. It contains a single `ProgramNode` which the Kinobi IDL is describing as well as any additional programs that may be referenced by the main program. This node is also responsible for setting the standard and version of the IDL. +This node represents the starting point of the Codama IDL. It contains a single `ProgramNode` which the Codama IDL is describing as well as any additional programs that may be referenced by the main program. This node is also responsible for setting the standard and version of the IDL. ![Diagram](https://github.com/codama/codama/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) @@ -11,8 +11,8 @@ This node represents the starting point of the Kinobi IDL. It contains a single | Attribute | Type | Description | | ---------- | ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `kind` | `"rootNode"` | The node discriminator. | -| `standard` | `"codama"` | The IDL standard used by the `RootNode` which is always `"codama"`. This can help other communities fork the Kinobi standard. | -| `version` | `\d.\d.\d` | The semantic version of the standard used by the `RootNode`. That is — unless a different standard is used — this will be the Kinobi version from which this entire tree of node was created. | +| `standard` | `"codama"` | The IDL standard used by the `RootNode` which is always `"codama"`. This can help other communities fork the Codama standard. | +| `version` | `\d.\d.\d` | The semantic version of the standard used by the `RootNode`. That is — unless a different standard is used — this will be the Codama version from which this entire tree of node was created. | ### Children @@ -25,7 +25,7 @@ This node represents the starting point of the Kinobi IDL. It contains a single ### `rootNode(program, additionalPrograms?)` -Helper function that creates a `RootNode` object from a `ProgramNode` and an optional array of additional `ProgramNodes`. Note that the `standard` is automatically set to `"codama"` and the `version` is set to the Kinobi version installed. +Helper function that creates a `RootNode` object from a `ProgramNode` and an optional array of additional `ProgramNodes`. Note that the `standard` is automatically set to `"codama"` and the `version` is set to the Codama version installed. ```ts const node = rootNode(programNode({ ... })); diff --git a/packages/nodes/docs/contextualValueNodes/ResolverValueNode.md b/packages/nodes/docs/contextualValueNodes/ResolverValueNode.md index 955951ab2..5f3cdc346 100644 --- a/packages/nodes/docs/contextualValueNodes/ResolverValueNode.md +++ b/packages/nodes/docs/contextualValueNodes/ResolverValueNode.md @@ -2,7 +2,7 @@ A node that represents any custom value or logic described by some documentation. -This node acts as a fallback node for any value or logic that cannot easily be described by the other nodes. Instead, the program maintainer can use this node to describe the value or logic in detail. Visitors that render code from Kinobi IDLs will treat these `ResolverValueNodes` as functions that can be injected into the generated code. +This node acts as a fallback node for any value or logic that cannot easily be described by the other nodes. Instead, the program maintainer can use this node to describe the value or logic in detail. Visitors that render code from Codama IDLs will treat these `ResolverValueNodes` as functions that can be injected into the generated code. ## Attributes diff --git a/packages/nodes/docs/linkNodes/AccountLinkNode.md b/packages/nodes/docs/linkNodes/AccountLinkNode.md index 99d5dbc32..ebdc439c2 100644 --- a/packages/nodes/docs/linkNodes/AccountLinkNode.md +++ b/packages/nodes/docs/linkNodes/AccountLinkNode.md @@ -1,6 +1,6 @@ # `AccountLinkNode` -This node represents a reference to an existing [`AccountNode`](../AccountNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`AccountNode`](../AccountNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/DefinedTypeLinkNode.md b/packages/nodes/docs/linkNodes/DefinedTypeLinkNode.md index 641a9972d..670256a7e 100644 --- a/packages/nodes/docs/linkNodes/DefinedTypeLinkNode.md +++ b/packages/nodes/docs/linkNodes/DefinedTypeLinkNode.md @@ -1,6 +1,6 @@ # `DefinedTypeLinkNode` -This node represents a reference to an existing [`DefinedTypeNode`](../DefinedTypeNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`DefinedTypeNode`](../DefinedTypeNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/InstructionAccountLinkNode.md b/packages/nodes/docs/linkNodes/InstructionAccountLinkNode.md index 0efc6a72b..1f59488a9 100644 --- a/packages/nodes/docs/linkNodes/InstructionAccountLinkNode.md +++ b/packages/nodes/docs/linkNodes/InstructionAccountLinkNode.md @@ -1,6 +1,6 @@ # `InstructionAccountLinkNode` -This node represents a reference to an existing [`InstructionAccountNode`](../InstructionAccountNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`InstructionAccountNode`](../InstructionAccountNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/InstructionArgumentLinkNode.md b/packages/nodes/docs/linkNodes/InstructionArgumentLinkNode.md index a5f10af6b..7ab1e163f 100644 --- a/packages/nodes/docs/linkNodes/InstructionArgumentLinkNode.md +++ b/packages/nodes/docs/linkNodes/InstructionArgumentLinkNode.md @@ -1,6 +1,6 @@ # `InstructionArgumentLinkNode` -This node represents a reference to an existing [`InstructionArgumentNode`](../InstructionArgumentNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`InstructionArgumentNode`](../InstructionArgumentNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/InstructionLinkNode.md b/packages/nodes/docs/linkNodes/InstructionLinkNode.md index 01e4e232f..5ae8745e9 100644 --- a/packages/nodes/docs/linkNodes/InstructionLinkNode.md +++ b/packages/nodes/docs/linkNodes/InstructionLinkNode.md @@ -1,6 +1,6 @@ # `InstructionLinkNode` -This node represents a reference to an existing [`InstructionNode`](../InstructionNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`InstructionNode`](../InstructionNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/PdaLinkNode.md b/packages/nodes/docs/linkNodes/PdaLinkNode.md index 80846a0f9..758eca04b 100644 --- a/packages/nodes/docs/linkNodes/PdaLinkNode.md +++ b/packages/nodes/docs/linkNodes/PdaLinkNode.md @@ -1,6 +1,6 @@ # `PdaLinkNode` -This node represents a reference to an existing [`PdaNode`](../PdaNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`PdaNode`](../PdaNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/docs/linkNodes/ProgramLinkNode.md b/packages/nodes/docs/linkNodes/ProgramLinkNode.md index e78025868..e6664b10e 100644 --- a/packages/nodes/docs/linkNodes/ProgramLinkNode.md +++ b/packages/nodes/docs/linkNodes/ProgramLinkNode.md @@ -1,6 +1,6 @@ # `ProgramLinkNode` -This node represents a reference to an existing [`ProgramNode`](../ProgramNode.md) in the Kinobi IDL. +This node represents a reference to an existing [`ProgramNode`](../ProgramNode.md) in the Codama IDL. ## Attributes diff --git a/packages/nodes/package.json b/packages/nodes/package.json index b853391c9..cc00f0c77 100644 --- a/packages/nodes/package.json +++ b/packages/nodes/package.json @@ -1,7 +1,7 @@ { "name": "@codama/nodes", "version": "0.22.0", - "description": "Node specifications and helpers for the Kinobi standard", + "description": "Node specifications and helpers for the Codama standard", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/nodes/test/RootNode.test.ts b/packages/nodes/test/RootNode.test.ts index 7b090db5e..bf402e87c 100644 --- a/packages/nodes/test/RootNode.test.ts +++ b/packages/nodes/test/RootNode.test.ts @@ -8,12 +8,12 @@ test('it returns the right node kind', () => { expect(root.kind).toBe('rootNode'); }); -test('it returns the right Kinobi standard', () => { +test('it returns the right Codama standard', () => { const root = rootNode(programNode({ name: 'foo', publicKey: '1111' })); expect(root.standard).toBe('codama'); }); -test('it returns the right Kinobi version', () => { +test('it returns the right Codama version', () => { const root = rootNode(programNode({ name: 'foo', publicKey: '1111' })); expect(root.version).toBe(__VERSION__); expectTypeOf(root.version).toMatchTypeOf(); diff --git a/packages/renderers-core/LICENSE b/packages/renderers-core/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/renderers-core/LICENSE +++ b/packages/renderers-core/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/renderers-core/README.md b/packages/renderers-core/README.md index e200b67f2..a1b9e8c42 100644 --- a/packages/renderers-core/README.md +++ b/packages/renderers-core/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Renderers ➤ Core +# Codama ➤ Renderers ➤ Core [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/renderers-core.svg?style=flat&label=%40kinobi-so%2Frenderers-core [npm-url]: https://www.npmjs.com/package/@codama/renderers-core -This package provides the core utility for generating clients from Kinobi IDLs. Its aim is mainly to provide helpers for other renderer packages such as [`@codama/renderers-js`](../renderers-js) and [`@codama/renderers-rust`](../renderers-rust). +This package provides the core utility for generating clients from Codama IDLs. Its aim is mainly to provide helpers for other renderer packages such as [`@codama/renderers-js`](../renderers-js) and [`@codama/renderers-rust`](../renderers-rust). ## Installation @@ -132,7 +132,7 @@ renderMap.write('src/generated'); ### Using visitors -When building renderers, you will most likely create a visitor that traverses the Kinobi IDL and returns a `RenderMap`. That way, you can test the generated content without having to write it to the filesystem. For instance, the [`@codama/renderers-js`](../renderers-js) package exports a `getRenderMapVisitor` function that does just that. +When building renderers, you will most likely create a visitor that traverses the Codama IDL and returns a `RenderMap`. That way, you can test the generated content without having to write it to the filesystem. For instance, the [`@codama/renderers-js`](../renderers-js) package exports a `getRenderMapVisitor` function that does just that. ```ts import { getRenderMapVisitor } from '@codama/renderers-js'; diff --git a/packages/renderers-core/package.json b/packages/renderers-core/package.json index cfb98a02e..b9a28e1f2 100644 --- a/packages/renderers-core/package.json +++ b/packages/renderers-core/package.json @@ -1,7 +1,7 @@ { "name": "@codama/renderers-core", "version": "0.22.0", - "description": "Core types and helpers for Kinobi renderers to use", + "description": "Core types and helpers for Codama renderers to use", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/renderers-js-umi/LICENSE b/packages/renderers-js-umi/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/renderers-js-umi/LICENSE +++ b/packages/renderers-js-umi/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/renderers-js-umi/README.md b/packages/renderers-js-umi/README.md index 38dacb885..dc1dbcf15 100644 --- a/packages/renderers-js-umi/README.md +++ b/packages/renderers-js-umi/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Renderers ➤ JavaScript Umi +# Codama ➤ Renderers ➤ JavaScript Umi [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/renderers-js-umi.svg?style=flat&label=%40kinobi-so%2Frenderers-js-umi [npm-url]: https://www.npmjs.com/package/@codama/renderers-js-umi -This package generates JavaScript clients from your Kinobi IDLs. The generated clients are compatible with Metaplex's [Umi framework](https://github.com/metaplex-foundation/umi). +This package generates JavaScript clients from your Codama IDLs. The generated clients are compatible with Metaplex's [Umi framework](https://github.com/metaplex-foundation/umi). ## Installation @@ -22,7 +22,7 @@ pnpm install @codama/renderers-js-umi ## Usage -Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate JavaScript clients compatible with Umi. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. +Once you have a Codama IDL, you can use the `renderVisitor` of this package to generate JavaScript clients compatible with Umi. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts // node ./codama.mjs @@ -42,11 +42,11 @@ The `renderVisitor` accepts the following options. | `deleteFolderBeforeRendering` | `boolean` | `true` | Whether the base directory should be cleaned before generating new files. | | `formatCode` | `boolean` | `true` | Whether we should use Prettier to format the generated code. | | `prettierOptions` | `PrettierOptions` | `{}` | The options to use when formatting the code using Prettier. | -| `throwLevel` | `'debug' \| 'trace' \| 'info' \| 'warn' \| 'error'` | `'error'` | When validating the Kinobi IDL, the level at which the validation should throw an error. | +| `throwLevel` | `'debug' \| 'trace' \| 'info' \| 'warn' \| 'error'` | `'error'` | When validating the Codama IDL, the level at which the validation should throw an error. | | `customAccountData` | `string[]` | `[]` | The names of all `AccountNodes` whose data should be manually written in JavaScript. | | `customInstructionData` | `string[]` | `[]` | The names of all `InstructionNodes` whose data should be manually written in JavaScript. | | `linkOverrides` | `Record<'accounts' \| 'definedTypes' \| 'instructions' \| 'pdas' \| 'programs' \| 'resolvers', Record>` | `{}` | A object that overrides the import path of link nodes. For instance, `{ definedTypes: { counter: 'hooked' } }` uses the `hooked` folder to import any link node referring to the `counter` type. | | `dependencyMap` | `Record` | `{}` | A mapping between import aliases and their actual package name or path in JavaScript. | | `internalNodes` | `string[]` | `[]` | The names of all nodes that should be generated but not exported by the `index.ts` files. | -| `nonScalarEnums` | `string[]` | `[]` | The names of enum variants with no data that should be treated as a data union instead of a native `enum` type. This is only useful if you are referencing an enum value in your Kinobi IDL. | +| `nonScalarEnums` | `string[]` | `[]` | The names of enum variants with no data that should be treated as a data union instead of a native `enum` type. This is only useful if you are referencing an enum value in your Codama IDL. | | `renderParentInstructions` | `boolean` | `false` | When using nested instructions, whether the parent instructions should also be rendered. When set to `false` (default), only the instruction leaves are being rendered. | diff --git a/packages/renderers-js/LICENSE b/packages/renderers-js/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/renderers-js/LICENSE +++ b/packages/renderers-js/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/renderers-js/README.md b/packages/renderers-js/README.md index d1a004c4a..c3e182861 100644 --- a/packages/renderers-js/README.md +++ b/packages/renderers-js/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Renderers ➤ JavaScript +# Codama ➤ Renderers ➤ JavaScript [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/renderers-js.svg?style=flat&label=%40kinobi-so%2Frenderers-js [npm-url]: https://www.npmjs.com/package/@codama/renderers-js -This package generates JavaScript clients from your Kinobi IDLs. The generated clients are compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). +This package generates JavaScript clients from your Codama IDLs. The generated clients are compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). ## Installation @@ -22,7 +22,7 @@ pnpm install @codama/renderers-js ## Usage -Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate JavaScript clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. +Once you have a Codama IDL, you can use the `renderVisitor` of this package to generate JavaScript clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts // node ./codama.mjs @@ -49,6 +49,6 @@ The `renderVisitor` accepts the following options. | `dependencyMap` | `Record` | `{}` | A mapping between import aliases and their actual package name or path in JavaScript. | | `internalNodes` | `string[]` | `[]` | The names of all nodes that should be generated but not exported by the `index.ts` files. | | `nameTransformers` | `Partial` | `{}` | An object that enables us to override the names of any generated type, constant or function. | -| `nonScalarEnums` | `string[]` | `[]` | The names of enum variants with no data that should be treated as a data union instead of a native `enum` type. This is only useful if you are referencing an enum value in your Kinobi IDL. | +| `nonScalarEnums` | `string[]` | `[]` | The names of enum variants with no data that should be treated as a data union instead of a native `enum` type. This is only useful if you are referencing an enum value in your Codama IDL. | | `renderParentInstructions` | `boolean` | `false` | When using nested instructions, whether the parent instructions should also be rendered. When set to `false` (default), only the instruction leaves are being rendered. | | `useGranularImports` | `boolean` | `false` | Whether to import the `@solana/web3.js` library using sub-packages such as `@solana/addresses` or `@solana/codecs-strings`. When set to `true`, the main `@solana/web3.js` library is used which enables generated clients to install it as a `peerDependency`. | diff --git a/packages/renderers-rust/LICENSE b/packages/renderers-rust/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/renderers-rust/LICENSE +++ b/packages/renderers-rust/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/renderers-rust/README.md b/packages/renderers-rust/README.md index 3b0b70c4b..b4b15c990 100644 --- a/packages/renderers-rust/README.md +++ b/packages/renderers-rust/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Renderers ➤ Rust +# Codama ➤ Renderers ➤ Rust [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/renderers-rust.svg?style=flat&label=%40kinobi-so%2Frenderers-rust [npm-url]: https://www.npmjs.com/package/@codama/renderers-rust -This package generates Rust clients from your Kinobi IDLs. +This package generates Rust clients from your Codama IDLs. ## Installation @@ -22,7 +22,7 @@ pnpm install @codama/renderers-rust ## Usage -Once you have a Kinobi IDL, you can use the `renderVisitor` of this package to generate Rust clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. +Once you have a Codama IDL, you can use the `renderVisitor` of this package to generate Rust clients. You will need to provide the base directory where the generated files will be saved and an optional set of options to customize the output. ```ts // node ./codama.mjs diff --git a/packages/renderers/LICENSE b/packages/renderers/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/renderers/LICENSE +++ b/packages/renderers/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/renderers/README.md b/packages/renderers/README.md index 02b5b1401..74d2815d8 100644 --- a/packages/renderers/README.md +++ b/packages/renderers/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Renderers +# Codama ➤ Renderers [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/renderers.svg?style=flat&label=%40kinobi-so%2Frenderers [npm-url]: https://www.npmjs.com/package/@codama/renderers -This package re-exports all available renderers for Kinobi IDLs. +This package re-exports all available renderers for Codama IDLs. ## Installation diff --git a/packages/renderers/package.json b/packages/renderers/package.json index f49f916b9..035d4bfb3 100644 --- a/packages/renderers/package.json +++ b/packages/renderers/package.json @@ -1,7 +1,7 @@ { "name": "@codama/renderers", "version": "0.22.0", - "description": "Exports all Kinobi renderers", + "description": "Exports all Codama renderers", "exports": { "types": "./dist/types/index.d.ts", "node": { diff --git a/packages/validators/LICENSE b/packages/validators/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/validators/LICENSE +++ b/packages/validators/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/validators/README.md b/packages/validators/README.md index ba4cc726e..9b8671705 100644 --- a/packages/validators/README.md +++ b/packages/validators/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Validators +# Codama ➤ Validators [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/validators.svg?style=flat&label=%40kinobi-so%2Fvalidators [npm-url]: https://www.npmjs.com/package/@codama/validators -This package offers a set of validation rules for Kinobi IDLs to ensure that they are correctly formatted. +This package offers a set of validation rules for Codama IDLs to ensure that they are correctly formatted. ## Installation @@ -16,7 +16,7 @@ pnpm install @codama/validators ``` > [!NOTE] -> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Codama this way. > > ```sh > pnpm install codama @@ -26,7 +26,7 @@ pnpm install @codama/validators ### `ValidationItem` -A validation item describes a single piece of information — typically a warning or an error — about a node in the Kinobi IDL. +A validation item describes a single piece of information — typically a warning or an error — about a node in the Codama IDL. ```ts type ValidationItem = { @@ -45,7 +45,7 @@ type ValidationItem = { ### `getValidationItemsVisitor(visitor)` -The `getValidationItemsVisitor` function returns a visitor that collects all validation items from a Kinobi IDL. Note that this visitor is still a work in progress and does not cover all validation rules. +The `getValidationItemsVisitor` function returns a visitor that collects all validation items from a Codama IDL. Note that this visitor is still a work in progress and does not cover all validation rules. ```ts import { getValidationItemsVisitor } from '@codama/validators'; diff --git a/packages/validators/package.json b/packages/validators/package.json index 39f38499f..1d493c130 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -1,7 +1,7 @@ { "name": "@codama/validators", "version": "0.22.0", - "description": "Validator visitors for the Kinobi framework", + "description": "Validator visitors for the Codama framework", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/visitors-core/LICENSE b/packages/visitors-core/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/visitors-core/LICENSE +++ b/packages/visitors-core/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/visitors-core/README.md b/packages/visitors-core/README.md index eb1e81f02..a080b8058 100644 --- a/packages/visitors-core/README.md +++ b/packages/visitors-core/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Visitors ➤ Core +# Codama ➤ Visitors ➤ Core [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/visitors-core.svg?style=flat&label=%40kinobi-so%2Fvisitors-core [npm-url]: https://www.npmjs.com/package/@codama/visitors-core -This package provides core interfaces and utilities for creating visitors for Kinobi IDLs. +This package provides core interfaces and utilities for creating visitors for Codama IDLs. ## Installation @@ -16,7 +16,7 @@ pnpm install @codama/visitors-core ``` > [!NOTE] -> This package is included in the [`@codama/visitors`](../visitors) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Kinobi in one of these ways. +> This package is included in the [`@codama/visitors`](../visitors) package and in the main [`codama`](../library) library. Meaning, you already have access to its content if you are installing Codama in one of these ways. > > ```sh > pnpm install @codama/visitors @@ -27,7 +27,7 @@ pnpm install @codama/visitors-core ### The `Visitor` type -The type `Visitor` is the core interface for defining Kinobi visitors. The type parameter `T` is used to determine the return type of the visitor. For instance, here's the definition of a visitor that goes through the nodes and returns a number. +The type `Visitor` is the core interface for defining Codama visitors. The type parameter `T` is used to determine the return type of the visitor. For instance, here's the definition of a visitor that goes through the nodes and returns a number. ```ts let myNumberVisitor: Visitor; @@ -78,7 +78,7 @@ The `visitOrElse` function can also be used to gracefully handle the case where const counter: number = visit(stringTypeNode, accountCounterVisitor(), () => 0); ``` -Also note that, if you are using [the `Kinobi` interface](../library/README#codama) — which is a simple wrapper around a `RootNode` — you may visit that root node using the provided helpers: +Also note that, if you are using [the `Codama` interface](../library/README#codama) — which is a simple wrapper around a `RootNode` — you may visit that root node using the provided helpers: ```ts // Runs the visitor and returns the result. @@ -186,7 +186,7 @@ const node = visit(numberTypeNode('u32'), nonNullableIdentityVisitor()); The `mergeVisitor` returns a `Visitor` by accepting two functions such that: -- The first function is used on the leaves of the Kinobi IDL and returns a type `T`. +- The first function is used on the leaves of the Codama IDL and returns a type `T`. - The second function is used to merge the values `T[]` of the children of a node and aggregate them into a type `T`. For instance, here is how we can use the `mergeVisitor` to create a nested string representation of node kinds. diff --git a/packages/visitors-core/package.json b/packages/visitors-core/package.json index b7e882095..05b18aa21 100644 --- a/packages/visitors-core/package.json +++ b/packages/visitors-core/package.json @@ -1,7 +1,7 @@ { "name": "@codama/visitors-core", "version": "0.22.0", - "description": "Core visitors for the Kinobi framework", + "description": "Core visitors for the Codama framework", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", diff --git a/packages/visitors-core/src/NodeSelector.ts b/packages/visitors-core/src/NodeSelector.ts index b282bb803..b1bb42526 100644 --- a/packages/visitors-core/src/NodeSelector.ts +++ b/packages/visitors-core/src/NodeSelector.ts @@ -5,7 +5,7 @@ import type { NodeStack } from './NodeStack'; export type NodeSelector = NodeSelectorFunction | NodeSelectorPath; /** - * A string that can be used to select a node in a Kinobi tree. + * A string that can be used to select a node in a Codama tree. * - `*` matches any node. * - `someText` matches the name of a node, if any. * - `[someNode]` matches a node of the given kind. diff --git a/packages/visitors/LICENSE b/packages/visitors/LICENSE index 8e3690394..991e8120b 100644 --- a/packages/visitors/LICENSE +++ b/packages/visitors/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2024 Kinobi +Copyright (c) 2024 Codama Copyright (c) 2024 Metaplex Foundation Permission is hereby granted, free of charge, to any person obtaining diff --git a/packages/visitors/README.md b/packages/visitors/README.md index 564bd7fe8..b9734f377 100644 --- a/packages/visitors/README.md +++ b/packages/visitors/README.md @@ -1,4 +1,4 @@ -# Kinobi ➤ Visitors +# Codama ➤ Visitors [![npm][npm-image]][npm-url] [![npm-downloads][npm-downloads-image]][npm-url] @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/visitors.svg?style=flat&label=%40kinobi-so%2Fvisitors [npm-url]: https://www.npmjs.com/package/@codama/visitors -This package offers various visitors for Kinobi IDLs to traverse and manipulate their nodes. +This package offers various visitors for Codama IDLs to traverse and manipulate their nodes. ## Installation @@ -16,7 +16,7 @@ pnpm install @codama/visitors ``` > [!NOTE] -> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Kinobi this way. +> This package is included in the main [`codama`](../library) package. Meaning, you already have access to its content if you are installing Codama this way. > > ```sh > pnpm install codama @@ -28,7 +28,7 @@ This package includes and re-exports the [`@codama/visitors-core`](../visitors-c To get a better understanding of visitors and how they work, please refer to the [`@codama/visitors-core` documentation](../visitors-core/README.md). -In the rest of this documentation, we focus on the high-level visitors that are only available in this package. The main goal of these visitors is to provide a set of specific operations that can be applied to Kinobi IDLs — as opposed to the generic primitives provided by the core package. +In the rest of this documentation, we focus on the high-level visitors that are only available in this package. The main goal of these visitors is to provide a set of specific operations that can be applied to Codama IDLs — as opposed to the generic primitives provided by the core package. For instance, this package offers visitors that unwrap link nodes, update instructions, add PDAs, set default values, and more. @@ -88,7 +88,7 @@ codama.update( ### `deduplicateIdenticalDefinedTypesVisitor` -This visitor goes through the `DefinedTypeNodes` of all `ProgramNodes` inside the Kinobi IDL and removes any duplicates. A `DefinedTypeNode` is considered a duplicate if it has the same name and data structure as another `DefinedTypeNode`. This is useful when you have multiple programs that share the same types. +This visitor goes through the `DefinedTypeNodes` of all `ProgramNodes` inside the Codama IDL and removes any duplicates. A `DefinedTypeNode` is considered a duplicate if it has the same name and data structure as another `DefinedTypeNode`. This is useful when you have multiple programs that share the same types. ```ts codama.update(deduplicateIdenticalDefinedTypesVisitor()); @@ -133,7 +133,7 @@ codama.update( ### `getDefinedTypeHistogramVisitor` -This visitor goes through all `DefinedTypeNodes` and outputs a histogram of how many times each type is used in the Kinobi IDL. +This visitor goes through all `DefinedTypeNodes` and outputs a histogram of how many times each type is used in the Codama IDL. ```ts const histogram = codama.accept(getDefinedTypeHistogramVisitor()); @@ -205,7 +205,7 @@ codama.update( ### `setInstructionDiscriminatorsVisitor` -This visitor adds a new instruction argument to each of the provided instruction names. The new argument is added before any existing argument and marked as a discriminator of the instruction. This is useful if your Kinobi IDL is missing discriminators in the instruction data. +This visitor adds a new instruction argument to each of the provided instruction names. The new argument is added before any existing argument and marked as a discriminator of the instruction. This is useful if your Codama IDL is missing discriminators in the instruction data. ```ts codama.update( diff --git a/packages/visitors/package.json b/packages/visitors/package.json index 878aff3ef..8bc9edd08 100644 --- a/packages/visitors/package.json +++ b/packages/visitors/package.json @@ -1,7 +1,7 @@ { "name": "@codama/visitors", "version": "0.22.0", - "description": "All visitors for the Kinobi framework", + "description": "All visitors for the Codama framework", "exports": { "types": "./dist/types/index.d.ts", "react-native": "./dist/index.react-native.mjs", From 9f4fd91479511c4f9368ac7b10e2a7fbf1572130 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:45:50 +0100 Subject: [PATCH 04/14] Rename `*KINOBI*` to `*CODAMA*` --- .github/workflows/main.yml | 6 +- packages/errors/README.md | 6 +- packages/errors/src/codes.ts | 96 +++++++++---------- packages/errors/src/context.ts | 96 +++++++++---------- packages/errors/src/messages.ts | 96 +++++++++---------- packages/errors/test/error.test.ts | 26 ++--- packages/errors/test/error.typetest.ts | 32 +++---- packages/library/src/kinobi.ts | 4 +- .../src/v00/typeNodes/TypeNode.ts | 6 +- .../nodes-from-anchor/src/v01/AccountNode.ts | 4 +- .../src/v01/InstructionAccountNode.ts | 18 ++-- .../src/v01/typeNodes/StructFieldTypeNode.ts | 4 +- .../src/v01/typeNodes/TypeNode.ts | 6 +- .../test/v01/typeNodes/StructTypeNode.test.ts | 4 +- packages/nodes/src/Node.ts | 4 +- .../nodes/src/typeNodes/NestedTypeNode.ts | 4 +- packages/renderers-core/README.md | 4 +- packages/renderers-core/src/RenderMap.ts | 4 +- packages/renderers-core/src/fs.ts | 10 +- packages/renderers-core/test/fs.test.ts | 10 +- .../src/getTypeManifestVisitor.ts | 6 +- .../src/utils/linkOverrides.ts | 4 +- .../renderers-js/src/utils/linkOverrides.ts | 4 +- .../src/getTypeManifestVisitor.ts | 6 +- .../renderers-rust/src/utils/linkOverrides.ts | 4 +- .../src/throwValidatorItemsVisitor.ts | 4 +- .../visitors-core/src/LinkableDictionary.ts | 4 +- packages/visitors-core/src/extendVisitor.ts | 4 +- .../getResolvedInstructionInputsVisitor.ts | 14 +-- packages/visitors-core/src/visitor.ts | 4 +- .../visitors-core/test/extendVisitor.test.ts | 4 +- .../test/recordLinkablesVisitor.test.ts | 4 +- packages/visitors/src/addPdasVisitor.ts | 4 +- ...reateSubInstructionsFromEnumArgsVisitor.ts | 6 +- .../src/fillDefaultPdaSeedValuesVisitor.ts | 4 +- .../flattenInstructionDataArgumentsVisitor.ts | 4 +- packages/visitors/src/flattenStructVisitor.ts | 4 +- ...setAccountDiscriminatorFromFieldVisitor.ts | 4 +- .../visitors/src/setNumberWrappersVisitor.ts | 4 +- packages/visitors/test/addPdasVisitor.test.ts | 4 +- 40 files changed, 268 insertions(+), 268 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecc66f229..885bdb472 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ env: # Among other things, opts out of Turborepo telemetry. See https://consoledonottrack.com/. DO_NOT_TRACK: '1' NODE_VERSION: 18 - KINOBI_VERSION: 0.22 + CODAMA_VERSION: 0.22 SOLANA_VERSION: 1.18.12 jobs: @@ -95,8 +95,8 @@ jobs: id: changesets uses: changesets/action@v1 with: - commit: '[${{ env.KINOBI_VERSION }}] Publish packages' - title: '[${{ env.KINOBI_VERSION }}] Publish packages' + commit: '[${{ env.CODAMA_VERSION }}] Publish packages' + title: '[${{ env.CODAMA_VERSION }}] Publish packages' publish: pnpm publish-packages env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/packages/errors/README.md b/packages/errors/README.md index 9306e51b3..db5e497c4 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -43,15 +43,15 @@ npx @codama/errors decode -- 123 When you catch a `KinobiError` and assert its error code using `isKinobiError()`, TypeScript will refine the error's context to the type associated with that error code. You can use that context to render useful error messages, or to make context-aware decisions that help your application to recover from the error. ```ts -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@codama/errors'; try { const codama = createFromJson(jsonIdl); } catch (e) { - if (isKinobiError(e, KINOBI_ERROR__UNEXPECTED_NODE_KIND)) { + if (isKinobiError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { const { expectedKinds, kind, node } = e.context; // ... - } else if (isKinobiError(e, KINOBI_ERROR__VERSION_MISMATCH)) { + } else if (isKinobiError(e, CODAMA_ERROR__VERSION_MISMATCH)) { const { kinobiVersion, rootVersion } = e.context; // ... } else { diff --git a/packages/errors/src/codes.ts b/packages/errors/src/codes.ts index 699c3e85f..ec36a2658 100644 --- a/packages/errors/src/codes.ts +++ b/packages/errors/src/codes.ts @@ -25,40 +25,40 @@ * - `_MISSING`: Some required input is missing. E.g. `TRANSACTION_FEE_PAYER_MISSING`. * - `_UNIMPLEMENTED`: Some required component is not available in the environment. E.g. `SUBTLE_CRYPTO_VERIFY_FUNCTION_UNIMPLEMENTED`. */ -export const KINOBI_ERROR__UNRECOGNIZED_NODE_KIND = 1 as const; -export const KINOBI_ERROR__UNEXPECTED_NODE_KIND = 2 as const; -export const KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND = 3 as const; -export const KINOBI_ERROR__LINKED_NODE_NOT_FOUND = 4 as const; -export const KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE = 5 as const; -export const KINOBI_ERROR__VERSION_MISMATCH = 6 as const; +export const CODAMA_ERROR__UNRECOGNIZED_NODE_KIND = 1 as const; +export const CODAMA_ERROR__UNEXPECTED_NODE_KIND = 2 as const; +export const CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND = 3 as const; +export const CODAMA_ERROR__LINKED_NODE_NOT_FOUND = 4 as const; +export const CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE = 5 as const; +export const CODAMA_ERROR__VERSION_MISMATCH = 6 as const; // Visitors-related errors. // Reserve error codes in the range [1200000-1200999]. -export const KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES = 1200000 as const; -export const KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES = 1200001 as const; -export const KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES = +export const CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES = 1200000 as const; +export const CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES = 1200001 as const; +export const CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES = 1200002 as const; -export const KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE = 1200003 as const; -export const KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY = 1200004 as const; -export const KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND = 1200005 as const; -export const KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER = 1200006 as const; -export const KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION = 1200007 as const; -export const KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE = 1200008 as const; -export const KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND = 1200009 as const; -export const KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES = 1200010 as const; -export const KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND = 1200011 as const; +export const CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE = 1200003 as const; +export const CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY = 1200004 as const; +export const CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND = 1200005 as const; +export const CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER = 1200006 as const; +export const CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION = 1200007 as const; +export const CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE = 1200008 as const; +export const CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND = 1200009 as const; +export const CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES = 1200010 as const; +export const CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND = 1200011 as const; // Anchor-related errors. // Reserve error codes in the range [2100000-2100999]. -export const KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE = 2100000 as const; -export const KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING = 2100001 as const; -export const KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING = 2100002 as const; -export const KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING = 2100003 as const; -export const KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED = 2100004 as const; +export const CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE = 2100000 as const; +export const CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING = 2100001 as const; +export const CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING = 2100002 as const; +export const CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING = 2100003 as const; +export const CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED = 2100004 as const; // Renderers-related errors. // Reserve error codes in the range [2800000-2800999]. -export const KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; +export const CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; /** * A union of every Codama error code @@ -76,27 +76,27 @@ export const KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; * is not safe, for a variety of reasons covered here: https://stackoverflow.com/a/28818850 */ export type KinobiErrorCode = - | typeof KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING - | typeof KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING - | typeof KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED - | typeof KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING - | typeof KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE - | typeof KINOBI_ERROR__LINKED_NODE_NOT_FOUND - | typeof KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE - | typeof KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE - | typeof KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND - | typeof KINOBI_ERROR__UNEXPECTED_NODE_KIND - | typeof KINOBI_ERROR__UNRECOGNIZED_NODE_KIND - | typeof KINOBI_ERROR__VERSION_MISMATCH - | typeof KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND - | typeof KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES - | typeof KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION - | typeof KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES - | typeof KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE - | typeof KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES - | typeof KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE - | typeof KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND - | typeof KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY - | typeof KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER - | typeof KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES - | typeof KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND; + | typeof CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING + | typeof CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING + | typeof CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED + | typeof CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING + | typeof CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE + | typeof CODAMA_ERROR__LINKED_NODE_NOT_FOUND + | typeof CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE + | typeof CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE + | typeof CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND + | typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND + | typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND + | typeof CODAMA_ERROR__VERSION_MISMATCH + | typeof CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND + | typeof CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES + | typeof CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION + | typeof CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES + | typeof CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE + | typeof CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES + | typeof CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE + | typeof CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND + | typeof CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY + | typeof CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER + | typeof CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES + | typeof CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND; diff --git a/packages/errors/src/context.ts b/packages/errors/src/context.ts index dd9451406..a466ce504 100644 --- a/packages/errors/src/context.ts +++ b/packages/errors/src/context.ts @@ -19,30 +19,30 @@ import { } from '@codama/node-types'; import { - KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, - KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, - KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, - KINOBI_ERROR__LINKED_NODE_NOT_FOUND, - KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, - KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, - KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, - KINOBI_ERROR__UNEXPECTED_NODE_KIND, - KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, - KINOBI_ERROR__VERSION_MISMATCH, - KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, - KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, - KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, - KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, - KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, - KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, - KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, - KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, - KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, - KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, - KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, - KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, + CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, + CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, + CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, + CODAMA_ERROR__LINKED_NODE_NOT_FOUND, + CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, + CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, + CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, + CODAMA_ERROR__UNEXPECTED_NODE_KIND, + CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, + CODAMA_ERROR__VERSION_MISMATCH, + CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, + CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, + CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, + CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, + CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, + CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, + CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, + CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, + CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, + CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, + CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, + CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiErrorCode, } from './codes'; @@ -55,69 +55,69 @@ type DefaultUnspecifiedErrorContextToUndefined = { * - Don't change or remove members of an error's context. */ export type KinobiErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ - [KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: { + [CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: { name: string; }; - [KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING]: { + [CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING]: { name: string; }; - [KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED]: { + [CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED]: { kind: string; }; - [KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING]: { + [CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING]: { idlType: string; path: string; }; - [KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE]: { + [CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE]: { idlType: string; }; - [KINOBI_ERROR__LINKED_NODE_NOT_FOUND]: { + [CODAMA_ERROR__LINKED_NODE_NOT_FOUND]: { kind: LinkNode['kind']; linkNode: LinkNode; name: CamelCaseString; stack: Node[]; }; - [KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE]: { + [CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE]: { fsFunction: string; }; - [KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE]: { + [CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE]: { kind: NodeKind; node: Node | undefined; }; - [KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND]: { + [CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND]: { expectedKinds: NodeKind[]; kind: NodeKind | null; node: Node | null | undefined; }; - [KINOBI_ERROR__UNEXPECTED_NODE_KIND]: { + [CODAMA_ERROR__UNEXPECTED_NODE_KIND]: { expectedKinds: NodeKind[]; kind: NodeKind | null; node: Node | null | undefined; }; - [KINOBI_ERROR__UNRECOGNIZED_NODE_KIND]: { + [CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]: { kind: string; }; - [KINOBI_ERROR__VERSION_MISMATCH]: { + [CODAMA_ERROR__VERSION_MISMATCH]: { kinobiVersion: string; rootVersion: string; }; - [KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: { + [CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: { account: AccountNode; missingField: CamelCaseString; name: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: { + [CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: { duplicatedPdaNames: CamelCaseString[]; program: ProgramNode; programName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION]: { + [CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION]: { visitFunction: string; }; - [KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES]: { + [CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES]: { conflictingAttributes: CamelCaseString[]; }; - [KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE]: { + [CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE]: { instruction: InstructionNode; instructionAccount: InstructionAccountNode; instructionAccountName: CamelCaseString; @@ -126,22 +126,22 @@ export type KinobiErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ seedName: CamelCaseString; seedValueName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES]: { + [CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES]: { cycle: (InstructionAccountNode | InstructionArgumentNode)[]; formattedCycle: string; instruction: InstructionNode; instructionName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE]: { + [CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE]: { formattedHistogram: string; validationItems: ValidationItem[]; }; - [KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND]: { + [CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND]: { argumentName: CamelCaseString; instruction: InstructionNode; instructionName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY]: { + [CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY]: { dependency: InstructionAccountNode | InstructionArgumentNode; dependencyKind: 'instructionAccountNode' | 'instructionArgumentNode'; dependencyName: CamelCaseString; @@ -151,16 +151,16 @@ export type KinobiErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ parentKind: 'instructionAccountNode' | 'instructionArgumentNode'; parentName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER]: { + [CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER]: { wrapper: string; }; - [KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES]: { + [CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES]: { instruction: InstructionNode; instructionName: CamelCaseString; pda: PdaNode; pdaName: CamelCaseString; }; - [KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND]: { + [CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND]: { key: string; }; }>; diff --git a/packages/errors/src/messages.ts b/packages/errors/src/messages.ts index 10ad5f360..a89eb84cb 100644 --- a/packages/errors/src/messages.ts +++ b/packages/errors/src/messages.ts @@ -4,30 +4,30 @@ */ import { - KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, - KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, - KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, - KINOBI_ERROR__LINKED_NODE_NOT_FOUND, - KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, - KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, - KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, - KINOBI_ERROR__UNEXPECTED_NODE_KIND, - KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, - KINOBI_ERROR__VERSION_MISMATCH, - KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, - KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, - KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, - KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, - KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, - KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, - KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, - KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, - KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, - KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, - KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, - KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, + CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, + CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, + CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, + CODAMA_ERROR__LINKED_NODE_NOT_FOUND, + CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, + CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, + CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, + CODAMA_ERROR__UNEXPECTED_NODE_KIND, + CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, + CODAMA_ERROR__VERSION_MISMATCH, + CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, + CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, + CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, + CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, + CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, + CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, + CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, + CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, + CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, + CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, + CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, + CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiErrorCode, } from './codes'; @@ -40,38 +40,38 @@ export const KinobiErrorMessages: Readonly<{ // TypeScript will fail to build this project if add an error code without a message. [P in KinobiErrorCode]: string; }> = { - [KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: 'Account type [$name] is missing from the IDL types.', - [KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING]: 'Argument name [$name] is missing from the instruction definition.', - [KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED]: 'Seed kind [$kind] is not implemented.', - [KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING]: 'Field type is missing for path [$path] in [$idlType].', - [KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE]: 'Unrecognized Anchor IDL type [$idlType].', - [KINOBI_ERROR__LINKED_NODE_NOT_FOUND]: 'Could not find linked node [$name] from [$kind].', - [KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE]: + [CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: 'Account type [$name] is missing from the IDL types.', + [CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING]: 'Argument name [$name] is missing from the instruction definition.', + [CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED]: 'Seed kind [$kind] is not implemented.', + [CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING]: 'Field type is missing for path [$path] in [$idlType].', + [CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE]: 'Unrecognized Anchor IDL type [$idlType].', + [CODAMA_ERROR__LINKED_NODE_NOT_FOUND]: 'Could not find linked node [$name] from [$kind].', + [CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE]: 'Node.js filesystem function [$fsFunction] is not available in your environment.', - [KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE]: 'Cannot render the encountered node of kind [$kind].', - [KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND]: 'Expected nested node of kind [$expectedKinds], got [$kind]', - [KINOBI_ERROR__UNEXPECTED_NODE_KIND]: 'Expected node of kind [$expectedKinds], got [$kind].', - [KINOBI_ERROR__UNRECOGNIZED_NODE_KIND]: 'Unrecognized node kind [$kind].', - [KINOBI_ERROR__VERSION_MISMATCH]: + [CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE]: 'Cannot render the encountered node of kind [$kind].', + [CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND]: 'Expected nested node of kind [$expectedKinds], got [$kind]', + [CODAMA_ERROR__UNEXPECTED_NODE_KIND]: 'Expected node of kind [$expectedKinds], got [$kind].', + [CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]: 'Unrecognized node kind [$kind].', + [CODAMA_ERROR__VERSION_MISMATCH]: 'The provided RootNode version [$rootVersion] is not compatible with the installed Codama version [$kinobiVersion].', - [KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: 'Account [$name] does not have a field named [$missingField].', - [KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: + [CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: 'Account [$name] does not have a field named [$missingField].', + [CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: 'Cannot add PDAs to program [$programName] because the following PDA names already exist [$duplicatedPdaNames].', - [KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION]: + [CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION]: 'Cannot extend visitor with function [$visitFunction] as the base visitor does not support it.', - [KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES]: + [CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES]: 'Cannot flatten struct since this would cause the following attributes to conflict [$conflictingAttributes].', - [KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE]: + [CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE]: 'Cannot use optional account [$seedValueName] as the [$seedName] PDA seed for the [$instructionAccountName] account of the [$instructionName] instruction.', - [KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES]: + [CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES]: "Circular dependency detected when resolving the accounts and arguments' default values of the [$instructionName] instruction. Got the following dependency cycle [$formattedCycle].", - [KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE]: 'Failed to validate the given node [$formattedHistogram].', - [KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND]: + [CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE]: 'Failed to validate the given node [$formattedHistogram].', + [CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND]: 'Could not find an enum argument named [$argumentName] for instruction [$instructionName].', - [KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY]: + [CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY]: 'Dependency [$dependencyName] of kind [$dependencyKind] is not a valid dependency of [$parentName] of kind [$parentKind] in the [$instructionName] instruction.', - [KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER]: 'Invalid number wrapper kind [$wrapper].', - [KINOBI_ERROR__VISITORS__INVALID_PDA_SEED_VALUES]: + [CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER]: 'Invalid number wrapper kind [$wrapper].', + [CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES]: 'Invalid seed values for PDA [$pdaName] in instruction [$instructionName].', - [KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND]: 'Cannot find key [$key] in RenderMap.', + [CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND]: 'Cannot find key [$key] in RenderMap.', }; diff --git a/packages/errors/test/error.test.ts b/packages/errors/test/error.test.ts index 37ae55e23..7506b7b9c 100644 --- a/packages/errors/test/error.test.ts +++ b/packages/errors/test/error.test.ts @@ -2,39 +2,39 @@ import { expect, test } from 'vitest'; import { isKinobiError, - KINOBI_ERROR__UNEXPECTED_NODE_KIND, - KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, + CODAMA_ERROR__UNEXPECTED_NODE_KIND, + CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError, } from '../src'; test('it exposes the Codama error context', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.context.kind).toBe('missingNode'); }); test('it exposes the Codama error code', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(error.context.__code).toBe(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(error.context.__code).toBe(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND); }); test('it calls the message formatter with the code and context', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.message).toBe('Unrecognized node kind [missingNode].'); }); test('it exposes no cause when none is provided', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.cause).toBeUndefined(); }); test('it exposes the cause when provided', () => { const cause = {} as unknown; - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { cause, kind: 'missingNode' }); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { cause, kind: 'missingNode' }); expect(error.cause).toBe(cause); }); test('it returns `true` for an instance of `KinobiError`', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(isKinobiError(error)).toBe(true); }); @@ -43,11 +43,11 @@ test('it returns `false` for an instance of `Error`', () => { }); test('it returns `true` when the error code matches', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(isKinobiError(error, KINOBI_ERROR__UNRECOGNIZED_NODE_KIND)).toBe(true); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(isKinobiError(error, CODAMA_ERROR__UNRECOGNIZED_NODE_KIND)).toBe(true); }); test('it returns `false` when the error code does not match', () => { - const error = new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(isKinobiError(error, KINOBI_ERROR__UNEXPECTED_NODE_KIND)).toBe(false); + const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(isKinobiError(error, CODAMA_ERROR__UNEXPECTED_NODE_KIND)).toBe(false); }); diff --git a/packages/errors/test/error.typetest.ts b/packages/errors/test/error.typetest.ts index 0f7725249..cd18efc12 100644 --- a/packages/errors/test/error.typetest.ts +++ b/packages/errors/test/error.typetest.ts @@ -4,13 +4,13 @@ import { isKinobiError, KinobiError, KinobiErrorCode } from '../src'; import * as KinobiErrorCodeModule from '../src/codes'; import { KinobiErrorContext } from '../src/context'; -const { KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, KINOBI_ERROR__UNEXPECTED_NODE_KIND } = KinobiErrorCodeModule; +const { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, CODAMA_ERROR__UNEXPECTED_NODE_KIND } = KinobiErrorCodeModule; // If this line raises a type error, you might have forgotten to add a new error to the // `KinobiErrorCode` union in `src/codes.ts`. Object.values(KinobiErrorCodeModule) satisfies KinobiErrorCode[]; -const unexpectedNodeKindError = new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { +const unexpectedNodeKindError = new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: ['numberTypeNode', 'stringTypeNode'], kind: 'publicKeyTypeNode', node: {} as PublicKeyTypeNode, @@ -18,49 +18,49 @@ const unexpectedNodeKindError = new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KI { const code = unexpectedNodeKindError.context.__code; - code satisfies typeof KINOBI_ERROR__UNEXPECTED_NODE_KIND; + code satisfies typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND; // @ts-expect-error Wrong error code. - code satisfies typeof KINOBI_ERROR__UNRECOGNIZED_NODE_KIND; + code satisfies typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND; } { // @ts-expect-error Missing context. - new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, {}); + new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, {}); // @ts-expect-error Missing part of the context. - new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: ['numberTypeNode', 'stringTypeNode'], node: {} as PublicKeyTypeNode, }); - new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { // @ts-expect-error Wrong context attribute. foo: 'bar', }); } -unexpectedNodeKindError.context satisfies KinobiErrorContext[typeof KINOBI_ERROR__UNEXPECTED_NODE_KIND]; +unexpectedNodeKindError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Non existent context property. unexpectedNodeKindError.context.feePayer; // @ts-expect-error Missing context. -new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND); +new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND); // @ts-expect-error Missing context. -new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND); +new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND); const unknownError = null as unknown as KinobiError; -if (unknownError.context.__code === KINOBI_ERROR__UNEXPECTED_NODE_KIND) { - unknownError.context satisfies KinobiErrorContext[typeof KINOBI_ERROR__UNEXPECTED_NODE_KIND]; +if (unknownError.context.__code === CODAMA_ERROR__UNEXPECTED_NODE_KIND) { + unknownError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Context belongs to another error code - unknownError.context satisfies KinobiErrorContext[typeof KINOBI_ERROR__UNRECOGNIZED_NODE_KIND]; + unknownError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; } const e = null as unknown; if (isKinobiError(e)) { e.context satisfies Readonly<{ __code: KinobiErrorCode }>; } -if (isKinobiError(e, KINOBI_ERROR__UNEXPECTED_NODE_KIND)) { - e.context satisfies KinobiErrorContext[typeof KINOBI_ERROR__UNEXPECTED_NODE_KIND]; +if (isKinobiError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { + e.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Context belongs to another error code - e.context satisfies KinobiErrorContext[typeof KINOBI_ERROR__UNRECOGNIZED_NODE_KIND]; + e.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; } // `KinobiErrorContext` must not contain any keys reserved by `ErrorOptions` (eg. `cause`) diff --git a/packages/library/src/kinobi.ts b/packages/library/src/kinobi.ts index 727998f8e..e9d86d78a 100644 --- a/packages/library/src/kinobi.ts +++ b/packages/library/src/kinobi.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VERSION_MISMATCH } from '@codama/errors'; +import { CODAMA_ERROR__VERSION_MISMATCH } from '@codama/errors'; import { KinobiError } from '@codama/errors'; import { assertIsNode, KinobiVersion, Node, RootNode } from '@codama/nodes'; import { visit, Visitor } from '@codama/visitors'; @@ -47,5 +47,5 @@ function validateKinobiVersion(rootVersion: KinobiVersion): void { const isZeroMajor = rootMajor === 0 && KinobiMajor === 0; if (isZeroMajor && rootMinor === KinobiMinor) return; if (rootMajor === KinobiMajor) return; - throw new KinobiError(KINOBI_ERROR__VERSION_MISMATCH, { kinobiVersion, rootVersion }); + throw new KinobiError(CODAMA_ERROR__VERSION_MISMATCH, { kinobiVersion, rootVersion }); } diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts index 0512c1fc7..81c8a16c2 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -59,7 +59,7 @@ export const typeNodeFromAnchorV00 = (idlType: IdlV00Type | IdlV00TypeDefTy): Ty // Ensure eveything else is an object. if (typeof idlType !== 'object') { - throw new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); } @@ -112,7 +112,7 @@ export const typeNodeFromAnchorV00 = (idlType: IdlV00Type | IdlV00TypeDefTy): Ty return tupleTypeNodeFromAnchorV00(idlType as IdlV00TypeTuple); } - throw new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); }; diff --git a/packages/nodes-from-anchor/src/v01/AccountNode.ts b/packages/nodes-from-anchor/src/v01/AccountNode.ts index 90f058009..68c40cfa5 100644 --- a/packages/nodes-from-anchor/src/v01/AccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/AccountNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, KinobiError } from '@codama/errors'; import { AccountNode, accountNode, @@ -20,7 +20,7 @@ export function accountNodeFromAnchorV01(idl: IdlV01Account, types: IdlV01TypeDe const type = types.find(({ name }) => name === idl.name); if (!type) { - throw new KinobiError(KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { name: idl.name }); + throw new KinobiError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { name: idl.name }); } const data = typeNodeFromAnchorV01(type.type); diff --git a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts index 45b995e5c..e0e8c8514 100644 --- a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts @@ -1,8 +1,8 @@ import { - KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, - KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, - KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, + CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, + CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, + CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, KinobiError, } from '@codama/errors'; import { @@ -82,14 +82,14 @@ export function instructionAccountNodeFromAnchorV01( const accountName = camelCase(seed.account ?? ''); const accountNode = allAccounts.find(({ name }) => name === accountName); if (!accountNode) { - throw new KinobiError(KINOBI_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { kind }); + throw new KinobiError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { kind }); } const fieldName = camelCase(path[1]); const accountFields = resolveNestedTypeNode(accountNode.data).fields; const fieldNode = accountFields.find(({ name }) => name === fieldName); if (!fieldNode) { - throw new KinobiError(KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { idlType: seed.account, path: seed.path, }); @@ -98,7 +98,7 @@ export function instructionAccountNodeFromAnchorV01( const seedName = camelCase(seed.path); return [[...seeds, variablePdaSeedNode(seedName, fieldNode.type)], []]; } else { - throw new KinobiError(KINOBI_ERROR__ANCHOR__TYPE_PATH_MISSING, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { idlType: seed, path: seed.path, }); @@ -108,7 +108,7 @@ export function instructionAccountNodeFromAnchorV01( const argumentName = camelCase(seed.path); const argumentNode = instructionArguments.find(({ name }) => name === argumentName); if (!argumentNode) { - throw new KinobiError(KINOBI_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, { name: seed.path }); + throw new KinobiError(CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, { name: seed.path }); } return [ @@ -117,7 +117,7 @@ export function instructionAccountNodeFromAnchorV01( ]; } default: - throw new KinobiError(KINOBI_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, { kind }); + throw new KinobiError(CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, { kind }); } }, <[PdaSeedNode[], PdaSeedValueNode[]]>[[], []], diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts index 53787eda6..b6bd12754 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { StructFieldTypeNode, structFieldTypeNode } from '@codama/nodes'; import { IdlV01Field, IdlV01Type } from '../idl'; @@ -6,7 +6,7 @@ import { typeNodeFromAnchorV01 } from './TypeNode'; export function structFieldTypeNodeFromAnchorV01(idl: IdlV01Field | IdlV01Type): StructFieldTypeNode { if (!isStructField(idl)) { - throw new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idl), }); } diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts index 00bccec76..3a60367fd 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -59,7 +59,7 @@ export const typeNodeFromAnchorV01 = (idlType: IdlV01Type | IdlV01TypeDefTy): Ty // Ensure eveything else is an object. if (typeof idlType !== 'object') { - throw new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); } @@ -105,7 +105,7 @@ export const typeNodeFromAnchorV01 = (idlType: IdlV01Type | IdlV01TypeDefTy): Ty } } - throw new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); }; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts index 985d47502..2b9564dec 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; import { arrayTypeNode, numberTypeNode, @@ -58,7 +58,7 @@ test('it fails when a mixture of named and unnamed fields are provided', () => { // @ts-expect-error Invalid IDL type because of mixed named and unnamed fields. expect(() => typeNodeFromAnchorV01(anchorIdl)).toThrow( - new KinobiError(KINOBI_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(anchorIdl), }), ); diff --git a/packages/nodes/src/Node.ts b/packages/nodes/src/Node.ts index acca1d107..6a98727d3 100644 --- a/packages/nodes/src/Node.ts +++ b/packages/nodes/src/Node.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import type { GetNodeFromKind, Node, NodeKind } from '@codama/node-types'; import { REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS } from './contextualValueNodes/ContextualValueNode'; @@ -47,7 +47,7 @@ export function assertIsNode( ): asserts node is GetNodeFromKind { const kinds = Array.isArray(kind) ? kind : [kind]; if (!isNode(node, kinds)) { - throw new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: kinds, kind: node?.kind ?? null, node, diff --git a/packages/nodes/src/typeNodes/NestedTypeNode.ts b/packages/nodes/src/typeNodes/NestedTypeNode.ts index fc4fc0015..210c27d27 100644 --- a/packages/nodes/src/typeNodes/NestedTypeNode.ts +++ b/packages/nodes/src/typeNodes/NestedTypeNode.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, KinobiError } from '@codama/errors'; import type { NestedTypeNode, Node, TypeNode } from '@codama/node-types'; import { isNode } from '../Node'; @@ -56,7 +56,7 @@ export function assertIsNestedTypeNode( ): asserts node is NestedTypeNode> { const kinds = Array.isArray(kind) ? kind : [kind]; if (!isNestedTypeNode(node, kinds)) { - throw new KinobiError(KINOBI_ERROR__UNEXPECTED_NESTED_NODE_KIND, { + throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, { expectedKinds: kinds, kind: node?.kind ?? null, node, diff --git a/packages/renderers-core/README.md b/packages/renderers-core/README.md index a1b9e8c42..94ab9ca84 100644 --- a/packages/renderers-core/README.md +++ b/packages/renderers-core/README.md @@ -20,7 +20,7 @@ pnpm install @codama/renderers-core ## Filesystem wrappers -This package offers several helper functions that delegate to the native Filesystem API — i.e. `node:fs` — when using the Node.js runtime. However, in any other environment — such as the browser — these functions will throw a `KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE` error as a Filesystem API is not available. This enables us to write renderers regardless of the runtime environment. +This package offers several helper functions that delegate to the native Filesystem API — i.e. `node:fs` — when using the Node.js runtime. However, in any other environment — such as the browser — these functions will throw a `CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE` error as a Filesystem API is not available. This enables us to write renderers regardless of the runtime environment. ```ts // Reads the UTF-8 content of a file as a JSON object. @@ -72,7 +72,7 @@ renderMap.remove('programs/token.ts'); ### Accessing content from a `RenderMap` -The `RenderMap` class provides several methods to access the content of the files it manages. The `get` method returns the content of a file from its relative path. If the file does not exist on the `RenderMap`, a `KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND` error will be thrown. +The `RenderMap` class provides several methods to access the content of the files it manages. The `get` method returns the content of a file from its relative path. If the file does not exist on the `RenderMap`, a `CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND` error will be thrown. ```ts const content: string = renderMap.get('programs/token.ts'); diff --git a/packages/renderers-core/src/RenderMap.ts b/packages/renderers-core/src/RenderMap.ts index 73d6a3995..eb2a38ec6 100644 --- a/packages/renderers-core/src/RenderMap.ts +++ b/packages/renderers-core/src/RenderMap.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiError } from '@codama/errors'; import { createFile } from './fs'; @@ -35,7 +35,7 @@ export class RenderMap { get(key: string): string { const value = this.safeGet(key); if (value === undefined) { - throw new KinobiError(KINOBI_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, { key }); + throw new KinobiError(CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, { key }); } return value; } diff --git a/packages/renderers-core/src/fs.ts b/packages/renderers-core/src/fs.ts index 97f40acfb..c0c3b26eb 100644 --- a/packages/renderers-core/src/fs.ts +++ b/packages/renderers-core/src/fs.ts @@ -1,10 +1,10 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; export function readJson(value: string): T { if (!__NODEJS__) { - throw new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }); + throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }); } return JSON.parse(readFileSync(value, 'utf-8')) as T; @@ -12,7 +12,7 @@ export function readJson(value: string): T { export const createDirectory = (path: string): void => { if (!__NODEJS__) { - throw new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }); + throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }); } mkdirSync(path, { recursive: true }); @@ -20,7 +20,7 @@ export const createDirectory = (path: string): void => { export const deleteDirectory = (path: string): void => { if (!__NODEJS__) { - throw new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }); + throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }); } if (existsSync(path)) { @@ -30,7 +30,7 @@ export const deleteDirectory = (path: string): void => { export const createFile = (path: string, content: string): void => { if (!__NODEJS__) { - throw new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }); + throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }); } const directory = path.substring(0, path.lastIndexOf('/')); diff --git a/packages/renderers-core/test/fs.test.ts b/packages/renderers-core/test/fs.test.ts index 667b33aad..736132310 100644 --- a/packages/renderers-core/test/fs.test.ts +++ b/packages/renderers-core/test/fs.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; import { expect, test } from 'vitest'; import { createDirectory, createFile, deleteDirectory, readJson } from '../src'; @@ -11,22 +11,22 @@ if (__NODEJS__) { } else { test('it fails to call readJson', () => { expect(() => readJson('./path')).toThrow( - new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }), + new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }), ); }); test('it fails to call createDirectory', () => { expect(() => createDirectory('./path')).toThrow( - new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }), + new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }), ); }); test('it fails to call deleteDirectory', () => { expect(() => deleteDirectory('./path')).toThrow( - new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }), + new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }), ); }); test('it fails to call createFile', () => { expect(() => createFile('./path', 'content')).toThrow( - new KinobiError(KINOBI_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }), + new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }), ); }); } diff --git a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts index 845636a06..567a6cb6c 100644 --- a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts +++ b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; import { ArrayTypeNode, camelCase, @@ -603,7 +603,7 @@ export function getTypeManifestVisitor(input: { }, visitRemainderOptionType(node) { - throw new KinobiError(KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, visitSetType(setType, { self }) { @@ -833,7 +833,7 @@ export function getTypeManifestVisitor(input: { }, visitZeroableOptionType(node) { - throw new KinobiError(KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, }), ); diff --git a/packages/renderers-js-umi/src/utils/linkOverrides.ts b/packages/renderers-js-umi/src/utils/linkOverrides.ts index 5f875063b..f684191a3 100644 --- a/packages/renderers-js-umi/src/utils/linkOverrides.ts +++ b/packages/renderers-js-umi/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -65,7 +65,7 @@ export function getImportFromFactory( case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/renderers-js/src/utils/linkOverrides.ts b/packages/renderers-js/src/utils/linkOverrides.ts index f9d5a6b51..e4f21c390 100644 --- a/packages/renderers-js/src/utils/linkOverrides.ts +++ b/packages/renderers-js/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -65,7 +65,7 @@ export function getImportFromFactory( case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/renderers-rust/src/getTypeManifestVisitor.ts b/packages/renderers-rust/src/getTypeManifestVisitor.ts index c8474107e..2ed0aeb49 100644 --- a/packages/renderers-rust/src/getTypeManifestVisitor.ts +++ b/packages/renderers-rust/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; import { arrayTypeNode, CountNode, @@ -324,7 +324,7 @@ export function getTypeManifestVisitor(options: { }, visitRemainderOptionType(node) { - throw new KinobiError(KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, visitSetType(setType, { self }) { @@ -481,7 +481,7 @@ export function getTypeManifestVisitor(options: { }, visitZeroableOptionType(node) { - throw new KinobiError(KINOBI_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, }), ); diff --git a/packages/renderers-rust/src/utils/linkOverrides.ts b/packages/renderers-rust/src/utils/linkOverrides.ts index 1fc986271..0666bbeaf 100644 --- a/packages/renderers-rust/src/utils/linkOverrides.ts +++ b/packages/renderers-rust/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -53,7 +53,7 @@ export function getImportFromFactory(overrides: LinkOverrides): GetImportFromFun case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(KINOBI_ERROR__UNEXPECTED_NODE_KIND, { + throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/validators/src/throwValidatorItemsVisitor.ts b/packages/validators/src/throwValidatorItemsVisitor.ts index 03c473f5e..4a1f9f5b4 100644 --- a/packages/validators/src/throwValidatorItemsVisitor.ts +++ b/packages/validators/src/throwValidatorItemsVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, KinobiError } from '@codama/errors'; import { NodeKind } from '@codama/nodes'; import { mapVisitor, Visitor } from '@codama/visitors-core'; @@ -26,7 +26,7 @@ export function throwValidatorItemsVisitor `${level}s: ${levelHistogram[level as LogLevel]}`) .join(', '); - throw new KinobiError(KINOBI_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, { + throw new KinobiError(CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, { formattedHistogram, validationItems, }); diff --git a/packages/visitors-core/src/LinkableDictionary.ts b/packages/visitors-core/src/LinkableDictionary.ts index 7b4e3933f..fd47010fe 100644 --- a/packages/visitors-core/src/LinkableDictionary.ts +++ b/packages/visitors-core/src/LinkableDictionary.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; import { AccountLinkNode, AccountNode, @@ -90,7 +90,7 @@ export class LinkableDictionary { const node = this.get(linkNode as ProgramLinkNode) as LinkableNode | undefined; if (!node) { - throw new KinobiError(KINOBI_ERROR__LINKED_NODE_NOT_FOUND, { + throw new KinobiError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { kind: linkNode.kind, linkNode, name: linkNode.name, diff --git a/packages/visitors-core/src/extendVisitor.ts b/packages/visitors-core/src/extendVisitor.ts index cd48e7f8b..c05334686 100644 --- a/packages/visitors-core/src/extendVisitor.ts +++ b/packages/visitors-core/src/extendVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; import { GetNodeFromKind, Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; @@ -33,7 +33,7 @@ export function extendVisitor( const castedKey = key as GetVisitorFunctionName; if (!visitor[castedKey]) { - throw new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { + throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { visitFunction: castedKey, }); } diff --git a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts index 4101b0448..010b18406 100644 --- a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts +++ b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts @@ -1,8 +1,8 @@ /* eslint-disable no-case-declarations */ import { - KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, - KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, - KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, + CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, + CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, + CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, KinobiError, } from '@codama/errors'; import { @@ -59,7 +59,7 @@ export function getResolvedInstructionInputsVisitor( if (isCircular) { const cycle = [...stack, input]; throw new KinobiError( - KINOBI_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, + CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, { cycle, formattedCycle: cycle.map(({ name }) => name).join(' -> '), @@ -129,7 +129,7 @@ export function getResolvedInstructionInputsVisitor( if (!isNode(seed.value, 'accountValueNode')) return; const dependency = visitedAccounts.get(seed.value.name)!; if (dependency.resolvedIsOptional) { - throw new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, { + throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, { instruction: instruction, instructionAccount: account, instructionAccountName: account.name, @@ -174,7 +174,7 @@ export function getResolvedInstructionInputsVisitor( if (isNode(dependency, 'accountValueNode')) { const dependencyAccount = instruction.accounts.find(a => a.name === dependency.name); if (!dependencyAccount) { - throw new KinobiError(KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { + throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { dependency, dependencyKind: dependency.kind, dependencyName: dependency.name, @@ -191,7 +191,7 @@ export function getResolvedInstructionInputsVisitor( a => a.name === dependency.name, ); if (!dependencyArgument) { - throw new KinobiError(KINOBI_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { + throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { dependency, dependencyKind: dependency.kind, dependencyName: dependency.name, diff --git a/packages/visitors-core/src/visitor.ts b/packages/visitors-core/src/visitor.ts index 767d99778..44825c42d 100644 --- a/packages/visitors-core/src/visitor.ts +++ b/packages/visitors-core/src/visitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError } from '@codama/errors'; import { type GetNodeFromKind, type Node, type NodeKind, pascalCase, REGISTERED_NODE_KINDS } from '@codama/nodes'; export type Visitor = { @@ -25,7 +25,7 @@ export function visitOrElse(nodeKind: TNodeKind) { if (!REGISTERED_NODE_KINDS.includes(nodeKind)) { - throw new KinobiError(KINOBI_ERROR__UNRECOGNIZED_NODE_KIND, { kind: nodeKind }); + throw new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: nodeKind }); } return `visit${pascalCase(nodeKind.slice(0, -4))}` as GetVisitorFunctionName; diff --git a/packages/visitors-core/test/extendVisitor.test.ts b/packages/visitors-core/test/extendVisitor.test.ts index 9007daef1..07da4e22e 100644 --- a/packages/visitors-core/test/extendVisitor.test.ts +++ b/packages/visitors-core/test/extendVisitor.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; @@ -59,7 +59,7 @@ test('it cannot extends nodes that are not supported by the base visitor', () => visitNumberType: () => undefined, }), ).toThrow( - new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { + new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { visitFunction: 'visitNumberType', }), ); diff --git a/packages/visitors-core/test/recordLinkablesVisitor.test.ts b/packages/visitors-core/test/recordLinkablesVisitor.test.ts index fa1c970cd..5ec82f4f2 100644 --- a/packages/visitors-core/test/recordLinkablesVisitor.test.ts +++ b/packages/visitors-core/test/recordLinkablesVisitor.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; import { accountLinkNode, AccountNode, @@ -326,7 +326,7 @@ test('it can throw an exception when trying to retrieve a missing linked node', // Then we expect an exception to be thrown. expect(getMissingAccount).toThrow( - new KinobiError(KINOBI_ERROR__LINKED_NODE_NOT_FOUND, { + new KinobiError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { kind: 'accountLinkNode', linkNode: accountLinkNode('missingAccount', 'myProgram'), name: 'missingAccount', diff --git a/packages/visitors/src/addPdasVisitor.ts b/packages/visitors/src/addPdasVisitor.ts index d913e5b84..87f1f44e6 100644 --- a/packages/visitors/src/addPdasVisitor.ts +++ b/packages/visitors/src/addPdasVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, pdaNode, PdaSeedNode, programNode } from '@codama/nodes'; import { bottomUpTransformerVisitor } from '@codama/visitors-core'; @@ -14,7 +14,7 @@ export function addPdasVisitor(pdas: Record pda.name)); const overlappingPdaNames = new Set([...existingPdaNames].filter(name => newPdaNames.has(name))); if (overlappingPdaNames.size > 0) { - throw new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { + throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { duplicatedPdaNames: [...overlappingPdaNames], program: node, programName: node.name, diff --git a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts index e1d65db0d..c26923416 100644 --- a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts +++ b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -34,7 +34,7 @@ export function createSubInstructionsFromEnumArgsVisitor(map: Record field.name === argName); const argField = argFieldIndex >= 0 ? argFields[argFieldIndex] : null; if (!argField) { - throw new KinobiError(KINOBI_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, { + throw new KinobiError(CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, { argumentName: argName, instruction: node, instructionName: node.name, @@ -49,7 +49,7 @@ export function createSubInstructionsFromEnumArgsVisitor(map: Record 0; if (hasConflictingNames) { - throw new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { + throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { conflictingAttributes: uniqueDuplicates, }); } diff --git a/packages/visitors/src/flattenStructVisitor.ts b/packages/visitors/src/flattenStructVisitor.ts index 345d6c4d1..877c8b685 100644 --- a/packages/visitors/src/flattenStructVisitor.ts +++ b/packages/visitors/src/flattenStructVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, KinobiError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -41,7 +41,7 @@ export const flattenStruct = (node: Node, options: FlattenStructOptions = '*'): const hasConflictingNames = uniqueDuplicates.length > 0; if (hasConflictingNames) { - throw new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { + throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { conflictingAttributes: uniqueDuplicates, }); } diff --git a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts index a1c66d8be..d44f6c435 100644 --- a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts +++ b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, KinobiError } from '@codama/errors'; import { accountNode, assertIsNode, @@ -24,7 +24,7 @@ export function setAccountDiscriminatorFromFieldVisitor( const accountData = resolveNestedTypeNode(node.data); const fieldIndex = accountData.fields.findIndex(f => f.name === field); if (fieldIndex < 0) { - throw new KinobiError(KINOBI_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, { + throw new KinobiError(CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, { account: node, missingField: field, name: node.name, diff --git a/packages/visitors/src/setNumberWrappersVisitor.ts b/packages/visitors/src/setNumberWrappersVisitor.ts index 80a2e1ae9..6ace02ade 100644 --- a/packages/visitors/src/setNumberWrappersVisitor.ts +++ b/packages/visitors/src/setNumberWrappersVisitor.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, KinobiError } from '@codama/errors'; import { amountTypeNode, assertIsNestedTypeNode, dateTimeTypeNode, solAmountTypeNode } from '@codama/nodes'; import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; @@ -24,7 +24,7 @@ export function setNumberWrappersVisitor(map: NumberWrapperMap) { case 'Amount': return amountTypeNode(node, wrapper.decimals, wrapper.unit); default: - throw new KinobiError(KINOBI_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, { wrapper }); + throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, { wrapper }); } }, }), diff --git a/packages/visitors/test/addPdasVisitor.test.ts b/packages/visitors/test/addPdasVisitor.test.ts index f64408c18..ad570ce66 100644 --- a/packages/visitors/test/addPdasVisitor.test.ts +++ b/packages/visitors/test/addPdasVisitor.test.ts @@ -1,4 +1,4 @@ -import { KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; import { constantPdaSeedNodeFromProgramId, constantPdaSeedNodeFromString, @@ -92,7 +92,7 @@ test('it fails to add a PDA if its name conflicts with an existing PDA on the pr // Then we expect the following error to be thrown. expect(fn).toThrow( - new KinobiError(KINOBI_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { + new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { duplicatedPdaNames: ['myPda'], program: node, programName: 'myProgram', From b09dea43bc6f0cd4cd4fa31666661d0adcaaf701 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:46:54 +0100 Subject: [PATCH 05/14] Rename `*kinobi-so*` to `*codama*` --- packages/errors/README.md | 2 +- packages/library/README.md | 2 +- packages/node-types/README.md | 2 +- packages/nodes-from-anchor/README.md | 2 +- packages/nodes/README.md | 2 +- packages/renderers-core/README.md | 2 +- packages/renderers-js-umi/README.md | 2 +- packages/renderers-js/README.md | 2 +- packages/renderers-rust/README.md | 2 +- packages/renderers/README.md | 2 +- packages/validators/README.md | 2 +- packages/visitors-core/README.md | 2 +- packages/visitors/README.md | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/errors/README.md b/packages/errors/README.md index db5e497c4..23348e352 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/errors.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/errors.svg?style=flat&label=%40kinobi-so%2Ferrors +[npm-image]: https://img.shields.io/npm/v/@codama/errors.svg?style=flat&label=%40codama%2Ferrors [npm-url]: https://www.npmjs.com/package/@codama/errors This package defines a `KinobiError` class that accepts a specific error code and a context object based on that code. It enables us to catch and handle errors in a more structured way. diff --git a/packages/library/README.md b/packages/library/README.md index 5482962ee..ae3144ad8 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/codama.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat&label=%40kinobi-so%2Fnodes +[npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat&label=%40codama%2Fnodes [npm-url]: https://www.npmjs.com/package/codama This package is the main library for Codama. It re-exports most of the other packages in the Codama monorepo and offers a `Codama` type with a few helpers to help bind everything together. diff --git a/packages/node-types/README.md b/packages/node-types/README.md index 07d5de86a..c2144c307 100644 --- a/packages/node-types/README.md +++ b/packages/node-types/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/node-types.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/node-types.svg?style=flat&label=%40kinobi-so%2Fnode-types +[npm-image]: https://img.shields.io/npm/v/@codama/node-types.svg?style=flat&label=%40codama%2Fnode-types [npm-url]: https://www.npmjs.com/package/@codama/node-types This package is the type-only version of the `@codama/nodes` package. Check out the [nodes documentation](../nodes) for more information. diff --git a/packages/nodes-from-anchor/README.md b/packages/nodes-from-anchor/README.md index e0f764498..22a8c9516 100644 --- a/packages/nodes-from-anchor/README.md +++ b/packages/nodes-from-anchor/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/nodes-from-anchor.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/nodes-from-anchor.svg?style=flat&label=%40kinobi-so%2Fnodes-from-anchor +[npm-image]: https://img.shields.io/npm/v/@codama/nodes-from-anchor.svg?style=flat&label=%40codama%2Fnodes-from-anchor [npm-url]: https://www.npmjs.com/package/@codama/nodes-from-anchor This package converts Anchor IDLs from various versions into Codama IDLs. diff --git a/packages/nodes/README.md b/packages/nodes/README.md index 9bdfad8a9..606f8c5e5 100644 --- a/packages/nodes/README.md +++ b/packages/nodes/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/nodes.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/nodes.svg?style=flat&label=%40kinobi-so%2Fnodes +[npm-image]: https://img.shields.io/npm/v/@codama/nodes.svg?style=flat&label=%40codama%2Fnodes [npm-url]: https://www.npmjs.com/package/@codama/nodes This package defines the various nodes that make up the Codama IDL. It provides types and helper functions to work with these nodes. If you are looking for a type-only version of these nodes, you can find them in the [`@codama/node-types`](../node-types) package. diff --git a/packages/renderers-core/README.md b/packages/renderers-core/README.md index 94ab9ca84..43169e31c 100644 --- a/packages/renderers-core/README.md +++ b/packages/renderers-core/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-core.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/renderers-core.svg?style=flat&label=%40kinobi-so%2Frenderers-core +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-core.svg?style=flat&label=%40codama%2Frenderers-core [npm-url]: https://www.npmjs.com/package/@codama/renderers-core This package provides the core utility for generating clients from Codama IDLs. Its aim is mainly to provide helpers for other renderer packages such as [`@codama/renderers-js`](../renderers-js) and [`@codama/renderers-rust`](../renderers-rust). diff --git a/packages/renderers-js-umi/README.md b/packages/renderers-js-umi/README.md index dc1dbcf15..4f2b14716 100644 --- a/packages/renderers-js-umi/README.md +++ b/packages/renderers-js-umi/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-js-umi.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js-umi.svg?style=flat&label=%40kinobi-so%2Frenderers-js-umi +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js-umi.svg?style=flat&label=%40codama%2Frenderers-js-umi [npm-url]: https://www.npmjs.com/package/@codama/renderers-js-umi This package generates JavaScript clients from your Codama IDLs. The generated clients are compatible with Metaplex's [Umi framework](https://github.com/metaplex-foundation/umi). diff --git a/packages/renderers-js/README.md b/packages/renderers-js/README.md index c3e182861..ddad72b1c 100644 --- a/packages/renderers-js/README.md +++ b/packages/renderers-js/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-js.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js.svg?style=flat&label=%40kinobi-so%2Frenderers-js +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-js.svg?style=flat&label=%40codama%2Frenderers-js [npm-url]: https://www.npmjs.com/package/@codama/renderers-js This package generates JavaScript clients from your Codama IDLs. The generated clients are compatible with the soon-to-be-released 2.0 line of [`@solana/web3.js`](https://github.com/solana-labs/solana-web3.js). diff --git a/packages/renderers-rust/README.md b/packages/renderers-rust/README.md index b4b15c990..7230c8708 100644 --- a/packages/renderers-rust/README.md +++ b/packages/renderers-rust/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers-rust.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/renderers-rust.svg?style=flat&label=%40kinobi-so%2Frenderers-rust +[npm-image]: https://img.shields.io/npm/v/@codama/renderers-rust.svg?style=flat&label=%40codama%2Frenderers-rust [npm-url]: https://www.npmjs.com/package/@codama/renderers-rust This package generates Rust clients from your Codama IDLs. diff --git a/packages/renderers/README.md b/packages/renderers/README.md index 74d2815d8..b5c8c654a 100644 --- a/packages/renderers/README.md +++ b/packages/renderers/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/renderers.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/renderers.svg?style=flat&label=%40kinobi-so%2Frenderers +[npm-image]: https://img.shields.io/npm/v/@codama/renderers.svg?style=flat&label=%40codama%2Frenderers [npm-url]: https://www.npmjs.com/package/@codama/renderers This package re-exports all available renderers for Codama IDLs. diff --git a/packages/validators/README.md b/packages/validators/README.md index 9b8671705..557d3b995 100644 --- a/packages/validators/README.md +++ b/packages/validators/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/validators.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/validators.svg?style=flat&label=%40kinobi-so%2Fvalidators +[npm-image]: https://img.shields.io/npm/v/@codama/validators.svg?style=flat&label=%40codama%2Fvalidators [npm-url]: https://www.npmjs.com/package/@codama/validators This package offers a set of validation rules for Codama IDLs to ensure that they are correctly formatted. diff --git a/packages/visitors-core/README.md b/packages/visitors-core/README.md index a080b8058..61c1e488c 100644 --- a/packages/visitors-core/README.md +++ b/packages/visitors-core/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/visitors-core.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/visitors-core.svg?style=flat&label=%40kinobi-so%2Fvisitors-core +[npm-image]: https://img.shields.io/npm/v/@codama/visitors-core.svg?style=flat&label=%40codama%2Fvisitors-core [npm-url]: https://www.npmjs.com/package/@codama/visitors-core This package provides core interfaces and utilities for creating visitors for Codama IDLs. diff --git a/packages/visitors/README.md b/packages/visitors/README.md index b9734f377..995c33ead 100644 --- a/packages/visitors/README.md +++ b/packages/visitors/README.md @@ -4,7 +4,7 @@ [![npm-downloads][npm-downloads-image]][npm-url] [npm-downloads-image]: https://img.shields.io/npm/dm/@codama/visitors.svg?style=flat -[npm-image]: https://img.shields.io/npm/v/@codama/visitors.svg?style=flat&label=%40kinobi-so%2Fvisitors +[npm-image]: https://img.shields.io/npm/v/@codama/visitors.svg?style=flat&label=%40codama%2Fvisitors [npm-url]: https://www.npmjs.com/package/@codama/visitors This package offers various visitors for Codama IDLs to traverse and manipulate their nodes. From 2bf88ed907583b0197ae4f51a5a3d9b2ca6afd8a Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:47:35 +0100 Subject: [PATCH 06/14] Rename `*kinobi*` to `*codama*` --- packages/errors/README.md | 2 +- packages/errors/src/context.ts | 2 +- packages/errors/src/messages.ts | 2 +- packages/library/README.md | 2 +- packages/library/src/kinobi.ts | 8 ++++---- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/errors/README.md b/packages/errors/README.md index 23348e352..fde7a5dd6 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -52,7 +52,7 @@ try { const { expectedKinds, kind, node } = e.context; // ... } else if (isKinobiError(e, CODAMA_ERROR__VERSION_MISMATCH)) { - const { kinobiVersion, rootVersion } = e.context; + const { codamaVersion, rootVersion } = e.context; // ... } else { throw e; diff --git a/packages/errors/src/context.ts b/packages/errors/src/context.ts index a466ce504..c52fc0ee9 100644 --- a/packages/errors/src/context.ts +++ b/packages/errors/src/context.ts @@ -98,7 +98,7 @@ export type KinobiErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ kind: string; }; [CODAMA_ERROR__VERSION_MISMATCH]: { - kinobiVersion: string; + codamaVersion: string; rootVersion: string; }; [CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: { diff --git a/packages/errors/src/messages.ts b/packages/errors/src/messages.ts index a89eb84cb..8d51a595a 100644 --- a/packages/errors/src/messages.ts +++ b/packages/errors/src/messages.ts @@ -53,7 +53,7 @@ export const KinobiErrorMessages: Readonly<{ [CODAMA_ERROR__UNEXPECTED_NODE_KIND]: 'Expected node of kind [$expectedKinds], got [$kind].', [CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]: 'Unrecognized node kind [$kind].', [CODAMA_ERROR__VERSION_MISMATCH]: - 'The provided RootNode version [$rootVersion] is not compatible with the installed Codama version [$kinobiVersion].', + 'The provided RootNode version [$rootVersion] is not compatible with the installed Codama version [$codamaVersion].', [CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND]: 'Account [$name] does not have a field named [$missingField].', [CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES]: 'Cannot add PDAs to program [$programName] because the following PDA names already exist [$duplicatedPdaNames].', diff --git a/packages/library/README.md b/packages/library/README.md index ae3144ad8..6f69993fc 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -93,6 +93,6 @@ const codama = createFromRoot(rootNode(programNode({ ... }))); The `createFromJson` function creates a new instance of the `Codama` interface from a JSON representation of a `RootNode`. ```ts -const json: string = fs.readFileSync('path/to/kinobiIdl.json', 'utf-8'); +const json: string = fs.readFileSync('path/to/codamaIdl.json', 'utf-8'); const codama = createFromJson(json); ``` diff --git a/packages/library/src/kinobi.ts b/packages/library/src/kinobi.ts index e9d86d78a..537fd49c7 100644 --- a/packages/library/src/kinobi.ts +++ b/packages/library/src/kinobi.ts @@ -40,12 +40,12 @@ export function createFromJson(json: string): Codama { } function validateKinobiVersion(rootVersion: KinobiVersion): void { - const kinobiVersion = __VERSION__; - if (rootVersion === kinobiVersion) return; + const codamaVersion = __VERSION__; + if (rootVersion === codamaVersion) return; const [rootMajor, rootMinor] = rootVersion.split('.').map(Number); - const [KinobiMajor, KinobiMinor] = kinobiVersion.split('.').map(Number); + const [KinobiMajor, KinobiMinor] = codamaVersion.split('.').map(Number); const isZeroMajor = rootMajor === 0 && KinobiMajor === 0; if (isZeroMajor && rootMinor === KinobiMinor) return; if (rootMajor === KinobiMajor) return; - throw new KinobiError(CODAMA_ERROR__VERSION_MISMATCH, { kinobiVersion, rootVersion }); + throw new KinobiError(CODAMA_ERROR__VERSION_MISMATCH, { codamaVersion, rootVersion }); } From cd1615803d74afd704509dba34977d6a15d46885 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:49:54 +0100 Subject: [PATCH 07/14] Rename `*Kinobi*` to `*Codama*` --- packages/errors/README.md | 12 ++--- packages/errors/src/cli.ts | 10 ++-- packages/errors/src/codes.ts | 2 +- packages/errors/src/context.ts | 6 +-- packages/errors/src/error.ts | 36 ++++++------- packages/errors/src/message-formatter.ts | 10 ++-- packages/errors/src/messages.ts | 6 +-- packages/errors/test/error.test.ts | 30 +++++------ packages/errors/test/error.typetest.ts | 52 +++++++++---------- packages/library/README.md | 2 +- packages/library/src/kinobi.ts | 18 +++---- packages/node-types/src/RootNode.ts | 4 +- packages/node-types/src/shared/version.ts | 2 +- .../src/v00/typeNodes/TypeNode.ts | 6 +-- .../nodes-from-anchor/src/v01/AccountNode.ts | 4 +- .../src/v01/InstructionAccountNode.ts | 12 ++--- .../src/v01/typeNodes/StructFieldTypeNode.ts | 4 +- .../src/v01/typeNodes/TypeNode.ts | 6 +-- .../test/v01/typeNodes/StructTypeNode.test.ts | 4 +- packages/nodes/src/Node.ts | 4 +- packages/nodes/src/RootNode.ts | 4 +- .../nodes/src/typeNodes/NestedTypeNode.ts | 4 +- packages/nodes/test/RootNode.test.ts | 4 +- packages/renderers-core/src/RenderMap.ts | 4 +- packages/renderers-core/src/fs.ts | 10 ++-- packages/renderers-core/test/fs.test.ts | 10 ++-- .../src/getTypeManifestVisitor.ts | 6 +-- .../src/utils/linkOverrides.ts | 4 +- .../renderers-js/src/utils/linkOverrides.ts | 4 +- .../src/getTypeManifestVisitor.ts | 6 +-- .../renderers-rust/src/utils/linkOverrides.ts | 4 +- .../src/throwValidatorItemsVisitor.ts | 4 +- .../visitors-core/src/LinkableDictionary.ts | 4 +- packages/visitors-core/src/extendVisitor.ts | 4 +- .../getResolvedInstructionInputsVisitor.ts | 10 ++-- packages/visitors-core/src/visitor.ts | 4 +- .../visitors-core/test/extendVisitor.test.ts | 4 +- .../test/recordLinkablesVisitor.test.ts | 4 +- packages/visitors/src/addPdasVisitor.ts | 4 +- ...reateSubInstructionsFromEnumArgsVisitor.ts | 6 +-- .../src/fillDefaultPdaSeedValuesVisitor.ts | 4 +- .../flattenInstructionDataArgumentsVisitor.ts | 4 +- packages/visitors/src/flattenStructVisitor.ts | 4 +- ...setAccountDiscriminatorFromFieldVisitor.ts | 4 +- .../visitors/src/setNumberWrappersVisitor.ts | 4 +- packages/visitors/test/addPdasVisitor.test.ts | 4 +- 46 files changed, 179 insertions(+), 179 deletions(-) diff --git a/packages/errors/README.md b/packages/errors/README.md index fde7a5dd6..677a4de90 100644 --- a/packages/errors/README.md +++ b/packages/errors/README.md @@ -7,7 +7,7 @@ [npm-image]: https://img.shields.io/npm/v/@codama/errors.svg?style=flat&label=%40codama%2Ferrors [npm-url]: https://www.npmjs.com/package/@codama/errors -This package defines a `KinobiError` class that accepts a specific error code and a context object based on that code. It enables us to catch and handle errors in a more structured way. +This package defines a `CodamaError` class that accepts a specific error code and a context object based on that code. It enables us to catch and handle errors in a more structured way. ## Installation @@ -40,18 +40,18 @@ npx @codama/errors decode -- 123 ## Catching errors -When you catch a `KinobiError` and assert its error code using `isKinobiError()`, TypeScript will refine the error's context to the type associated with that error code. You can use that context to render useful error messages, or to make context-aware decisions that help your application to recover from the error. +When you catch a `CodamaError` and assert its error code using `isCodamaError()`, TypeScript will refine the error's context to the type associated with that error code. You can use that context to render useful error messages, or to make context-aware decisions that help your application to recover from the error. ```ts -import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, isKinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, isCodamaError } from '@codama/errors'; try { const codama = createFromJson(jsonIdl); } catch (e) { - if (isKinobiError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { + if (isCodamaError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { const { expectedKinds, kind, node } = e.context; // ... - } else if (isKinobiError(e, CODAMA_ERROR__VERSION_MISMATCH)) { + } else if (isCodamaError(e, CODAMA_ERROR__VERSION_MISMATCH)) { const { codamaVersion, rootVersion } = e.context; // ... } else { @@ -67,7 +67,7 @@ try { To add a new error in Codama, follow these steps: 1. Add a new exported error code constant to `src/codes.ts`. Find the most appropriate group for your error and ensure it is appended to the end of that group. -2. Add that new constant to the `KinobiErrorCode` union in `src/codes.ts`. +2. Add that new constant to the `CodamaErrorCode` union in `src/codes.ts`. 3. If you would like the new error to encapsulate context about the error itself define that context in `src/context.ts`. 4. Add the error's message to `src/messages.ts`. Any context values that you defined above will be interpolated into the message wherever you write `$key`, where `key` is the index of a value in the context (eg. ``'Unrecognized node `$kind`.'``). 5. Publish a new version of `@codama/errors` using changesets — maintainers will handle this via tha changesets CI workflow. diff --git a/packages/errors/src/cli.ts b/packages/errors/src/cli.ts index 63aeb9ec9..a8948bc4f 100755 --- a/packages/errors/src/cli.ts +++ b/packages/errors/src/cli.ts @@ -7,10 +7,10 @@ import chalk from 'chalk'; import { Command, InvalidArgumentError } from 'commander'; import { version } from '../package.json'; -import { KinobiErrorCode } from './codes'; +import { CodamaErrorCode } from './codes'; import { decodeEncodedContext } from './context'; import { getHumanReadableErrorMessage } from './message-formatter'; -import { KinobiErrorMessages } from './messages'; +import { CodamaErrorMessages } from './messages'; const program = new Command(); @@ -18,13 +18,13 @@ program.name('@codama/errors').description('Decode Codama JavaScript errors thro program .command('decode') - .description('Decode a `KinobiErrorCode` to a human-readable message') + .description('Decode a `CodamaErrorCode` to a human-readable message') .argument('', 'numeric error code to decode', rawCode => { const code = parseInt(rawCode, 10); if (isNaN(code) || `${code}` !== rawCode) { throw new InvalidArgumentError('It must be an integer'); } - if (!(code in KinobiErrorMessages)) { + if (!(code in CodamaErrorMessages)) { throw new InvalidArgumentError('There exists no error with that code'); } return code; @@ -37,7 +37,7 @@ program } }) .action((code: number, context) => { - const message = getHumanReadableErrorMessage(code as KinobiErrorCode, context); + const message = getHumanReadableErrorMessage(code as CodamaErrorCode, context); console.log(` ${ chalk.bold( diff --git a/packages/errors/src/codes.ts b/packages/errors/src/codes.ts index ec36a2658..5ef16de83 100644 --- a/packages/errors/src/codes.ts +++ b/packages/errors/src/codes.ts @@ -75,7 +75,7 @@ export const CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE = 2800000 as const; * actually used. Unfortunately exporting ambient (const) enums from a library like `@codama/errors` * is not safe, for a variety of reasons covered here: https://stackoverflow.com/a/28818850 */ -export type KinobiErrorCode = +export type CodamaErrorCode = | typeof CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING | typeof CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING | typeof CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED diff --git a/packages/errors/src/context.ts b/packages/errors/src/context.ts index c52fc0ee9..2323d8f12 100644 --- a/packages/errors/src/context.ts +++ b/packages/errors/src/context.ts @@ -43,18 +43,18 @@ import { CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, - KinobiErrorCode, + CodamaErrorCode, } from './codes'; type DefaultUnspecifiedErrorContextToUndefined = { - [P in KinobiErrorCode]: P extends keyof T ? T[P] : undefined; + [P in CodamaErrorCode]: P extends keyof T ? T[P] : undefined; }; /** * WARNING: * - Don't change or remove members of an error's context. */ -export type KinobiErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ +export type CodamaErrorContext = DefaultUnspecifiedErrorContextToUndefined<{ [CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: { name: string; }; diff --git a/packages/errors/src/error.ts b/packages/errors/src/error.ts index 0e6c5bfb6..b56a825af 100644 --- a/packages/errors/src/error.ts +++ b/packages/errors/src/error.ts @@ -3,38 +3,38 @@ * @see https://github.com/solana-labs/solana-web3.js/blob/master/packages/errors */ -import { KinobiErrorCode } from './codes'; -import { KinobiErrorContext } from './context'; +import { CodamaErrorCode } from './codes'; +import { CodamaErrorContext } from './context'; import { getErrorMessage } from './message-formatter'; -export function isKinobiError( +export function isCodamaError( e: unknown, code?: TErrorCode, -): e is KinobiError { - const isKinobiError = e instanceof Error && e.name === 'KinobiError'; - if (isKinobiError) { +): e is CodamaError { + const isCodamaError = e instanceof Error && e.name === 'CodamaError'; + if (isCodamaError) { if (code !== undefined) { - return (e as KinobiError).context.__code === code; + return (e as CodamaError).context.__code === code; } return true; } return false; } -type KinobiErrorCodedContext = Readonly<{ - [P in KinobiErrorCode]: (KinobiErrorContext[P] extends undefined ? object : KinobiErrorContext[P]) & { +type CodamaErrorCodedContext = Readonly<{ + [P in CodamaErrorCode]: (CodamaErrorContext[P] extends undefined ? object : CodamaErrorContext[P]) & { __code: P; }; }>; -export class KinobiError extends Error { - readonly context: KinobiErrorCodedContext[TErrorCode]; +export class CodamaError extends Error { + readonly context: CodamaErrorCodedContext[TErrorCode]; constructor( - ...[code, contextAndErrorOptions]: KinobiErrorContext[TErrorCode] extends undefined + ...[code, contextAndErrorOptions]: CodamaErrorContext[TErrorCode] extends undefined ? [code: TErrorCode, errorOptions?: ErrorOptions | undefined] - : [code: TErrorCode, contextAndErrorOptions: KinobiErrorContext[TErrorCode] & (ErrorOptions | undefined)] + : [code: TErrorCode, contextAndErrorOptions: CodamaErrorContext[TErrorCode] & (ErrorOptions | undefined)] ) { - let context: KinobiErrorContext[TErrorCode] | undefined; + let context: CodamaErrorContext[TErrorCode] | undefined; let errorOptions: ErrorOptions | undefined; if (contextAndErrorOptions) { // If the `ErrorOptions` type ever changes, update this code. @@ -43,7 +43,7 @@ export class KinobiError e errorOptions = { cause }; } if (Object.keys(contextRest).length > 0) { - context = contextRest as KinobiErrorContext[TErrorCode]; + context = contextRest as CodamaErrorContext[TErrorCode]; } } const message = getErrorMessage(code, context); @@ -51,9 +51,9 @@ export class KinobiError e this.context = { __code: code, ...context, - } as KinobiErrorCodedContext[TErrorCode]; - // This is necessary so that `isKinobiError()` can identify a `KinobiError` without having + } as CodamaErrorCodedContext[TErrorCode]; + // This is necessary so that `isCodamaError()` can identify a `CodamaError` without having // to import the class for use in an `instanceof` check. - this.name = 'KinobiError'; + this.name = 'CodamaError'; } } diff --git a/packages/errors/src/message-formatter.ts b/packages/errors/src/message-formatter.ts index 259676f79..e6babbb3e 100644 --- a/packages/errors/src/message-formatter.ts +++ b/packages/errors/src/message-formatter.ts @@ -3,22 +3,22 @@ * @see https://github.com/solana-labs/solana-web3.js/blob/master/packages/errors */ -import { KinobiErrorCode } from './codes'; +import { CodamaErrorCode } from './codes'; import { encodeContextObject } from './context'; -import { KinobiErrorMessages } from './messages'; +import { CodamaErrorMessages } from './messages'; -export function getHumanReadableErrorMessage( +export function getHumanReadableErrorMessage( code: TErrorCode, context: object = {}, ): string { - const messageFormatString = KinobiErrorMessages[code]; + const messageFormatString = CodamaErrorMessages[code]; const message = messageFormatString.replace(/(? variableName in context ? `${context[variableName as keyof typeof context]}` : substring, ); return message; } -export function getErrorMessage(code: TErrorCode, context: object = {}): string { +export function getErrorMessage(code: TErrorCode, context: object = {}): string { if (process.env.NODE_ENV !== 'production') { return getHumanReadableErrorMessage(code, context); } else { diff --git a/packages/errors/src/messages.ts b/packages/errors/src/messages.ts index 8d51a595a..833c94f00 100644 --- a/packages/errors/src/messages.ts +++ b/packages/errors/src/messages.ts @@ -28,17 +28,17 @@ import { CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, CODAMA_ERROR__VISITORS__INVALID_PDA_SEED_VALUES, CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, - KinobiErrorCode, + CodamaErrorCode, } from './codes'; /** * WARNING: * - Don't change the meaning of an error message. */ -export const KinobiErrorMessages: Readonly<{ +export const CodamaErrorMessages: Readonly<{ // This type makes this data structure exhaustive with respect to `SolanaErrorCode`. // TypeScript will fail to build this project if add an error code without a message. - [P in KinobiErrorCode]: string; + [P in CodamaErrorCode]: string; }> = { [CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING]: 'Account type [$name] is missing from the IDL types.', [CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING]: 'Argument name [$name] is missing from the instruction definition.', diff --git a/packages/errors/test/error.test.ts b/packages/errors/test/error.test.ts index 7506b7b9c..6c11da26b 100644 --- a/packages/errors/test/error.test.ts +++ b/packages/errors/test/error.test.ts @@ -1,53 +1,53 @@ import { expect, test } from 'vitest'; import { - isKinobiError, + isCodamaError, CODAMA_ERROR__UNEXPECTED_NODE_KIND, CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, - KinobiError, + CodamaError, } from '../src'; test('it exposes the Codama error context', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.context.kind).toBe('missingNode'); }); test('it exposes the Codama error code', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.context.__code).toBe(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND); }); test('it calls the message formatter with the code and context', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.message).toBe('Unrecognized node kind [missingNode].'); }); test('it exposes no cause when none is provided', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); expect(error.cause).toBeUndefined(); }); test('it exposes the cause when provided', () => { const cause = {} as unknown; - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { cause, kind: 'missingNode' }); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { cause, kind: 'missingNode' }); expect(error.cause).toBe(cause); }); -test('it returns `true` for an instance of `KinobiError`', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(isKinobiError(error)).toBe(true); +test('it returns `true` for an instance of `CodamaError`', () => { + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(isCodamaError(error)).toBe(true); }); test('it returns `false` for an instance of `Error`', () => { - expect(isKinobiError(new Error('bad thing'))).toBe(false); + expect(isCodamaError(new Error('bad thing'))).toBe(false); }); test('it returns `true` when the error code matches', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(isKinobiError(error, CODAMA_ERROR__UNRECOGNIZED_NODE_KIND)).toBe(true); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(isCodamaError(error, CODAMA_ERROR__UNRECOGNIZED_NODE_KIND)).toBe(true); }); test('it returns `false` when the error code does not match', () => { - const error = new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); - expect(isKinobiError(error, CODAMA_ERROR__UNEXPECTED_NODE_KIND)).toBe(false); + const error = new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: 'missingNode' }); + expect(isCodamaError(error, CODAMA_ERROR__UNEXPECTED_NODE_KIND)).toBe(false); }); diff --git a/packages/errors/test/error.typetest.ts b/packages/errors/test/error.typetest.ts index cd18efc12..69c5041fa 100644 --- a/packages/errors/test/error.typetest.ts +++ b/packages/errors/test/error.typetest.ts @@ -1,16 +1,16 @@ import { PublicKeyTypeNode } from '@codama/node-types'; -import { isKinobiError, KinobiError, KinobiErrorCode } from '../src'; -import * as KinobiErrorCodeModule from '../src/codes'; -import { KinobiErrorContext } from '../src/context'; +import { isCodamaError, CodamaError, CodamaErrorCode } from '../src'; +import * as CodamaErrorCodeModule from '../src/codes'; +import { CodamaErrorContext } from '../src/context'; -const { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, CODAMA_ERROR__UNEXPECTED_NODE_KIND } = KinobiErrorCodeModule; +const { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, CODAMA_ERROR__UNEXPECTED_NODE_KIND } = CodamaErrorCodeModule; // If this line raises a type error, you might have forgotten to add a new error to the -// `KinobiErrorCode` union in `src/codes.ts`. -Object.values(KinobiErrorCodeModule) satisfies KinobiErrorCode[]; +// `CodamaErrorCode` union in `src/codes.ts`. +Object.values(CodamaErrorCodeModule) satisfies CodamaErrorCode[]; -const unexpectedNodeKindError = new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { +const unexpectedNodeKindError = new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: ['numberTypeNode', 'stringTypeNode'], kind: 'publicKeyTypeNode', node: {} as PublicKeyTypeNode, @@ -25,51 +25,51 @@ const unexpectedNodeKindError = new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KI { // @ts-expect-error Missing context. - new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, {}); + new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, {}); // @ts-expect-error Missing part of the context. - new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: ['numberTypeNode', 'stringTypeNode'], node: {} as PublicKeyTypeNode, }); - new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { // @ts-expect-error Wrong context attribute. foo: 'bar', }); } -unexpectedNodeKindError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; +unexpectedNodeKindError.context satisfies CodamaErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Non existent context property. unexpectedNodeKindError.context.feePayer; // @ts-expect-error Missing context. -new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND); +new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND); // @ts-expect-error Missing context. -new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND); +new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND); -const unknownError = null as unknown as KinobiError; +const unknownError = null as unknown as CodamaError; if (unknownError.context.__code === CODAMA_ERROR__UNEXPECTED_NODE_KIND) { - unknownError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; + unknownError.context satisfies CodamaErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Context belongs to another error code - unknownError.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; + unknownError.context satisfies CodamaErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; } const e = null as unknown; -if (isKinobiError(e)) { - e.context satisfies Readonly<{ __code: KinobiErrorCode }>; +if (isCodamaError(e)) { + e.context satisfies Readonly<{ __code: CodamaErrorCode }>; } -if (isKinobiError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { - e.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; +if (isCodamaError(e, CODAMA_ERROR__UNEXPECTED_NODE_KIND)) { + e.context satisfies CodamaErrorContext[typeof CODAMA_ERROR__UNEXPECTED_NODE_KIND]; // @ts-expect-error Context belongs to another error code - e.context satisfies KinobiErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; + e.context satisfies CodamaErrorContext[typeof CODAMA_ERROR__UNRECOGNIZED_NODE_KIND]; } -// `KinobiErrorContext` must not contain any keys reserved by `ErrorOptions` (eg. `cause`) -null as unknown as KinobiErrorContext satisfies { - [Code in keyof KinobiErrorContext]: KinobiErrorContext[Code] extends undefined +// `CodamaErrorContext` must not contain any keys reserved by `ErrorOptions` (eg. `cause`) +null as unknown as CodamaErrorContext satisfies { + [Code in keyof CodamaErrorContext]: CodamaErrorContext[Code] extends undefined ? undefined : { - [PP in keyof KinobiErrorContext[Code]]: PP extends keyof ErrorOptions + [PP in keyof CodamaErrorContext[Code]]: PP extends keyof ErrorOptions ? never - : KinobiErrorContext[Code][PP]; + : CodamaErrorContext[Code][PP]; }; }; diff --git a/packages/library/README.md b/packages/library/README.md index 6f69993fc..000089c42 100644 --- a/packages/library/README.md +++ b/packages/library/README.md @@ -75,7 +75,7 @@ Other helper functions include: - `getRoot()`: Returns the wrapped `RootNode`. ```ts -const clonedKinobi = codama.clone(); +const clonedCodama = codama.clone(); const jsonIdl = codama.getJson(); const rootNode = codama.getRoot(); ``` diff --git a/packages/library/src/kinobi.ts b/packages/library/src/kinobi.ts index 537fd49c7..f14f7e667 100644 --- a/packages/library/src/kinobi.ts +++ b/packages/library/src/kinobi.ts @@ -1,6 +1,6 @@ import { CODAMA_ERROR__VERSION_MISMATCH } from '@codama/errors'; -import { KinobiError } from '@codama/errors'; -import { assertIsNode, KinobiVersion, Node, RootNode } from '@codama/nodes'; +import { CodamaError } from '@codama/errors'; +import { assertIsNode, CodamaVersion, Node, RootNode } from '@codama/nodes'; import { visit, Visitor } from '@codama/visitors'; export interface Codama { @@ -13,7 +13,7 @@ export interface Codama { export function createFromRoot(root: RootNode): Codama { let currentRoot = root; - validateKinobiVersion(currentRoot.version); + validateCodamaVersion(currentRoot.version); return { accept(visitor: Visitor): T { return visit(currentRoot, visitor); @@ -39,13 +39,13 @@ export function createFromJson(json: string): Codama { return createFromRoot(JSON.parse(json) as RootNode); } -function validateKinobiVersion(rootVersion: KinobiVersion): void { +function validateCodamaVersion(rootVersion: CodamaVersion): void { const codamaVersion = __VERSION__; if (rootVersion === codamaVersion) return; const [rootMajor, rootMinor] = rootVersion.split('.').map(Number); - const [KinobiMajor, KinobiMinor] = codamaVersion.split('.').map(Number); - const isZeroMajor = rootMajor === 0 && KinobiMajor === 0; - if (isZeroMajor && rootMinor === KinobiMinor) return; - if (rootMajor === KinobiMajor) return; - throw new KinobiError(CODAMA_ERROR__VERSION_MISMATCH, { codamaVersion, rootVersion }); + const [CodamaMajor, CodamaMinor] = codamaVersion.split('.').map(Number); + const isZeroMajor = rootMajor === 0 && CodamaMajor === 0; + if (isZeroMajor && rootMinor === CodamaMinor) return; + if (rootMajor === CodamaMajor) return; + throw new CodamaError(CODAMA_ERROR__VERSION_MISMATCH, { codamaVersion, rootVersion }); } diff --git a/packages/node-types/src/RootNode.ts b/packages/node-types/src/RootNode.ts index fc1a99032..5c1633b99 100644 --- a/packages/node-types/src/RootNode.ts +++ b/packages/node-types/src/RootNode.ts @@ -1,5 +1,5 @@ import type { ProgramNode } from './ProgramNode'; -import type { KinobiVersion } from './shared'; +import type { CodamaVersion } from './shared'; export interface RootNode< TProgram extends ProgramNode = ProgramNode, @@ -9,7 +9,7 @@ export interface RootNode< // Data. readonly standard: 'codama'; - readonly version: KinobiVersion; + readonly version: CodamaVersion; // Children. readonly program: TProgram; diff --git a/packages/node-types/src/shared/version.ts b/packages/node-types/src/shared/version.ts index b7c2ea18c..4bc692333 100644 --- a/packages/node-types/src/shared/version.ts +++ b/packages/node-types/src/shared/version.ts @@ -1,4 +1,4 @@ type SemanticVersion = `${number}.${number}.${number}`; -export type KinobiVersion = SemanticVersion; +export type CodamaVersion = SemanticVersion; export type ProgramVersion = SemanticVersion; diff --git a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts index 81c8a16c2..1ffb6ea2d 100644 --- a/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v00/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, CodamaError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -59,7 +59,7 @@ export const typeNodeFromAnchorV00 = (idlType: IdlV00Type | IdlV00TypeDefTy): Ty // Ensure eveything else is an object. if (typeof idlType !== 'object') { - throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); } @@ -112,7 +112,7 @@ export const typeNodeFromAnchorV00 = (idlType: IdlV00Type | IdlV00TypeDefTy): Ty return tupleTypeNodeFromAnchorV00(idlType as IdlV00TypeTuple); } - throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); }; diff --git a/packages/nodes-from-anchor/src/v01/AccountNode.ts b/packages/nodes-from-anchor/src/v01/AccountNode.ts index 68c40cfa5..5ed30d950 100644 --- a/packages/nodes-from-anchor/src/v01/AccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/AccountNode.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, CodamaError } from '@codama/errors'; import { AccountNode, accountNode, @@ -20,7 +20,7 @@ export function accountNodeFromAnchorV01(idl: IdlV01Account, types: IdlV01TypeDe const type = types.find(({ name }) => name === idl.name); if (!type) { - throw new KinobiError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { name: idl.name }); + throw new CodamaError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { name: idl.name }); } const data = typeNodeFromAnchorV01(type.type); diff --git a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts index e0e8c8514..970142a2b 100644 --- a/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts +++ b/packages/nodes-from-anchor/src/v01/InstructionAccountNode.ts @@ -3,7 +3,7 @@ import { CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, - KinobiError, + CodamaError, } from '@codama/errors'; import { AccountNode, @@ -82,14 +82,14 @@ export function instructionAccountNodeFromAnchorV01( const accountName = camelCase(seed.account ?? ''); const accountNode = allAccounts.find(({ name }) => name === accountName); if (!accountNode) { - throw new KinobiError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { kind }); + throw new CodamaError(CODAMA_ERROR__ANCHOR__ACCOUNT_TYPE_MISSING, { kind }); } const fieldName = camelCase(path[1]); const accountFields = resolveNestedTypeNode(accountNode.data).fields; const fieldNode = accountFields.find(({ name }) => name === fieldName); if (!fieldNode) { - throw new KinobiError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { idlType: seed.account, path: seed.path, }); @@ -98,7 +98,7 @@ export function instructionAccountNodeFromAnchorV01( const seedName = camelCase(seed.path); return [[...seeds, variablePdaSeedNode(seedName, fieldNode.type)], []]; } else { - throw new KinobiError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__TYPE_PATH_MISSING, { idlType: seed, path: seed.path, }); @@ -108,7 +108,7 @@ export function instructionAccountNodeFromAnchorV01( const argumentName = camelCase(seed.path); const argumentNode = instructionArguments.find(({ name }) => name === argumentName); if (!argumentNode) { - throw new KinobiError(CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, { name: seed.path }); + throw new CodamaError(CODAMA_ERROR__ANCHOR__ARGUMENT_TYPE_MISSING, { name: seed.path }); } return [ @@ -117,7 +117,7 @@ export function instructionAccountNodeFromAnchorV01( ]; } default: - throw new KinobiError(CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, { kind }); + throw new CodamaError(CODAMA_ERROR__ANCHOR__SEED_KIND_UNIMPLEMENTED, { kind }); } }, <[PdaSeedNode[], PdaSeedValueNode[]]>[[], []], diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts index b6bd12754..ea621bec5 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/StructFieldTypeNode.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, CodamaError } from '@codama/errors'; import { StructFieldTypeNode, structFieldTypeNode } from '@codama/nodes'; import { IdlV01Field, IdlV01Type } from '../idl'; @@ -6,7 +6,7 @@ import { typeNodeFromAnchorV01 } from './TypeNode'; export function structFieldTypeNodeFromAnchorV01(idl: IdlV01Field | IdlV01Type): StructFieldTypeNode { if (!isStructField(idl)) { - throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idl), }); } diff --git a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts index 3a60367fd..f8b2fca10 100644 --- a/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts +++ b/packages/nodes-from-anchor/src/v01/typeNodes/TypeNode.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, CodamaError } from '@codama/errors'; import { booleanTypeNode, bytesTypeNode, @@ -59,7 +59,7 @@ export const typeNodeFromAnchorV01 = (idlType: IdlV01Type | IdlV01TypeDefTy): Ty // Ensure eveything else is an object. if (typeof idlType !== 'object') { - throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); } @@ -105,7 +105,7 @@ export const typeNodeFromAnchorV01 = (idlType: IdlV01Type | IdlV01TypeDefTy): Ty } } - throw new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + throw new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(idlType), }); }; diff --git a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts index 2b9564dec..f8ba70f3c 100644 --- a/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts +++ b/packages/nodes-from-anchor/test/v01/typeNodes/StructTypeNode.test.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, CodamaError } from '@codama/errors'; import { arrayTypeNode, numberTypeNode, @@ -58,7 +58,7 @@ test('it fails when a mixture of named and unnamed fields are provided', () => { // @ts-expect-error Invalid IDL type because of mixed named and unnamed fields. expect(() => typeNodeFromAnchorV01(anchorIdl)).toThrow( - new KinobiError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { + new CodamaError(CODAMA_ERROR__ANCHOR__UNRECOGNIZED_IDL_TYPE, { idlType: JSON.stringify(anchorIdl), }), ); diff --git a/packages/nodes/src/Node.ts b/packages/nodes/src/Node.ts index 6a98727d3..193787cc0 100644 --- a/packages/nodes/src/Node.ts +++ b/packages/nodes/src/Node.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, CodamaError } from '@codama/errors'; import type { GetNodeFromKind, Node, NodeKind } from '@codama/node-types'; import { REGISTERED_CONTEXTUAL_VALUE_NODE_KINDS } from './contextualValueNodes/ContextualValueNode'; @@ -47,7 +47,7 @@ export function assertIsNode( ): asserts node is GetNodeFromKind { const kinds = Array.isArray(kind) ? kind : [kind]; if (!isNode(node, kinds)) { - throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + throw new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: kinds, kind: node?.kind ?? null, node, diff --git a/packages/nodes/src/RootNode.ts b/packages/nodes/src/RootNode.ts index 378d073be..0d73eaa8a 100644 --- a/packages/nodes/src/RootNode.ts +++ b/packages/nodes/src/RootNode.ts @@ -1,4 +1,4 @@ -import type { KinobiVersion, ProgramNode, RootNode } from '@codama/node-types'; +import type { CodamaVersion, ProgramNode, RootNode } from '@codama/node-types'; export function rootNode( program: TProgram, @@ -9,7 +9,7 @@ export function rootNode( ): asserts node is NestedTypeNode> { const kinds = Array.isArray(kind) ? kind : [kind]; if (!isNestedTypeNode(node, kinds)) { - throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, { + throw new CodamaError(CODAMA_ERROR__UNEXPECTED_NESTED_NODE_KIND, { expectedKinds: kinds, kind: node?.kind ?? null, node, diff --git a/packages/nodes/test/RootNode.test.ts b/packages/nodes/test/RootNode.test.ts index bf402e87c..e88bde30a 100644 --- a/packages/nodes/test/RootNode.test.ts +++ b/packages/nodes/test/RootNode.test.ts @@ -1,4 +1,4 @@ -import type { KinobiVersion } from '@codama/node-types'; +import type { CodamaVersion } from '@codama/node-types'; import { expect, expectTypeOf, test } from 'vitest'; import { programNode, rootNode } from '../src'; @@ -16,7 +16,7 @@ test('it returns the right Codama standard', () => { test('it returns the right Codama version', () => { const root = rootNode(programNode({ name: 'foo', publicKey: '1111' })); expect(root.version).toBe(__VERSION__); - expectTypeOf(root.version).toMatchTypeOf(); + expectTypeOf(root.version).toMatchTypeOf(); }); test('it returns a frozen object', () => { diff --git a/packages/renderers-core/src/RenderMap.ts b/packages/renderers-core/src/RenderMap.ts index eb2a38ec6..32ef3fac3 100644 --- a/packages/renderers-core/src/RenderMap.ts +++ b/packages/renderers-core/src/RenderMap.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, CodamaError } from '@codama/errors'; import { createFile } from './fs'; @@ -35,7 +35,7 @@ export class RenderMap { get(key: string): string { const value = this.safeGet(key); if (value === undefined) { - throw new KinobiError(CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, { key }); + throw new CodamaError(CODAMA_ERROR__VISITORS__RENDER_MAP_KEY_NOT_FOUND, { key }); } return value; } diff --git a/packages/renderers-core/src/fs.ts b/packages/renderers-core/src/fs.ts index c0c3b26eb..62ba4f9d5 100644 --- a/packages/renderers-core/src/fs.ts +++ b/packages/renderers-core/src/fs.ts @@ -1,10 +1,10 @@ import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; -import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, CodamaError } from '@codama/errors'; export function readJson(value: string): T { if (!__NODEJS__) { - throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }); + throw new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }); } return JSON.parse(readFileSync(value, 'utf-8')) as T; @@ -12,7 +12,7 @@ export function readJson(value: string): T { export const createDirectory = (path: string): void => { if (!__NODEJS__) { - throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }); + throw new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }); } mkdirSync(path, { recursive: true }); @@ -20,7 +20,7 @@ export const createDirectory = (path: string): void => { export const deleteDirectory = (path: string): void => { if (!__NODEJS__) { - throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }); + throw new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }); } if (existsSync(path)) { @@ -30,7 +30,7 @@ export const deleteDirectory = (path: string): void => { export const createFile = (path: string, content: string): void => { if (!__NODEJS__) { - throw new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }); + throw new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }); } const directory = path.substring(0, path.lastIndexOf('/')); diff --git a/packages/renderers-core/test/fs.test.ts b/packages/renderers-core/test/fs.test.ts index 736132310..327bb6a55 100644 --- a/packages/renderers-core/test/fs.test.ts +++ b/packages/renderers-core/test/fs.test.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, CodamaError } from '@codama/errors'; import { expect, test } from 'vitest'; import { createDirectory, createFile, deleteDirectory, readJson } from '../src'; @@ -11,22 +11,22 @@ if (__NODEJS__) { } else { test('it fails to call readJson', () => { expect(() => readJson('./path')).toThrow( - new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }), + new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'readFileSync' }), ); }); test('it fails to call createDirectory', () => { expect(() => createDirectory('./path')).toThrow( - new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }), + new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'mkdirSync' }), ); }); test('it fails to call deleteDirectory', () => { expect(() => deleteDirectory('./path')).toThrow( - new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }), + new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'rmSync' }), ); }); test('it fails to call createFile', () => { expect(() => createFile('./path', 'content')).toThrow( - new KinobiError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }), + new CodamaError(CODAMA_ERROR__NODE_FILESYSTEM_FUNCTION_UNAVAILABLE, { fsFunction: 'writeFileSync' }), ); }); } diff --git a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts index 567a6cb6c..b67770359 100644 --- a/packages/renderers-js-umi/src/getTypeManifestVisitor.ts +++ b/packages/renderers-js-umi/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, CodamaError } from '@codama/errors'; import { ArrayTypeNode, camelCase, @@ -603,7 +603,7 @@ export function getTypeManifestVisitor(input: { }, visitRemainderOptionType(node) { - throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new CodamaError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, visitSetType(setType, { self }) { @@ -833,7 +833,7 @@ export function getTypeManifestVisitor(input: { }, visitZeroableOptionType(node) { - throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new CodamaError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, }), ); diff --git a/packages/renderers-js-umi/src/utils/linkOverrides.ts b/packages/renderers-js-umi/src/utils/linkOverrides.ts index f684191a3..dcac46a9a 100644 --- a/packages/renderers-js-umi/src/utils/linkOverrides.ts +++ b/packages/renderers-js-umi/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, CodamaError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -65,7 +65,7 @@ export function getImportFromFactory( case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + throw new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/renderers-js/src/utils/linkOverrides.ts b/packages/renderers-js/src/utils/linkOverrides.ts index e4f21c390..e5a96170c 100644 --- a/packages/renderers-js/src/utils/linkOverrides.ts +++ b/packages/renderers-js/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, CodamaError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -65,7 +65,7 @@ export function getImportFromFactory( case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + throw new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/renderers-rust/src/getTypeManifestVisitor.ts b/packages/renderers-rust/src/getTypeManifestVisitor.ts index 2ed0aeb49..1a1adba1f 100644 --- a/packages/renderers-rust/src/getTypeManifestVisitor.ts +++ b/packages/renderers-rust/src/getTypeManifestVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, CodamaError } from '@codama/errors'; import { arrayTypeNode, CountNode, @@ -324,7 +324,7 @@ export function getTypeManifestVisitor(options: { }, visitRemainderOptionType(node) { - throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new CodamaError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, visitSetType(setType, { self }) { @@ -481,7 +481,7 @@ export function getTypeManifestVisitor(options: { }, visitZeroableOptionType(node) { - throw new KinobiError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); + throw new CodamaError(CODAMA_ERROR__RENDERERS__UNSUPPORTED_NODE, { kind: node.kind, node }); }, }), ); diff --git a/packages/renderers-rust/src/utils/linkOverrides.ts b/packages/renderers-rust/src/utils/linkOverrides.ts index 0666bbeaf..a7a43a3ec 100644 --- a/packages/renderers-rust/src/utils/linkOverrides.ts +++ b/packages/renderers-rust/src/utils/linkOverrides.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNEXPECTED_NODE_KIND, CodamaError } from '@codama/errors'; import { AccountLinkNode, DefinedTypeLinkNode, @@ -53,7 +53,7 @@ export function getImportFromFactory(overrides: LinkOverrides): GetImportFromFun case 'resolverValueNode': return linkOverrides.resolvers[node.name] ?? 'hooked'; default: - throw new KinobiError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { + throw new CodamaError(CODAMA_ERROR__UNEXPECTED_NODE_KIND, { expectedKinds: [ 'AccountLinkNode', 'DefinedTypeLinkNode', diff --git a/packages/validators/src/throwValidatorItemsVisitor.ts b/packages/validators/src/throwValidatorItemsVisitor.ts index 4a1f9f5b4..8019c14d0 100644 --- a/packages/validators/src/throwValidatorItemsVisitor.ts +++ b/packages/validators/src/throwValidatorItemsVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, CodamaError } from '@codama/errors'; import { NodeKind } from '@codama/nodes'; import { mapVisitor, Visitor } from '@codama/visitors-core'; @@ -26,7 +26,7 @@ export function throwValidatorItemsVisitor `${level}s: ${levelHistogram[level as LogLevel]}`) .join(', '); - throw new KinobiError(CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, { + throw new CodamaError(CODAMA_ERROR__VISITORS__FAILED_TO_VALIDATE_NODE, { formattedHistogram, validationItems, }); diff --git a/packages/visitors-core/src/LinkableDictionary.ts b/packages/visitors-core/src/LinkableDictionary.ts index fd47010fe..2de116bb1 100644 --- a/packages/visitors-core/src/LinkableDictionary.ts +++ b/packages/visitors-core/src/LinkableDictionary.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, CodamaError } from '@codama/errors'; import { AccountLinkNode, AccountNode, @@ -90,7 +90,7 @@ export class LinkableDictionary { const node = this.get(linkNode as ProgramLinkNode) as LinkableNode | undefined; if (!node) { - throw new KinobiError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { + throw new CodamaError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { kind: linkNode.kind, linkNode, name: linkNode.name, diff --git a/packages/visitors-core/src/extendVisitor.ts b/packages/visitors-core/src/extendVisitor.ts index c05334686..4bd39fadf 100644 --- a/packages/visitors-core/src/extendVisitor.ts +++ b/packages/visitors-core/src/extendVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, CodamaError } from '@codama/errors'; import { GetNodeFromKind, Node, NodeKind, REGISTERED_NODE_KINDS } from '@codama/nodes'; import { getVisitFunctionName, GetVisitorFunctionName, Visitor } from './visitor'; @@ -33,7 +33,7 @@ export function extendVisitor( const castedKey = key as GetVisitorFunctionName; if (!visitor[castedKey]) { - throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { + throw new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { visitFunction: castedKey, }); } diff --git a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts index 010b18406..df2e259ac 100644 --- a/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts +++ b/packages/visitors-core/src/getResolvedInstructionInputsVisitor.ts @@ -3,7 +3,7 @@ import { CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, - KinobiError, + CodamaError, } from '@codama/errors'; import { AccountValueNode, @@ -58,7 +58,7 @@ export function getResolvedInstructionInputsVisitor( const isCircular = stack.some(({ kind, name }) => kind === input.kind && name === input.name); if (isCircular) { const cycle = [...stack, input]; - throw new KinobiError( + throw new CodamaError( CODAMA_ERROR__VISITORS__CYCLIC_DEPENDENCY_DETECTED_WHEN_RESOLVING_INSTRUCTION_DEFAULT_VALUES, { cycle, @@ -129,7 +129,7 @@ export function getResolvedInstructionInputsVisitor( if (!isNode(seed.value, 'accountValueNode')) return; const dependency = visitedAccounts.get(seed.value.name)!; if (dependency.resolvedIsOptional) { - throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, { + throw new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE, { instruction: instruction, instructionAccount: account, instructionAccountName: account.name, @@ -174,7 +174,7 @@ export function getResolvedInstructionInputsVisitor( if (isNode(dependency, 'accountValueNode')) { const dependencyAccount = instruction.accounts.find(a => a.name === dependency.name); if (!dependencyAccount) { - throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { + throw new CodamaError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { dependency, dependencyKind: dependency.kind, dependencyName: dependency.name, @@ -191,7 +191,7 @@ export function getResolvedInstructionInputsVisitor( a => a.name === dependency.name, ); if (!dependencyArgument) { - throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { + throw new CodamaError(CODAMA_ERROR__VISITORS__INVALID_INSTRUCTION_DEFAULT_VALUE_DEPENDENCY, { dependency, dependencyKind: dependency.kind, dependencyName: dependency.name, diff --git a/packages/visitors-core/src/visitor.ts b/packages/visitors-core/src/visitor.ts index 44825c42d..cb89f7e7e 100644 --- a/packages/visitors-core/src/visitor.ts +++ b/packages/visitors-core/src/visitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, CodamaError } from '@codama/errors'; import { type GetNodeFromKind, type Node, type NodeKind, pascalCase, REGISTERED_NODE_KINDS } from '@codama/nodes'; export type Visitor = { @@ -25,7 +25,7 @@ export function visitOrElse(nodeKind: TNodeKind) { if (!REGISTERED_NODE_KINDS.includes(nodeKind)) { - throw new KinobiError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: nodeKind }); + throw new CodamaError(CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, { kind: nodeKind }); } return `visit${pascalCase(nodeKind.slice(0, -4))}` as GetVisitorFunctionName; diff --git a/packages/visitors-core/test/extendVisitor.test.ts b/packages/visitors-core/test/extendVisitor.test.ts index 07da4e22e..ca9c75f24 100644 --- a/packages/visitors-core/test/extendVisitor.test.ts +++ b/packages/visitors-core/test/extendVisitor.test.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, CodamaError } from '@codama/errors'; import { numberTypeNode, publicKeyTypeNode, tupleTypeNode } from '@codama/nodes'; import { expect, test } from 'vitest'; @@ -59,7 +59,7 @@ test('it cannot extends nodes that are not supported by the base visitor', () => visitNumberType: () => undefined, }), ).toThrow( - new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { + new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_EXTEND_MISSING_VISIT_FUNCTION, { visitFunction: 'visitNumberType', }), ); diff --git a/packages/visitors-core/test/recordLinkablesVisitor.test.ts b/packages/visitors-core/test/recordLinkablesVisitor.test.ts index 5ec82f4f2..c8bba2f04 100644 --- a/packages/visitors-core/test/recordLinkablesVisitor.test.ts +++ b/packages/visitors-core/test/recordLinkablesVisitor.test.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__LINKED_NODE_NOT_FOUND, CodamaError } from '@codama/errors'; import { accountLinkNode, AccountNode, @@ -326,7 +326,7 @@ test('it can throw an exception when trying to retrieve a missing linked node', // Then we expect an exception to be thrown. expect(getMissingAccount).toThrow( - new KinobiError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { + new CodamaError(CODAMA_ERROR__LINKED_NODE_NOT_FOUND, { kind: 'accountLinkNode', linkNode: accountLinkNode('missingAccount', 'myProgram'), name: 'missingAccount', diff --git a/packages/visitors/src/addPdasVisitor.ts b/packages/visitors/src/addPdasVisitor.ts index 87f1f44e6..ea5af878a 100644 --- a/packages/visitors/src/addPdasVisitor.ts +++ b/packages/visitors/src/addPdasVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, CodamaError } from '@codama/errors'; import { assertIsNode, camelCase, pdaNode, PdaSeedNode, programNode } from '@codama/nodes'; import { bottomUpTransformerVisitor } from '@codama/visitors-core'; @@ -14,7 +14,7 @@ export function addPdasVisitor(pdas: Record pda.name)); const overlappingPdaNames = new Set([...existingPdaNames].filter(name => newPdaNames.has(name))); if (overlappingPdaNames.size > 0) { - throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { + throw new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { duplicatedPdaNames: [...overlappingPdaNames], program: node, programName: node.name, diff --git a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts index c26923416..0f16b5f97 100644 --- a/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts +++ b/packages/visitors/src/createSubInstructionsFromEnumArgsVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, CodamaError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -34,7 +34,7 @@ export function createSubInstructionsFromEnumArgsVisitor(map: Record field.name === argName); const argField = argFieldIndex >= 0 ? argFields[argFieldIndex] : null; if (!argField) { - throw new KinobiError(CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, { + throw new CodamaError(CODAMA_ERROR__VISITORS__INSTRUCTION_ENUM_ARGUMENT_NOT_FOUND, { argumentName: argName, instruction: node, instructionName: node.name, @@ -49,7 +49,7 @@ export function createSubInstructionsFromEnumArgsVisitor(map: Record 0; if (hasConflictingNames) { - throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { + throw new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { conflictingAttributes: uniqueDuplicates, }); } diff --git a/packages/visitors/src/flattenStructVisitor.ts b/packages/visitors/src/flattenStructVisitor.ts index 877c8b685..4fc6e33cc 100644 --- a/packages/visitors/src/flattenStructVisitor.ts +++ b/packages/visitors/src/flattenStructVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, CodamaError } from '@codama/errors'; import { assertIsNode, camelCase, @@ -41,7 +41,7 @@ export const flattenStruct = (node: Node, options: FlattenStructOptions = '*'): const hasConflictingNames = uniqueDuplicates.length > 0; if (hasConflictingNames) { - throw new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { + throw new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_FLATTEN_STRUCT_WITH_CONFLICTING_ATTRIBUTES, { conflictingAttributes: uniqueDuplicates, }); } diff --git a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts index d44f6c435..18d145c41 100644 --- a/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts +++ b/packages/visitors/src/setAccountDiscriminatorFromFieldVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, CodamaError } from '@codama/errors'; import { accountNode, assertIsNode, @@ -24,7 +24,7 @@ export function setAccountDiscriminatorFromFieldVisitor( const accountData = resolveNestedTypeNode(node.data); const fieldIndex = accountData.fields.findIndex(f => f.name === field); if (fieldIndex < 0) { - throw new KinobiError(CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, { + throw new CodamaError(CODAMA_ERROR__VISITORS__ACCOUNT_FIELD_NOT_FOUND, { account: node, missingField: field, name: node.name, diff --git a/packages/visitors/src/setNumberWrappersVisitor.ts b/packages/visitors/src/setNumberWrappersVisitor.ts index 6ace02ade..2beb765c3 100644 --- a/packages/visitors/src/setNumberWrappersVisitor.ts +++ b/packages/visitors/src/setNumberWrappersVisitor.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, CodamaError } from '@codama/errors'; import { amountTypeNode, assertIsNestedTypeNode, dateTimeTypeNode, solAmountTypeNode } from '@codama/nodes'; import { BottomUpNodeTransformerWithSelector, bottomUpTransformerVisitor } from '@codama/visitors-core'; @@ -24,7 +24,7 @@ export function setNumberWrappersVisitor(map: NumberWrapperMap) { case 'Amount': return amountTypeNode(node, wrapper.decimals, wrapper.unit); default: - throw new KinobiError(CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, { wrapper }); + throw new CodamaError(CODAMA_ERROR__VISITORS__INVALID_NUMBER_WRAPPER, { wrapper }); } }, }), diff --git a/packages/visitors/test/addPdasVisitor.test.ts b/packages/visitors/test/addPdasVisitor.test.ts index ad570ce66..56bdd04aa 100644 --- a/packages/visitors/test/addPdasVisitor.test.ts +++ b/packages/visitors/test/addPdasVisitor.test.ts @@ -1,4 +1,4 @@ -import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, KinobiError } from '@codama/errors'; +import { CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, CodamaError } from '@codama/errors'; import { constantPdaSeedNodeFromProgramId, constantPdaSeedNodeFromString, @@ -92,7 +92,7 @@ test('it fails to add a PDA if its name conflicts with an existing PDA on the pr // Then we expect the following error to be thrown. expect(fn).toThrow( - new KinobiError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { + new CodamaError(CODAMA_ERROR__VISITORS__CANNOT_ADD_DUPLICATED_PDA_NAMES, { duplicatedPdaNames: ['myPda'], program: node, programName: 'myProgram', From 9558ac8aadbdda5a5e11fdbc2e722f138708e494 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:51:46 +0100 Subject: [PATCH 08/14] Rename file kinobi.ts to codama.ts --- packages/library/src/{kinobi.ts => codama.ts} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename packages/library/src/{kinobi.ts => codama.ts} (100%) diff --git a/packages/library/src/kinobi.ts b/packages/library/src/codama.ts similarity index 100% rename from packages/library/src/kinobi.ts rename to packages/library/src/codama.ts From af7f36f6b77d9f1a52d3026c7a3bdcd4370a69f0 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 11:52:52 +0100 Subject: [PATCH 09/14] Update pnpm-lock.yaml --- pnpm-lock.yaml | 78 +++++++++++++++++++++++++------------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9570820f..c2a387de2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,7 +14,7 @@ importers: '@changesets/cli': specifier: ^2.27.9 version: 2.27.9 - '@kinobi-so/internals': + '@codama/internals': specifier: workspace:* version: link:packages/internals '@solana/eslint-config-solana': @@ -77,7 +77,7 @@ importers: packages/errors: dependencies: - '@kinobi-so/node-types': + '@codama/node-types': specifier: workspace:* version: link:../node-types chalk: @@ -95,16 +95,16 @@ importers: packages/library: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/validators': + '@codama/validators': specifier: workspace:* version: link:../validators - '@kinobi-so/visitors': + '@codama/visitors': specifier: workspace:* version: link:../visitors @@ -112,22 +112,22 @@ importers: packages/nodes: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/node-types': + '@codama/node-types': specifier: workspace:* version: link:../node-types packages/nodes-from-anchor: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/visitors': + '@codama/visitors': specifier: workspace:* version: link:../visitors '@noble/hashes': @@ -136,43 +136,43 @@ importers: packages/renderers: dependencies: - '@kinobi-so/renderers-js': + '@codama/renderers-js': specifier: workspace:* version: link:../renderers-js - '@kinobi-so/renderers-js-umi': + '@codama/renderers-js-umi': specifier: workspace:* version: link:../renderers-js-umi - '@kinobi-so/renderers-rust': + '@codama/renderers-rust': specifier: workspace:* version: link:../renderers-rust packages/renderers-core: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core packages/renderers-js: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/nodes-from-anchor': + '@codama/nodes-from-anchor': specifier: workspace:* version: link:../nodes-from-anchor - '@kinobi-so/renderers-core': + '@codama/renderers-core': specifier: workspace:* version: link:../renderers-core - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core '@solana/codecs-strings': @@ -191,19 +191,19 @@ importers: packages/renderers-js-umi: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/renderers-core': + '@codama/renderers-core': specifier: workspace:* version: link:../renderers-core - '@kinobi-so/validators': + '@codama/validators': specifier: workspace:* version: link:../validators - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core '@solana/codecs-strings': @@ -222,16 +222,16 @@ importers: packages/renderers-rust: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/renderers-core': + '@codama/renderers-core': specifier: workspace:* version: link:../renderers-core - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core '@solana/codecs-strings': @@ -247,34 +247,34 @@ importers: packages/validators: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core packages/visitors: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes - '@kinobi-so/visitors-core': + '@codama/visitors-core': specifier: workspace:* version: link:../visitors-core packages/visitors-core: dependencies: - '@kinobi-so/errors': + '@codama/errors': specifier: workspace:* version: link:../errors - '@kinobi-so/nodes': + '@codama/nodes': specifier: workspace:* version: link:../nodes json-stable-stringify: From 4d854b41d4d7ab571e195e0395fd4b83473f32c3 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 12:57:08 +0100 Subject: [PATCH 10/14] Update generated code --- .../e2e/memo/src/generated/errors/index.ts | 6 ++-- .../e2e/memo/src/generated/errors/memo.ts | 6 ++-- .../e2e/memo/src/generated/index.ts | 6 ++-- .../src/generated/instructions/addMemo.ts | 6 ++-- .../memo/src/generated/instructions/index.ts | 6 ++-- .../e2e/memo/src/generated/programs/index.ts | 6 ++-- .../e2e/memo/src/generated/programs/memo.ts | 6 ++-- .../e2e/memo/src/generated/shared/index.ts | 6 ++-- .../system/src/generated/accounts/index.ts | 6 ++-- .../system/src/generated/accounts/nonce.ts | 6 ++-- .../e2e/system/src/generated/errors/index.ts | 6 ++-- .../e2e/system/src/generated/errors/system.ts | 6 ++-- .../e2e/system/src/generated/index.ts | 6 ++-- .../instructions/advanceNonceAccount.ts | 6 ++-- .../src/generated/instructions/allocate.ts | 6 ++-- .../instructions/allocateWithSeed.ts | 6 ++-- .../src/generated/instructions/assign.ts | 6 ++-- .../generated/instructions/assignWithSeed.ts | 6 ++-- .../instructions/authorizeNonceAccount.ts | 6 ++-- .../generated/instructions/createAccount.ts | 6 ++-- .../instructions/createAccountWithSeed.ts | 6 ++-- .../src/generated/instructions/index.ts | 6 ++-- .../instructions/initializeNonceAccount.ts | 6 ++-- .../src/generated/instructions/transferSol.ts | 6 ++-- .../instructions/transferSolWithSeed.ts | 6 ++-- .../instructions/upgradeNonceAccount.ts | 6 ++-- .../instructions/withdrawNonceAccount.ts | 6 ++-- .../system/src/generated/programs/index.ts | 6 ++-- .../system/src/generated/programs/system.ts | 6 ++-- .../e2e/system/src/generated/shared/index.ts | 6 ++-- .../e2e/system/src/generated/types/index.ts | 6 ++-- .../system/src/generated/types/nonceState.ts | 6 ++-- .../src/generated/types/nonceVersion.ts | 6 ++-- .../anchor/src/generated/accounts/guardV1.ts | 6 ++-- .../anchor/src/generated/accounts/index.ts | 6 ++-- .../e2e/anchor/src/generated/errors/index.ts | 6 ++-- .../src/generated/errors/wenTransferGuard.ts | 6 ++-- .../e2e/anchor/src/generated/index.ts | 6 ++-- .../src/generated/instructions/createGuard.ts | 6 ++-- .../src/generated/instructions/execute.ts | 6 ++-- .../src/generated/instructions/index.ts | 6 ++-- .../src/generated/instructions/initialize.ts | 6 ++-- .../src/generated/instructions/updateGuard.ts | 6 ++-- .../anchor/src/generated/programs/index.ts | 6 ++-- .../generated/programs/wenTransferGuard.ts | 6 ++-- .../e2e/anchor/src/generated/shared/index.ts | 6 ++-- .../e2e/anchor/src/generated/types/cpiRule.ts | 6 ++-- .../e2e/anchor/src/generated/types/index.ts | 6 ++-- .../metadataAdditionalFieldRestriction.ts | 6 ++-- .../types/metadataAdditionalFieldRule.ts | 6 ++-- .../src/generated/types/transferAmountRule.ts | 6 ++-- .../e2e/memo/src/generated/index.ts | 6 ++-- .../src/generated/instructions/addMemo.ts | 6 ++-- .../memo/src/generated/instructions/index.ts | 6 ++-- .../e2e/memo/src/generated/programs/index.ts | 6 ++-- .../e2e/memo/src/generated/programs/memo.ts | 6 ++-- .../e2e/memo/src/generated/shared/index.ts | 6 ++-- .../system/src/generated/accounts/index.ts | 6 ++-- .../system/src/generated/accounts/nonce.ts | 6 ++-- .../e2e/system/src/generated/errors/index.ts | 6 ++-- .../e2e/system/src/generated/errors/system.ts | 6 ++-- .../e2e/system/src/generated/index.ts | 6 ++-- .../instructions/advanceNonceAccount.ts | 6 ++-- .../src/generated/instructions/allocate.ts | 6 ++-- .../instructions/allocateWithSeed.ts | 6 ++-- .../src/generated/instructions/assign.ts | 6 ++-- .../generated/instructions/assignWithSeed.ts | 6 ++-- .../instructions/authorizeNonceAccount.ts | 6 ++-- .../generated/instructions/createAccount.ts | 6 ++-- .../instructions/createAccountWithSeed.ts | 6 ++-- .../src/generated/instructions/index.ts | 6 ++-- .../instructions/initializeNonceAccount.ts | 6 ++-- .../src/generated/instructions/transferSol.ts | 6 ++-- .../instructions/transferSolWithSeed.ts | 6 ++-- .../instructions/upgradeNonceAccount.ts | 6 ++-- .../instructions/withdrawNonceAccount.ts | 6 ++-- .../system/src/generated/programs/index.ts | 6 ++-- .../system/src/generated/programs/system.ts | 6 ++-- .../e2e/system/src/generated/shared/index.ts | 6 ++-- .../e2e/system/src/generated/types/index.ts | 6 ++-- .../system/src/generated/types/nonceState.ts | 6 ++-- .../src/generated/types/nonceVersion.ts | 6 ++-- .../e2e/token/src/generated/accounts/index.ts | 6 ++-- .../e2e/token/src/generated/accounts/mint.ts | 6 ++-- .../token/src/generated/accounts/multisig.ts | 6 ++-- .../e2e/token/src/generated/accounts/token.ts | 6 ++-- .../src/generated/errors/associatedToken.ts | 6 ++-- .../e2e/token/src/generated/errors/index.ts | 6 ++-- .../e2e/token/src/generated/errors/token.ts | 6 ++-- .../e2e/token/src/generated/index.ts | 6 ++-- .../instructions/amountToUiAmount.ts | 6 ++-- .../src/generated/instructions/approve.ts | 6 ++-- .../generated/instructions/approveChecked.ts | 6 ++-- .../token/src/generated/instructions/burn.ts | 6 ++-- .../src/generated/instructions/burnChecked.ts | 6 ++-- .../generated/instructions/closeAccount.ts | 6 ++-- .../generated/instructions/createAccount.ts | 6 ++-- .../instructions/createAssociatedToken.ts | 6 ++-- .../createAssociatedTokenIdempotent.ts | 6 ++-- .../generated/instructions/freezeAccount.ts | 6 ++-- .../instructions/getAccountDataSize.ts | 6 ++-- .../token/src/generated/instructions/index.ts | 6 ++-- .../instructions/initializeAccount.ts | 6 ++-- .../instructions/initializeAccount2.ts | 6 ++-- .../instructions/initializeAccount3.ts | 6 ++-- .../instructions/initializeImmutableOwner.ts | 6 ++-- .../generated/instructions/initializeMint.ts | 6 ++-- .../generated/instructions/initializeMint2.ts | 6 ++-- .../instructions/initializeMultisig.ts | 6 ++-- .../instructions/initializeMultisig2.ts | 6 ++-- .../src/generated/instructions/mintTo.ts | 6 ++-- .../generated/instructions/mintToChecked.ts | 6 ++-- .../recoverNestedAssociatedToken.ts | 6 ++-- .../src/generated/instructions/revoke.ts | 6 ++-- .../generated/instructions/setAuthority.ts | 6 ++-- .../src/generated/instructions/syncNative.ts | 6 ++-- .../src/generated/instructions/thawAccount.ts | 6 ++-- .../src/generated/instructions/transfer.ts | 6 ++-- .../generated/instructions/transferChecked.ts | 6 ++-- .../instructions/uiAmountToAmount.ts | 6 ++-- .../src/generated/pdas/associatedToken.ts | 6 ++-- .../e2e/token/src/generated/pdas/index.ts | 6 ++-- .../src/generated/programs/associatedToken.ts | 6 ++-- .../e2e/token/src/generated/programs/index.ts | 6 ++-- .../token/src/generated/programs/system.ts | 6 ++-- .../e2e/token/src/generated/programs/token.ts | 6 ++-- .../e2e/token/src/generated/shared/index.ts | 6 ++-- .../token/src/generated/types/accountState.ts | 6 ++-- .../src/generated/types/authorityType.ts | 6 ++-- .../e2e/token/src/generated/types/index.ts | 6 ++-- packages/renderers-rust/e2e/memo/Cargo.lock | 36 +++++++++---------- .../e2e/memo/src/generated/errors/mod.rs | 6 ++-- .../src/generated/instructions/add_memo.rs | 6 ++-- .../memo/src/generated/instructions/mod.rs | 6 ++-- .../e2e/memo/src/generated/mod.rs | 6 ++-- .../e2e/memo/src/generated/programs.rs | 6 ++-- packages/renderers-rust/e2e/system/Cargo.lock | 34 +++++++++--------- .../e2e/system/src/generated/accounts/mod.rs | 6 ++-- .../system/src/generated/accounts/nonce.rs | 6 ++-- .../e2e/system/src/generated/errors/mod.rs | 6 ++-- .../e2e/system/src/generated/errors/system.rs | 6 ++-- .../instructions/advance_nonce_account.rs | 6 ++-- .../src/generated/instructions/allocate.rs | 6 ++-- .../instructions/allocate_with_seed.rs | 6 ++-- .../src/generated/instructions/assign.rs | 6 ++-- .../instructions/assign_with_seed.rs | 6 ++-- .../instructions/authorize_nonce_account.rs | 6 ++-- .../generated/instructions/create_account.rs | 6 ++-- .../instructions/create_account_with_seed.rs | 6 ++-- .../instructions/initialize_nonce_account.rs | 6 ++-- .../system/src/generated/instructions/mod.rs | 6 ++-- .../generated/instructions/transfer_sol.rs | 6 ++-- .../instructions/transfer_sol_with_seed.rs | 6 ++-- .../instructions/upgrade_nonce_account.rs | 6 ++-- .../instructions/withdraw_nonce_account.rs | 6 ++-- .../e2e/system/src/generated/mod.rs | 6 ++-- .../e2e/system/src/generated/programs.rs | 6 ++-- .../e2e/system/src/generated/types/mod.rs | 6 ++-- .../system/src/generated/types/nonce_state.rs | 6 ++-- .../src/generated/types/nonce_version.rs | 6 ++-- 160 files changed, 509 insertions(+), 509 deletions(-) diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts index 407090495..c601d12d7 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './memo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts index ed51b3ea9..9bdf9163f 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { Program, ProgramError } from '@metaplex-foundation/umi'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/index.ts index 098528bd9..30ede0db5 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './errors'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts index 27145baa9..e3dca0e2a 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts index aa3b7440a..0a400a398 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './addMemo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts index 407090495..c601d12d7 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './memo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts index 1d50b5114..e0a2e19b8 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts index 0102e5646..d35538208 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts index d0d34d79d..6c79f4a3d 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './nonce'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts b/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts index 4ae167695..26fe10ff6 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts index 95a103224..5fed46fb1 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './system'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts b/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts index f54d75994..934756bf2 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { Program, ProgramError } from '@metaplex-foundation/umi'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/index.ts index 4679ed0f1..79220114a 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './accounts'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts index a575f9c98..4626ee35e 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts index 8f3e16c2a..3f84885a6 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts index ba15c3bd4..ed15d1822 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts index 205281987..aacaa4523 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts index aa597bfb2..3145dfe8d 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts index c06bc21f6..437c84bb9 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts index ad4e0ed26..3b79eb9a7 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts index a685df190..7b9e9ff44 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts index 510446f2c..e79f6d2e9 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './advanceNonceAccount'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts index 9ff1a1578..8671d0626 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts index 9182d1640..cbbe95cb5 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts index dcc943831..d8e3b87e6 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts index 4677fe8d6..878f41a2c 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts index 816c28d49..019e085ce 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts index 95a103224..5fed46fb1 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './system'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts b/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts index d5acd9470..984c0882b 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts index 0102e5646..d35538208 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts index 3920613a9..04370a35f 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './nonceState'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts index 94136c264..7f0231db9 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts index 83de53dd7..faa1d6afb 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts b/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts index 9a5b1904c..c34c65499 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts b/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts index de1ebe8db..e55205b66 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './guardV1'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts b/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts index 5a97dac09..92ed60cfe 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './wenTransferGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts index acfa8817f..10b31c2ba 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/index.ts b/packages/renderers-js/e2e/anchor/src/generated/index.ts index 4b1e4f3c6..0980d31b3 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts index d6b4137ed..a8ac9a715 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts index 6e5bf7f1a..b402299b2 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts index c454adcee..d9871ad07 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './createGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts index 6b08a5916..c71bd1202 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts index c6b765a10..4d1ae9203 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts b/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts index 5a97dac09..92ed60cfe 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './wenTransferGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts index 1bd1d5d15..bca112240 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts b/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts index 278bf59fe..344d2c744 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts index eb3cc9c23..c3abda5e8 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/index.ts b/packages/renderers-js/e2e/anchor/src/generated/types/index.ts index aa4f5f52b..c7eac357a 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './cpiRule'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts index 34ac26085..a975fe697 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts index 83758eca0..e2bfe8033 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts index a922d8122..55495a960 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/memo/src/generated/index.ts b/packages/renderers-js/e2e/memo/src/generated/index.ts index d5f88383e..3a88d072a 100644 --- a/packages/renderers-js/e2e/memo/src/generated/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './instructions'; diff --git a/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts b/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts index bed2066dc..987fd8328 100644 --- a/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts +++ b/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts b/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts index aa3b7440a..0a400a398 100644 --- a/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './addMemo'; diff --git a/packages/renderers-js/e2e/memo/src/generated/programs/index.ts b/packages/renderers-js/e2e/memo/src/generated/programs/index.ts index 407090495..c601d12d7 100644 --- a/packages/renderers-js/e2e/memo/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './memo'; diff --git a/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts b/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts index 34d61a818..488f3457a 100644 --- a/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts +++ b/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { type Address } from '@solana/web3.js'; diff --git a/packages/renderers-js/e2e/memo/src/generated/shared/index.ts b/packages/renderers-js/e2e/memo/src/generated/shared/index.ts index 278bf59fe..344d2c744 100644 --- a/packages/renderers-js/e2e/memo/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/accounts/index.ts b/packages/renderers-js/e2e/system/src/generated/accounts/index.ts index d0d34d79d..6c79f4a3d 100644 --- a/packages/renderers-js/e2e/system/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/accounts/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './nonce'; diff --git a/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts b/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts index fe5926f7b..48842af54 100644 --- a/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts +++ b/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/errors/index.ts b/packages/renderers-js/e2e/system/src/generated/errors/index.ts index 95a103224..5fed46fb1 100644 --- a/packages/renderers-js/e2e/system/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './system'; diff --git a/packages/renderers-js/e2e/system/src/generated/errors/system.ts b/packages/renderers-js/e2e/system/src/generated/errors/system.ts index cec612c2c..5ae6417d9 100644 --- a/packages/renderers-js/e2e/system/src/generated/errors/system.ts +++ b/packages/renderers-js/e2e/system/src/generated/errors/system.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/index.ts b/packages/renderers-js/e2e/system/src/generated/index.ts index 4b1e4f3c6..0980d31b3 100644 --- a/packages/renderers-js/e2e/system/src/generated/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts index 83add46a8..38d6d4ceb 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts b/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts index d3cab585c..d4052f93f 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts index 7b447d5e0..30d59c5d6 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts b/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts index 5146c08b8..a59f9582e 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts index b5c015e73..dcb4c4889 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts index 809d9d4b5..9f614078e 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts index eb80d2e9c..4bfe31f98 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts index f4e754da2..053087a84 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/index.ts b/packages/renderers-js/e2e/system/src/generated/instructions/index.ts index 510446f2c..e79f6d2e9 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './advanceNonceAccount'; diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts index ff2e0b32c..7dc0e7cf6 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts b/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts index a27afad85..1291dbcbc 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts index a6117cea4..4458ba651 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts index 512dff535..43676e195 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts index 7b22dcf21..2638df11a 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/programs/index.ts b/packages/renderers-js/e2e/system/src/generated/programs/index.ts index 95a103224..5fed46fb1 100644 --- a/packages/renderers-js/e2e/system/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './system'; diff --git a/packages/renderers-js/e2e/system/src/generated/programs/system.ts b/packages/renderers-js/e2e/system/src/generated/programs/system.ts index c4f9415c9..b1e95cf3e 100644 --- a/packages/renderers-js/e2e/system/src/generated/programs/system.ts +++ b/packages/renderers-js/e2e/system/src/generated/programs/system.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/shared/index.ts b/packages/renderers-js/e2e/system/src/generated/shared/index.ts index 278bf59fe..344d2c744 100644 --- a/packages/renderers-js/e2e/system/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/types/index.ts b/packages/renderers-js/e2e/system/src/generated/types/index.ts index 3920613a9..04370a35f 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './nonceState'; diff --git a/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts b/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts index 3935ff5a4..810ee2ce9 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts b/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts index 635c2aaf3..fb0959801 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/index.ts b/packages/renderers-js/e2e/token/src/generated/accounts/index.ts index 4fc1a1050..4824e859c 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './mint'; diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts b/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts index bfe915052..a428bd990 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts b/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts index 733c90516..6c4421f9a 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/token.ts b/packages/renderers-js/e2e/token/src/generated/accounts/token.ts index 2e16ca9b5..b105a7a93 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/token.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts index 9c00376ab..d643df278 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/errors/index.ts b/packages/renderers-js/e2e/token/src/generated/errors/index.ts index a646b6274..9fa2da2d8 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/errors/token.ts b/packages/renderers-js/e2e/token/src/generated/errors/token.ts index e921c928e..6de896671 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/token.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/index.ts b/packages/renderers-js/e2e/token/src/generated/index.ts index a640c1f08..8cecacabc 100644 --- a/packages/renderers-js/e2e/token/src/generated/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts index 0502531c2..5a02fbc30 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts b/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts index b2a7b775d..a18e9ca06 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts index 10e761d69..c35586788 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts b/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts index 85f8af9df..d76310b99 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts index 19a54f2a7..e1bc7b09d 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts index b924c78db..c4f8b21ce 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts index eb80d2e9c..4bfe31f98 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts index 2a5441da6..4ab091df5 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts index 34e057652..f7d2bc9b3 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts index 129f94c42..798008a12 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts b/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts index 0f5d46d24..0a0651891 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/index.ts b/packages/renderers-js/e2e/token/src/generated/instructions/index.ts index 8203c228d..51ee26199 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './amountToUiAmount'; diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts index d64801a4d..9ff602153 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts index dc9012b3c..941d7db0a 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts index c57eb0443..a39a62ce5 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts index 32a0c605d..c487de6a9 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts index 181ede375..05f045000 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts index b65ca9883..d89b101c9 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts index cd8195b86..6db179df7 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts index 428707e10..02f118c35 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts b/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts index 210a89ae4..81d34b807 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts index b91bd462e..49a961d17 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts b/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts index eb3d5bbc8..c7feee3ad 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts b/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts index 46893b94f..1a852ef7b 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts b/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts index fa13e06d9..baa863172 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts b/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts index 1f763f9c0..6a1d8d9c8 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts index 99681f39b..9edcf2409 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts b/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts index a5bea4c1c..c8b464675 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts index 473b4dba9..037bcdb91 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts index c91bcd106..e1aaef112 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts index c77e26790..4b62a6b10 100644 --- a/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/pdas/index.ts b/packages/renderers-js/e2e/token/src/generated/pdas/index.ts index 0208f7ac0..a2d7e2c17 100644 --- a/packages/renderers-js/e2e/token/src/generated/pdas/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/pdas/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts index c3d384763..48b0409c2 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/programs/index.ts b/packages/renderers-js/e2e/token/src/generated/programs/index.ts index cb1fd72c6..3309f75ae 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/programs/system.ts b/packages/renderers-js/e2e/token/src/generated/programs/system.ts index 11d7dc022..4db7255e9 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/system.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/system.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/programs/token.ts b/packages/renderers-js/e2e/token/src/generated/programs/token.ts index 12702511a..2458c2820 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/token.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/shared/index.ts b/packages/renderers-js/e2e/token/src/generated/shared/index.ts index 278bf59fe..344d2c744 100644 --- a/packages/renderers-js/e2e/token/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/shared/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/accountState.ts b/packages/renderers-js/e2e/token/src/generated/types/accountState.ts index 51f8401eb..a2ca37d63 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/accountState.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/accountState.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts b/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts index 5baedc91c..a61a6db85 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/index.ts b/packages/renderers-js/e2e/token/src/generated/types/index.ts index 56a93446e..e3148dd87 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/index.ts @@ -1,9 +1,9 @@ /** - * This code was AUTOGENERATED using the kinobi library. + * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors - * to add features, then rerun kinobi to update it. + * to add features, then rerun codama to update it. * - * @see https://github.com/kinobi-so/kinobi + * @see https://github.com/codama/codama */ export * from './accountState'; diff --git a/packages/renderers-rust/e2e/memo/Cargo.lock b/packages/renderers-rust/e2e/memo/Cargo.lock index b4351b94e..f08a34259 100644 --- a/packages/renderers-rust/e2e/memo/Cargo.lock +++ b/packages/renderers-rust/e2e/memo/Cargo.lock @@ -1024,6 +1024,24 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "codama-renderers-rust-e2e-memo" +version = "0.0.0" +dependencies = [ + "anchor-lang", + "assert_matches", + "borsh 0.10.3", + "kaigan", + "num-derive 0.3.3", + "num-traits", + "serde", + "serde_with 3.8.0", + "solana-program", + "solana-program-test", + "solana-sdk", + "thiserror", +] + [[package]] name = "combine" version = "3.8.1" @@ -2166,24 +2184,6 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "codama-renderers-rust-e2e-memo" -version = "0.0.0" -dependencies = [ - "anchor-lang", - "assert_matches", - "borsh 0.10.3", - "kaigan", - "num-derive 0.3.3", - "num-traits", - "serde", - "serde_with 3.8.0", - "solana-program", - "solana-program-test", - "solana-sdk", - "thiserror", -] - [[package]] name = "lazy_static" version = "1.4.0" diff --git a/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs index f5f0ca118..3f263b24b 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs @@ -1,6 +1,6 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! diff --git a/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs b/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs index 03b1df94c..6870bcd75 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs index 6c14f66d0..f1c827684 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#add_memo; diff --git a/packages/renderers-rust/e2e/memo/src/generated/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/mod.rs index 50d52c492..445cdeee5 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub mod errors; diff --git a/packages/renderers-rust/e2e/memo/src/generated/programs.rs b/packages/renderers-rust/e2e/memo/src/generated/programs.rs index da5892048..d3a3d3b60 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/programs.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/programs.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use solana_program::{pubkey, pubkey::Pubkey}; diff --git a/packages/renderers-rust/e2e/system/Cargo.lock b/packages/renderers-rust/e2e/system/Cargo.lock index 61dc019b8..e1c8ff342 100644 --- a/packages/renderers-rust/e2e/system/Cargo.lock +++ b/packages/renderers-rust/e2e/system/Cargo.lock @@ -1024,6 +1024,23 @@ dependencies = [ "os_str_bytes", ] +[[package]] +name = "codama-renderers-rust-e2e-system" +version = "0.0.0" +dependencies = [ + "anchor-lang", + "assert_matches", + "borsh 0.10.3", + "num-derive 0.3.3", + "num-traits", + "serde", + "serde_with 3.8.0", + "solana-program", + "solana-program-test", + "solana-sdk", + "thiserror", +] + [[package]] name = "combine" version = "3.8.1" @@ -2157,23 +2174,6 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "codama-renderers-rust-e2e-system" -version = "0.0.0" -dependencies = [ - "anchor-lang", - "assert_matches", - "borsh 0.10.3", - "num-derive 0.3.3", - "num-traits", - "serde", - "serde_with 3.8.0", - "solana-program", - "solana-program-test", - "solana-sdk", - "thiserror", -] - [[package]] name = "lazy_static" version = "1.4.0" diff --git a/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs b/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs index b5b9ae31e..3b1a8fe88 100644 --- a/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#nonce; diff --git a/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs b/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs index cd950f38e..ef81eb386 100644 --- a/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs +++ b/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NonceState; diff --git a/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs b/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs index 2c649c344..647eda373 100644 --- a/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod system; diff --git a/packages/renderers-rust/e2e/system/src/generated/errors/system.rs b/packages/renderers-rust/e2e/system/src/generated/errors/system.rs index 8a5b16ef9..a4e4aca87 100644 --- a/packages/renderers-rust/e2e/system/src/generated/errors/system.rs +++ b/packages/renderers-rust/e2e/system/src/generated/errors/system.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use num_derive::FromPrimitive; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs index 77fb79695..2211666e5 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs index a5cea968f..9c4a50487 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs index 2a7d248b1..a0dad0e2e 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs index 0c3af0fa5..d6faf7988 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs index 554aad262..4cf40b5df 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs index a016c18c9..ba8e243ec 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs index 5824f9547..29474e026 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs index 7ab907bb2..e97a5ac00 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs index f2d5e9783..afe15d802 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs index 92b447be1..bcbe6c583 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#advance_nonce_account; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs index 7ec13405b..401ea9eb0 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs index 97e8a8e66..854a9adc2 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs index bffa18438..9349b3c81 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs index 2319a6598..0eb050ac7 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/mod.rs b/packages/renderers-rust/e2e/system/src/generated/mod.rs index a3793d7c3..e2d7d0ee2 100644 --- a/packages/renderers-rust/e2e/system/src/generated/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub mod accounts; diff --git a/packages/renderers-rust/e2e/system/src/generated/programs.rs b/packages/renderers-rust/e2e/system/src/generated/programs.rs index 05d0066cd..3d1bba68b 100644 --- a/packages/renderers-rust/e2e/system/src/generated/programs.rs +++ b/packages/renderers-rust/e2e/system/src/generated/programs.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use solana_program::{pubkey, pubkey::Pubkey}; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/mod.rs b/packages/renderers-rust/e2e/system/src/generated/types/mod.rs index af42686a6..3209d74d0 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/mod.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#nonce_state; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs b/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs index f19c8fa95..81b371a61 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs b/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs index 58c773853..8daa31111 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs @@ -1,8 +1,8 @@ -//! This code was AUTOGENERATED using the kinobi library. +//! This code was AUTOGENERATED using the codama library. //! Please DO NOT EDIT THIS FILE, instead use visitors -//! to add features, then rerun kinobi to update it. +//! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; From 19754f9cabd301f049ed35a8bbd05a79e5d0d795 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 13:00:53 +0100 Subject: [PATCH 11/14] Update changelogs --- packages/errors/CHANGELOG.md | 54 +++---- packages/library/CHANGELOG.md | 132 ++++++++-------- packages/node-types/CHANGELOG.md | 14 +- packages/nodes-from-anchor/CHANGELOG.md | 114 +++++++------- packages/nodes/CHANGELOG.md | 90 +++++------ packages/renderers-core/CHANGELOG.md | 114 +++++++------- packages/renderers-js-umi/CHANGELOG.md | 184 +++++++++++----------- packages/renderers-js/CHANGELOG.md | 198 ++++++++++++------------ packages/renderers-rust/CHANGELOG.md | 172 ++++++++++---------- packages/renderers/CHANGELOG.md | 178 ++++++++++----------- packages/validators/CHANGELOG.md | 108 ++++++------- packages/visitors-core/CHANGELOG.md | 94 +++++------ packages/visitors/CHANGELOG.md | 112 +++++++------- 13 files changed, 782 insertions(+), 782 deletions(-) diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index ae982e5b0..5a0592bf7 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/CHANGELOG.md @@ -1,116 +1,116 @@ -# @kinobi-so/errors +# @codama/errors ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` ### Patch Changes -- [#180](https://github.com/kinobi-so/kinobi/pull/180) [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/node-types@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/node-types@0.22.0 ## 0.21.5 ### Patch Changes -- [#204](https://github.com/kinobi-so/kinobi/pull/204) [`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8) Thanks [@aspnxdd](https://github.com/aspnxdd)! - Fix `KINOBI_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE` instructionName string to actually print the instructionName. +- [#204](https://github.com/codama/codama/pull/204) [`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8) Thanks [@aspnxdd](https://github.com/aspnxdd)! - Fix `codama_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE` instructionName string to actually print the instructionName. - Updated dependencies []: - - @kinobi-so/node-types@0.21.5 + - @codama/node-types@0.21.5 ## 0.21.4 ### Patch Changes - Updated dependencies []: - - @kinobi-so/node-types@0.21.4 + - @codama/node-types@0.21.4 ## 0.21.3 ### Patch Changes - Updated dependencies []: - - @kinobi-so/node-types@0.21.3 + - @codama/node-types@0.21.3 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/node-types@0.21.2 + - @codama/node-types@0.21.2 ## 0.21.1 ### Patch Changes - Updated dependencies []: - - @kinobi-so/node-types@0.21.1 + - @codama/node-types@0.21.1 ## 0.21.0 ### Minor Changes -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/node-types@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/node-types@0.21.0 ## 0.20.6 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama - Updated dependencies []: - - @kinobi-so/node-types@0.20.6 + - @codama/node-types@0.20.6 ## 0.20.5 ### Patch Changes -- [#42](https://github.com/kinobi-so/kinobi/pull/42) [`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. - Updated dependencies []: - - @kinobi-so/node-types@0.20.5 + - @codama/node-types@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/node-types@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/node-types@0.20.4 ## 0.20.3 ### Patch Changes -- [#40](https://github.com/kinobi-so/kinobi/pull/40) [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c) Thanks [@febo](https://github.com/febo)! - Fix typo in error message +- [#40](https://github.com/codama/codama/pull/40) [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c) Thanks [@febo](https://github.com/febo)! - Fix typo in error message - Updated dependencies []: - - @kinobi-so/node-types@0.20.3 + - @codama/node-types@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/node-types@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/node-types@0.20.2 ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers - Updated dependencies []: - - @kinobi-so/node-types@0.20.1 + - @codama/node-types@0.20.1 diff --git a/packages/library/CHANGELOG.md b/packages/library/CHANGELOG.md index 74631bc7d..0dcebc390 100644 --- a/packages/library/CHANGELOG.md +++ b/packages/library/CHANGELOG.md @@ -1,139 +1,139 @@ -# kinobi +# codama ## 0.22.0 ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 - - @kinobi-so/validators@0.22.0 - - @kinobi-so/visitors@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 + - @codama/validators@0.22.0 + - @codama/visitors@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/validators@0.21.5 - - @kinobi-so/visitors@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/validators@0.21.5 + - @codama/visitors@0.21.5 ## 0.21.4 ### Patch Changes -- [#181](https://github.com/kinobi-so/kinobi/pull/181) [`28f3d38`](https://github.com/kinobi-so/kinobi/commit/28f3d381f570859cbea1c72b7e352ad3e72db37f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix TS bug on `accept` and `update` Kinobi function +- [#181](https://github.com/codama/codama/pull/181) [`28f3d38`](https://github.com/codama/codama/commit/28f3d381f570859cbea1c72b7e352ad3e72db37f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix TS bug on `accept` and `update` codama function - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/validators@0.21.4 - - @kinobi-so/visitors@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/validators@0.21.4 + - @codama/visitors@0.21.4 ## 0.21.3 ### Patch Changes - Updated dependencies []: - - @kinobi-so/validators@0.21.3 - - @kinobi-so/visitors@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 + - @codama/validators@0.21.3 + - @codama/visitors@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/validators@0.21.2 - - @kinobi-so/visitors@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 + - @codama/validators@0.21.2 + - @codama/visitors@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.1 ### Patch Changes - Updated dependencies []: - - @kinobi-so/validators@0.21.1 - - @kinobi-so/visitors@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 + - @codama/validators@0.21.1 + - @codama/visitors@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.0 ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 - - @kinobi-so/validators@0.21.0 - - @kinobi-so/visitors@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 + - @codama/validators@0.21.0 + - @codama/visitors@0.21.0 ## 0.20.6 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/validators@0.20.6 - - @kinobi-so/visitors@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/validators@0.20.6 + - @codama/visitors@0.20.6 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/validators@0.20.5 - - @kinobi-so/visitors@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/validators@0.20.5 + - @codama/visitors@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/visitors@0.20.4 - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/validators@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/visitors@0.20.4 + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/validators@0.20.4 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/errors@0.20.3 - - @kinobi-so/validators@0.20.3 - - @kinobi-so/visitors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/errors@0.20.3 + - @codama/validators@0.20.3 + - @codama/visitors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/validators@0.20.2 - - @kinobi-so/visitors@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/validators@0.20.2 + - @codama/visitors@0.20.2 ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/validators@0.20.1 - - @kinobi-so/visitors@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/validators@0.20.1 + - @codama/visitors@0.20.1 diff --git a/packages/node-types/CHANGELOG.md b/packages/node-types/CHANGELOG.md index 76bba0c50..71131a0ae 100644 --- a/packages/node-types/CHANGELOG.md +++ b/packages/node-types/CHANGELOG.md @@ -1,16 +1,16 @@ -# @kinobi-so/node-types +# @codama/node-types ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/kinobi-so/kinobi/pull/180) [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ## 0.21.5 @@ -26,7 +26,7 @@ ### Minor Changes -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. @@ -38,7 +38,7 @@ ### Patch Changes -- [#43](https://github.com/kinobi-so/kinobi/pull/43) [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition ## 0.20.3 @@ -46,6 +46,6 @@ ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies ## 0.20.1 diff --git a/packages/nodes-from-anchor/CHANGELOG.md b/packages/nodes-from-anchor/CHANGELOG.md index 7cfb541a5..b09c8f7b6 100644 --- a/packages/nodes-from-anchor/CHANGELOG.md +++ b/packages/nodes-from-anchor/CHANGELOG.md @@ -1,148 +1,148 @@ -# @kinobi-so/nodes-from-anchor +# @codama/nodes-from-anchor ## 0.22.0 ### Minor Changes -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 - - @kinobi-so/visitors@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 + - @codama/visitors@0.22.0 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/visitors@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/visitors@0.21.5 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors@0.21.4 ## 0.21.1 ### Patch Changes -- [#123](https://github.com/kinobi-so/kinobi/pull/123) [`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier - Updated dependencies []: - - @kinobi-so/visitors@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 + - @codama/visitors@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.0 ### Minor Changes -- [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes - Updated dependencies []: - - @kinobi-so/visitors@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 + - @codama/visitors@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.20.10 ### Patch Changes - Updated dependencies []: - - @kinobi-so/visitors@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 + - @codama/visitors@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.20.9 ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 - - @kinobi-so/visitors@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 + - @codama/visitors@0.21.0 ## 0.20.8 ### Patch Changes -- [#109](https://github.com/kinobi-so/kinobi/pull/109) [`4979b94`](https://github.com/kinobi-so/kinobi/commit/4979b94720465a58538ee61bb1a4a23fd5471511) Thanks [@kespinola](https://github.com/kespinola)! - Fix argument node lookup for anchor v01 instruction pda seeds. +- [#109](https://github.com/codama/codama/pull/109) [`4979b94`](https://github.com/codama/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511) Thanks [@kespinola](https://github.com/kespinola)! - Fix argument node lookup for anchor v01 instruction pda seeds. -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/visitors@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/visitors@0.20.6 ## 0.20.7 ### Patch Changes -- [#42](https://github.com/kinobi-so/kinobi/pull/42) [`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors@0.20.5 ## 0.20.6 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/visitors@0.20.4 - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/visitors@0.20.4 + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/errors@0.20.3 - - @kinobi-so/visitors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/errors@0.20.3 + - @codama/visitors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.4 ### Patch Changes -- [#37](https://github.com/kinobi-so/kinobi/pull/37) [`c5bc916`](https://github.com/kinobi-so/kinobi/commit/c5bc91609b5cb16caec13214bbe7a39e74e8d52c) Thanks [@kespinola](https://github.com/kespinola)! - Remove Anchor V01 accounts from defined types to resolve duplicate exports in generated clients +- [#37](https://github.com/codama/codama/pull/37) [`c5bc916`](https://github.com/codama/codama/commit/c5bc91609b5cb16caec13214bbe7a39e74e8d52c) Thanks [@kespinola](https://github.com/kespinola)! - Remove Anchor V01 accounts from defined types to resolve duplicate exports in generated clients ## 0.20.3 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/visitors@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/visitors@0.20.2 ## 0.20.2 ### Patch Changes -- [#30](https://github.com/kinobi-so/kinobi/pull/30) [`d43493e`](https://github.com/kinobi-so/kinobi/commit/d43493e0e42c4b1064c174050a91e71c4d28e252) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix type definition of Anchor discriminators +- [#30](https://github.com/codama/codama/pull/30) [`d43493e`](https://github.com/codama/codama/commit/d43493e0e42c4b1064c174050a91e71c4d28e252) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix type definition of Anchor discriminators ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors@0.20.1 diff --git a/packages/nodes/CHANGELOG.md b/packages/nodes/CHANGELOG.md index f0f3cc803..0a58b278c 100644 --- a/packages/nodes/CHANGELOG.md +++ b/packages/nodes/CHANGELOG.md @@ -1,131 +1,131 @@ -# @kinobi-so/nodes +# @codama/nodes ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/kinobi-so/kinobi/pull/180) [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/node-types@0.22.0 - - @kinobi-so/errors@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/node-types@0.22.0 + - @codama/errors@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/node-types@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/node-types@0.21.5 ## 0.21.4 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/node-types@0.21.4 + - @codama/errors@0.21.4 + - @codama/node-types@0.21.4 ## 0.21.3 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.3 - - @kinobi-so/node-types@0.21.3 + - @codama/errors@0.21.3 + - @codama/node-types@0.21.3 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.2 - - @kinobi-so/node-types@0.21.2 + - @codama/errors@0.21.2 + - @codama/node-types@0.21.2 ## 0.21.1 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.1 - - @kinobi-so/node-types@0.21.1 + - @codama/errors@0.21.1 + - @codama/node-types@0.21.1 ## 0.21.0 ### Minor Changes -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/node-types@0.21.0 - - @kinobi-so/errors@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/node-types@0.21.0 + - @codama/errors@0.21.0 ## 0.20.6 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/node-types@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/node-types@0.20.6 ## 0.20.5 ### Patch Changes -- [#42](https://github.com/kinobi-so/kinobi/pull/42) [`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/node-types@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: + - @codama/errors@0.20.5 + - @codama/node-types@0.20.5 ## 0.20.4 ### Patch Changes -- [#43](https://github.com/kinobi-so/kinobi/pull/43) [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/node-types@0.20.4 - - @kinobi-so/errors@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/node-types@0.20.4 + - @codama/errors@0.20.4 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/errors@0.20.3 - - @kinobi-so/node-types@0.20.3 +- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/errors@0.20.3 + - @codama/node-types@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/node-types@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/node-types@0.20.2 ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/node-types@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/node-types@0.20.1 diff --git a/packages/renderers-core/CHANGELOG.md b/packages/renderers-core/CHANGELOG.md index 3352183b7..678454706 100644 --- a/packages/renderers-core/CHANGELOG.md +++ b/packages/renderers-core/CHANGELOG.md @@ -1,134 +1,134 @@ -# @kinobi-so/renderers-core +# @codama/renderers-core ## 0.22.0 ### Minor Changes -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/visitors-core@0.21.5 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors-core@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors-core@0.21.4 ## 0.21.1 ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/visitors-core@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.0 ### Minor Changes -- [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: + - @codama/visitors-core@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.20.8 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.20.7 ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 ## 0.20.6 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/visitors-core@0.20.6 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors-core@0.20.1 diff --git a/packages/renderers-js-umi/CHANGELOG.md b/packages/renderers-js-umi/CHANGELOG.md index 86dd3dd8f..3fb229f8f 100644 --- a/packages/renderers-js-umi/CHANGELOG.md +++ b/packages/renderers-js-umi/CHANGELOG.md @@ -1,196 +1,196 @@ -# @kinobi-so/renderers-js-umi +# @codama/renderers-js-umi ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 - - @kinobi-so/renderers-core@0.22.0 - - @kinobi-so/validators@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 + - @codama/renderers-core@0.22.0 + - @codama/validators@0.22.0 ## 0.21.7 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/renderers-core@0.21.3 - - @kinobi-so/validators@0.21.5 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/renderers-core@0.21.3 + - @codama/validators@0.21.5 + - @codama/visitors-core@0.21.5 ## 0.21.6 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/validators@0.21.4 - - @kinobi-so/visitors-core@0.21.4 - - @kinobi-so/renderers-core@0.21.2 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/validators@0.21.4 + - @codama/visitors-core@0.21.4 + - @codama/renderers-core@0.21.2 ## 0.21.5 ### Patch Changes -- [#123](https://github.com/kinobi-so/kinobi/pull/123) [`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/renderers-core@0.21.1 - - @kinobi-so/validators@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/visitors-core@0.21.3 + - @codama/renderers-core@0.21.1 + - @codama/validators@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.4 ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/renderers-core@0.21.0 - - @kinobi-so/validators@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: + - @codama/visitors-core@0.21.2 + - @codama/renderers-core@0.21.0 + - @codama/validators@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/renderers-core@0.20.8 - - @kinobi-so/validators@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/renderers-core@0.20.8 + - @codama/validators@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.2 ### Patch Changes -- [#160](https://github.com/kinobi-so/kinobi/pull/160) [`87bab8a`](https://github.com/kinobi-so/kinobi/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.1 ### Patch Changes -- [#156](https://github.com/kinobi-so/kinobi/pull/156) [`38d6de8`](https://github.com/kinobi-so/kinobi/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix missing eddsa interface for inlined PDA used as default values +- [#156](https://github.com/codama/codama/pull/156) [`38d6de8`](https://github.com/codama/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix missing eddsa interface for inlined PDA used as default values ## 0.21.0 ### Minor Changes -- [#110](https://github.com/kinobi-so/kinobi/pull/110) [`2d45383`](https://github.com/kinobi-so/kinobi/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 - - @kinobi-so/renderers-core@0.20.7 - - @kinobi-so/validators@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 + - @codama/renderers-core@0.20.7 + - @codama/validators@0.21.0 ## 0.20.8 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/renderers-core@0.20.6 - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/validators@0.20.6 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/renderers-core@0.20.6 + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/validators@0.20.6 + - @codama/visitors-core@0.20.6 ## 0.20.7 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 - - @kinobi-so/renderers-core@0.20.5 - - @kinobi-so/validators@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 + - @codama/renderers-core@0.20.5 + - @codama/validators@0.20.5 ## 0.20.6 ### Patch Changes -- [#88](https://github.com/kinobi-so/kinobi/pull/88) [`1d4223c`](https://github.com/kinobi-so/kinobi/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix constant PDA seed rendering in renderers-js-umi +- [#88](https://github.com/codama/codama/pull/88) [`1d4223c`](https://github.com/codama/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix constant PDA seed rendering in renderers-js-umi ## 0.20.5 ### Patch Changes -- [#43](https://github.com/kinobi-so/kinobi/pull/43) [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/renderers-core@0.20.4 - - @kinobi-so/validators@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/renderers-core@0.20.4 + - @codama/validators@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/renderers-core@0.20.3 - - @kinobi-so/validators@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/renderers-core@0.20.3 + - @codama/validators@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.3 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/renderers-core@0.20.2 - - @kinobi-so/validators@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/renderers-core@0.20.2 + - @codama/validators@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.2 ### Patch Changes -- [`2857238`](https://github.com/kinobi-so/kinobi/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/kinobi-so/kinobi/pull/24) [`b9cd6b2`](https://github.com/kinobi-so/kinobi/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/renderers-core@0.20.1 - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/validators@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/renderers-core@0.20.1 + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/validators@0.20.1 + - @codama/visitors-core@0.20.1 diff --git a/packages/renderers-js/CHANGELOG.md b/packages/renderers-js/CHANGELOG.md index d2fa3164c..41ee1253e 100644 --- a/packages/renderers-js/CHANGELOG.md +++ b/packages/renderers-js/CHANGELOG.md @@ -1,234 +1,234 @@ -# @kinobi-so/renderers-js +# @codama/renderers-js ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- [#224](https://github.com/kinobi-so/kinobi/pull/224) [`345a145`](https://github.com/kinobi-so/kinobi/commit/345a145bb9a9b181c8db9435a46d35dacbfced41) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders +- [#224](https://github.com/codama/codama/pull/224) [`345a145`](https://github.com/codama/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 - - @kinobi-so/renderers-core@0.22.0 - - @kinobi-so/nodes-from-anchor@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 + - @codama/renderers-core@0.22.0 + - @codama/nodes-from-anchor@0.22.0 ## 0.21.9 ### Patch Changes -- [`4f6c8a9`](https://github.com/kinobi-so/kinobi/commit/4f6c8a971e70010d246b2691ccde847f0162b981) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders +- [`4f6c8a9`](https://github.com/codama/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/nodes-from-anchor@0.21.3 - - @kinobi-so/renderers-core@0.21.3 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/nodes-from-anchor@0.21.3 + - @codama/renderers-core@0.21.3 + - @codama/visitors-core@0.21.5 ## 0.21.8 ### Patch Changes -- [#200](https://github.com/kinobi-so/kinobi/pull/200) [`6639091`](https://github.com/kinobi-so/kinobi/commit/6639091714ae3b5c4330f0b1f43816fea373d55f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix a bug that reuses the same `ImportMap` within different code fragments +- [#200](https://github.com/codama/codama/pull/200) [`6639091`](https://github.com/codama/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix a bug that reuses the same `ImportMap` within different code fragments ## 0.21.7 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors-core@0.21.4 - - @kinobi-so/nodes-from-anchor@0.21.2 - - @kinobi-so/renderers-core@0.21.2 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors-core@0.21.4 + - @codama/nodes-from-anchor@0.21.2 + - @codama/renderers-core@0.21.2 ## 0.21.6 ### Patch Changes -- [#123](https://github.com/kinobi-so/kinobi/pull/123) [`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/nodes-from-anchor@0.21.1 - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/renderers-core@0.21.1 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/nodes-from-anchor@0.21.1 + - @codama/visitors-core@0.21.3 + - @codama/renderers-core@0.21.1 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/nodes-from-anchor@0.21.0 - - @kinobi-so/renderers-core@0.21.0 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: + - @codama/visitors-core@0.21.2 + - @codama/nodes-from-anchor@0.21.0 + - @codama/renderers-core@0.21.0 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.4 ### Patch Changes -- [#168](https://github.com/kinobi-so/kinobi/pull/168) [`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Export discriminator constants for instructions and accounts +- [#168](https://github.com/codama/codama/pull/168) [`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Export discriminator constants for instructions and accounts -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/renderers-core@0.20.8 - - @kinobi-so/nodes-from-anchor@0.20.10 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/renderers-core@0.20.8 + - @codama/nodes-from-anchor@0.20.10 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.3 ### Patch Changes -- [#161](https://github.com/kinobi-so/kinobi/pull/161) [`524687c`](https://github.com/kinobi-so/kinobi/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use lamports type/encoder/decoder for SolAmountTypeNode +- [#161](https://github.com/codama/codama/pull/161) [`524687c`](https://github.com/codama/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use lamports type/encoder/decoder for SolAmountTypeNode -- [#160](https://github.com/kinobi-so/kinobi/pull/160) [`87bab8a`](https://github.com/kinobi-so/kinobi/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.2 ### Patch Changes -- [#138](https://github.com/kinobi-so/kinobi/pull/138) [`af8ac37`](https://github.com/kinobi-so/kinobi/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use ReadonlyUint8Array for identifying accounts/instructions by data +- [#138](https://github.com/codama/codama/pull/138) [`af8ac37`](https://github.com/codama/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use ReadonlyUint8Array for identifying accounts/instructions by data ## 0.21.1 ### Patch Changes -- [#127](https://github.com/kinobi-so/kinobi/pull/127) [`62545be`](https://github.com/kinobi-so/kinobi/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add isProgramError helper +- [#127](https://github.com/codama/codama/pull/127) [`62545be`](https://github.com/codama/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add isProgramError helper ## 0.21.0 ### Minor Changes -- [#110](https://github.com/kinobi-so/kinobi/pull/110) [`2d45383`](https://github.com/kinobi-so/kinobi/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 - - @kinobi-so/renderers-core@0.20.7 - - @kinobi-so/nodes-from-anchor@0.20.9 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 + - @codama/renderers-core@0.20.7 + - @codama/nodes-from-anchor@0.20.9 ## 0.20.11 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- [#103](https://github.com/kinobi-so/kinobi/pull/103) [`93942cc`](https://github.com/kinobi-so/kinobi/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in generated code +- [#103](https://github.com/codama/codama/pull/103) [`93942cc`](https://github.com/codama/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in generated code -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`4979b94`](https://github.com/kinobi-so/kinobi/commit/4979b94720465a58538ee61bb1a4a23fd5471511)]: - - @kinobi-so/renderers-core@0.20.6 - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/nodes-from-anchor@0.20.8 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`4979b94`](https://github.com/codama/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511)]: + - @codama/renderers-core@0.20.6 + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/nodes-from-anchor@0.20.8 + - @codama/visitors-core@0.20.6 ## 0.20.10 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/nodes-from-anchor@0.20.7 - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 - - @kinobi-so/renderers-core@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/nodes-from-anchor@0.20.7 + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 + - @codama/renderers-core@0.20.5 ## 0.20.9 ### Patch Changes -- [#53](https://github.com/kinobi-so/kinobi/pull/53) [`e3e4099`](https://github.com/kinobi-so/kinobi/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010) Thanks [@febo](https://github.com/febo)! - Filter out type variant on imports +- [#53](https://github.com/codama/codama/pull/53) [`e3e4099`](https://github.com/codama/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010) Thanks [@febo](https://github.com/febo)! - Filter out type variant on imports ## 0.20.8 ### Patch Changes -- [#52](https://github.com/kinobi-so/kinobi/pull/52) [`baeaf14`](https://github.com/kinobi-so/kinobi/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1) Thanks [@lithdew](https://github.com/lithdew)! - Fix rendering PDA helper functions with a default programId. +- [#52](https://github.com/codama/codama/pull/52) [`baeaf14`](https://github.com/codama/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1) Thanks [@lithdew](https://github.com/lithdew)! - Fix rendering PDA helper functions with a default programId. -- [#48](https://github.com/kinobi-so/kinobi/pull/48) [`0771b9d`](https://github.com/kinobi-so/kinobi/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc) Thanks [@lithdew](https://github.com/lithdew)! - Have generated TypeScript code for renderers-js support verbatimModuleSyntax +- [#48](https://github.com/codama/codama/pull/48) [`0771b9d`](https://github.com/codama/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc) Thanks [@lithdew](https://github.com/lithdew)! - Have generated TypeScript code for renderers-js support verbatimModuleSyntax ## 0.20.7 ### Patch Changes -- [#46](https://github.com/kinobi-so/kinobi/pull/46) [`bcd5eae`](https://github.com/kinobi-so/kinobi/commit/bcd5eaedf673432106e7cc72273e36f729cc8275) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions on JS renderer again +- [#46](https://github.com/codama/codama/pull/46) [`bcd5eae`](https://github.com/codama/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions on JS renderer again ## 0.20.6 ### Patch Changes -- [#43](https://github.com/kinobi-so/kinobi/pull/43) [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/renderers-core@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/renderers-core@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/renderers-core@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/renderers-core@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.4 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/renderers-core@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/renderers-core@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.3 ### Patch Changes -- [#29](https://github.com/kinobi-so/kinobi/pull/29) [`5794385`](https://github.com/kinobi-so/kinobi/commit/57943852a2cf3ba6552942d9787f82657d38fafb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions +- [#29](https://github.com/codama/codama/pull/29) [`5794385`](https://github.com/codama/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions ## 0.20.2 ### Patch Changes -- [`2857238`](https://github.com/kinobi-so/kinobi/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/kinobi-so/kinobi/pull/24) [`b9cd6b2`](https://github.com/kinobi-so/kinobi/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/renderers-core@0.20.1 - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/renderers-core@0.20.1 + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors-core@0.20.1 diff --git a/packages/renderers-rust/CHANGELOG.md b/packages/renderers-rust/CHANGELOG.md index b4ac5f0e8..14969d89d 100644 --- a/packages/renderers-rust/CHANGELOG.md +++ b/packages/renderers-rust/CHANGELOG.md @@ -1,217 +1,217 @@ -# @kinobi-so/renderers-rust +# @codama/renderers-rust ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 - - @kinobi-so/renderers-core@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 + - @codama/renderers-core@0.22.0 ## 0.21.8 ### Patch Changes -- [#231](https://github.com/kinobi-so/kinobi/pull/231) [`3c18cee`](https://github.com/kinobi-so/kinobi/commit/3c18ceeffb97922db500138af85d20fce00f80b2) Thanks [@aoikurokawa](https://github.com/aoikurokawa)! - Fix typo in generated comment +- [#231](https://github.com/codama/codama/pull/231) [`3c18cee`](https://github.com/codama/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2) Thanks [@aoikurokawa](https://github.com/aoikurokawa)! - Fix typo in generated comment ## 0.21.7 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/renderers-core@0.21.3 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/renderers-core@0.21.3 + - @codama/visitors-core@0.21.5 ## 0.21.6 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors-core@0.21.4 - - @kinobi-so/renderers-core@0.21.2 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors-core@0.21.4 + - @codama/renderers-core@0.21.2 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/renderers-core@0.21.1 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/visitors-core@0.21.3 + - @codama/renderers-core@0.21.1 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.4 ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/renderers-core@0.21.0 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: + - @codama/visitors-core@0.21.2 + - @codama/renderers-core@0.21.0 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/renderers-core@0.20.8 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/renderers-core@0.20.8 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.2 ### Patch Changes -- [#160](https://github.com/kinobi-so/kinobi/pull/160) [`87bab8a`](https://github.com/kinobi-so/kinobi/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.1 ### Patch Changes -- [#152](https://github.com/kinobi-so/kinobi/pull/152) [`33cc3b7`](https://github.com/kinobi-so/kinobi/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Support type aliases from `DefinedTypeNodes` +- [#152](https://github.com/codama/codama/pull/152) [`33cc3b7`](https://github.com/codama/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Support type aliases from `DefinedTypeNodes` -- [#144](https://github.com/kinobi-so/kinobi/pull/144) [`dc04203`](https://github.com/kinobi-so/kinobi/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add support for ShortU16 and ShortVec +- [#144](https://github.com/codama/codama/pull/144) [`dc04203`](https://github.com/codama/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add support for ShortU16 and ShortVec ## 0.21.0 ### Minor Changes -- [#110](https://github.com/kinobi-so/kinobi/pull/110) [`2d45383`](https://github.com/kinobi-so/kinobi/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 - - @kinobi-so/renderers-core@0.20.7 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 + - @codama/renderers-core@0.20.7 ## 0.20.12 ### Patch Changes -- [#102](https://github.com/kinobi-so/kinobi/pull/102) [`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in Kinobi +- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/renderers-core@0.20.6 - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/renderers-core@0.20.6 + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/visitors-core@0.20.6 ## 0.20.11 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 - - @kinobi-so/renderers-core@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 + - @codama/renderers-core@0.20.5 ## 0.20.10 ### Patch Changes -- [#56](https://github.com/kinobi-so/kinobi/pull/56) [`cde409c`](https://github.com/kinobi-so/kinobi/commit/cde409c6132a66a27091bfb7025904e70b7689a4) Thanks [@buffalojoec](https://github.com/buffalojoec)! - Rust Renderer: Add toolchain arg to formatter +- [#56](https://github.com/codama/codama/pull/56) [`cde409c`](https://github.com/codama/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4) Thanks [@buffalojoec](https://github.com/buffalojoec)! - Rust Renderer: Add toolchain arg to formatter ## 0.20.9 ### Patch Changes -- [#54](https://github.com/kinobi-so/kinobi/pull/54) [`5b8186f`](https://github.com/kinobi-so/kinobi/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3) Thanks [@febo](https://github.com/febo)! - Add support to Anchor idl build for account types +- [#54](https://github.com/codama/codama/pull/54) [`5b8186f`](https://github.com/codama/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3) Thanks [@febo](https://github.com/febo)! - Add support to Anchor idl build for account types ## 0.20.8 ### Patch Changes -- [#50](https://github.com/kinobi-so/kinobi/pull/50) [`6a8c6c3`](https://github.com/kinobi-so/kinobi/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010) Thanks [@febo](https://github.com/febo)! - Add anchor traits impl for accounts +- [#50](https://github.com/codama/codama/pull/50) [`6a8c6c3`](https://github.com/codama/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010) Thanks [@febo](https://github.com/febo)! - Add anchor traits impl for accounts ## 0.20.7 ### Patch Changes -- [#45](https://github.com/kinobi-so/kinobi/pull/45) [`378f007`](https://github.com/kinobi-so/kinobi/commit/378f007345bda028e31cdd9d4e34ce8279257485) Thanks [@febo](https://github.com/febo)! - Add copy derive to scalar enums in Rust renderer +- [#45](https://github.com/codama/codama/pull/45) [`378f007`](https://github.com/codama/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485) Thanks [@febo](https://github.com/febo)! - Add copy derive to scalar enums in Rust renderer -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/renderers-core@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/renderers-core@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.6 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/renderers-core@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/renderers-core@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.5 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/renderers-core@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/renderers-core@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.4 ### Patch Changes -- [#27](https://github.com/kinobi-so/kinobi/pull/27) [`46bfc2d`](https://github.com/kinobi-so/kinobi/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf) Thanks [@samuelvanderwaal](https://github.com/samuelvanderwaal)! - Make rust docs kinobi link clickable +- [#27](https://github.com/codama/codama/pull/27) [`46bfc2d`](https://github.com/codama/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf) Thanks [@samuelvanderwaal](https://github.com/samuelvanderwaal)! - Make rust docs codama link clickable -- [#32](https://github.com/kinobi-so/kinobi/pull/32) [`3645d92`](https://github.com/kinobi-so/kinobi/commit/3645d92845db3582b801f2a32f1c36e6b478b754) Thanks [@febo](https://github.com/febo)! - Add default impl for instruction data struct in Rust renderer +- [#32](https://github.com/codama/codama/pull/32) [`3645d92`](https://github.com/codama/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754) Thanks [@febo](https://github.com/febo)! - Add default impl for instruction data struct in Rust renderer -- [#31](https://github.com/kinobi-so/kinobi/pull/31) [`e0ea30c`](https://github.com/kinobi-so/kinobi/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2) Thanks [@febo](https://github.com/febo)! - Render error codes on Rust renderer +- [#31](https://github.com/codama/codama/pull/31) [`e0ea30c`](https://github.com/codama/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2) Thanks [@febo](https://github.com/febo)! - Render error codes on Rust renderer ## 0.20.3 ### Patch Changes -- [#25](https://github.com/kinobi-so/kinobi/pull/25) [`2382631`](https://github.com/kinobi-so/kinobi/commit/238263129b61df67f010b47cd9229b2662eaccb2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix generated PDA prefix +- [#25](https://github.com/codama/codama/pull/25) [`2382631`](https://github.com/codama/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix generated PDA prefix ## 0.20.2 ### Patch Changes -- [`2857238`](https://github.com/kinobi-so/kinobi/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/kinobi-so/kinobi/pull/24) [`b9cd6b2`](https://github.com/kinobi-so/kinobi/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/kinobi-so/kinobi/pull/21) [`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/renderers-core@0.20.1 - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/renderers-core@0.20.1 + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors-core@0.20.1 diff --git a/packages/renderers/CHANGELOG.md b/packages/renderers/CHANGELOG.md index 334d73fc1..d4a085aa6 100644 --- a/packages/renderers/CHANGELOG.md +++ b/packages/renderers/CHANGELOG.md @@ -1,242 +1,242 @@ -# @kinobi-so/renderers +# @codama/renderers ## 0.22.0 ### Minor Changes -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`345a145`](https://github.com/kinobi-so/kinobi/commit/345a145bb9a9b181c8db9435a46d35dacbfced41), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540)]: - - @kinobi-so/renderers-js-umi@0.22.0 - - @kinobi-so/renderers-rust@0.22.0 - - @kinobi-so/renderers-js@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`345a145`](https://github.com/codama/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540)]: + - @codama/renderers-js-umi@0.22.0 + - @codama/renderers-rust@0.22.0 + - @codama/renderers-js@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`3c18cee`](https://github.com/kinobi-so/kinobi/commit/3c18ceeffb97922db500138af85d20fce00f80b2)]: - - @kinobi-so/renderers-rust@0.21.8 +- Updated dependencies [[`3c18cee`](https://github.com/codama/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2)]: + - @codama/renderers-rust@0.21.8 ## 0.21.4 ### Patch Changes -- Updated dependencies [[`4f6c8a9`](https://github.com/kinobi-so/kinobi/commit/4f6c8a971e70010d246b2691ccde847f0162b981)]: - - @kinobi-so/renderers-js@0.21.9 - - @kinobi-so/renderers-js-umi@0.21.7 - - @kinobi-so/renderers-rust@0.21.7 +- Updated dependencies [[`4f6c8a9`](https://github.com/codama/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981)]: + - @codama/renderers-js@0.21.9 + - @codama/renderers-js-umi@0.21.7 + - @codama/renderers-rust@0.21.7 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`6639091`](https://github.com/kinobi-so/kinobi/commit/6639091714ae3b5c4330f0b1f43816fea373d55f)]: - - @kinobi-so/renderers-js@0.21.8 +- Updated dependencies [[`6639091`](https://github.com/codama/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f)]: + - @codama/renderers-js@0.21.8 ## 0.21.2 ### Patch Changes - Updated dependencies []: - - @kinobi-so/renderers-js@0.21.7 - - @kinobi-so/renderers-js-umi@0.21.6 - - @kinobi-so/renderers-rust@0.21.6 + - @codama/renderers-js@0.21.7 + - @codama/renderers-js-umi@0.21.6 + - @codama/renderers-rust@0.21.6 ## 0.21.1 ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/renderers-js-umi@0.21.5 - - @kinobi-so/renderers-js@0.21.6 - - @kinobi-so/renderers-rust@0.21.5 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/renderers-js-umi@0.21.5 + - @codama/renderers-js@0.21.6 + - @codama/renderers-rust@0.21.5 ## 0.21.0 ### Minor Changes -- [`f13abb0`](https://github.com/kinobi-so/kinobi/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes - Updated dependencies []: - - @kinobi-so/renderers-js@0.21.5 - - @kinobi-so/renderers-js-umi@0.21.4 - - @kinobi-so/renderers-rust@0.21.4 + - @codama/renderers-js@0.21.5 + - @codama/renderers-js-umi@0.21.4 + - @codama/renderers-rust@0.21.4 ## 0.20.21 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/renderers-js@0.21.4 - - @kinobi-so/renderers-js-umi@0.21.3 - - @kinobi-so/renderers-rust@0.21.3 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/renderers-js@0.21.4 + - @codama/renderers-js-umi@0.21.3 + - @codama/renderers-rust@0.21.3 ## 0.20.20 ### Patch Changes -- Updated dependencies [[`524687c`](https://github.com/kinobi-so/kinobi/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b), [`87bab8a`](https://github.com/kinobi-so/kinobi/commit/87bab8ad6f2e40903064be9258a741e176eeef77)]: - - @kinobi-so/renderers-js@0.21.3 - - @kinobi-so/renderers-js-umi@0.21.2 - - @kinobi-so/renderers-rust@0.21.2 +- Updated dependencies [[`524687c`](https://github.com/codama/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b), [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77)]: + - @codama/renderers-js@0.21.3 + - @codama/renderers-js-umi@0.21.2 + - @codama/renderers-rust@0.21.2 ## 0.20.19 ### Patch Changes -- Updated dependencies [[`38d6de8`](https://github.com/kinobi-so/kinobi/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3)]: - - @kinobi-so/renderers-js-umi@0.21.1 +- Updated dependencies [[`38d6de8`](https://github.com/codama/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3)]: + - @codama/renderers-js-umi@0.21.1 ## 0.20.18 ### Patch Changes -- Updated dependencies [[`33cc3b7`](https://github.com/kinobi-so/kinobi/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb), [`dc04203`](https://github.com/kinobi-so/kinobi/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930)]: - - @kinobi-so/renderers-rust@0.21.1 +- Updated dependencies [[`33cc3b7`](https://github.com/codama/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb), [`dc04203`](https://github.com/codama/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930)]: + - @codama/renderers-rust@0.21.1 ## 0.20.17 ### Patch Changes -- Updated dependencies [[`af8ac37`](https://github.com/kinobi-so/kinobi/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e)]: - - @kinobi-so/renderers-js@0.21.2 +- Updated dependencies [[`af8ac37`](https://github.com/codama/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e)]: + - @codama/renderers-js@0.21.2 ## 0.20.16 ### Patch Changes -- Updated dependencies [[`62545be`](https://github.com/kinobi-so/kinobi/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c)]: - - @kinobi-so/renderers-js@0.21.1 +- Updated dependencies [[`62545be`](https://github.com/codama/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c)]: + - @codama/renderers-js@0.21.1 ## 0.20.15 ### Patch Changes -- Updated dependencies [[`2d45383`](https://github.com/kinobi-so/kinobi/commit/2d453830621047da2a18001ab427db9b603ad025), [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/renderers-js-umi@0.21.0 - - @kinobi-so/renderers-rust@0.21.0 - - @kinobi-so/renderers-js@0.21.0 +- Updated dependencies [[`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025), [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/renderers-js-umi@0.21.0 + - @codama/renderers-rust@0.21.0 + - @codama/renderers-js@0.21.0 ## 0.20.14 ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`93942cc`](https://github.com/kinobi-so/kinobi/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2)]: - - @kinobi-so/renderers-js-umi@0.20.8 - - @kinobi-so/renderers-rust@0.20.12 - - @kinobi-so/renderers-js@0.20.11 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`93942cc`](https://github.com/codama/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2)]: + - @codama/renderers-js-umi@0.20.8 + - @codama/renderers-rust@0.20.12 + - @codama/renderers-js@0.20.11 ## 0.20.13 ### Patch Changes - Updated dependencies []: - - @kinobi-so/renderers-js@0.20.10 - - @kinobi-so/renderers-js-umi@0.20.7 - - @kinobi-so/renderers-rust@0.20.11 + - @codama/renderers-js@0.20.10 + - @codama/renderers-js-umi@0.20.7 + - @codama/renderers-rust@0.20.11 ## 0.20.12 ### Patch Changes -- Updated dependencies [[`1d4223c`](https://github.com/kinobi-so/kinobi/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2)]: - - @kinobi-so/renderers-js-umi@0.20.6 +- Updated dependencies [[`1d4223c`](https://github.com/codama/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2)]: + - @codama/renderers-js-umi@0.20.6 ## 0.20.11 ### Patch Changes -- Updated dependencies [[`cde409c`](https://github.com/kinobi-so/kinobi/commit/cde409c6132a66a27091bfb7025904e70b7689a4)]: - - @kinobi-so/renderers-rust@0.20.10 +- Updated dependencies [[`cde409c`](https://github.com/codama/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4)]: + - @codama/renderers-rust@0.20.10 ## 0.20.10 ### Patch Changes -- Updated dependencies [[`5b8186f`](https://github.com/kinobi-so/kinobi/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3), [`e3e4099`](https://github.com/kinobi-so/kinobi/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010)]: - - @kinobi-so/renderers-rust@0.20.9 - - @kinobi-so/renderers-js@0.20.9 +- Updated dependencies [[`5b8186f`](https://github.com/codama/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3), [`e3e4099`](https://github.com/codama/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010)]: + - @codama/renderers-rust@0.20.9 + - @codama/renderers-js@0.20.9 ## 0.20.9 ### Patch Changes -- Updated dependencies [[`baeaf14`](https://github.com/kinobi-so/kinobi/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1), [`6a8c6c3`](https://github.com/kinobi-so/kinobi/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010), [`0771b9d`](https://github.com/kinobi-so/kinobi/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc)]: - - @kinobi-so/renderers-js@0.20.8 - - @kinobi-so/renderers-rust@0.20.8 +- Updated dependencies [[`baeaf14`](https://github.com/codama/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1), [`6a8c6c3`](https://github.com/codama/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010), [`0771b9d`](https://github.com/codama/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc)]: + - @codama/renderers-js@0.20.8 + - @codama/renderers-rust@0.20.8 ## 0.20.8 ### Patch Changes -- Updated dependencies [[`bcd5eae`](https://github.com/kinobi-so/kinobi/commit/bcd5eaedf673432106e7cc72273e36f729cc8275)]: - - @kinobi-so/renderers-js@0.20.7 +- Updated dependencies [[`bcd5eae`](https://github.com/codama/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275)]: + - @codama/renderers-js@0.20.7 ## 0.20.7 ### Patch Changes -- Updated dependencies [[`378f007`](https://github.com/kinobi-so/kinobi/commit/378f007345bda028e31cdd9d4e34ce8279257485), [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/renderers-rust@0.20.7 - - @kinobi-so/renderers-js-umi@0.20.5 - - @kinobi-so/renderers-js@0.20.6 +- Updated dependencies [[`378f007`](https://github.com/codama/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485), [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/renderers-rust@0.20.7 + - @codama/renderers-js-umi@0.20.5 + - @codama/renderers-js@0.20.6 ## 0.20.6 ### Patch Changes - Updated dependencies []: - - @kinobi-so/renderers-js@0.20.5 - - @kinobi-so/renderers-js-umi@0.20.4 - - @kinobi-so/renderers-rust@0.20.6 + - @codama/renderers-js@0.20.5 + - @codama/renderers-js-umi@0.20.4 + - @codama/renderers-rust@0.20.6 ## 0.20.5 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/renderers-js@0.20.4 - - @kinobi-so/renderers-js-umi@0.20.3 - - @kinobi-so/renderers-rust@0.20.5 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/renderers-js@0.20.4 + - @codama/renderers-js-umi@0.20.3 + - @codama/renderers-rust@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`46bfc2d`](https://github.com/kinobi-so/kinobi/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf), [`3645d92`](https://github.com/kinobi-so/kinobi/commit/3645d92845db3582b801f2a32f1c36e6b478b754), [`5794385`](https://github.com/kinobi-so/kinobi/commit/57943852a2cf3ba6552942d9787f82657d38fafb), [`e0ea30c`](https://github.com/kinobi-so/kinobi/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2)]: - - @kinobi-so/renderers-rust@0.20.4 - - @kinobi-so/renderers-js@0.20.3 +- Updated dependencies [[`46bfc2d`](https://github.com/codama/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf), [`3645d92`](https://github.com/codama/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754), [`5794385`](https://github.com/codama/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb), [`e0ea30c`](https://github.com/codama/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2)]: + - @codama/renderers-rust@0.20.4 + - @codama/renderers-js@0.20.3 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`2382631`](https://github.com/kinobi-so/kinobi/commit/238263129b61df67f010b47cd9229b2662eaccb2)]: - - @kinobi-so/renderers-rust@0.20.3 +- Updated dependencies [[`2382631`](https://github.com/codama/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2)]: + - @codama/renderers-rust@0.20.3 ## 0.20.2 ### Patch Changes -- Updated dependencies [[`2857238`](https://github.com/kinobi-so/kinobi/commit/28572383c1f6f6968df88be61d49b41059475d94), [`b9cd6b2`](https://github.com/kinobi-so/kinobi/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98)]: - - @kinobi-so/renderers-js-umi@0.20.2 - - @kinobi-so/renderers-rust@0.20.2 - - @kinobi-so/renderers-js@0.20.2 +- Updated dependencies [[`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94), [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98)]: + - @codama/renderers-js-umi@0.20.2 + - @codama/renderers-rust@0.20.2 + - @codama/renderers-js@0.20.2 ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/renderers-js-umi@0.20.1 - - @kinobi-so/renderers-rust@0.20.1 - - @kinobi-so/renderers-js@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/renderers-js-umi@0.20.1 + - @codama/renderers-rust@0.20.1 + - @codama/renderers-js@0.20.1 diff --git a/packages/validators/CHANGELOG.md b/packages/validators/CHANGELOG.md index 5ef990a7a..726c57da1 100644 --- a/packages/validators/CHANGELOG.md +++ b/packages/validators/CHANGELOG.md @@ -1,126 +1,126 @@ -# @kinobi-so/validators +# @codama/validators ## 0.22.0 ### Minor Changes -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/visitors-core@0.21.5 ## 0.21.4 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors-core@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors-core@0.21.4 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/visitors-core@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.2 ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: + - @codama/visitors-core@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.1 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.0 ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 ## 0.20.6 ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/visitors-core@0.20.6 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors-core@0.20.1 diff --git a/packages/visitors-core/CHANGELOG.md b/packages/visitors-core/CHANGELOG.md index 8d1b0ae44..f1824715e 100644 --- a/packages/visitors-core/CHANGELOG.md +++ b/packages/visitors-core/CHANGELOG.md @@ -1,135 +1,135 @@ -# @kinobi-so/visitors-core +# @codama/visitors-core ## 0.22.0 ### Minor Changes -- [#183](https://github.com/kinobi-so/kinobi/pull/183) [`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/kinobi-so/kinobi/pull/180) [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 ## 0.21.4 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 ## 0.21.3 ### Patch Changes -- [#123](https://github.com/kinobi-so/kinobi/pull/123) [`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier - Updated dependencies []: - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.2 ### Patch Changes -- [#173](https://github.com/kinobi-so/kinobi/pull/173) [`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Record linkables before the first visit +- [#173](https://github.com/codama/codama/pull/173) [`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Record linkables before the first visit -- [#172](https://github.com/kinobi-so/kinobi/pull/172) [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `interceptFirstVisitVisitor` helper +- [#172](https://github.com/codama/codama/pull/172) [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `interceptFirstVisitVisitor` helper - Updated dependencies []: - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.1 ### Patch Changes -- [#168](https://github.com/kinobi-so/kinobi/pull/168) [`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `find` helper function to the `NodeStack` class +- [#168](https://github.com/codama/codama/pull/168) [`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `find` helper function to the `NodeStack` class - Updated dependencies []: - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.0 ### Minor Changes -- [#111](https://github.com/kinobi-so/kinobi/pull/111) [`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 ## 0.20.6 ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 ## 0.20.5 ### Patch Changes -- [#94](https://github.com/kinobi-so/kinobi/pull/94) [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix identityVisitor for inlined PdaValueNode +- [#94](https://github.com/codama/codama/pull/94) [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix identityVisitor for inlined PdaValueNode -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 ## 0.20.4 ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 ## 0.20.3 ### Patch Changes -- [#39](https://github.com/kinobi-so/kinobi/pull/39) [`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70) Thanks [@febo](https://github.com/febo)! - Add missing getOrThrow implementation +- [#39](https://github.com/codama/codama/pull/39) [`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70) Thanks [@febo](https://github.com/febo)! - Add missing getOrThrow implementation -- Updated dependencies [[`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/errors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/errors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 diff --git a/packages/visitors/CHANGELOG.md b/packages/visitors/CHANGELOG.md index 0698f9dd6..3ccc6457d 100644 --- a/packages/visitors/CHANGELOG.md +++ b/packages/visitors/CHANGELOG.md @@ -1,130 +1,130 @@ -# @kinobi-so/visitors +# @codama/visitors ## 0.22.0 ### Minor Changes -- [#175](https://github.com/kinobi-so/kinobi/pull/175) [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- [#180](https://github.com/kinobi-so/kinobi/pull/180) [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. -- Updated dependencies [[`c8c5934`](https://github.com/kinobi-so/kinobi/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/kinobi-so/kinobi/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/kinobi-so/kinobi/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - - @kinobi-so/visitors-core@0.22.0 - - @kinobi-so/errors@0.22.0 - - @kinobi-so/nodes@0.22.0 +- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: + - @codama/visitors-core@0.22.0 + - @codama/errors@0.22.0 + - @codama/nodes@0.22.0 ## 0.21.5 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/kinobi-so/kinobi/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - - @kinobi-so/errors@0.21.5 - - @kinobi-so/nodes@0.21.5 - - @kinobi-so/visitors-core@0.21.5 +- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: + - @codama/errors@0.21.5 + - @codama/nodes@0.21.5 + - @codama/visitors-core@0.21.5 ## 0.21.4 ### Patch Changes - Updated dependencies []: - - @kinobi-so/errors@0.21.4 - - @kinobi-so/nodes@0.21.4 - - @kinobi-so/visitors-core@0.21.4 + - @codama/errors@0.21.4 + - @codama/nodes@0.21.4 + - @codama/visitors-core@0.21.4 ## 0.21.3 ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/kinobi-so/kinobi/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - - @kinobi-so/visitors-core@0.21.3 - - @kinobi-so/errors@0.21.3 - - @kinobi-so/nodes@0.21.3 +- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: + - @codama/visitors-core@0.21.3 + - @codama/errors@0.21.3 + - @codama/nodes@0.21.3 ## 0.21.2 ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/kinobi-so/kinobi/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/kinobi-so/kinobi/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - - @kinobi-so/visitors-core@0.21.2 - - @kinobi-so/errors@0.21.2 - - @kinobi-so/nodes@0.21.2 +- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: + - @codama/visitors-core@0.21.2 + - @codama/errors@0.21.2 + - @codama/nodes@0.21.2 ## 0.21.1 ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/kinobi-so/kinobi/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - - @kinobi-so/visitors-core@0.21.1 - - @kinobi-so/errors@0.21.1 - - @kinobi-so/nodes@0.21.1 +- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: + - @codama/visitors-core@0.21.1 + - @codama/errors@0.21.1 + - @codama/nodes@0.21.1 ## 0.21.0 ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/kinobi-so/kinobi/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - - @kinobi-so/visitors-core@0.21.0 - - @kinobi-so/errors@0.21.0 - - @kinobi-so/nodes@0.21.0 +- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: + - @codama/visitors-core@0.21.0 + - @codama/errors@0.21.0 + - @codama/nodes@0.21.0 ## 0.20.6 ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/kinobi-so/kinobi/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - - @kinobi-so/errors@0.20.6 - - @kinobi-so/nodes@0.20.6 - - @kinobi-so/visitors-core@0.20.6 +- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: + - @codama/errors@0.20.6 + - @codama/nodes@0.20.6 + - @codama/visitors-core@0.20.6 ## 0.20.5 ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/kinobi-so/kinobi/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/kinobi-so/kinobi/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - - @kinobi-so/errors@0.20.5 - - @kinobi-so/nodes@0.20.5 - - @kinobi-so/visitors-core@0.20.5 +- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: + - @codama/errors@0.20.5 + - @codama/nodes@0.20.5 + - @codama/visitors-core@0.20.5 ## 0.20.4 ### Patch Changes -- [#43](https://github.com/kinobi-so/kinobi/pull/43) [`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/kinobi-so/kinobi/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - - @kinobi-so/nodes@0.20.4 - - @kinobi-so/errors@0.20.4 - - @kinobi-so/visitors-core@0.20.4 +- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: + - @codama/nodes@0.20.4 + - @codama/errors@0.20.4 + - @codama/visitors-core@0.20.4 ## 0.20.3 ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/kinobi-so/kinobi/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/kinobi-so/kinobi/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - - @kinobi-so/visitors-core@0.20.3 - - @kinobi-so/errors@0.20.3 - - @kinobi-so/nodes@0.20.3 +- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: + - @codama/visitors-core@0.20.3 + - @codama/errors@0.20.3 + - @codama/nodes@0.20.3 ## 0.20.2 ### Patch Changes -- [`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/kinobi-so/kinobi/commit/964776fe73402c236d334032821013674c3b1a5e)]: - - @kinobi-so/errors@0.20.2 - - @kinobi-so/nodes@0.20.2 - - @kinobi-so/visitors-core@0.20.2 +- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: + - @codama/errors@0.20.2 + - @codama/nodes@0.20.2 + - @codama/visitors-core@0.20.2 ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/kinobi-so/kinobi/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - - @kinobi-so/errors@0.20.1 - - @kinobi-so/nodes@0.20.1 - - @kinobi-so/visitors-core@0.20.1 +- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: + - @codama/errors@0.20.1 + - @codama/nodes@0.20.1 + - @codama/visitors-core@0.20.1 From b866cb484d64faac85c73d48fcce904bf8016576 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 13:38:02 +0100 Subject: [PATCH 12/14] Rename `codama` to `codama-idl` for GitHub org --- .changeset/config.json | 2 +- README.md | 10 +-- packages/errors/CHANGELOG.md | 26 +++---- packages/errors/package.json | 4 +- packages/library/CHANGELOG.md | 26 +++---- packages/library/package.json | 4 +- packages/node-types/CHANGELOG.md | 12 +-- packages/node-types/package.json | 4 +- packages/nodes-from-anchor/CHANGELOG.md | 34 ++++----- packages/nodes-from-anchor/package.json | 4 +- packages/nodes/CHANGELOG.md | 36 ++++----- packages/nodes/docs/AccountNode.md | 2 +- packages/nodes/docs/DefinedTypeNode.md | 2 +- packages/nodes/docs/ErrorNode.md | 2 +- packages/nodes/docs/InstructionAccountNode.md | 2 +- .../nodes/docs/InstructionArgumentNode.md | 2 +- packages/nodes/docs/InstructionNode.md | 2 +- packages/nodes/docs/PdaNode.md | 2 +- packages/nodes/docs/ProgramNode.md | 2 +- packages/nodes/docs/RootNode.md | 2 +- .../nodes/docs/typeNodes/ArrayTypeNode.md | 2 +- .../nodes/docs/typeNodes/NumberTypeNode.md | 6 +- packages/nodes/package.json | 4 +- packages/renderers-core/CHANGELOG.md | 34 ++++----- packages/renderers-core/package.json | 4 +- packages/renderers-js-umi/CHANGELOG.md | 52 ++++++------- packages/renderers-js-umi/package.json | 4 +- .../public/templates/layout.njk | 2 +- packages/renderers-js/CHANGELOG.md | 74 +++++++++---------- packages/renderers-js/package.json | 4 +- .../renderers-js/public/templates/layout.njk | 2 +- packages/renderers-rust/CHANGELOG.md | 66 ++++++++--------- packages/renderers-rust/package.json | 4 +- .../public/templates/layout.njk | 2 +- packages/renderers/CHANGELOG.md | 54 +++++++------- packages/renderers/package.json | 4 +- packages/validators/CHANGELOG.md | 28 +++---- packages/validators/package.json | 4 +- packages/visitors-core/CHANGELOG.md | 40 +++++----- packages/visitors-core/package.json | 4 +- packages/visitors/CHANGELOG.md | 32 ++++---- packages/visitors/package.json | 4 +- 42 files changed, 305 insertions(+), 305 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 81117843c..bde6df2a4 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -2,7 +2,7 @@ "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json", "changelog": [ "@changesets/changelog-github", - { "repo": "codama/codama" } + { "repo": "codama-idl/codama" } ], "commit": false, "fixed": [ diff --git a/README.md b/README.md index 204a4fd19..fee5b6471 100644 --- a/README.md +++ b/README.md @@ -7,22 +7,22 @@ [npm-downloads-image]: https://img.shields.io/npm/dm/codama.svg?style=flat [npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat [npm-url]: https://www.npmjs.com/package/codama -[ci-image]: https://img.shields.io/github/actions/workflow/status/codama/codama/main.yml?logo=GitHub -[ci-url]: https://github.com/codama/codama/actions/workflows/main.yml +[ci-image]: https://img.shields.io/github/actions/workflow/status/codama-idl/codama/main.yml?logo=GitHub +[ci-url]: https://github.com/codama-idl/codama/actions/workflows/main.yml Codama is a tool that describes any Solana program in a powerful standardised format known as the Codama IDL. This IDL can then be used to create a variety of utility such as rendering client code for your programs in various languages/frameworks, generating CLIs and providing more information to explorers. -![Codama header: A small double-sided mind-map with the Codama logo in the middle. On the left, we see the various ways to get a Codama IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama/codama/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) +![Codama header: A small double-sided mind-map with the Codama logo in the middle. On the left, we see the various ways to get a Codama IDL from your Solana programs such as "Anchor Program" and "Shank macros". On the right, we see the various utility tools that are offered for the IDL such as "Rendering client code" or "Rendering documentation".](https://github.com/codama-idl/codama/assets/3642397/11161fb6-1ef4-446d-bf73-ce04484519a0) ## Nodes and visitors The Codama IDL is designed as a tree of nodes starting with the `RootNode` which contains a `ProgramNode` and additional data such as the Codama version used when the IDL was created. Codama provides over 60 different types of nodes that help describe just about any aspect of your Solana programs. [You can read more about the Codama nodes here](./packages/nodes). -![A small example of a Codama IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama/codama/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) +![A small example of a Codama IDL as a tree of nodes. It starts with a RootNode and goes down to ProgramNode, AccountNode, InstructionNode, etc.](https://github.com/codama-idl/codama/assets/3642397/9d53485d-a4f6-459a-b7eb-58faab716bc1) Because everything is designed as a `Node`, we can transform the IDL, aggregate information and output various utility tools using special objects that can traverse node trees known as visitors. [See this documentation to learn more about Codama visitors](./packages/visitors). -![A small example of how a visitor can transform a Codama IDL into another Codama IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama/codama/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) +![A small example of how a visitor can transform a Codama IDL into another Codama IDL. This example illustrates the "deleteNodesVisitor" which recursively removes NumberTypeNodes from a tree of nested TypleTypeNodes.](https://github.com/codama-idl/codama/assets/3642397/f54e83d1-eade-4674-80dc-7ddc360f5f66) ## From program to Codama diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index 5a0592bf7..b4c8d2c2e 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/CHANGELOG.md @@ -4,20 +4,20 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` ### Patch Changes -- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama-idl/codama/pull/180) [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/node-types@0.22.0 ## 0.21.5 ### Patch Changes -- [#204](https://github.com/codama/codama/pull/204) [`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8) Thanks [@aspnxdd](https://github.com/aspnxdd)! - Fix `codama_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE` instructionName string to actually print the instructionName. +- [#204](https://github.com/codama-idl/codama/pull/204) [`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8) Thanks [@aspnxdd](https://github.com/aspnxdd)! - Fix `codama_ERROR__VISITORS__CANNOT_USE_OPTIONAL_ACCOUNT_AS_PDA_SEED_VALUE` instructionName string to actually print the instructionName. - Updated dependencies []: - @codama/node-types@0.21.5 @@ -54,20 +54,20 @@ ### Minor Changes -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/node-types@0.21.0 ## 0.20.6 ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama - Updated dependencies []: - @codama/node-types@0.20.6 @@ -76,7 +76,7 @@ ### Patch Changes -- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama-idl/codama/pull/42) [`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. - Updated dependencies []: - @codama/node-types@0.20.5 @@ -85,14 +85,14 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/node-types@0.20.4 ## 0.20.3 ### Patch Changes -- [#40](https://github.com/codama/codama/pull/40) [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c) Thanks [@febo](https://github.com/febo)! - Fix typo in error message +- [#40](https://github.com/codama-idl/codama/pull/40) [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c) Thanks [@febo](https://github.com/febo)! - Fix typo in error message - Updated dependencies []: - @codama/node-types@0.20.3 @@ -101,16 +101,16 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/node-types@0.20.2 ## 0.20.1 ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers - Updated dependencies []: - @codama/node-types@0.20.1 diff --git a/packages/errors/package.json b/packages/errors/package.json index 406b1a20c..0e6be0962 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -60,10 +60,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/library/CHANGELOG.md b/packages/library/CHANGELOG.md index 0dcebc390..e52233312 100644 --- a/packages/library/CHANGELOG.md +++ b/packages/library/CHANGELOG.md @@ -4,7 +4,7 @@ ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/errors@0.22.0 - @codama/nodes@0.22.0 - @codama/validators@0.22.0 @@ -14,7 +14,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/validators@0.21.5 @@ -24,7 +24,7 @@ ### Patch Changes -- [#181](https://github.com/codama/codama/pull/181) [`28f3d38`](https://github.com/codama/codama/commit/28f3d381f570859cbea1c72b7e352ad3e72db37f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix TS bug on `accept` and `update` codama function +- [#181](https://github.com/codama-idl/codama/pull/181) [`28f3d38`](https://github.com/codama-idl/codama/commit/28f3d381f570859cbea1c72b7e352ad3e72db37f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix TS bug on `accept` and `update` codama function - Updated dependencies []: - @codama/errors@0.21.4 @@ -66,7 +66,7 @@ ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/errors@0.21.0 - @codama/nodes@0.21.0 - @codama/validators@0.21.0 @@ -76,9 +76,9 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 - @codama/validators@0.20.6 @@ -88,7 +88,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/validators@0.20.5 @@ -98,7 +98,7 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/visitors@0.20.4 - @codama/nodes@0.20.4 - @codama/errors@0.20.4 @@ -108,7 +108,7 @@ ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/errors@0.20.3 - @codama/validators@0.20.3 - @codama/visitors@0.20.3 @@ -118,9 +118,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/validators@0.20.2 @@ -130,9 +130,9 @@ ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 - @codama/validators@0.20.1 diff --git a/packages/library/package.json b/packages/library/package.json index 315cf75fd..554fb4c2c 100644 --- a/packages/library/package.json +++ b/packages/library/package.json @@ -61,10 +61,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/node-types/CHANGELOG.md b/packages/node-types/CHANGELOG.md index 71131a0ae..4e68bb71d 100644 --- a/packages/node-types/CHANGELOG.md +++ b/packages/node-types/CHANGELOG.md @@ -4,13 +4,13 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama-idl/codama/pull/180) [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ## 0.21.5 @@ -26,7 +26,7 @@ ### Minor Changes -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. @@ -38,7 +38,7 @@ ### Patch Changes -- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama-idl/codama/pull/43) [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition ## 0.20.3 @@ -46,6 +46,6 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies ## 0.20.1 diff --git a/packages/node-types/package.json b/packages/node-types/package.json index ac273963a..a3e40bc81 100644 --- a/packages/node-types/package.json +++ b/packages/node-types/package.json @@ -47,10 +47,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes-from-anchor/CHANGELOG.md b/packages/nodes-from-anchor/CHANGELOG.md index b09c8f7b6..2d444a8fc 100644 --- a/packages/nodes-from-anchor/CHANGELOG.md +++ b/packages/nodes-from-anchor/CHANGELOG.md @@ -4,13 +4,13 @@ ### Minor Changes -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/errors@0.22.0 - @codama/nodes@0.22.0 - @codama/visitors@0.22.0 @@ -19,7 +19,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/visitors@0.21.5 @@ -37,7 +37,7 @@ ### Patch Changes -- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama-idl/codama/pull/123) [`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier - Updated dependencies []: - @codama/visitors@0.21.3 @@ -48,7 +48,7 @@ ### Minor Changes -- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes @@ -70,7 +70,7 @@ ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/errors@0.21.0 - @codama/nodes@0.21.0 - @codama/visitors@0.21.0 @@ -79,9 +79,9 @@ ### Patch Changes -- [#109](https://github.com/codama/codama/pull/109) [`4979b94`](https://github.com/codama/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511) Thanks [@kespinola](https://github.com/kespinola)! - Fix argument node lookup for anchor v01 instruction pda seeds. +- [#109](https://github.com/codama-idl/codama/pull/109) [`4979b94`](https://github.com/codama-idl/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511) Thanks [@kespinola](https://github.com/kespinola)! - Fix argument node lookup for anchor v01 instruction pda seeds. -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 - @codama/visitors@0.20.6 @@ -90,9 +90,9 @@ ### Patch Changes -- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama-idl/codama/pull/42) [`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors@0.20.5 @@ -101,7 +101,7 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/visitors@0.20.4 - @codama/nodes@0.20.4 - @codama/errors@0.20.4 @@ -110,7 +110,7 @@ ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/errors@0.20.3 - @codama/visitors@0.20.3 - @codama/nodes@0.20.3 @@ -119,15 +119,15 @@ ### Patch Changes -- [#37](https://github.com/codama/codama/pull/37) [`c5bc916`](https://github.com/codama/codama/commit/c5bc91609b5cb16caec13214bbe7a39e74e8d52c) Thanks [@kespinola](https://github.com/kespinola)! - Remove Anchor V01 accounts from defined types to resolve duplicate exports in generated clients +- [#37](https://github.com/codama-idl/codama/pull/37) [`c5bc916`](https://github.com/codama-idl/codama/commit/c5bc91609b5cb16caec13214bbe7a39e74e8d52c) Thanks [@kespinola](https://github.com/kespinola)! - Remove Anchor V01 accounts from defined types to resolve duplicate exports in generated clients ## 0.20.3 ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/visitors@0.20.2 @@ -136,13 +136,13 @@ ### Patch Changes -- [#30](https://github.com/codama/codama/pull/30) [`d43493e`](https://github.com/codama/codama/commit/d43493e0e42c4b1064c174050a91e71c4d28e252) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix type definition of Anchor discriminators +- [#30](https://github.com/codama-idl/codama/pull/30) [`d43493e`](https://github.com/codama-idl/codama/commit/d43493e0e42c4b1064c174050a91e71c4d28e252) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix type definition of Anchor discriminators ## 0.20.1 ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 - @codama/visitors@0.20.1 diff --git a/packages/nodes-from-anchor/package.json b/packages/nodes-from-anchor/package.json index b347aebf6..64c6365ae 100644 --- a/packages/nodes-from-anchor/package.json +++ b/packages/nodes-from-anchor/package.json @@ -57,10 +57,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/nodes/CHANGELOG.md b/packages/nodes/CHANGELOG.md index 0a58b278c..064a05a24 100644 --- a/packages/nodes/CHANGELOG.md +++ b/packages/nodes/CHANGELOG.md @@ -4,17 +4,17 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama-idl/codama/pull/180) [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/node-types@0.22.0 - @codama/errors@0.22.0 @@ -22,7 +22,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/node-types@0.21.5 @@ -62,13 +62,13 @@ ### Minor Changes -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/node-types@0.21.0 - @codama/errors@0.21.0 @@ -76,9 +76,9 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/node-types@0.20.6 @@ -86,9 +86,9 @@ ### Patch Changes -- [#42](https://github.com/codama/codama/pull/42) [`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. +- [#42](https://github.com/codama-idl/codama/pull/42) [`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8) Thanks [@kespinola](https://github.com/kespinola)! - set anchor account seed definitions on instructions as defaultValue for the associated instruction account. Removes hoisting PDAs to the program node for the time being. -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - @codama/errors@0.20.5 - @codama/node-types@0.20.5 @@ -96,9 +96,9 @@ ### Patch Changes -- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama-idl/codama/pull/43) [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/node-types@0.20.4 - @codama/errors@0.20.4 @@ -106,7 +106,7 @@ ### Patch Changes -- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/errors@0.20.3 - @codama/node-types@0.20.3 @@ -114,9 +114,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/node-types@0.20.2 @@ -124,8 +124,8 @@ ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/node-types@0.20.1 diff --git a/packages/nodes/docs/AccountNode.md b/packages/nodes/docs/AccountNode.md index be753aa28..1e9eaeb2f 100644 --- a/packages/nodes/docs/AccountNode.md +++ b/packages/nodes/docs/AccountNode.md @@ -2,7 +2,7 @@ This node defines an on-chain account. It is characterized by its name, data structure, and optional attributes such as PDA definition and account discriminators. -![Diagram](https://github.com/codama/codama/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/77974dad-212e-49b1-8e41-5d466c273a02) ## Attributes diff --git a/packages/nodes/docs/DefinedTypeNode.md b/packages/nodes/docs/DefinedTypeNode.md index becf021f2..427e82655 100644 --- a/packages/nodes/docs/DefinedTypeNode.md +++ b/packages/nodes/docs/DefinedTypeNode.md @@ -2,7 +2,7 @@ This node defines a named type that can be reused in other types using a [`DefinedTypeLinkNode`](./linkNodes/DefinedTypeLinkNode.md). -![Diagram](https://github.com/codama/codama/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/6049cf77-9a70-4915-8276-dd571d2f8828) ## Attributes diff --git a/packages/nodes/docs/ErrorNode.md b/packages/nodes/docs/ErrorNode.md index 5f9d73709..b08a23259 100644 --- a/packages/nodes/docs/ErrorNode.md +++ b/packages/nodes/docs/ErrorNode.md @@ -2,7 +2,7 @@ This node defines an error that can be returned by a program. -![Diagram](https://github.com/codama/codama/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/0bde98ea-0327-404b-bf38-137d105826b0) ## Attributes diff --git a/packages/nodes/docs/InstructionAccountNode.md b/packages/nodes/docs/InstructionAccountNode.md index d15f4de2a..ca8ede472 100644 --- a/packages/nodes/docs/InstructionAccountNode.md +++ b/packages/nodes/docs/InstructionAccountNode.md @@ -2,7 +2,7 @@ This node defines an account used by an instruction. It is characterized by its name and various requirements such as whether it needs to be writable or a signer. -![Diagram](https://github.com/codama/codama/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/4656a08b-2f89-49c2-b428-5378cb1a0b9e) ## Attributes diff --git a/packages/nodes/docs/InstructionArgumentNode.md b/packages/nodes/docs/InstructionArgumentNode.md index 3fb89ff69..1720b6d79 100644 --- a/packages/nodes/docs/InstructionArgumentNode.md +++ b/packages/nodes/docs/InstructionArgumentNode.md @@ -2,7 +2,7 @@ This node defines an argument that is passed to an instruction. When all arguments are combined and serialized next to each other, they form the instruction's data. -![Diagram](https://github.com/codama/codama/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/7e2def82-949a-4663-bdc3-ac599d39d2d2) ## Attributes diff --git a/packages/nodes/docs/InstructionNode.md b/packages/nodes/docs/InstructionNode.md index d67db5d36..5a82028f3 100644 --- a/packages/nodes/docs/InstructionNode.md +++ b/packages/nodes/docs/InstructionNode.md @@ -2,7 +2,7 @@ This node represents an instruction in a program. -![Diagram](https://github.com/codama/codama/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/0d8edced-cfa4-4500-b80c-ebc56181a338) ## Attributes diff --git a/packages/nodes/docs/PdaNode.md b/packages/nodes/docs/PdaNode.md index 5e04cf1a3..7f8044060 100644 --- a/packages/nodes/docs/PdaNode.md +++ b/packages/nodes/docs/PdaNode.md @@ -2,7 +2,7 @@ This node provides a definition for a specific Program-Derived Address (PDA). It is characterized by a name and a list of seeds that can either be constant or variable. -![Diagram](https://github.com/codama/codama/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/4f7c9718-1ffa-4f2c-aa45-71b3ce204219) ## Attributes diff --git a/packages/nodes/docs/ProgramNode.md b/packages/nodes/docs/ProgramNode.md index 971eddb12..1e4f33c13 100644 --- a/packages/nodes/docs/ProgramNode.md +++ b/packages/nodes/docs/ProgramNode.md @@ -2,7 +2,7 @@ This node represents an entire program deployed on-chain. It defines all elements of a program such as accounts, instructions, PDAs, errors, etc. -![Diagram](https://github.com/codama/codama/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/37ec38ea-66df-4c08-81c3-822ef4388580) ## Attributes diff --git a/packages/nodes/docs/RootNode.md b/packages/nodes/docs/RootNode.md index 274eb73a7..3d8394d44 100644 --- a/packages/nodes/docs/RootNode.md +++ b/packages/nodes/docs/RootNode.md @@ -2,7 +2,7 @@ This node represents the starting point of the Codama IDL. It contains a single `ProgramNode` which the Codama IDL is describing as well as any additional programs that may be referenced by the main program. This node is also responsible for setting the standard and version of the IDL. -![Diagram](https://github.com/codama/codama/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/96c43c75-5925-4b6b-a1e0-8b8c61317cfe) ## Attributes diff --git a/packages/nodes/docs/typeNodes/ArrayTypeNode.md b/packages/nodes/docs/typeNodes/ArrayTypeNode.md index e9b31ac6f..97d5def1c 100644 --- a/packages/nodes/docs/typeNodes/ArrayTypeNode.md +++ b/packages/nodes/docs/typeNodes/ArrayTypeNode.md @@ -31,7 +31,7 @@ const node = arrayTypeNode(publicKeyTypeNode(), prefixedCountNode(numberTypeNode ### u32 prefixed array of u8 numbers -![Diagram](https://github.com/codama/codama/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/1bbd3ecb-e06a-42fa-94a7-74c9302286e6) ```ts arrayTypeNode(numberTypeNode('u8'), prefixedCountNode(numberTypeNode('u32'))); diff --git a/packages/nodes/docs/typeNodes/NumberTypeNode.md b/packages/nodes/docs/typeNodes/NumberTypeNode.md index 381c13965..8cb005a9a 100644 --- a/packages/nodes/docs/typeNodes/NumberTypeNode.md +++ b/packages/nodes/docs/typeNodes/NumberTypeNode.md @@ -103,7 +103,7 @@ isDecimal(numberTypeNode('f32')); // true ### Encoding `u32` integers -![Diagram](https://github.com/codama/codama/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/4bb1ae23-c69f-4c9f-a7ec-8f971d061667) ```ts numberTypeNode('u32'); @@ -115,7 +115,7 @@ numberTypeNode('u32'); ### Encoding `f32` big-endian decimal numbers -![Diagram](https://github.com/codama/codama/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/d9cbfd3c-b8a2-4c13-a8a8-a11e7ed5d422) ```ts numberTypeNode('f32', 'be'); @@ -127,7 +127,7 @@ numberTypeNode('f32', 'be'); ### Encoding `shortU16` integers -![Diagram](https://github.com/codama/codama/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) +![Diagram](https://github.com/codama-idl/codama/assets/3642397/73e12166-cdaa-4fca-ae2a-67937f8b130e) ```ts numberTypeNode('shortU16'); diff --git a/packages/nodes/package.json b/packages/nodes/package.json index cc00f0c77..c97265be0 100644 --- a/packages/nodes/package.json +++ b/packages/nodes/package.json @@ -55,10 +55,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-core/CHANGELOG.md b/packages/renderers-core/CHANGELOG.md index 678454706..57e41aa6e 100644 --- a/packages/renderers-core/CHANGELOG.md +++ b/packages/renderers-core/CHANGELOG.md @@ -4,13 +4,13 @@ ### Minor Changes -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -19,7 +19,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/visitors-core@0.21.5 @@ -37,7 +37,7 @@ ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/visitors-core@0.21.3 - @codama/errors@0.21.3 - @codama/nodes@0.21.3 @@ -46,11 +46,11 @@ ### Minor Changes -- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - @codama/visitors-core@0.21.2 - @codama/errors@0.21.2 - @codama/nodes@0.21.2 @@ -59,7 +59,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/errors@0.21.1 - @codama/nodes@0.21.1 @@ -68,7 +68,7 @@ ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -77,9 +77,9 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 - @codama/visitors-core@0.20.6 @@ -88,7 +88,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors-core@0.20.5 @@ -97,7 +97,7 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/visitors-core@0.20.4 @@ -106,7 +106,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/nodes@0.20.3 @@ -115,9 +115,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/visitors-core@0.20.2 @@ -126,9 +126,9 @@ ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 - @codama/visitors-core@0.20.1 diff --git a/packages/renderers-core/package.json b/packages/renderers-core/package.json index b9a28e1f2..e07956f1a 100644 --- a/packages/renderers-core/package.json +++ b/packages/renderers-core/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js-umi/CHANGELOG.md b/packages/renderers-js-umi/CHANGELOG.md index 3fb229f8f..a937bbb34 100644 --- a/packages/renderers-js-umi/CHANGELOG.md +++ b/packages/renderers-js-umi/CHANGELOG.md @@ -4,15 +4,15 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -23,7 +23,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/renderers-core@0.21.3 @@ -45,9 +45,9 @@ ### Patch Changes -- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama-idl/codama/pull/123) [`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/visitors-core@0.21.3 - @codama/renderers-core@0.21.1 - @codama/validators@0.21.3 @@ -58,7 +58,7 @@ ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - @codama/visitors-core@0.21.2 - @codama/renderers-core@0.21.0 - @codama/validators@0.21.2 @@ -69,7 +69,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/renderers-core@0.20.8 - @codama/validators@0.21.1 @@ -80,27 +80,27 @@ ### Patch Changes -- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama-idl/codama/pull/160) [`87bab8a`](https://github.com/codama-idl/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.1 ### Patch Changes -- [#156](https://github.com/codama/codama/pull/156) [`38d6de8`](https://github.com/codama/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix missing eddsa interface for inlined PDA used as default values +- [#156](https://github.com/codama-idl/codama/pull/156) [`38d6de8`](https://github.com/codama-idl/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix missing eddsa interface for inlined PDA used as default values ## 0.21.0 ### Minor Changes -- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama-idl/codama/pull/110) [`2d45383`](https://github.com/codama-idl/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -111,9 +111,9 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/renderers-core@0.20.6 - @codama/errors@0.20.6 - @codama/nodes@0.20.6 @@ -124,7 +124,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors-core@0.20.5 @@ -135,15 +135,15 @@ ### Patch Changes -- [#88](https://github.com/codama/codama/pull/88) [`1d4223c`](https://github.com/codama/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix constant PDA seed rendering in renderers-js-umi +- [#88](https://github.com/codama-idl/codama/pull/88) [`1d4223c`](https://github.com/codama-idl/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix constant PDA seed rendering in renderers-js-umi ## 0.20.5 ### Patch Changes -- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama-idl/codama/pull/43) [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/renderers-core@0.20.4 @@ -154,7 +154,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/renderers-core@0.20.3 @@ -165,9 +165,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/renderers-core@0.20.2 @@ -178,17 +178,17 @@ ### Patch Changes -- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama-idl/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama-idl/codama/pull/24) [`b9cd6b2`](https://github.com/codama-idl/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/renderers-core@0.20.1 - @codama/errors@0.20.1 - @codama/nodes@0.20.1 diff --git a/packages/renderers-js-umi/package.json b/packages/renderers-js-umi/package.json index 8c5872f37..827621899 100644 --- a/packages/renderers-js-umi/package.json +++ b/packages/renderers-js-umi/package.json @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js-umi/public/templates/layout.njk b/packages/renderers-js-umi/public/templates/layout.njk index 0003eae19..dc997ef6f 100644 --- a/packages/renderers-js-umi/public/templates/layout.njk +++ b/packages/renderers-js-umi/public/templates/layout.njk @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ {% block main %}{% endblock %} diff --git a/packages/renderers-js/CHANGELOG.md b/packages/renderers-js/CHANGELOG.md index 41ee1253e..6f2c69c21 100644 --- a/packages/renderers-js/CHANGELOG.md +++ b/packages/renderers-js/CHANGELOG.md @@ -4,17 +4,17 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- [#224](https://github.com/codama/codama/pull/224) [`345a145`](https://github.com/codama/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders +- [#224](https://github.com/codama-idl/codama/pull/224) [`345a145`](https://github.com/codama-idl/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -25,9 +25,9 @@ ### Patch Changes -- [`4f6c8a9`](https://github.com/codama/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders +- [`4f6c8a9`](https://github.com/codama-idl/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Add an optional programAddress override to instruction builders -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/nodes-from-anchor@0.21.3 @@ -38,7 +38,7 @@ ### Patch Changes -- [#200](https://github.com/codama/codama/pull/200) [`6639091`](https://github.com/codama/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix a bug that reuses the same `ImportMap` within different code fragments +- [#200](https://github.com/codama-idl/codama/pull/200) [`6639091`](https://github.com/codama-idl/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix a bug that reuses the same `ImportMap` within different code fragments ## 0.21.7 @@ -55,9 +55,9 @@ ### Patch Changes -- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama-idl/codama/pull/123) [`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/nodes-from-anchor@0.21.1 - @codama/visitors-core@0.21.3 - @codama/renderers-core@0.21.1 @@ -68,7 +68,7 @@ ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - @codama/visitors-core@0.21.2 - @codama/nodes-from-anchor@0.21.0 - @codama/renderers-core@0.21.0 @@ -79,9 +79,9 @@ ### Patch Changes -- [#168](https://github.com/codama/codama/pull/168) [`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Export discriminator constants for instructions and accounts +- [#168](https://github.com/codama-idl/codama/pull/168) [`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Export discriminator constants for instructions and accounts -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/renderers-core@0.20.8 - @codama/nodes-from-anchor@0.20.10 @@ -92,35 +92,35 @@ ### Patch Changes -- [#161](https://github.com/codama/codama/pull/161) [`524687c`](https://github.com/codama/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use lamports type/encoder/decoder for SolAmountTypeNode +- [#161](https://github.com/codama-idl/codama/pull/161) [`524687c`](https://github.com/codama-idl/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use lamports type/encoder/decoder for SolAmountTypeNode -- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama-idl/codama/pull/160) [`87bab8a`](https://github.com/codama-idl/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.2 ### Patch Changes -- [#138](https://github.com/codama/codama/pull/138) [`af8ac37`](https://github.com/codama/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use ReadonlyUint8Array for identifying accounts/instructions by data +- [#138](https://github.com/codama-idl/codama/pull/138) [`af8ac37`](https://github.com/codama-idl/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Use ReadonlyUint8Array for identifying accounts/instructions by data ## 0.21.1 ### Patch Changes -- [#127](https://github.com/codama/codama/pull/127) [`62545be`](https://github.com/codama/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add isProgramError helper +- [#127](https://github.com/codama-idl/codama/pull/127) [`62545be`](https://github.com/codama-idl/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add isProgramError helper ## 0.21.0 ### Minor Changes -- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama-idl/codama/pull/110) [`2d45383`](https://github.com/codama-idl/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -131,11 +131,11 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- [#103](https://github.com/codama/codama/pull/103) [`93942cc`](https://github.com/codama/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in generated code +- [#103](https://github.com/codama-idl/codama/pull/103) [`93942cc`](https://github.com/codama-idl/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in generated code -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`4979b94`](https://github.com/codama/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`4979b94`](https://github.com/codama-idl/codama/commit/4979b94720465a58538ee61bb1a4a23fd5471511)]: - @codama/renderers-core@0.20.6 - @codama/errors@0.20.6 - @codama/nodes@0.20.6 @@ -146,7 +146,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/nodes-from-anchor@0.20.7 - @codama/errors@0.20.5 - @codama/nodes@0.20.5 @@ -157,29 +157,29 @@ ### Patch Changes -- [#53](https://github.com/codama/codama/pull/53) [`e3e4099`](https://github.com/codama/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010) Thanks [@febo](https://github.com/febo)! - Filter out type variant on imports +- [#53](https://github.com/codama-idl/codama/pull/53) [`e3e4099`](https://github.com/codama-idl/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010) Thanks [@febo](https://github.com/febo)! - Filter out type variant on imports ## 0.20.8 ### Patch Changes -- [#52](https://github.com/codama/codama/pull/52) [`baeaf14`](https://github.com/codama/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1) Thanks [@lithdew](https://github.com/lithdew)! - Fix rendering PDA helper functions with a default programId. +- [#52](https://github.com/codama-idl/codama/pull/52) [`baeaf14`](https://github.com/codama-idl/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1) Thanks [@lithdew](https://github.com/lithdew)! - Fix rendering PDA helper functions with a default programId. -- [#48](https://github.com/codama/codama/pull/48) [`0771b9d`](https://github.com/codama/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc) Thanks [@lithdew](https://github.com/lithdew)! - Have generated TypeScript code for renderers-js support verbatimModuleSyntax +- [#48](https://github.com/codama-idl/codama/pull/48) [`0771b9d`](https://github.com/codama-idl/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc) Thanks [@lithdew](https://github.com/lithdew)! - Have generated TypeScript code for renderers-js support verbatimModuleSyntax ## 0.20.7 ### Patch Changes -- [#46](https://github.com/codama/codama/pull/46) [`bcd5eae`](https://github.com/codama/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions on JS renderer again +- [#46](https://github.com/codama-idl/codama/pull/46) [`bcd5eae`](https://github.com/codama-idl/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions on JS renderer again ## 0.20.6 ### Patch Changes -- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama-idl/codama/pull/43) [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/renderers-core@0.20.4 @@ -189,7 +189,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/renderers-core@0.20.3 @@ -199,9 +199,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/renderers-core@0.20.2 @@ -211,23 +211,23 @@ ### Patch Changes -- [#29](https://github.com/codama/codama/pull/29) [`5794385`](https://github.com/codama/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions +- [#29](https://github.com/codama-idl/codama/pull/29) [`5794385`](https://github.com/codama-idl/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix unused args variable on sync instruction functions ## 0.20.2 ### Patch Changes -- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama-idl/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama-idl/codama/pull/24) [`b9cd6b2`](https://github.com/codama-idl/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/renderers-core@0.20.1 - @codama/errors@0.20.1 - @codama/nodes@0.20.1 diff --git a/packages/renderers-js/package.json b/packages/renderers-js/package.json index bc5beb8ef..f81ea2484 100644 --- a/packages/renderers-js/package.json +++ b/packages/renderers-js/package.json @@ -58,10 +58,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-js/public/templates/layout.njk b/packages/renderers-js/public/templates/layout.njk index 0003eae19..dc997ef6f 100644 --- a/packages/renderers-js/public/templates/layout.njk +++ b/packages/renderers-js/public/templates/layout.njk @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ {% block main %}{% endblock %} diff --git a/packages/renderers-rust/CHANGELOG.md b/packages/renderers-rust/CHANGELOG.md index 14969d89d..7912eb5e1 100644 --- a/packages/renderers-rust/CHANGELOG.md +++ b/packages/renderers-rust/CHANGELOG.md @@ -4,15 +4,15 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -22,13 +22,13 @@ ### Patch Changes -- [#231](https://github.com/codama/codama/pull/231) [`3c18cee`](https://github.com/codama/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2) Thanks [@aoikurokawa](https://github.com/aoikurokawa)! - Fix typo in generated comment +- [#231](https://github.com/codama-idl/codama/pull/231) [`3c18cee`](https://github.com/codama-idl/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2) Thanks [@aoikurokawa](https://github.com/aoikurokawa)! - Fix typo in generated comment ## 0.21.7 ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/renderers-core@0.21.3 @@ -48,7 +48,7 @@ ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/visitors-core@0.21.3 - @codama/renderers-core@0.21.1 - @codama/errors@0.21.3 @@ -58,7 +58,7 @@ ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2), [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480)]: - @codama/visitors-core@0.21.2 - @codama/renderers-core@0.21.0 - @codama/errors@0.21.2 @@ -68,7 +68,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/renderers-core@0.20.8 - @codama/errors@0.21.1 @@ -78,29 +78,29 @@ ### Patch Changes -- [#160](https://github.com/codama/codama/pull/160) [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc +- [#160](https://github.com/codama-idl/codama/pull/160) [`87bab8a`](https://github.com/codama-idl/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77) Thanks [@mcintyre94](https://github.com/mcintyre94)! - Bump to web3js rc ## 0.21.1 ### Patch Changes -- [#152](https://github.com/codama/codama/pull/152) [`33cc3b7`](https://github.com/codama/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Support type aliases from `DefinedTypeNodes` +- [#152](https://github.com/codama-idl/codama/pull/152) [`33cc3b7`](https://github.com/codama-idl/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Support type aliases from `DefinedTypeNodes` -- [#144](https://github.com/codama/codama/pull/144) [`dc04203`](https://github.com/codama/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add support for ShortU16 and ShortVec +- [#144](https://github.com/codama-idl/codama/pull/144) [`dc04203`](https://github.com/codama-idl/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add support for ShortU16 and ShortVec ## 0.21.0 ### Minor Changes -- [#110](https://github.com/codama/codama/pull/110) [`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js +- [#110](https://github.com/codama-idl/codama/pull/110) [`2d45383`](https://github.com/codama-idl/codama/commit/2d453830621047da2a18001ab427db9b603ad025) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderers to tp4 of web3.js -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -110,9 +110,9 @@ ### Patch Changes -- [#102](https://github.com/codama/codama/pull/102) [`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama +- [#102](https://github.com/codama-idl/codama/pull/102) [`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Replace \_\_DEV\_\_ with NODE_ENV is not production in codama -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/renderers-core@0.20.6 - @codama/errors@0.20.6 - @codama/nodes@0.20.6 @@ -122,7 +122,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors-core@0.20.5 @@ -132,27 +132,27 @@ ### Patch Changes -- [#56](https://github.com/codama/codama/pull/56) [`cde409c`](https://github.com/codama/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4) Thanks [@buffalojoec](https://github.com/buffalojoec)! - Rust Renderer: Add toolchain arg to formatter +- [#56](https://github.com/codama-idl/codama/pull/56) [`cde409c`](https://github.com/codama-idl/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4) Thanks [@buffalojoec](https://github.com/buffalojoec)! - Rust Renderer: Add toolchain arg to formatter ## 0.20.9 ### Patch Changes -- [#54](https://github.com/codama/codama/pull/54) [`5b8186f`](https://github.com/codama/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3) Thanks [@febo](https://github.com/febo)! - Add support to Anchor idl build for account types +- [#54](https://github.com/codama-idl/codama/pull/54) [`5b8186f`](https://github.com/codama-idl/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3) Thanks [@febo](https://github.com/febo)! - Add support to Anchor idl build for account types ## 0.20.8 ### Patch Changes -- [#50](https://github.com/codama/codama/pull/50) [`6a8c6c3`](https://github.com/codama/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010) Thanks [@febo](https://github.com/febo)! - Add anchor traits impl for accounts +- [#50](https://github.com/codama-idl/codama/pull/50) [`6a8c6c3`](https://github.com/codama-idl/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010) Thanks [@febo](https://github.com/febo)! - Add anchor traits impl for accounts ## 0.20.7 ### Patch Changes -- [#45](https://github.com/codama/codama/pull/45) [`378f007`](https://github.com/codama/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485) Thanks [@febo](https://github.com/febo)! - Add copy derive to scalar enums in Rust renderer +- [#45](https://github.com/codama-idl/codama/pull/45) [`378f007`](https://github.com/codama-idl/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485) Thanks [@febo](https://github.com/febo)! - Add copy derive to scalar enums in Rust renderer -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/renderers-core@0.20.4 @@ -162,7 +162,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/renderers-core@0.20.3 @@ -172,9 +172,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/renderers-core@0.20.2 @@ -184,33 +184,33 @@ ### Patch Changes -- [#27](https://github.com/codama/codama/pull/27) [`46bfc2d`](https://github.com/codama/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf) Thanks [@samuelvanderwaal](https://github.com/samuelvanderwaal)! - Make rust docs codama link clickable +- [#27](https://github.com/codama-idl/codama/pull/27) [`46bfc2d`](https://github.com/codama-idl/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf) Thanks [@samuelvanderwaal](https://github.com/samuelvanderwaal)! - Make rust docs codama link clickable -- [#32](https://github.com/codama/codama/pull/32) [`3645d92`](https://github.com/codama/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754) Thanks [@febo](https://github.com/febo)! - Add default impl for instruction data struct in Rust renderer +- [#32](https://github.com/codama-idl/codama/pull/32) [`3645d92`](https://github.com/codama-idl/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754) Thanks [@febo](https://github.com/febo)! - Add default impl for instruction data struct in Rust renderer -- [#31](https://github.com/codama/codama/pull/31) [`e0ea30c`](https://github.com/codama/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2) Thanks [@febo](https://github.com/febo)! - Render error codes on Rust renderer +- [#31](https://github.com/codama-idl/codama/pull/31) [`e0ea30c`](https://github.com/codama-idl/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2) Thanks [@febo](https://github.com/febo)! - Render error codes on Rust renderer ## 0.20.3 ### Patch Changes -- [#25](https://github.com/codama/codama/pull/25) [`2382631`](https://github.com/codama/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix generated PDA prefix +- [#25](https://github.com/codama-idl/codama/pull/25) [`2382631`](https://github.com/codama-idl/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix generated PDA prefix ## 0.20.2 ### Patch Changes -- [`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm +- [`2857238`](https://github.com/codama-idl/codama/commit/28572383c1f6f6968df88be61d49b41059475d94) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Update renderer headers and pnpm -- [#24](https://github.com/codama/codama/pull/24) [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function +- [#24](https://github.com/codama-idl/codama/pull/24) [`b9cd6b2`](https://github.com/codama-idl/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix "object is not extensible" in PDA helper function ## 0.20.1 ### Patch Changes -- [#21](https://github.com/codama/codama/pull/21) [`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers +- [#21](https://github.com/codama-idl/codama/pull/21) [`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix ESM and CJS exports on renderers -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/renderers-core@0.20.1 - @codama/errors@0.20.1 - @codama/nodes@0.20.1 diff --git a/packages/renderers-rust/package.json b/packages/renderers-rust/package.json index 9fe6dfedb..487252a0f 100644 --- a/packages/renderers-rust/package.json +++ b/packages/renderers-rust/package.json @@ -55,10 +55,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/renderers-rust/public/templates/layout.njk b/packages/renderers-rust/public/templates/layout.njk index 0460c3025..30674b24d 100644 --- a/packages/renderers-rust/public/templates/layout.njk +++ b/packages/renderers-rust/public/templates/layout.njk @@ -2,6 +2,6 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! {% block main %}{% endblock %} diff --git a/packages/renderers/CHANGELOG.md b/packages/renderers/CHANGELOG.md index d4a085aa6..444594d88 100644 --- a/packages/renderers/CHANGELOG.md +++ b/packages/renderers/CHANGELOG.md @@ -4,13 +4,13 @@ ### Minor Changes -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`345a145`](https://github.com/codama/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`345a145`](https://github.com/codama-idl/codama/commit/345a145bb9a9b181c8db9435a46d35dacbfced41), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540)]: - @codama/renderers-js-umi@0.22.0 - @codama/renderers-rust@0.22.0 - @codama/renderers-js@0.22.0 @@ -19,14 +19,14 @@ ### Patch Changes -- Updated dependencies [[`3c18cee`](https://github.com/codama/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2)]: +- Updated dependencies [[`3c18cee`](https://github.com/codama-idl/codama/commit/3c18ceeffb97922db500138af85d20fce00f80b2)]: - @codama/renderers-rust@0.21.8 ## 0.21.4 ### Patch Changes -- Updated dependencies [[`4f6c8a9`](https://github.com/codama/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981)]: +- Updated dependencies [[`4f6c8a9`](https://github.com/codama-idl/codama/commit/4f6c8a971e70010d246b2691ccde847f0162b981)]: - @codama/renderers-js@0.21.9 - @codama/renderers-js-umi@0.21.7 - @codama/renderers-rust@0.21.7 @@ -35,7 +35,7 @@ ### Patch Changes -- Updated dependencies [[`6639091`](https://github.com/codama/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f)]: +- Updated dependencies [[`6639091`](https://github.com/codama-idl/codama/commit/6639091714ae3b5c4330f0b1f43816fea373d55f)]: - @codama/renderers-js@0.21.8 ## 0.21.2 @@ -51,7 +51,7 @@ ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/renderers-js-umi@0.21.5 - @codama/renderers-js@0.21.6 - @codama/renderers-rust@0.21.5 @@ -60,7 +60,7 @@ ### Minor Changes -- [`f13abb0`](https://github.com/codama/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range +- [`f13abb0`](https://github.com/codama-idl/codama/commit/f13abb01fc4a6fc76fe4566e3f667aab92b43480) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Bring some packages to 0.21 range ### Patch Changes @@ -73,7 +73,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/renderers-js@0.21.4 - @codama/renderers-js-umi@0.21.3 - @codama/renderers-rust@0.21.3 @@ -82,7 +82,7 @@ ### Patch Changes -- Updated dependencies [[`524687c`](https://github.com/codama/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b), [`87bab8a`](https://github.com/codama/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77)]: +- Updated dependencies [[`524687c`](https://github.com/codama-idl/codama/commit/524687cfe4b1a5e7a64cd133191bc1548f580d5b), [`87bab8a`](https://github.com/codama-idl/codama/commit/87bab8ad6f2e40903064be9258a741e176eeef77)]: - @codama/renderers-js@0.21.3 - @codama/renderers-js-umi@0.21.2 - @codama/renderers-rust@0.21.2 @@ -91,35 +91,35 @@ ### Patch Changes -- Updated dependencies [[`38d6de8`](https://github.com/codama/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3)]: +- Updated dependencies [[`38d6de8`](https://github.com/codama-idl/codama/commit/38d6de848e93417d5e5f0935e5bfb5264dc8caf3)]: - @codama/renderers-js-umi@0.21.1 ## 0.20.18 ### Patch Changes -- Updated dependencies [[`33cc3b7`](https://github.com/codama/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb), [`dc04203`](https://github.com/codama/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930)]: +- Updated dependencies [[`33cc3b7`](https://github.com/codama-idl/codama/commit/33cc3b7d29e60f5c0bd746f229187c1747755fbb), [`dc04203`](https://github.com/codama-idl/codama/commit/dc04203f427502614a6300fd9b7fa7b0a7d61930)]: - @codama/renderers-rust@0.21.1 ## 0.20.17 ### Patch Changes -- Updated dependencies [[`af8ac37`](https://github.com/codama/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e)]: +- Updated dependencies [[`af8ac37`](https://github.com/codama-idl/codama/commit/af8ac374192d1c1b6c834c31fa30bc72d4b7da8e)]: - @codama/renderers-js@0.21.2 ## 0.20.16 ### Patch Changes -- Updated dependencies [[`62545be`](https://github.com/codama/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c)]: +- Updated dependencies [[`62545be`](https://github.com/codama-idl/codama/commit/62545be66e44747d7fd31f186a7a3c856ea2ad9c)]: - @codama/renderers-js@0.21.1 ## 0.20.15 ### Patch Changes -- Updated dependencies [[`2d45383`](https://github.com/codama/codama/commit/2d453830621047da2a18001ab427db9b603ad025), [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2d45383`](https://github.com/codama-idl/codama/commit/2d453830621047da2a18001ab427db9b603ad025), [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/renderers-js-umi@0.21.0 - @codama/renderers-rust@0.21.0 - @codama/renderers-js@0.21.0 @@ -128,7 +128,7 @@ ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`93942cc`](https://github.com/codama/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f), [`93942cc`](https://github.com/codama-idl/codama/commit/93942ccb8cb87d4f4ede1ef3e2398e10635dbaf2)]: - @codama/renderers-js-umi@0.20.8 - @codama/renderers-rust@0.20.12 - @codama/renderers-js@0.20.11 @@ -146,21 +146,21 @@ ### Patch Changes -- Updated dependencies [[`1d4223c`](https://github.com/codama/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2)]: +- Updated dependencies [[`1d4223c`](https://github.com/codama-idl/codama/commit/1d4223c601ca34884f3b6ab1dfc42a3296502af2)]: - @codama/renderers-js-umi@0.20.6 ## 0.20.11 ### Patch Changes -- Updated dependencies [[`cde409c`](https://github.com/codama/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4)]: +- Updated dependencies [[`cde409c`](https://github.com/codama-idl/codama/commit/cde409c6132a66a27091bfb7025904e70b7689a4)]: - @codama/renderers-rust@0.20.10 ## 0.20.10 ### Patch Changes -- Updated dependencies [[`5b8186f`](https://github.com/codama/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3), [`e3e4099`](https://github.com/codama/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010)]: +- Updated dependencies [[`5b8186f`](https://github.com/codama-idl/codama/commit/5b8186f0231e767bba7fa02a201eb7dcb87591a3), [`e3e4099`](https://github.com/codama-idl/codama/commit/e3e4099e33b4d1dd9bc63e9c4997dc00426c8010)]: - @codama/renderers-rust@0.20.9 - @codama/renderers-js@0.20.9 @@ -168,7 +168,7 @@ ### Patch Changes -- Updated dependencies [[`baeaf14`](https://github.com/codama/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1), [`6a8c6c3`](https://github.com/codama/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010), [`0771b9d`](https://github.com/codama/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc)]: +- Updated dependencies [[`baeaf14`](https://github.com/codama-idl/codama/commit/baeaf1495ca592f6fdad7d10e9f0bed6f81888f1), [`6a8c6c3`](https://github.com/codama-idl/codama/commit/6a8c6c3b4c8eddbbf126b864fefab104c8758010), [`0771b9d`](https://github.com/codama-idl/codama/commit/0771b9d1c6447db85887831f921dbe92a2e0adfc)]: - @codama/renderers-js@0.20.8 - @codama/renderers-rust@0.20.8 @@ -176,14 +176,14 @@ ### Patch Changes -- Updated dependencies [[`bcd5eae`](https://github.com/codama/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275)]: +- Updated dependencies [[`bcd5eae`](https://github.com/codama-idl/codama/commit/bcd5eaedf673432106e7cc72273e36f729cc8275)]: - @codama/renderers-js@0.20.7 ## 0.20.7 ### Patch Changes -- Updated dependencies [[`378f007`](https://github.com/codama/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485), [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`378f007`](https://github.com/codama-idl/codama/commit/378f007345bda028e31cdd9d4e34ce8279257485), [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/renderers-rust@0.20.7 - @codama/renderers-js-umi@0.20.5 - @codama/renderers-js@0.20.6 @@ -201,9 +201,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/renderers-js@0.20.4 - @codama/renderers-js-umi@0.20.3 - @codama/renderers-rust@0.20.5 @@ -212,7 +212,7 @@ ### Patch Changes -- Updated dependencies [[`46bfc2d`](https://github.com/codama/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf), [`3645d92`](https://github.com/codama/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754), [`5794385`](https://github.com/codama/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb), [`e0ea30c`](https://github.com/codama/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2)]: +- Updated dependencies [[`46bfc2d`](https://github.com/codama-idl/codama/commit/46bfc2dd3609dc63e7d05e30dd1d196c9e8903cf), [`3645d92`](https://github.com/codama-idl/codama/commit/3645d92845db3582b801f2a32f1c36e6b478b754), [`5794385`](https://github.com/codama-idl/codama/commit/57943852a2cf3ba6552942d9787f82657d38fafb), [`e0ea30c`](https://github.com/codama-idl/codama/commit/e0ea30c168bcdc1cb376cf8ca6bd4bb76778acf2)]: - @codama/renderers-rust@0.20.4 - @codama/renderers-js@0.20.3 @@ -220,14 +220,14 @@ ### Patch Changes -- Updated dependencies [[`2382631`](https://github.com/codama/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2)]: +- Updated dependencies [[`2382631`](https://github.com/codama-idl/codama/commit/238263129b61df67f010b47cd9229b2662eaccb2)]: - @codama/renderers-rust@0.20.3 ## 0.20.2 ### Patch Changes -- Updated dependencies [[`2857238`](https://github.com/codama/codama/commit/28572383c1f6f6968df88be61d49b41059475d94), [`b9cd6b2`](https://github.com/codama/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98)]: +- Updated dependencies [[`2857238`](https://github.com/codama-idl/codama/commit/28572383c1f6f6968df88be61d49b41059475d94), [`b9cd6b2`](https://github.com/codama-idl/codama/commit/b9cd6b29f4e5229512a7cc3dd28a6f6074dedd98)]: - @codama/renderers-js-umi@0.20.2 - @codama/renderers-rust@0.20.2 - @codama/renderers-js@0.20.2 @@ -236,7 +236,7 @@ ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/renderers-js-umi@0.20.1 - @codama/renderers-rust@0.20.1 - @codama/renderers-js@0.20.1 diff --git a/packages/renderers/package.json b/packages/renderers/package.json index 035d4bfb3..d91b15a88 100644 --- a/packages/renderers/package.json +++ b/packages/renderers/package.json @@ -45,10 +45,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/validators/CHANGELOG.md b/packages/validators/CHANGELOG.md index 726c57da1..1eabbedd2 100644 --- a/packages/validators/CHANGELOG.md +++ b/packages/validators/CHANGELOG.md @@ -4,13 +4,13 @@ ### Minor Changes -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -19,7 +19,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/visitors-core@0.21.5 @@ -37,7 +37,7 @@ ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/visitors-core@0.21.3 - @codama/errors@0.21.3 - @codama/nodes@0.21.3 @@ -46,7 +46,7 @@ ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - @codama/visitors-core@0.21.2 - @codama/errors@0.21.2 - @codama/nodes@0.21.2 @@ -55,7 +55,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/errors@0.21.1 - @codama/nodes@0.21.1 @@ -64,7 +64,7 @@ ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -73,7 +73,7 @@ ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 - @codama/visitors-core@0.20.6 @@ -82,7 +82,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors-core@0.20.5 @@ -91,7 +91,7 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/visitors-core@0.20.4 @@ -100,7 +100,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/nodes@0.20.3 @@ -109,9 +109,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/visitors-core@0.20.2 @@ -120,7 +120,7 @@ ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 - @codama/visitors-core@0.20.1 diff --git a/packages/validators/package.json b/packages/validators/package.json index 1d493c130..9519d3006 100644 --- a/packages/validators/package.json +++ b/packages/validators/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors-core/CHANGELOG.md b/packages/visitors-core/CHANGELOG.md index f1824715e..fc66fdb6c 100644 --- a/packages/visitors-core/CHANGELOG.md +++ b/packages/visitors-core/CHANGELOG.md @@ -4,17 +4,17 @@ ### Minor Changes -- [#183](https://github.com/codama/codama/pull/183) [`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` +- [#183](https://github.com/codama-idl/codama/pull/183) [`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `InstructionLinkNode`, `InstructionAccountLinkNode` and `InstructionArgumentLinkNode` -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. -- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama-idl/codama/pull/180) [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. ### Patch Changes -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -22,7 +22,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 @@ -38,7 +38,7 @@ ### Patch Changes -- [#123](https://github.com/codama/codama/pull/123) [`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier +- [#123](https://github.com/codama-idl/codama/pull/123) [`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6) Thanks [@dependabot](https://github.com/apps/dependabot)! - Update prettier - Updated dependencies []: - @codama/errors@0.21.3 @@ -48,9 +48,9 @@ ### Patch Changes -- [#173](https://github.com/codama/codama/pull/173) [`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Record linkables before the first visit +- [#173](https://github.com/codama-idl/codama/pull/173) [`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Record linkables before the first visit -- [#172](https://github.com/codama/codama/pull/172) [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `interceptFirstVisitVisitor` helper +- [#172](https://github.com/codama-idl/codama/pull/172) [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `interceptFirstVisitVisitor` helper - Updated dependencies []: - @codama/errors@0.21.2 @@ -60,7 +60,7 @@ ### Patch Changes -- [#168](https://github.com/codama/codama/pull/168) [`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `find` helper function to the `NodeStack` class +- [#168](https://github.com/codama-idl/codama/pull/168) [`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `find` helper function to the `NodeStack` class - Updated dependencies []: - @codama/errors@0.21.1 @@ -70,13 +70,13 @@ ### Minor Changes -- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` +- [#111](https://github.com/codama-idl/codama/pull/111) [`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode` A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer. ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -84,7 +84,7 @@ ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 @@ -92,9 +92,9 @@ ### Patch Changes -- [#94](https://github.com/codama/codama/pull/94) [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix identityVisitor for inlined PdaValueNode +- [#94](https://github.com/codama-idl/codama/pull/94) [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix identityVisitor for inlined PdaValueNode -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 @@ -102,7 +102,7 @@ ### Patch Changes -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 @@ -110,9 +110,9 @@ ### Patch Changes -- [#39](https://github.com/codama/codama/pull/39) [`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70) Thanks [@febo](https://github.com/febo)! - Add missing getOrThrow implementation +- [#39](https://github.com/codama-idl/codama/pull/39) [`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70) Thanks [@febo](https://github.com/febo)! - Add missing getOrThrow implementation -- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/errors@0.20.3 - @codama/nodes@0.20.3 @@ -120,9 +120,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 @@ -130,6 +130,6 @@ ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 diff --git a/packages/visitors-core/package.json b/packages/visitors-core/package.json index 05b18aa21..2b92c5fdf 100644 --- a/packages/visitors-core/package.json +++ b/packages/visitors-core/package.json @@ -59,10 +59,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", diff --git a/packages/visitors/CHANGELOG.md b/packages/visitors/CHANGELOG.md index 3ccc6457d..21b0400c8 100644 --- a/packages/visitors/CHANGELOG.md +++ b/packages/visitors/CHANGELOG.md @@ -4,15 +4,15 @@ ### Minor Changes -- [#175](https://github.com/codama/codama/pull/175) [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers +- [#175](https://github.com/codama-idl/codama/pull/175) [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Remove `importFrom` attributes from link nodes and resolvers Instead, a new `linkOverrides` attribute is introduced on all renderers to redirect a link node or a resolver to a custom path or module. ### Patch Changes -- [#180](https://github.com/codama/codama/pull/180) [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. +- [#180](https://github.com/codama-idl/codama/pull/180) [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add optional `program` attribute to link nodes and namespace linkable nodes under their associated program. -- Updated dependencies [[`c8c5934`](https://github.com/codama/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: +- Updated dependencies [[`c8c5934`](https://github.com/codama-idl/codama/commit/c8c593466294f3ec7dca1fb828254e10aa312925), [`2b1259b`](https://github.com/codama-idl/codama/commit/2b1259b566aa439ca61c28f7ef72ff9c0817e540), [`93a318a`](https://github.com/codama-idl/codama/commit/93a318a9b7ee435eb37934b0ab390e160d50968b)]: - @codama/visitors-core@0.22.0 - @codama/errors@0.22.0 - @codama/nodes@0.22.0 @@ -21,7 +21,7 @@ ### Patch Changes -- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: +- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]: - @codama/errors@0.21.5 - @codama/nodes@0.21.5 - @codama/visitors-core@0.21.5 @@ -39,7 +39,7 @@ ### Patch Changes -- Updated dependencies [[`59ceb1d`](https://github.com/codama/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: +- Updated dependencies [[`59ceb1d`](https://github.com/codama-idl/codama/commit/59ceb1d7803307b3a1a5e23ea3267934ad87bfc6)]: - @codama/visitors-core@0.21.3 - @codama/errors@0.21.3 - @codama/nodes@0.21.3 @@ -48,7 +48,7 @@ ### Patch Changes -- Updated dependencies [[`23e3dc2`](https://github.com/codama/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: +- Updated dependencies [[`23e3dc2`](https://github.com/codama-idl/codama/commit/23e3dc2da6072fefc40e8205c19e44b646aa40a0), [`33de843`](https://github.com/codama-idl/codama/commit/33de84386af661dc870b248b5301dafe1df2aba2)]: - @codama/visitors-core@0.21.2 - @codama/errors@0.21.2 - @codama/nodes@0.21.2 @@ -57,7 +57,7 @@ ### Patch Changes -- Updated dependencies [[`2e8ce36`](https://github.com/codama/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: +- Updated dependencies [[`2e8ce36`](https://github.com/codama-idl/codama/commit/2e8ce36af43a853673b0805c86a62672869de487)]: - @codama/visitors-core@0.21.1 - @codama/errors@0.21.1 - @codama/nodes@0.21.1 @@ -66,7 +66,7 @@ ### Patch Changes -- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: +- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]: - @codama/visitors-core@0.21.0 - @codama/errors@0.21.0 - @codama/nodes@0.21.0 @@ -75,7 +75,7 @@ ### Patch Changes -- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: +- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]: - @codama/errors@0.20.6 - @codama/nodes@0.20.6 - @codama/visitors-core@0.20.6 @@ -84,7 +84,7 @@ ### Patch Changes -- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: +- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8), [`88572e8`](https://github.com/codama-idl/codama/commit/88572e8eaffe09b5b8c48c4e9aebfdeb8bc149e6)]: - @codama/errors@0.20.5 - @codama/nodes@0.20.5 - @codama/visitors-core@0.20.5 @@ -93,9 +93,9 @@ ### Patch Changes -- [#43](https://github.com/codama/codama/pull/43) [`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition +- [#43](https://github.com/codama-idl/codama/pull/43) [`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Allow PdaValueNode to inline their own PdaNode definition -- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: +- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]: - @codama/nodes@0.20.4 - @codama/errors@0.20.4 - @codama/visitors-core@0.20.4 @@ -104,7 +104,7 @@ ### Patch Changes -- Updated dependencies [[`d938e04`](https://github.com/codama/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: +- Updated dependencies [[`d938e04`](https://github.com/codama-idl/codama/commit/d938e04b8cf5765c5bb2b68916b29e892fd5ad70), [`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]: - @codama/visitors-core@0.20.3 - @codama/errors@0.20.3 - @codama/nodes@0.20.3 @@ -113,9 +113,9 @@ ### Patch Changes -- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies +- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies -- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: +- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]: - @codama/errors@0.20.2 - @codama/nodes@0.20.2 - @codama/visitors-core@0.20.2 @@ -124,7 +124,7 @@ ### Patch Changes -- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: +- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]: - @codama/errors@0.20.1 - @codama/nodes@0.20.1 - @codama/visitors-core@0.20.1 diff --git a/packages/visitors/package.json b/packages/visitors/package.json index 8bc9edd08..42581f9b7 100644 --- a/packages/visitors/package.json +++ b/packages/visitors/package.json @@ -56,10 +56,10 @@ "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/codama/codama" + "url": "https://github.com/codama-idl/codama" }, "bugs": { - "url": "http://github.com/codama/codama/issues" + "url": "http://github.com/codama-idl/codama/issues" }, "browserslist": [ "supports bigint and not dead", From 6c764cd562f373ecc17f24df0d9ccf2aae0e00b7 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 13:39:45 +0100 Subject: [PATCH 13/14] Update generated code --- .../renderers-js-umi/e2e/memo/src/generated/errors/index.ts | 2 +- packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts | 2 +- packages/renderers-js-umi/e2e/memo/src/generated/index.ts | 2 +- .../e2e/memo/src/generated/instructions/addMemo.ts | 2 +- .../e2e/memo/src/generated/instructions/index.ts | 2 +- .../renderers-js-umi/e2e/memo/src/generated/programs/index.ts | 2 +- .../renderers-js-umi/e2e/memo/src/generated/programs/memo.ts | 2 +- .../renderers-js-umi/e2e/memo/src/generated/shared/index.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/accounts/index.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/errors/index.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/errors/system.ts | 2 +- packages/renderers-js-umi/e2e/system/src/generated/index.ts | 2 +- .../system/src/generated/instructions/advanceNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/allocate.ts | 2 +- .../e2e/system/src/generated/instructions/allocateWithSeed.ts | 2 +- .../e2e/system/src/generated/instructions/assign.ts | 2 +- .../e2e/system/src/generated/instructions/assignWithSeed.ts | 2 +- .../system/src/generated/instructions/authorizeNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/createAccount.ts | 2 +- .../system/src/generated/instructions/createAccountWithSeed.ts | 2 +- .../e2e/system/src/generated/instructions/index.ts | 2 +- .../system/src/generated/instructions/initializeNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/transferSol.ts | 2 +- .../system/src/generated/instructions/transferSolWithSeed.ts | 2 +- .../system/src/generated/instructions/upgradeNonceAccount.ts | 2 +- .../system/src/generated/instructions/withdrawNonceAccount.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/programs/index.ts | 2 +- .../e2e/system/src/generated/programs/system.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/shared/index.ts | 2 +- .../renderers-js-umi/e2e/system/src/generated/types/index.ts | 2 +- .../e2e/system/src/generated/types/nonceState.ts | 2 +- .../e2e/system/src/generated/types/nonceVersion.ts | 2 +- .../renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts | 2 +- .../renderers-js/e2e/anchor/src/generated/accounts/index.ts | 2 +- packages/renderers-js/e2e/anchor/src/generated/errors/index.ts | 2 +- .../e2e/anchor/src/generated/errors/wenTransferGuard.ts | 2 +- packages/renderers-js/e2e/anchor/src/generated/index.ts | 2 +- .../e2e/anchor/src/generated/instructions/createGuard.ts | 2 +- .../e2e/anchor/src/generated/instructions/execute.ts | 2 +- .../renderers-js/e2e/anchor/src/generated/instructions/index.ts | 2 +- .../e2e/anchor/src/generated/instructions/initialize.ts | 2 +- .../e2e/anchor/src/generated/instructions/updateGuard.ts | 2 +- .../renderers-js/e2e/anchor/src/generated/programs/index.ts | 2 +- .../e2e/anchor/src/generated/programs/wenTransferGuard.ts | 2 +- packages/renderers-js/e2e/anchor/src/generated/shared/index.ts | 2 +- packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts | 2 +- packages/renderers-js/e2e/anchor/src/generated/types/index.ts | 2 +- .../src/generated/types/metadataAdditionalFieldRestriction.ts | 2 +- .../anchor/src/generated/types/metadataAdditionalFieldRule.ts | 2 +- .../e2e/anchor/src/generated/types/transferAmountRule.ts | 2 +- packages/renderers-js/e2e/memo/src/generated/index.ts | 2 +- .../renderers-js/e2e/memo/src/generated/instructions/addMemo.ts | 2 +- .../renderers-js/e2e/memo/src/generated/instructions/index.ts | 2 +- packages/renderers-js/e2e/memo/src/generated/programs/index.ts | 2 +- packages/renderers-js/e2e/memo/src/generated/programs/memo.ts | 2 +- packages/renderers-js/e2e/memo/src/generated/shared/index.ts | 2 +- .../renderers-js/e2e/system/src/generated/accounts/index.ts | 2 +- .../renderers-js/e2e/system/src/generated/accounts/nonce.ts | 2 +- packages/renderers-js/e2e/system/src/generated/errors/index.ts | 2 +- packages/renderers-js/e2e/system/src/generated/errors/system.ts | 2 +- packages/renderers-js/e2e/system/src/generated/index.ts | 2 +- .../system/src/generated/instructions/advanceNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/allocate.ts | 2 +- .../e2e/system/src/generated/instructions/allocateWithSeed.ts | 2 +- .../e2e/system/src/generated/instructions/assign.ts | 2 +- .../e2e/system/src/generated/instructions/assignWithSeed.ts | 2 +- .../system/src/generated/instructions/authorizeNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/createAccount.ts | 2 +- .../system/src/generated/instructions/createAccountWithSeed.ts | 2 +- .../renderers-js/e2e/system/src/generated/instructions/index.ts | 2 +- .../system/src/generated/instructions/initializeNonceAccount.ts | 2 +- .../e2e/system/src/generated/instructions/transferSol.ts | 2 +- .../system/src/generated/instructions/transferSolWithSeed.ts | 2 +- .../system/src/generated/instructions/upgradeNonceAccount.ts | 2 +- .../system/src/generated/instructions/withdrawNonceAccount.ts | 2 +- .../renderers-js/e2e/system/src/generated/programs/index.ts | 2 +- .../renderers-js/e2e/system/src/generated/programs/system.ts | 2 +- packages/renderers-js/e2e/system/src/generated/shared/index.ts | 2 +- packages/renderers-js/e2e/system/src/generated/types/index.ts | 2 +- .../renderers-js/e2e/system/src/generated/types/nonceState.ts | 2 +- .../renderers-js/e2e/system/src/generated/types/nonceVersion.ts | 2 +- packages/renderers-js/e2e/token/src/generated/accounts/index.ts | 2 +- packages/renderers-js/e2e/token/src/generated/accounts/mint.ts | 2 +- .../renderers-js/e2e/token/src/generated/accounts/multisig.ts | 2 +- packages/renderers-js/e2e/token/src/generated/accounts/token.ts | 2 +- .../e2e/token/src/generated/errors/associatedToken.ts | 2 +- packages/renderers-js/e2e/token/src/generated/errors/index.ts | 2 +- packages/renderers-js/e2e/token/src/generated/errors/token.ts | 2 +- packages/renderers-js/e2e/token/src/generated/index.ts | 2 +- .../e2e/token/src/generated/instructions/amountToUiAmount.ts | 2 +- .../e2e/token/src/generated/instructions/approve.ts | 2 +- .../e2e/token/src/generated/instructions/approveChecked.ts | 2 +- .../renderers-js/e2e/token/src/generated/instructions/burn.ts | 2 +- .../e2e/token/src/generated/instructions/burnChecked.ts | 2 +- .../e2e/token/src/generated/instructions/closeAccount.ts | 2 +- .../e2e/token/src/generated/instructions/createAccount.ts | 2 +- .../token/src/generated/instructions/createAssociatedToken.ts | 2 +- .../generated/instructions/createAssociatedTokenIdempotent.ts | 2 +- .../e2e/token/src/generated/instructions/freezeAccount.ts | 2 +- .../e2e/token/src/generated/instructions/getAccountDataSize.ts | 2 +- .../renderers-js/e2e/token/src/generated/instructions/index.ts | 2 +- .../e2e/token/src/generated/instructions/initializeAccount.ts | 2 +- .../e2e/token/src/generated/instructions/initializeAccount2.ts | 2 +- .../e2e/token/src/generated/instructions/initializeAccount3.ts | 2 +- .../src/generated/instructions/initializeImmutableOwner.ts | 2 +- .../e2e/token/src/generated/instructions/initializeMint.ts | 2 +- .../e2e/token/src/generated/instructions/initializeMint2.ts | 2 +- .../e2e/token/src/generated/instructions/initializeMultisig.ts | 2 +- .../e2e/token/src/generated/instructions/initializeMultisig2.ts | 2 +- .../renderers-js/e2e/token/src/generated/instructions/mintTo.ts | 2 +- .../e2e/token/src/generated/instructions/mintToChecked.ts | 2 +- .../src/generated/instructions/recoverNestedAssociatedToken.ts | 2 +- .../renderers-js/e2e/token/src/generated/instructions/revoke.ts | 2 +- .../e2e/token/src/generated/instructions/setAuthority.ts | 2 +- .../e2e/token/src/generated/instructions/syncNative.ts | 2 +- .../e2e/token/src/generated/instructions/thawAccount.ts | 2 +- .../e2e/token/src/generated/instructions/transfer.ts | 2 +- .../e2e/token/src/generated/instructions/transferChecked.ts | 2 +- .../e2e/token/src/generated/instructions/uiAmountToAmount.ts | 2 +- .../e2e/token/src/generated/pdas/associatedToken.ts | 2 +- packages/renderers-js/e2e/token/src/generated/pdas/index.ts | 2 +- .../e2e/token/src/generated/programs/associatedToken.ts | 2 +- packages/renderers-js/e2e/token/src/generated/programs/index.ts | 2 +- .../renderers-js/e2e/token/src/generated/programs/system.ts | 2 +- packages/renderers-js/e2e/token/src/generated/programs/token.ts | 2 +- packages/renderers-js/e2e/token/src/generated/shared/index.ts | 2 +- .../renderers-js/e2e/token/src/generated/types/accountState.ts | 2 +- .../renderers-js/e2e/token/src/generated/types/authorityType.ts | 2 +- packages/renderers-js/e2e/token/src/generated/types/index.ts | 2 +- packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs | 2 +- .../e2e/memo/src/generated/instructions/add_memo.rs | 2 +- .../renderers-rust/e2e/memo/src/generated/instructions/mod.rs | 2 +- packages/renderers-rust/e2e/memo/src/generated/mod.rs | 2 +- packages/renderers-rust/e2e/memo/src/generated/programs.rs | 2 +- .../renderers-rust/e2e/system/src/generated/accounts/mod.rs | 2 +- .../renderers-rust/e2e/system/src/generated/accounts/nonce.rs | 2 +- packages/renderers-rust/e2e/system/src/generated/errors/mod.rs | 2 +- .../renderers-rust/e2e/system/src/generated/errors/system.rs | 2 +- .../system/src/generated/instructions/advance_nonce_account.rs | 2 +- .../e2e/system/src/generated/instructions/allocate.rs | 2 +- .../e2e/system/src/generated/instructions/allocate_with_seed.rs | 2 +- .../e2e/system/src/generated/instructions/assign.rs | 2 +- .../e2e/system/src/generated/instructions/assign_with_seed.rs | 2 +- .../src/generated/instructions/authorize_nonce_account.rs | 2 +- .../e2e/system/src/generated/instructions/create_account.rs | 2 +- .../src/generated/instructions/create_account_with_seed.rs | 2 +- .../src/generated/instructions/initialize_nonce_account.rs | 2 +- .../renderers-rust/e2e/system/src/generated/instructions/mod.rs | 2 +- .../e2e/system/src/generated/instructions/transfer_sol.rs | 2 +- .../system/src/generated/instructions/transfer_sol_with_seed.rs | 2 +- .../system/src/generated/instructions/upgrade_nonce_account.rs | 2 +- .../system/src/generated/instructions/withdraw_nonce_account.rs | 2 +- packages/renderers-rust/e2e/system/src/generated/mod.rs | 2 +- packages/renderers-rust/e2e/system/src/generated/programs.rs | 2 +- packages/renderers-rust/e2e/system/src/generated/types/mod.rs | 2 +- .../e2e/system/src/generated/types/nonce_state.rs | 2 +- .../e2e/system/src/generated/types/nonce_version.rs | 2 +- 158 files changed, 158 insertions(+), 158 deletions(-) diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts index c601d12d7..673beb895 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/errors/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './memo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts index 9bdf9163f..eeba8074e 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/errors/memo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { Program, ProgramError } from '@metaplex-foundation/umi'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/index.ts index 30ede0db5..e85cac577 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './errors'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts index e3dca0e2a..b2d5b2efb 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/addMemo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts index 0a400a398..93ef37eca 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './addMemo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts index c601d12d7..673beb895 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './memo'; diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts b/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts index e0a2e19b8..5c4e6424e 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/programs/memo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts b/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts index d35538208..6e2a69aa1 100644 --- a/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts +++ b/packages/renderers-js-umi/e2e/memo/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts index 6c79f4a3d..e96b2c9da 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/accounts/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './nonce'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts b/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts index 26fe10ff6..c5533fe4f 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/accounts/nonce.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts index 5fed46fb1..00584b834 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/errors/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './system'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts b/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts index 934756bf2..54bc72e54 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/errors/system.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { Program, ProgramError } from '@metaplex-foundation/umi'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/index.ts index 79220114a..f65e385bd 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './accounts'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts index 4626ee35e..111372c41 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/advanceNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts index 3f84885a6..41fc98472 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocate.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts index ed15d1822..f9c6e8061 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/allocateWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts index aacaa4523..7379146d6 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assign.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts index 3145dfe8d..8f148b997 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/assignWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts index 437c84bb9..29e6d2161 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/authorizeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts index 3b79eb9a7..b95a7d042 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts index 7b9e9ff44..e6e959620 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/createAccountWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts index e79f6d2e9..e453ded6a 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './advanceNonceAccount'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts index 8671d0626..6367a0e8d 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/initializeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts index cbbe95cb5..02722166a 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSol.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts index d8e3b87e6..048ef36a9 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/transferSolWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts index 878f41a2c..10125eb7a 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/upgradeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts b/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts index 019e085ce..d63d97684 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/instructions/withdrawNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts index 5fed46fb1..00584b834 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './system'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts b/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts index 984c0882b..895e3cb57 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/programs/system.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts index d35538208..6e2a69aa1 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts index 04370a35f..ab4ef5620 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './nonceState'; diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts index 7f0231db9..80e4d469b 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceState.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts index faa1d6afb..8d291f28a 100644 --- a/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts +++ b/packages/renderers-js-umi/e2e/system/src/generated/types/nonceVersion.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts b/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts index c34c65499..2bdd278c0 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/accounts/guardV1.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts b/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts index e55205b66..e679c0a6b 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/accounts/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './guardV1'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts b/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts index 92ed60cfe..e343eeea8 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/errors/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './wenTransferGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts index 10b31c2ba..7e3f841b3 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/errors/wenTransferGuard.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/index.ts b/packages/renderers-js/e2e/anchor/src/generated/index.ts index 0980d31b3..02964a6ae 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts index a8ac9a715..48c05df45 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/createGuard.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts index b402299b2..ac069c0ac 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/execute.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts index d9871ad07..285fb70c2 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './createGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts index c71bd1202..7f1d1f4cd 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/initialize.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts index 4d1ae9203..de2b41dc0 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/instructions/updateGuard.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts b/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts index 92ed60cfe..e343eeea8 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './wenTransferGuard'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts b/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts index bca112240..c5a27a5b8 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/programs/wenTransferGuard.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts b/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts index 344d2c744..01a7d9380 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts index c3abda5e8..a3e23bbe8 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/cpiRule.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/index.ts b/packages/renderers-js/e2e/anchor/src/generated/types/index.ts index c7eac357a..6235dd11f 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './cpiRule'; diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts index a975fe697..a2c651945 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRestriction.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts index e2bfe8033..a9ec93677 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/metadataAdditionalFieldRule.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts b/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts index 55495a960..34b1fb036 100644 --- a/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts +++ b/packages/renderers-js/e2e/anchor/src/generated/types/transferAmountRule.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/memo/src/generated/index.ts b/packages/renderers-js/e2e/memo/src/generated/index.ts index 3a88d072a..d69c576af 100644 --- a/packages/renderers-js/e2e/memo/src/generated/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './instructions'; diff --git a/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts b/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts index 987fd8328..90b3ea79d 100644 --- a/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts +++ b/packages/renderers-js/e2e/memo/src/generated/instructions/addMemo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts b/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts index 0a400a398..93ef37eca 100644 --- a/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './addMemo'; diff --git a/packages/renderers-js/e2e/memo/src/generated/programs/index.ts b/packages/renderers-js/e2e/memo/src/generated/programs/index.ts index c601d12d7..673beb895 100644 --- a/packages/renderers-js/e2e/memo/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './memo'; diff --git a/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts b/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts index 488f3457a..c7583ab96 100644 --- a/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts +++ b/packages/renderers-js/e2e/memo/src/generated/programs/memo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { type Address } from '@solana/web3.js'; diff --git a/packages/renderers-js/e2e/memo/src/generated/shared/index.ts b/packages/renderers-js/e2e/memo/src/generated/shared/index.ts index 344d2c744..01a7d9380 100644 --- a/packages/renderers-js/e2e/memo/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/memo/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/accounts/index.ts b/packages/renderers-js/e2e/system/src/generated/accounts/index.ts index 6c79f4a3d..e96b2c9da 100644 --- a/packages/renderers-js/e2e/system/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/accounts/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './nonce'; diff --git a/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts b/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts index 48842af54..c0ab1b288 100644 --- a/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts +++ b/packages/renderers-js/e2e/system/src/generated/accounts/nonce.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/errors/index.ts b/packages/renderers-js/e2e/system/src/generated/errors/index.ts index 5fed46fb1..00584b834 100644 --- a/packages/renderers-js/e2e/system/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/errors/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './system'; diff --git a/packages/renderers-js/e2e/system/src/generated/errors/system.ts b/packages/renderers-js/e2e/system/src/generated/errors/system.ts index 5ae6417d9..7cd2476cd 100644 --- a/packages/renderers-js/e2e/system/src/generated/errors/system.ts +++ b/packages/renderers-js/e2e/system/src/generated/errors/system.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/index.ts b/packages/renderers-js/e2e/system/src/generated/index.ts index 0980d31b3..02964a6ae 100644 --- a/packages/renderers-js/e2e/system/src/generated/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts index 38d6d4ceb..f7b36910f 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/advanceNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts b/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts index d4052f93f..8eaf81caf 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/allocate.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts index 30d59c5d6..8ab755b53 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/allocateWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts b/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts index a59f9582e..10217b4f1 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/assign.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts index dcb4c4889..5544955d0 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/assignWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts index 9f614078e..0d4bc5fba 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/authorizeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts index 4bfe31f98..10c20fc36 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/createAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts index 053087a84..50d79516a 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/createAccountWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/index.ts b/packages/renderers-js/e2e/system/src/generated/instructions/index.ts index e79f6d2e9..e453ded6a 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './advanceNonceAccount'; diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts index 7dc0e7cf6..d68de51ec 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/initializeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts b/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts index 1291dbcbc..e86ac2002 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/transferSol.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts b/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts index 4458ba651..40f7ee355 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/transferSolWithSeed.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts index 43676e195..103f0e20e 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/upgradeNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts b/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts index 2638df11a..a2c8b2859 100644 --- a/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts +++ b/packages/renderers-js/e2e/system/src/generated/instructions/withdrawNonceAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/programs/index.ts b/packages/renderers-js/e2e/system/src/generated/programs/index.ts index 5fed46fb1..00584b834 100644 --- a/packages/renderers-js/e2e/system/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './system'; diff --git a/packages/renderers-js/e2e/system/src/generated/programs/system.ts b/packages/renderers-js/e2e/system/src/generated/programs/system.ts index b1e95cf3e..4298ad962 100644 --- a/packages/renderers-js/e2e/system/src/generated/programs/system.ts +++ b/packages/renderers-js/e2e/system/src/generated/programs/system.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/shared/index.ts b/packages/renderers-js/e2e/system/src/generated/shared/index.ts index 344d2c744..01a7d9380 100644 --- a/packages/renderers-js/e2e/system/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/types/index.ts b/packages/renderers-js/e2e/system/src/generated/types/index.ts index 04370a35f..ab4ef5620 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './nonceState'; diff --git a/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts b/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts index 810ee2ce9..c54300dd1 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/nonceState.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts b/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts index fb0959801..57536132e 100644 --- a/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts +++ b/packages/renderers-js/e2e/system/src/generated/types/nonceVersion.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/index.ts b/packages/renderers-js/e2e/token/src/generated/accounts/index.ts index 4824e859c..22eaa0c90 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './mint'; diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts b/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts index a428bd990..5b173bdfa 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/mint.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts b/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts index 6c4421f9a..066bf915a 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/multisig.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/accounts/token.ts b/packages/renderers-js/e2e/token/src/generated/accounts/token.ts index b105a7a93..278baa0a5 100644 --- a/packages/renderers-js/e2e/token/src/generated/accounts/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/accounts/token.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts index d643df278..c651725ac 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/associatedToken.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/errors/index.ts b/packages/renderers-js/e2e/token/src/generated/errors/index.ts index 9fa2da2d8..4a8094e51 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/errors/token.ts b/packages/renderers-js/e2e/token/src/generated/errors/token.ts index 6de896671..9afda17a5 100644 --- a/packages/renderers-js/e2e/token/src/generated/errors/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/errors/token.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/index.ts b/packages/renderers-js/e2e/token/src/generated/index.ts index 8cecacabc..1f8edf1d4 100644 --- a/packages/renderers-js/e2e/token/src/generated/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './accounts'; diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts index 5a02fbc30..4aa8240bf 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/amountToUiAmount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts b/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts index a18e9ca06..f2deaedb6 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/approve.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts index c35586788..1e37bfa4e 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/approveChecked.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts b/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts index d76310b99..bb15b3746 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/burn.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts index e1bc7b09d..6f137e612 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/burnChecked.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts index c4f8b21ce..7973bd488 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/closeAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts index 4bfe31f98..10c20fc36 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts index 4ab091df5..e24ec533f 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedToken.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts index f7d2bc9b3..a0216da94 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/createAssociatedTokenIdempotent.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts index 798008a12..6dfc21490 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/freezeAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts b/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts index 0a0651891..098aee0a1 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/getAccountDataSize.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/index.ts b/packages/renderers-js/e2e/token/src/generated/instructions/index.ts index 51ee26199..760f53dff 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './amountToUiAmount'; diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts index 9ff602153..8ea41c80a 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts index 941d7db0a..204e0d491 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount2.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts index a39a62ce5..e10ce5a97 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeAccount3.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts index c487de6a9..a25d85ce4 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeImmutableOwner.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts index 05f045000..ea070d892 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts index d89b101c9..cc5595f15 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMint2.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts index 6db179df7..032af70bf 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts index 02f118c35..54fb35e7d 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/initializeMultisig2.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts b/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts index 81d34b807..a64205b51 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/mintTo.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts index 49a961d17..0b0e03bef 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/mintToChecked.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts b/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts index c7feee3ad..bc106aca6 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/recoverNestedAssociatedToken.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts b/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts index 1a852ef7b..bc37b6e22 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/revoke.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts b/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts index baa863172..21bbc8d1b 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/setAuthority.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts b/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts index 6a1d8d9c8..b9b6b29b4 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/syncNative.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts index 9edcf2409..af35469a9 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/thawAccount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts b/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts index c8b464675..e9b95ed3d 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/transfer.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts b/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts index 037bcdb91..44b6fa7d9 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/transferChecked.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts b/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts index e1aaef112..3700571fa 100644 --- a/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts +++ b/packages/renderers-js/e2e/token/src/generated/instructions/uiAmountToAmount.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts index 4b62a6b10..f9704a9a5 100644 --- a/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/pdas/associatedToken.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/pdas/index.ts b/packages/renderers-js/e2e/token/src/generated/pdas/index.ts index a2d7e2c17..6cd1010c8 100644 --- a/packages/renderers-js/e2e/token/src/generated/pdas/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/pdas/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts b/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts index 48b0409c2..b5efc1cc9 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/associatedToken.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/programs/index.ts b/packages/renderers-js/e2e/token/src/generated/programs/index.ts index 3309f75ae..d3dc7a5a3 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './associatedToken'; diff --git a/packages/renderers-js/e2e/token/src/generated/programs/system.ts b/packages/renderers-js/e2e/token/src/generated/programs/system.ts index 4db7255e9..83937675c 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/system.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/system.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/programs/token.ts b/packages/renderers-js/e2e/token/src/generated/programs/token.ts index 2458c2820..016a2ad84 100644 --- a/packages/renderers-js/e2e/token/src/generated/programs/token.ts +++ b/packages/renderers-js/e2e/token/src/generated/programs/token.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/shared/index.ts b/packages/renderers-js/e2e/token/src/generated/shared/index.ts index 344d2c744..01a7d9380 100644 --- a/packages/renderers-js/e2e/token/src/generated/shared/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/shared/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/accountState.ts b/packages/renderers-js/e2e/token/src/generated/types/accountState.ts index a2ca37d63..d113ca437 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/accountState.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/accountState.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts b/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts index a61a6db85..826ae17b8 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/authorityType.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ import { diff --git a/packages/renderers-js/e2e/token/src/generated/types/index.ts b/packages/renderers-js/e2e/token/src/generated/types/index.ts index e3148dd87..81281230a 100644 --- a/packages/renderers-js/e2e/token/src/generated/types/index.ts +++ b/packages/renderers-js/e2e/token/src/generated/types/index.ts @@ -3,7 +3,7 @@ * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * - * @see https://github.com/codama/codama + * @see https://github.com/codama-idl/codama */ export * from './accountState'; diff --git a/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs index 3f263b24b..6172ba60a 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/errors/mod.rs @@ -2,5 +2,5 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! diff --git a/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs b/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs index 6870bcd75..4b51a0aac 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/instructions/add_memo.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs index f1c827684..c1c3f1794 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/instructions/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#add_memo; diff --git a/packages/renderers-rust/e2e/memo/src/generated/mod.rs b/packages/renderers-rust/e2e/memo/src/generated/mod.rs index 445cdeee5..9c64a4b93 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/mod.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub mod errors; diff --git a/packages/renderers-rust/e2e/memo/src/generated/programs.rs b/packages/renderers-rust/e2e/memo/src/generated/programs.rs index d3a3d3b60..0c1ecc52c 100644 --- a/packages/renderers-rust/e2e/memo/src/generated/programs.rs +++ b/packages/renderers-rust/e2e/memo/src/generated/programs.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use solana_program::{pubkey, pubkey::Pubkey}; diff --git a/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs b/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs index 3b1a8fe88..24ce789ff 100644 --- a/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/accounts/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#nonce; diff --git a/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs b/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs index ef81eb386..038792530 100644 --- a/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs +++ b/packages/renderers-rust/e2e/system/src/generated/accounts/nonce.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use crate::generated::types::NonceState; diff --git a/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs b/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs index 647eda373..d7cc219e9 100644 --- a/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/errors/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod system; diff --git a/packages/renderers-rust/e2e/system/src/generated/errors/system.rs b/packages/renderers-rust/e2e/system/src/generated/errors/system.rs index a4e4aca87..1a11b85d0 100644 --- a/packages/renderers-rust/e2e/system/src/generated/errors/system.rs +++ b/packages/renderers-rust/e2e/system/src/generated/errors/system.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use num_derive::FromPrimitive; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs index 2211666e5..5ec2cd0e5 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/advance_nonce_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs index 9c4a50487..515117c79 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs index a0dad0e2e..b7cc9045f 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/allocate_with_seed.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs index d6faf7988..8664f7706 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/assign.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs index 4cf40b5df..1897a2e09 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/assign_with_seed.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs index ba8e243ec..29f247d4a 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/authorize_nonce_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs index 29474e026..9e7264197 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs index e97a5ac00..bf8c0919f 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/create_account_with_seed.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs index afe15d802..7a9ed544c 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/initialize_nonce_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs index bcbe6c583..85422fddb 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#advance_nonce_account; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs index 401ea9eb0..ad9f7c69d 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs index 854a9adc2..44f6c248a 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/transfer_sol_with_seed.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs index 9349b3c81..6f99e3309 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/upgrade_nonce_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs b/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs index 0eb050ac7..819f488af 100644 --- a/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs +++ b/packages/renderers-rust/e2e/system/src/generated/instructions/withdraw_nonce_account.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/mod.rs b/packages/renderers-rust/e2e/system/src/generated/mod.rs index e2d7d0ee2..6050d8690 100644 --- a/packages/renderers-rust/e2e/system/src/generated/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub mod accounts; diff --git a/packages/renderers-rust/e2e/system/src/generated/programs.rs b/packages/renderers-rust/e2e/system/src/generated/programs.rs index 3d1bba68b..e02ed636b 100644 --- a/packages/renderers-rust/e2e/system/src/generated/programs.rs +++ b/packages/renderers-rust/e2e/system/src/generated/programs.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use solana_program::{pubkey, pubkey::Pubkey}; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/mod.rs b/packages/renderers-rust/e2e/system/src/generated/types/mod.rs index 3209d74d0..396fe1865 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/mod.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/mod.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! pub(crate) mod r#nonce_state; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs b/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs index 81b371a61..487ddd977 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/nonce_state.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; diff --git a/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs b/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs index 8daa31111..b6d1cff18 100644 --- a/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs +++ b/packages/renderers-rust/e2e/system/src/generated/types/nonce_version.rs @@ -2,7 +2,7 @@ //! Please DO NOT EDIT THIS FILE, instead use visitors //! to add features, then rerun codama to update it. //! -//! +//! //! use borsh::BorshDeserialize; From 1a32bcc082ec45ed1c5ff4946f08334817c24703 Mon Sep 17 00:00:00 2001 From: Loris Leiva Date: Wed, 9 Oct 2024 14:03:26 +0100 Subject: [PATCH 14/14] Fix linting errors --- packages/errors/test/error.test.ts | 2 +- packages/errors/test/error.typetest.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/errors/test/error.test.ts b/packages/errors/test/error.test.ts index 6c11da26b..e8cf4e0d9 100644 --- a/packages/errors/test/error.test.ts +++ b/packages/errors/test/error.test.ts @@ -1,10 +1,10 @@ import { expect, test } from 'vitest'; import { - isCodamaError, CODAMA_ERROR__UNEXPECTED_NODE_KIND, CODAMA_ERROR__UNRECOGNIZED_NODE_KIND, CodamaError, + isCodamaError, } from '../src'; test('it exposes the Codama error context', () => { diff --git a/packages/errors/test/error.typetest.ts b/packages/errors/test/error.typetest.ts index 69c5041fa..8df14cad9 100644 --- a/packages/errors/test/error.typetest.ts +++ b/packages/errors/test/error.typetest.ts @@ -1,6 +1,6 @@ import { PublicKeyTypeNode } from '@codama/node-types'; -import { isCodamaError, CodamaError, CodamaErrorCode } from '../src'; +import { CodamaError, CodamaErrorCode, isCodamaError } from '../src'; import * as CodamaErrorCodeModule from '../src/codes'; import { CodamaErrorContext } from '../src/context';