Skip to main content

Module rpc

Module rpc 

Source
Expand description

RPC testing utilities.

Macrosยง

shuffled_list ๐Ÿ”’

Structsยง

ShuffledList ๐Ÿ”’

Enumsยง

RpcMethodRejection ๐Ÿ”’

Constantsยง

MONAD_SYSTEM_ADDRESS ๐Ÿ”’

Staticsยง

ARBITRUM_URLS ๐Ÿ”’
DRPC_KEYS ๐Ÿ”’
ETHERSCAN_KEYS ๐Ÿ”’
HTTP_ARCHIVE_DOMAINS ๐Ÿ”’
HTTP_DOMAINS ๐Ÿ”’
WS_ARCHIVE_DOMAINS ๐Ÿ”’
WS_DOMAINS ๐Ÿ”’

Functionsยง

canonicalize_monad_system_receipt ๐Ÿ”’
canonicalize_monad_system_response ๐Ÿ”’
canonicalize_monad_system_result ๐Ÿ”’
canonicalize_monad_system_transaction ๐Ÿ”’
debug_url ๐Ÿ”’
Basic redaction for debugging RPC URLs.
env_rpc_url ๐Ÿ”’
Returns the RPC URL configured in the var environment variable, if it is set and non-empty.
next_archive_url ๐Ÿ”’
Returns a URL that has access to archive state.
next_etherscan_api_key
Returns the next etherscan api key.
next_http_archive_rpc_url
Returns an HTTP URL that has access to archive state
next_http_rpc_endpoint
Returns the next mainnet rpc URL in inline
next_rpc_endpoint
Returns the next HTTP RPC URL.
next_tempo_mainnet_rpc_endpoint
Returns the HTTP RPC URL used to fork Tempo mainnet.
next_tempo_testnet_rpc_endpoint
Returns the HTTP RPC URL used to fork Tempo testnet.
next_url ๐Ÿ”’
next_url_inner ๐Ÿ”’
next_ws_archive_rpc_url
Returns a websocket URL that has access to archive state
next_ws_endpoint
Returns the next WS RPC URL.
next_ws_rpc_endpoint
Returns the next mainnet rpc URL in inline
parse_rpc_quantity ๐Ÿ”’
rpc_endpoints
the RPC endpoints used during tests
spawn_canonical_monad_system_rpc
Spawns an RPC proxy that presents one transaction as a canonical Monad protocol envelope.
spawn_rpc_proxy_blocking_first_submission
Spawns an RPC proxy that records the params of every request to method and holds the first one until release is notified, then answers it with 503 Service Unavailable.
spawn_rpc_proxy_canned_method
Spawns an RPC proxy that answers method with result instead of forwarding it upstream.
spawn_rpc_proxy_internal_error_after
Spawns an RPC proxy that returns a JSON-RPC internal error for method after forwarding successful_calls requests.
spawn_rpc_proxy_mapping_method
Spawns an RPC proxy that forwards every request upstream and passes each method result, together with the request params, through map before returning it.
spawn_rpc_proxy_method_not_found_before
Spawns an RPC proxy that returns method-not-found for the first unavailable_calls requests to method.
spawn_rpc_proxy_recording_method
Spawns an RPC proxy that records the params of every request to method before forwarding it.
spawn_rpc_proxy_rejecting_method ๐Ÿ”’
spawn_rpc_proxy_rejecting_method_after
Spawns an RPC proxy that rejects method after forwarding successful_calls requests.
spawn_rpc_proxy_rejecting_method_after_when_enabled
Spawns an RPC proxy that forwards successful_calls requests to method, then rejects later requests while the returned switch is enabled.
spawn_rpc_proxy_rejecting_method_when_enabled
Spawns an RPC proxy whose rejection of method can be enabled after startup.
spawn_rpc_proxy_requiring_header
Spawns an RPC proxy that forwards requests containing the required header and rejects all others.
spawn_rpc_proxy_retyping_first_block_transaction
Spawns an RPC proxy that reports the first transaction of every full block under tx_type.