Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions scripts/openrpc-json-updater/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,27 @@ export const CUSTOM_FIELDS = [
'eth_sendRawTransaction.summary',
];

export const DISCARDED_METHODS = ['engine_*'];
export const UNSUPPORTED_METHODS = [
'engine_*',
'eth_coinbase',
'eth_blobBaseFee',
'eth_syncing',
'eth_getProof',
'eth_createAccessList',
'eth_sendTransaction',
'eth_sign',
'eth_signTransaction',
];

export const NOT_IMPLEMENTED_METHODS = [
'debug_getBadBlocks',
'debug_getRawBlock',
'debug_getRawHeader',
'debug_getRawReceipts',
'debug_getRawTransaction',
'eth_coinbase',
'eth_blobBaseFee',
'eth_syncing',
'eth_getProof',
];

export const SKIPPED_METHODS = [...DISCARDED_METHODS, ...NOT_IMPLEMENTED_METHODS];
export const SKIPPED_METHODS = [...UNSUPPORTED_METHODS, ...NOT_IMPLEMENTED_METHODS];

export function shouldSkipMethod(methodName, path) {
if (!methodName) return false;
Expand Down Expand Up @@ -85,7 +91,7 @@ export function getSkippedMethodCategory(methodName) {
return false;
};

if (DISCARDED_METHODS.some((pattern) => matchesPattern(pattern, methodName))) {
if (UNSUPPORTED_METHODS.some((pattern) => matchesPattern(pattern, methodName))) {
return 'discarded';
}

Expand Down
Loading