DIN-center / din-sc

1 stars 0 forks source link

Din Registry Network/Provider Metadata requirements #45

Open natefikru opened 1 week ago

natefikru commented 1 week ago

There are a number of metadata values that will need to be stored within the din registry to be able to run DIN. all values should have upsert and get capabilities associated with them

Data can mainly be broken down to be stored in 3 different cases.

Din Network Data

TBD

Individual Network Data

This metadata will describe configurable values that a network/service will have associated with it. Most of these values can be overwritten in the proxy by explicit static Caddyfile configuration.

Provider Data

This metadata describes values that are associated with a provider's identity within the din registry

Provider Network Data

metadata associated with a Provider's implementation of a Network

cds-amal commented 1 week ago

Should hc_interval be health_check_interval?

natefikru commented 1 week ago

Should hc_interval be health_check_interval?

yeah that 100% viable, we can technically name these values anything.

cds-amal commented 1 week ago

Would the Gateway/proxy need CRUD operations on all of these?

twhay commented 1 week ago

For Individual Network Data, there are two additional fields needed. Currently, we are providing these two fields to our provider partners, so in a case where this information should be discoverable, it should be added to the Individual Network metadata for discoverability purposes.

  1. block_gas_limit: The block gas limit as set by the network protocol.
  2. max_gas_limit: The maximum gas that can be consumed by an eth_call. This number is the block_gas_limit multiplied an integer. For example, network_max_gas_limit = block_gas_limit * 10 should be the default. All providers will need to adhere to the max_gas_limit when configuring their nodes, as different max_gas_limits will result in some eth_call failing, depending on which provider the request is set to. See this thread for more information on how Infura handles the max_gas_limit.
natefikru commented 1 week ago

Would the Gateway/proxy need CRUD operations on all of these?

gateway only needs to be able to read this data.

cds-amal commented 13 hours ago

For Individual Network Data, there are two additional fields needed. Currently, we are providing these two fields to our provider partners, so in a case where this information should be discoverable, it should be added to the Individual Network metadata for discoverability purposes.

  1. block_gas_limit: The block gas limit as set by the network protocol.
  2. max_gas_limit: The maximum gas that can be consumed by an eth_call. This number is the block_gas_limit multiplied an integer. For example, network_max_gas_limit = block_gas_limit * 10 should be the default. All providers will need to adhere to the max_gas_limit when configuring their nodes, as different max_gas_limits will result in some eth_call failing, depending on which provider the request is set to. See this thread for more information on how Infura handles the max_gas_limit.

@twhay , I think this belongs in a separate issue as its not related to the proxy/router, but instead configuration settings for various Node providers. It might be part of the tests to validate new Providers.