Skip to content

Commit 396a4a5

Browse files
authored
Merge pull request #26 from macalinao/igm/pda-hook
Remove grill-cli
2 parents bbeae99 + fd15126 commit 396a4a5

File tree

165 files changed

+147
-35296
lines changed

Some content is hidden

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

165 files changed

+147
-35296
lines changed

.changeset/solid-moles-open.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@macalinao/grill": minor
3+
---
4+
5+
Use @macalinao/clients-token-metadata instead

CLAUDE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ bun test # Run tests directly
4040
bun run changeset # Create changeset for version bumps
4141
bun run ci:publish # Publish packages to npm
4242

43+
# Coda (Code generation)
44+
coda generate # Generate type-safe clients from Anchor IDLs (run directly, no npx/bunx)
45+
4346
# Example App Development
4447
cd apps/example-dapp
4548
bun run dev # Start Vite dev server

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,35 @@ Traditional Solana development suffers from the N+1 query problem. Every compone
156156
- 🏗️ **Incremental migration** - works alongside existing code
157157
- 📦 **Modern stack** - Built on @solana/kit and gill
158158

159+
## Works Great With
160+
161+
### [@macalinao/coda](https://github.com/macalinao/coda)
162+
163+
Grill pairs perfectly with **Coda**, our automated client generation tool for Solana programs. While Grill handles efficient account fetching and transaction management, Coda generates type-safe TypeScript clients from your Anchor IDLs automatically.
164+
165+
Together they provide:
166+
- **Zero boilerplate**: Coda generates the program clients, Grill batches the account fetches
167+
- **End-to-end type safety**: From IDL to UI components
168+
- **Automatic synchronization**: Keep your clients in sync with on-chain programs
169+
- **Production-ready code**: Both tools generate code that's ready for production use
170+
171+
```bash
172+
# Generate type-safe clients with Coda
173+
coda generate
174+
175+
# Use the generated clients with Grill's batching
176+
import { useAccount } from "@macalinao/grill";
177+
import { getMyProgramDecoder } from "./generated/myProgram";
178+
179+
function MyComponent() {
180+
const { data } = useAccount({
181+
address: programAccountAddress,
182+
decoder: getMyProgramDecoder() // Generated by Coda!
183+
});
184+
// Fully typed account data with automatic batching
185+
}
186+
```
187+
159188
## Documentation
160189
161190
Check out the comprehensive guides in [`docs/grill/`](./docs/grill/):

bun.lock

Lines changed: 105 additions & 209 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
},
4949
"devDependencies": {
5050
"@biomejs/biome": "^2.2.0",
51-
"@changesets/cli": "^2.29.5",
51+
"@changesets/cli": "^2.29.6",
5252
"eslint": "^9.33.0",
5353
"husky": "^9.1.7",
5454
"lint-staged": "^16.1.5",
5555
"prettier": "^3.6.2",
56-
"turbo": "^2.5.5",
56+
"turbo": "^2.5.6",
5757
"typescript": "^5.9.2"
5858
},
5959
"packageManager": "[email protected]",

packages/codama-instruction-accounts-dedupe-visitor/CHANGELOG.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/codama-instruction-accounts-dedupe-visitor/README.md

Lines changed: 0 additions & 76 deletions
This file was deleted.

packages/codama-instruction-accounts-dedupe-visitor/eslint.config.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/codama-instruction-accounts-dedupe-visitor/package.json

Lines changed: 0 additions & 61 deletions
This file was deleted.

packages/codama-instruction-accounts-dedupe-visitor/src/index.ts

Lines changed: 0 additions & 130 deletions
This file was deleted.

0 commit comments

Comments
 (0)