-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: initial dinero read adapter implementation * feat: parse all addresses with getAddress * nits and linting --------- Co-authored-by: greenz <[email protected]>
- Loading branch information
1 parent
d0b1f8c
commit 6e9feb4
Showing
29 changed files
with
6,941 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
packages/adapters-library/src/adapters/dinero/common/deploymentAddresses.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'), | ||
} |
Oops, something went wrong.