Skip to content

Commit

Permalink
Dinero protocol fixes (#378)
Browse files Browse the repository at this point in the history
* feat: initial dinero read adapter implementation

* feat: parse all addresses with getAddress

* nits and linting

---------

Co-authored-by: greenz <[email protected]>
  • Loading branch information
bergarces and justingreenberg authored Nov 20, 2024
1 parent d0b1f8c commit 6e9feb4
Show file tree
Hide file tree
Showing 29 changed files with 6,941 additions and 3 deletions.
Binary file modified ethereum.db
Binary file not shown.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { getAddress } from 'ethers'
import { Chain } from '../../../core/constants/chains'

export const PX_ETH_DEPLOYMENTS: Partial<Record<Chain, string>> = {
[Chain.Ethereum]: getAddress('0x04C154b66CB340F3Ae24111CC767e0184Ed00Cc6'),
[Chain.Optimism]: getAddress('0x300d2c875c6fb8ce4bf5480b4d34b7c9ea8a33a4'),
[Chain.Arbitrum]: getAddress('0x300d2c875c6fb8ce4bf5480b4d34b7c9ea8a33a4'),
[Chain.Bsc]: getAddress('0x300d2c875c6fb8ce4bf5480b4d34b7c9ea8a33a4'),
[Chain.Base]: getAddress('0x58adE43A276ddF3e101941571eDe398a32492Ed7'),
[Chain.Linea]: getAddress('0x58adE43A276ddF3e101941571eDe398a32492Ed7'),
}

export const APX_ETH_DEPLOYMENTS: Partial<Record<Chain, string>> = {
[Chain.Ethereum]: getAddress('0x9Ba021B0a9b958B5E75cE9f6dff97C7eE52cb3E6'),
[Chain.Optimism]: getAddress('0x16ed8e219cde31e14a80dcb6c9127a5ec6e88e46'),
[Chain.Arbitrum]: getAddress('0x16ed8e219cde31e14a80dcb6c9127a5ec6e88e46'),
[Chain.Bsc]: getAddress('0x16ed8e219cde31e14a80dcb6c9127a5ec6e88e46'),
[Chain.Base]: getAddress('0xEd97D39448D1c3891aAFCb28c9CF63F893D65743'),
[Chain.Linea]: getAddress('0xEd97D39448D1c3891aAFCb28c9CF63F893D65743'),
}
Loading

0 comments on commit 6e9feb4

Please sign in to comment.