Skip to content

rpc-extractor: use version-agnostic corepc model types where possible; otherwise use version-specific types explicitly - #351

Merged
0xB10C merged 7 commits into
masterfrom
2026-01-corepc-use-model-instead-of-JSON-type
Feb 6, 2026
Merged

0xB10C merged 7 commits into
masterfrom
2026-01-corepc-use-model-instead-of-JSON-type

Conversation

@0xB10C

@0xB10C 0xB10C commented Feb 6, 2026 •

Copy link
Copy Markdown
Collaborator

As commented in

use corepc_client::types::v28::{GetNetworkInfo, GetNetworkInfoAddress, GetNetworkInfoNetwork};
use corepc_client::types::v29::GetBlockchainInfo;
use corepc_client::types::v30::GetMempoolInfo;
// TODO: Ideally, all type imports should use the generic mtype types.
use corepc_node::mtype::{GetOrphanTxsVerboseTwo, GetOrphanTxsVerboseTwoEntry};

we should use the mtype's here. These are future proof and don't require us to touch anything when we upgrade to a newer corepc node feature.

This fixes #344

@0xB10C 0xB10C added rust Pull requests that update rust code rpc-extractor labels Feb 6, 2026
@0xB10C
0xB10C marked this pull request as ready for review February 6, 2026 22:21
@0xB10C
0xB10C merged commit 1b0b429 into master Feb 6, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rpc-extractor rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rpc-extractor: use corepc model instead of version specific JSON fields

1 participant