Commit 69d39da
committed
feat: add multichain support to endpoint resource
Adds an optional `multichain` boolean attribute to the `quicknode_endpoint`
resource. Wires the QuickNode Admin API enable_multichain and
disable_multichain endpoints into Create/Update, and reads the current
state back via the `is_multichain` field on the show endpoint response so
drift is detected.
Side effects from `make vendor`:
- Refresh of api/quicknode/openapi.json and the generated client, which
adds `is_multichain` (plus other new fields like `name`, `is_dedicated`,
`is_flat_rate`, `status`) to the endpoint types.
- Refresh of api/streams/streams-openapi.json and the generated client.
- Local rename of a duplicate `deleteTag` operationId (two different paths
upstream share the same id) to unblock code generation.
Tests:
- Unit tests for the new setMultichain helper covering enable/disable
success, transport errors, and non-200 responses.1 parent ceb9325 commit 69d39da
10 files changed
Lines changed: 4174 additions & 428 deletions
File tree
- api
- quicknode
- streams
- docs/resources
- examples/multichain-endpoint
- internal/provider
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments