Skip to content

Commit b866cb4

Browse files
committed
Rename codama to codama-idl for GitHub org
1 parent 19754f9 commit b866cb4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+305
-305
lines changed

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
33
"changelog": [
44
"@changesets/changelog-github",
5-
{ "repo": "codama/codama" }
5+
{ "repo": "codama-idl/codama" }
66
],
77
"commit": false,
88
"fixed": [

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@
77
[npm-downloads-image]: https://img.shields.io/npm/dm/codama.svg?style=flat
88
[npm-image]: https://img.shields.io/npm/v/codama.svg?style=flat
99
[npm-url]: https://www.npmjs.com/package/codama
10-
[ci-image]: https://img.shields.io/github/actions/workflow/status/codama/codama/main.yml?logo=GitHub
11-
[ci-url]: https://github.com/codama/codama/actions/workflows/main.yml
10+
[ci-image]: https://img.shields.io/github/actions/workflow/status/codama-idl/codama/main.yml?logo=GitHub
11+
[ci-url]: https://github.com/codama-idl/codama/actions/workflows/main.yml
1212

1313
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.
1414

15-
![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)
15+
![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)
1616

1717
## Nodes and visitors
1818

1919
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).
2020

21-
![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)
21+
![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)
2222

2323
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).
2424

25-
![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)
25+
![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)
2626

2727
## From program to Codama
2828

packages/errors/CHANGELOG.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44

55
### Minor Changes
66

7-
- [#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`
7+
- [#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`
88

99
### Patch Changes
1010

11-
- [#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.
11+
- [#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.
1212

13-
- 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)]:
13+
- 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)]:
1414
- @codama/node-types@0.22.0
1515

1616
## 0.21.5
1717

1818
### Patch Changes
1919

20-
- [#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.
20+
- [#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.
2121

2222
- Updated dependencies []:
2323
- @codama/node-types@0.21.5
@@ -54,20 +54,20 @@
5454

5555
### Minor Changes
5656

57-
- [#111](https://github.com/codama/codama/pull/111) [`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Add `RemainderOptionTypeNode`
57+
- [#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`
5858

5959
A node that represents an optional item using a child `TypeNode` such that the item can either be present — i.e. `Some<T>` — or absent — i.e. `None` — depending on whether or not there are remaining bytes in the buffer.
6060

6161
### Patch Changes
6262

63-
- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]:
63+
- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]:
6464
- @codama/node-types@0.21.0
6565

6666
## 0.20.6
6767

6868
### Patch Changes
6969

70-
- [#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
70+
- [#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
7171

7272
- Updated dependencies []:
7373
- @codama/node-types@0.20.6
@@ -76,7 +76,7 @@
7676

7777
### Patch Changes
7878

79-
- [#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.
79+
- [#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.
8080

8181
- Updated dependencies []:
8282
- @codama/node-types@0.20.5
@@ -85,14 +85,14 @@
8585

8686
### Patch Changes
8787

88-
- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]:
88+
- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]:
8989
- @codama/node-types@0.20.4
9090

9191
## 0.20.3
9292

9393
### Patch Changes
9494

95-
- [#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
95+
- [#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
9696

9797
- Updated dependencies []:
9898
- @codama/node-types@0.20.3
@@ -101,16 +101,16 @@
101101

102102
### Patch Changes
103103

104-
- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies
104+
- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies
105105

106-
- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]:
106+
- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]:
107107
- @codama/node-types@0.20.2
108108

109109
## 0.20.1
110110

111111
### Patch Changes
112112

113-
- [#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
113+
- [#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
114114

115115
- Updated dependencies []:
116116
- @codama/node-types@0.20.1

packages/errors/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@
6060
"license": "MIT",
6161
"repository": {
6262
"type": "git",
63-
"url": "https://github.com/codama/codama"
63+
"url": "https://github.com/codama-idl/codama"
6464
},
6565
"bugs": {
66-
"url": "http://github.com/codama/codama/issues"
66+
"url": "http://github.com/codama-idl/codama/issues"
6767
},
6868
"browserslist": [
6969
"supports bigint and not dead",

packages/library/CHANGELOG.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Patch Changes
66

7-
- 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)]:
7+
- 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)]:
88
- @codama/errors@0.22.0
99
- @codama/nodes@0.22.0
1010
- @codama/validators@0.22.0
@@ -14,7 +14,7 @@
1414

1515
### Patch Changes
1616

17-
- Updated dependencies [[`a6849d3`](https://github.com/codama/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]:
17+
- Updated dependencies [[`a6849d3`](https://github.com/codama-idl/codama/commit/a6849d36a828e2b6b703f2a86d2ea0ae6d2fa0d8)]:
1818
- @codama/errors@0.21.5
1919
- @codama/nodes@0.21.5
2020
- @codama/validators@0.21.5
@@ -24,7 +24,7 @@
2424

2525
### Patch Changes
2626

27-
- [#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
27+
- [#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
2828

2929
- Updated dependencies []:
3030
- @codama/errors@0.21.4
@@ -66,7 +66,7 @@
6666

6767
### Patch Changes
6868

69-
- Updated dependencies [[`2f26050`](https://github.com/codama/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]:
69+
- Updated dependencies [[`2f26050`](https://github.com/codama-idl/codama/commit/2f26050ddbcbdefcefbd853e1017a30c94442e1f)]:
7070
- @codama/errors@0.21.0
7171
- @codama/nodes@0.21.0
7272
- @codama/validators@0.21.0
@@ -76,9 +76,9 @@
7676

7777
### Patch Changes
7878

79-
- [#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
79+
- [#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
8080

81-
- Updated dependencies [[`bcf6a23`](https://github.com/codama/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]:
81+
- Updated dependencies [[`bcf6a23`](https://github.com/codama-idl/codama/commit/bcf6a23fa0e0d1f1a064ea6ddcfc9c092190a51f)]:
8282
- @codama/errors@0.20.6
8383
- @codama/nodes@0.20.6
8484
- @codama/validators@0.20.6
@@ -88,7 +88,7 @@
8888

8989
### Patch Changes
9090

91-
- Updated dependencies [[`908acba`](https://github.com/codama/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]:
91+
- Updated dependencies [[`908acba`](https://github.com/codama-idl/codama/commit/908acba99cdb0b761ed79aebf6828e23fde97ef8)]:
9292
- @codama/errors@0.20.5
9393
- @codama/nodes@0.20.5
9494
- @codama/validators@0.20.5
@@ -98,7 +98,7 @@
9898

9999
### Patch Changes
100100

101-
- Updated dependencies [[`668b550`](https://github.com/codama/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]:
101+
- Updated dependencies [[`668b550`](https://github.com/codama-idl/codama/commit/668b550aa2172c24ddb3b8751d91e67e94a93fa4)]:
102102
- @codama/visitors@0.20.4
103103
- @codama/nodes@0.20.4
104104
- @codama/errors@0.20.4
@@ -108,7 +108,7 @@
108108

109109
### Patch Changes
110110

111-
- Updated dependencies [[`4bc5823`](https://github.com/codama/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]:
111+
- Updated dependencies [[`4bc5823`](https://github.com/codama-idl/codama/commit/4bc5823377824198bd5a6432d16333b2cb1d8b8c)]:
112112
- @codama/errors@0.20.3
113113
- @codama/validators@0.20.3
114114
- @codama/visitors@0.20.3
@@ -118,9 +118,9 @@
118118

119119
### Patch Changes
120120

121-
- [`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies
121+
- [`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e) Thanks [@lorisleiva](https://github.com/lorisleiva)! - Fix invalid package dependencies
122122

123-
- Updated dependencies [[`964776f`](https://github.com/codama/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]:
123+
- Updated dependencies [[`964776f`](https://github.com/codama-idl/codama/commit/964776fe73402c236d334032821013674c3b1a5e)]:
124124
- @codama/errors@0.20.2
125125
- @codama/nodes@0.20.2
126126
- @codama/validators@0.20.2
@@ -130,9 +130,9 @@
130130

131131
### Patch Changes
132132

133-
- [#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
133+
- [#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
134134

135-
- Updated dependencies [[`0dec0c8`](https://github.com/codama/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]:
135+
- Updated dependencies [[`0dec0c8`](https://github.com/codama-idl/codama/commit/0dec0c8fff5e80fafc964416058e4ddf1db2bda0)]:
136136
- @codama/errors@0.20.1
137137
- @codama/nodes@0.20.1
138138
- @codama/validators@0.20.1

packages/library/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
"license": "MIT",
6262
"repository": {
6363
"type": "git",
64-
"url": "https://github.com/codama/codama"
64+
"url": "https://github.com/codama-idl/codama"
6565
},
6666
"bugs": {
67-
"url": "http://github.com/codama/codama/issues"
67+
"url": "http://github.com/codama-idl/codama/issues"
6868
},
6969
"browserslist": [
7070
"supports bigint and not dead",

0 commit comments

Comments
 (0)