Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
feat: init arbitrum nova
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Aug 9, 2022
1 parent 0893435 commit 0d70ca7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core-sdk/src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const USDC_ADDRESS: AddressMap = {
[ChainId.OPTIMISM]: '0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
[ChainId.KAVA]: '0xfA9343C3897324496A05fC75abeD6bAC29f8A40f',
[ChainId.METIS]: '0xEA32A96608495e54156Ae48931A7c20f0dcc1a21',
[ChainId.ARBITRUM_NOVA]: '0x750ba8b76187092B0D1E87E28daaf484d1b5273b',
}

export const USD_ADDRESS: AddressMap = {
Expand All @@ -74,6 +75,7 @@ export const USD_ADDRESS: AddressMap = {
[ChainId.OPTIMISM]: USDC_ADDRESS[ChainId.OPTIMISM],
[ChainId.KAVA]: USDC_ADDRESS[ChainId.KAVA],
[ChainId.METIS]: USDC_ADDRESS[ChainId.METIS],
[ChainId.ARBITRUM_NOVA]: USDC_ADDRESS[ChainId.ARBITRUM_NOVA],
}

export const WETH9_ADDRESS: AddressMap = {
Expand Down Expand Up @@ -102,6 +104,7 @@ export const WETH9_ADDRESS: AddressMap = {
[ChainId.OPTIMISM]: '0x4200000000000000000000000000000000000006',
[ChainId.KAVA]: '0xE3F5a90F9cb311505cd691a46596599aA1A0AD7D',
[ChainId.METIS]: '0x420000000000000000000000000000000000000A',
[ChainId.ARBITRUM_NOVA]: '0x722E8BdD2ce80A4422E880164f2079488e115365',
}

export const WNATIVE_ADDRESS: AddressMap = {
Expand Down Expand Up @@ -137,6 +140,7 @@ export const WNATIVE_ADDRESS: AddressMap = {
[ChainId.MOONBEAM]: '0xAcc15dC74880C9944775448304B263D191c6077F',
[ChainId.KAVA]: '0xc86c7C0eFbd6A49B35E8714C5f59D99De09A225b',
[ChainId.METIS]: '0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481',
[ChainId.ARBITRUM_NOVA]: WETH9_ADDRESS[ChainId.ARBITRUM_NOVA],
}

export const DAI_ADDRESS: AddressMap = {
Expand All @@ -160,6 +164,7 @@ export const DAI_ADDRESS: AddressMap = {
[ChainId.OPTIMISM]: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
[ChainId.KAVA]: '0x765277EebeCA2e31912C9946eAe1021199B39C61',
[ChainId.METIS]: '0x4c078361FC9BbB78DF910800A991C7c3DD2F6ce0',
[ChainId.ARBITRUM_NOVA]: '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
}

export const USDT_ADDRESS: AddressMap = {
Expand All @@ -183,6 +188,7 @@ export const USDT_ADDRESS: AddressMap = {
[ChainId.OPTIMISM]: '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58',
[ChainId.KAVA]: '0xB44a9B6905aF7c801311e8F4E76932ee959c663C',
[ChainId.METIS]: '0xbB06DCA3AE6887fAbF931640f67cab3e3a16F4dC',
[ChainId.ARBITRUM_NOVA]: '0x52484E1ab2e2B22420a25c20FA49E173a26202Cd',
}

export const MIM_ADDRESS: AddressMap = {
Expand Down
1 change: 1 addition & 0 deletions packages/core-sdk/src/constants/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ export const CHAIN_KEY: { [chainId: number]: ChainKey } = {
[ChainId.OPTIMISM]: ChainKey.OPTIMISM,
[ChainId.KAVA]: ChainKey.KAVA,
[ChainId.METIS]: ChainKey.METIS,
[ChainId.ARBITRUM_NOVA]: ChainKey.ARBITRUM_NOVA,
}
1 change: 1 addition & 0 deletions packages/core-sdk/src/constants/legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export const INIT_CODE_HASH: { [chainId: number]: string } = {
[ChainId.FUSE]: '0x1901958ef8b470f2c0a3875a79ee0bd303866d85102c0f1ea820d317024d50b5',
[ChainId.TELOS]: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
[ChainId.MOONBEAM]: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
[ChainId.ARBITRUM_NOVA]: '0xe18a34eb0e04b04f7a0ac29a6e80748dca96319b42c54d679cb821dca90c6303',
}
1 change: 1 addition & 0 deletions packages/core-sdk/src/constants/natives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ export const NATIVE: NativeMap = {
[ChainId.OPTIMISM]: Ether.onChain(ChainId.OPTIMISM),
[ChainId.KAVA]: Kava.onChain(ChainId.KAVA),
[ChainId.METIS]: Metis.onChain(ChainId.METIS),
[ChainId.ARBITRUM_NOVA]: Metis.onChain(ChainId.ARBITRUM_NOVA),
}
9 changes: 9 additions & 0 deletions packages/core-sdk/src/constants/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const USDC: TokenMap = {
[ChainId.OPTIMISM]: new Token(ChainId.OPTIMISM, USDC_ADDRESS[ChainId.OPTIMISM], 6, 'USDC', 'USD Coin'),
[ChainId.KAVA]: new Token(ChainId.KAVA, USDC_ADDRESS[ChainId.KAVA], 6, 'USDC', 'USD Coin'),
[ChainId.METIS]: new Token(ChainId.METIS, USDC_ADDRESS[ChainId.METIS], 6, 'USDC', 'USD Coin'),
[ChainId.ARBITRUM_NOVA]: new Token(ChainId.ARBITRUM_NOVA, USDC_ADDRESS[ChainId.ARBITRUM_NOVA], 6, 'USDC', 'USD Coin'),
}

export const USD: TokenMap = {
Expand Down Expand Up @@ -68,6 +69,13 @@ export const WETH9: TokenMap = {
[ChainId.OPTIMISM]: new Token(ChainId.OPTIMISM, WETH9_ADDRESS[ChainId.OPTIMISM], 18, 'WETH', 'Wrapped Ether'),
[ChainId.KAVA]: new Token(ChainId.KAVA, WETH9_ADDRESS[ChainId.KAVA], 18, 'WETH', 'Wrapped Ether'),
[ChainId.METIS]: new Token(ChainId.METIS, WETH9_ADDRESS[ChainId.METIS], 18, 'WETH', 'Wrapped Ether'),
[ChainId.ARBITRUM_NOVA]: new Token(
ChainId.ARBITRUM_NOVA,
WETH9_ADDRESS[ChainId.ARBITRUM_NOVA],
18,
'WETH',
'Wrapped Ether'
),
}

export const WNATIVE: TokenMap = {
Expand Down Expand Up @@ -157,6 +165,7 @@ export const WNATIVE: TokenMap = {
[ChainId.MOONBEAM]: new Token(ChainId.MOONBEAM, WNATIVE_ADDRESS[ChainId.MOONBEAM], 18, 'WGLMR', 'Wrapped Glimmer'),
[ChainId.KAVA]: new Token(ChainId.KAVA, WNATIVE_ADDRESS[ChainId.KAVA], 18, 'WKAVA', 'Wrapped Kava'),
[ChainId.METIS]: new Token(ChainId.METIS, WNATIVE_ADDRESS[ChainId.METIS], 18, 'WMETIS', 'Wrapped Metis'),
[ChainId.ARBITRUM_NOVA]: WETH9[ChainId.ARBITRUM_NOVA],
}

export const SUSHI: ChainTokenMap = {
Expand Down
1 change: 1 addition & 0 deletions packages/core-sdk/src/enums/ChainId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ export enum ChainId {
OPTIMISM = 10,
KAVA = 2222,
METIS = 1088,
ARBITRUM_NOVA = 42170,
}
1 change: 1 addition & 0 deletions packages/core-sdk/src/enums/ChainKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@ export enum ChainKey {
OPTIMISM = 'optimism',
KAVA = 'kava',
METIS = 'metis',
ARBITRUM_NOVA = 'arbitrum-nova',
}

0 comments on commit 0d70ca7

Please sign in to comment.