Open cds-amal opened 1 day ago
Looks great so far.
1 additional thing that wasn't in the requirements.
i added a din_registry level metadata value called registry_block_epoch
that should be a minimum type of uint16.
This value will determine the epoch value for all proxy's, aka, each proxy sync's its registry data every 100 blocks.
i think the term NetworkMeta
makes sense when referencing the object. but when we use the term meta
by itself, it loses useful context. is it possible to update references to meta
to either metaData
or networkMeta
Summary:
This PR looks at #45 and introduces updates to
rpc-definitions
,din-sc
anddin-go
to support health checks, network provisioning, and provider metadata. It includes new ad-hoc testing scripts to query and verify network and provider data, allowing improved monitoring and control over network operations within the DIN registry.Note
The following two methods were not added because I'm not sure if they need to be discoverable. We should determine that before including them in the registry. (cc: @twhay)
Key Updates:
Add Metadata
isProvisioned
: true when alive on DINhealthcheck_method_bit
,healthcheck_interval_sec
block_lag_limit
request_attempt_count
: # of requests that the proxy allows for a given request before deeming the request dead.max_request_payload_size_kb
din_enabled
: true when alive on DINauth
: string, currently 'siwe'Update ABI Files:
NetworkOperationsConfig
and related functions (getNetworkOperationsConfig
,setNetworkOperationsConfig
).Provide Ad-hoc Testing Scripts:
test-ethers.mjs
andtest-web3.mjs
scripts to validate network configurations with locally deployed contracts usingethers.js
andweb3.js
.How to Test:
zellij
with three panes. The left pane runsanvil
. In the upper-right pane, pressenter
to deploy the contracts.esc
to activate the command line.din-sc
directory:You should see a table output similar to this: