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

Mapping from chainId to Safe Network ShortName (oeth, arb1 etc) #2677

Closed
startswithaj opened this issue Oct 23, 2023 · 2 comments
Closed

Mapping from chainId to Safe Network ShortName (oeth, arb1 etc) #2677

startswithaj opened this issue Oct 23, 2023 · 2 comments

Comments

@startswithaj
Copy link

startswithaj commented Oct 23, 2023

Is there a mapping from chainId or Safe UI's network url shortname? I.E. https://app.safe.global/transactions/history?safe=oeth:

{
  42161: 'arb1'
  10: 'oeth'
}
@katspaugh
Copy link
Member

katspaugh commented Oct 23, 2023

You should check the safe-deployments repo.

Sorry, misunderstood the question. You can find a mapping here: https://github.com/safe-global/safe-wallet-web/blob/edd69235fd21eb56b54a9e17eed77e6df8b8d243/src/config/chains.ts#L4

@startswithaj
Copy link
Author

Just circling back on this one. If anyone is looking for the actual list its located here: https://github.com/safe-global/safe-core-sdk/blob/main/packages/protocol-kit/src/utils/eip-3770/config.ts

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