Skip to content

fix(providers): add "nibiru" as chain with chainId 6900 to match ethereum-lists/chains #174

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Unique-Divine
Copy link

@Unique-Divine Unique-Divine commented May 23, 2025

Purpose

Adds Nibiru to "providers.json" to accurately propagate its EVM RPC endpoint and chainId of 6900.

Related:

Rationale

Several TVL Adapters are blocked by "nibiru":

  1. missing its chainId field on the ChainApi (api) object,
  2. and having the default value of 400069 as the chainId on the LlamaProvider

This can be seen from console logging the api object in the downstream repos.
For example, this is from the uniV3Export helper in the adapters repo:

// DEBUG uniV3Export forEach 
{
  chain: 'nibiru',
  fromBlock: 19674297,
  api: <ref *1> ChainApi {
    block: undefined,
    chain: 'nibiru',
    timestamp: 1747982188,
    provider: LlamaProvider {
      quorum: 1,
      eventQuorum: 1,
      eventWorkers: 1,
      isCustomLlamaProvider: true,
      rpcs: [
        {
          url: 'https://evm-rpc.nibiru.fi',
          provider: JsonRpcProvider {}
        },
        [length]: 1
      ],
      archivalRPCs: [ [length]: 0 ],
      chainName: 'nibiru',
      chainId: 400069,
      _isReady: Promise { undefined },
      [providerConfigs]: [Getter],
      [pollingInterval]: [Getter],
      [provider]: [Getter],
      [plugins]: [Getter],
      [disableCcipRead]: [Getter/Setter],
      [destroyed]: [Getter],
      [paused]: [Getter/Setter]
    },
    _balances: Balances { chain: 'nibiru', timestamp: 1747982188, _balances: {} },
    chainId: undefined,
    storedKey: 'nibiru',
    api: [Circular *1]
  }
}: 

The Point: THe RPC is being picked up from ethereum-lists/chains, but the chainId is not.

@Unique-Divine
Copy link
Author

Is there anything else that needs to be edited besides the providers.json file, @g1nt0ki ?

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

Successfully merging this pull request may close these issues.

1 participant