Skip to content

Commit 51667f7

Browse files
authored
feat(xc-admin): add council address mapping (#1348)
* add council address mapping * change filepath * revert filepath * add logs * test * fix * hardcode path if env var not available * remove logs * update mapping
1 parent e7bf47a commit 51667f7

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

governance/xc_admin/packages/xc_admin_frontend/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,3 @@ next-env.d.ts
3838

3939
# mappings
4040
publishers-*.json
41-
signers.json
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"opsLibxVY7Vz5eYMmSfX8cLFCFVYTtH6fr6MiifMpA7": "Ops",
3+
"9sfogFjG8CJKJGWvNDB7NgPusALti3hWKkHGZhKmmxD7": "Marc",
4+
"8TdeB3rUECTGg7hSH6TDS7qVAcC1QMiE5zRazTAuxLZF": "Afif",
5+
"E5KR7yfb9UyVB6ZhmhQki1rM1eBcxHvyGKFZakAC5uc": "Guillermo",
6+
"DUYaUTikwfCQaRwzE1xJhTKGxAVPqKmRKY4Y2ZqsvM3k": "Guilhem",
7+
"3ouXHhNH6QgyxDRLmjgCddbTqYBkPSufLiLgTp2BVy2p": "Jayant",
8+
"38XhwqCgQGdeNeXyHQ94Jrdsoup71G6ioiYuvimXwH3z": "Nope",
9+
"9uDaJ8nG4yhxdhLnaNqARa1d3DjaCT2X7L7LtDR2NQUH": "Robinson",
10+
"CTojzJc5FRs6vjD7Z2g2gWPvQ3vEsHw4ykw5LYmU8aPC": "Shu"
11+
}

governance/xc_admin/packages/xc_admin_frontend/pages/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ import { MultisigContextProvider } from '../contexts/MultisigContext'
1111
import { PythContextProvider } from '../contexts/PythContext'
1212
import { StatusFilterProvider } from '../contexts/StatusFilterContext'
1313
import { classNames } from '../utils/classNames'
14+
import '../mappings/signers.json'
1415

1516
export const getServerSideProps: GetServerSideProps = async () => {
16-
const MAPPINGS_BASE_PATH = process.env.MAPPINGS_BASE_PATH || ''
17+
const MAPPINGS_BASE_PATH = process.env.MAPPINGS_BASE_PATH || 'mappings'
1718
const PUBLISHER_PYTHNET_MAPPING_PATH = `${MAPPINGS_BASE_PATH}/publishers-pythnet.json`
1819
const PUBLISHER_PYTHTEST_MAPPING_PATH = `${MAPPINGS_BASE_PATH}/publishers-pythtest.json`
1920

0 commit comments

Comments
 (0)