Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new chains automatically #128

Open
wehappyfew opened this issue Dec 21, 2023 · 1 comment
Open

Add new chains automatically #128

wehappyfew opened this issue Dec 21, 2023 · 1 comment

Comments

@wehappyfew
Copy link

I am reading this about adding details for new chains manually, but it is a ton of work.

Is there a way to just use the json object [like this for example] that will just contain any wanted chain ??
Maybe as an external config map when on k8s?

{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "chainId": "999",
      "chainName": "zora-testnet",
      "shortName": "zora",
      "description": "zora testnet",
      "l2": false,
      "rpcUri": {
        "authentication": "NO_AUTHENTICATION",
        "value": "https://testnet.rpc.zora.energy"
      },
      "safeAppsRpcUri": {
        "authentication": "NO_AUTHENTICATION",
        "value": "https://testnet.rpc.zora.energy"
      },
      "publicRpcUri": {
        "authentication": "NO_AUTHENTICATION",
        "value": "https://testnet.rpc.zora.energy"
      },
      "blockExplorerUriTemplate": {
        "address": "https://explorer.zora.energy/address/{{address}}",
        "txHash": "https://explorer.zora.energy/tx/{{txHash}}",
        "api": "https://explorer.zora.energy/api?module={{module}}&action={{action}}&address={{address}}&apiKey={{apiKey}}"
      },
      "nativeCurrency": {
        "name": "Eth",
        "symbol": "eth",
        "decimals": 18,
        "logoUri": "http://nginx:8000/cfg/media/chains/999/currency_logo.png"
      },
      "transactionService": "http://nginx:8000/txs",
      "vpcTransactionService": "http://nginx:8000/txs",
      "theme": {
        "textColor": "#ffffff",
        "backgroundColor": "#000000"
      },
      "gasPrice": [],
      "ensRegistryAddress": null,
      "recommendedMasterCopyVersion": "1.3.0",
      "disabledWallets": [],
      "features": []
    }
  ]
}
@moisses89
Copy link
Member

I think that would be possible but should be handle in the config service project, maybe from a django command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants