Closed Confucian-e closed 2 months ago
Hey, thanks for opening this feature request. The issue with using chainId
s is that they aren't inherently clear or human-readable in terms of identifying which network is being used. Additionally, some people prefer to use hex notation for the chainId
, adding another layer of complexity to parse. I'm hesitant to add chainId
s because I want to encourage developers to be explicit and deliberate in their choices. Typically, the network name is easier and quicker to identify, while the chainId
often takes longer to find (and validate) and can sometimes be confused with the networkId
, which may differ across various chains. Keeping things simple is better in this case.
Hey, thanks for opening this feature request. The issue with using
chainId
s is that they aren't inherently clear or human-readable in terms of identifying which network is being used. Additionally, some people prefer to use hex notation for thechainId
, adding another layer of complexity to parse. I'm hesitant to addchainId
s because I want to encourage developers to be explicit and deliberate in their choices. Typically, the network name is easier and quicker to identify, while thechainId
often takes longer to find (and validate) and can sometimes be confused with thenetworkId
, which may differ across various chains. Keeping things simple is better in this case.
I understand your idea. So, could you add a command to the xdeploy
task that lists all currently available networks? For example, something like npx hardhat xdeploy --list
. Additionally, display their corresponding chainIds so that users can search for the corresponding names based on the chainIds. Of course, this is an optional feature, but I believe it is necessary to include a command that lists all network names.
Hey, thanks for opening this feature request. The issue with using
chainId
s is that they aren't inherently clear or human-readable in terms of identifying which network is being used. Additionally, some people prefer to use hex notation for thechainId
, adding another layer of complexity to parse. I'm hesitant to addchainId
s because I want to encourage developers to be explicit and deliberate in their choices. Typically, the network name is easier and quicker to identify, while thechainId
often takes longer to find (and validate) and can sometimes be confused with thenetworkId
, which may differ across various chains. Keeping things simple is better in this case.I understand your idea. So, could you add a command to the
xdeploy
task that lists all currently available networks? For example, something likenpx hardhat xdeploy --list
. Additionally, display their corresponding chainIds so that users can search for the corresponding names based on the chainIds. Of course, this is an optional feature, but I believe it is necessary to include a command that lists all network names.
I made a PR to add a command to list networks. You can check it https://github.com/pcaversaccio/xdeployer/pull/285
Thx for the PR - I enriched it with the chain IDs now:
Are you ok with this solution?
That's awesome. Just merge and publish new npm pacakge.
I will merge it probably tomorrow as I need to revalidate my code first :)
Published the new version: https://github.com/pcaversaccio/xdeployer/releases/tag/v3.1.0.
Describe the desired feature:
Now we have to set network name in
networks
field. It takes time to find the correct name that matchs. Maybe you can consider supporting chainId as an optional feature?Code example that solves the feature: