-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
US-1955 Added mainnet contracts and fixed rns in mainnet
- Loading branch information
1 parent
8966026
commit 21ddfa5
Showing
9 changed files
with
105 additions
and
35 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,29 +1,56 @@ | ||
import { Contact } from 'shared/types' | ||
import addresses from 'screens/rnsManager/addresses.json' | ||
import { TESTNET, MAINNET } from 'screens/rnsManager/addresses.json' | ||
|
||
export const defaultContacts: Record<string, Contact> = { | ||
[addresses.fifsAddrRegistrarAddress]: { | ||
address: addresses.fifsAddrRegistrarAddress, | ||
[TESTNET.fifsAddrRegistrarAddress]: { | ||
address: TESTNET.fifsAddrRegistrarAddress, | ||
name: 'RNS Manager', | ||
displayAddress: addresses.fifsAddrRegistrarAddress, | ||
displayAddress: TESTNET.fifsAddrRegistrarAddress, | ||
isEditable: false, | ||
}, | ||
[addresses.rifTokenAddress]: { | ||
address: addresses.rifTokenAddress, | ||
[TESTNET.rifTokenAddress]: { | ||
address: TESTNET.rifTokenAddress, | ||
name: 'RIF Token', | ||
displayAddress: addresses.rifTokenAddress, | ||
displayAddress: TESTNET.rifTokenAddress, | ||
isEditable: false, | ||
}, | ||
[addresses.rnsRegistryAddress]: { | ||
address: addresses.rnsRegistryAddress, | ||
[TESTNET.rnsRegistryAddress]: { | ||
address: TESTNET.rnsRegistryAddress, | ||
name: 'RNS Registry', | ||
displayAddress: addresses.rnsRegistryAddress, | ||
displayAddress: TESTNET.rnsRegistryAddress, | ||
isEditable: false, | ||
}, | ||
[addresses.rskOwnerAddress]: { | ||
address: addresses.rskOwnerAddress, | ||
[TESTNET.rskOwnerAddress]: { | ||
address: TESTNET.rskOwnerAddress, | ||
name: 'RSK Owner', | ||
displayAddress: addresses.rskOwnerAddress, | ||
displayAddress: TESTNET.rskOwnerAddress, | ||
isEditable: false, | ||
}, | ||
} | ||
|
||
export const mainnetContacts: Record<string, Contact> = { | ||
[MAINNET.fifsAddrRegistrarAddress]: { | ||
address: MAINNET.fifsAddrRegistrarAddress, | ||
name: 'RNS Manager', | ||
displayAddress: MAINNET.fifsAddrRegistrarAddress, | ||
isEditable: false, | ||
}, | ||
[MAINNET.rifTokenAddress]: { | ||
address: MAINNET.rifTokenAddress, | ||
name: 'RIF Token', | ||
displayAddress: MAINNET.rifTokenAddress, | ||
isEditable: false, | ||
}, | ||
[MAINNET.rnsRegistryAddress]: { | ||
address: MAINNET.rnsRegistryAddress, | ||
name: 'RNS Registry', | ||
displayAddress: MAINNET.rnsRegistryAddress, | ||
isEditable: false, | ||
}, | ||
[MAINNET.rskOwnerAddress]: { | ||
address: MAINNET.rskOwnerAddress, | ||
name: 'RSK Owner', | ||
displayAddress: MAINNET.rskOwnerAddress, | ||
isEditable: false, | ||
}, | ||
} |
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
{ | ||
"rskOwnerAddress": "0xca0a477e19bac7e0e172ccfd2e3c28a7200bdb71", | ||
"fifsAddrRegistrarAddress": "0x90734bd6bf96250a7b262e2bc34284b0d47c1e8d", | ||
"rifTokenAddress": "0x19f64674d8a5b4e652319f5e239efd3bc969a1fe", | ||
"rnsRegistryAddress": "0x7d284aaac6e925aad802a53c0c69efe3764597b8" | ||
"TESTNET": { | ||
"rskOwnerAddress": "0xca0a477e19bac7e0e172ccfd2e3c28a7200bdb71", | ||
"fifsAddrRegistrarAddress": "0x90734bd6bf96250a7b262e2bc34284b0d47c1e8d", | ||
"rifTokenAddress": "0x19f64674d8a5b4e652319f5e239efd3bc969a1fe", | ||
"rnsRegistryAddress": "0x7d284aaac6e925aad802a53c0c69efe3764597b8" | ||
}, | ||
"MAINNET": { | ||
"rskOwnerAddress": "0x45d3e4fb311982a06ba52359d44cb4f5980e0ef1", | ||
"fifsAddrRegistrarAddress": "0xd9c79ced86ecf49f5e4a973594634c83197c35ab", | ||
"rifTokenAddress": "0x2acc95758f8b5f583470ba265eb685a8f45fc9d5", | ||
"rnsRegistryAddress": "0xcb868aeabd31e2b66f74e9a55cf064abb31a4ad5" | ||
} | ||
} |
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,18 @@ | ||
import { ChainTypesByIdType } from 'shared/constants/chainConstants' | ||
|
||
import { TESTNET, MAINNET } from './addresses.json' | ||
|
||
export interface RNS_ADDRESSES_TYPE { | ||
rskOwnerAddress: string | ||
fifsAddrRegistrarAddress: string | ||
rifTokenAddress: string | ||
rnsRegistryAddress: string | ||
} | ||
|
||
export const RNS_ADDRESSES_BY_CHAIN_ID: Record< | ||
ChainTypesByIdType, | ||
RNS_ADDRESSES_TYPE | ||
> = { | ||
30: MAINNET, | ||
31: TESTNET, | ||
} |