feat: use object-style params for Solana DAS endpoints#1029
feat: use object-style params for Solana DAS endpoints#1029dslovinsky wants to merge 3 commits intomainfrom
Conversation
Add `paramStructure: by-name` to all 12 DAS methods so the rendered
docs produce `params: { ... }` instead of `params: [...]`.
- Add missing primary fields (id, ids, ownerAddress, mint, etc.) and
`required` arrays to config schemas in asset.yaml
- Create GetAssetProofParams / GetAssetProofsParams schemas
- Collapse multi-param methods into a single config param
- Update examples to use full object values
Co-Authored-By: Claude <noreply@anthropic.com>
🌿 Documentation Preview
|
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 769afcf324
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
With `paramStructure: by-name`, each param's `name` becomes a top-level
JSON key on the wire. Using `name: Configuration` produced
`"params": {"Configuration": {...}}` instead of the expected flat params.
Expand each method's single Configuration param into individual named
params where each name matches the actual DAS API field name.
Co-Authored-By: Claude <noreply@anthropic.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24c72b6ecf
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Add commitment, minContextSlot, dataSlice, and encoding params that were available in GetTokenAccountsConfig but omitted from the expanded by-name param list. Co-Authored-By: Claude <noreply@anthropic.com>
|
@claude review |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
Summary
paramStructure: by-nameto all 12 Solana DAS methods so the docs site renders"params": { ... }instead of"params": [...]id,ids,ownerAddress,mint, etc.) andrequiredarrays to config schemas inasset.yamlGetAssetProofParamsandGetAssetProofsParamsschemas for methods that previously had no config objectCompanion PR: OMGWINNING/docs-site (rendering support for
paramStructure: by-name)Test plan
pnpm generate:rpc— confirmparamStructure: "by-name"appears in generatedsolana-das.jsonfor all 12 methodsownerAddressinGetAssetsByOwnerConfig)