Skip to content

Commit

Permalink
Update json files (#2774)
Browse files Browse the repository at this point in the history
* ci: update json files

* fix: change chain id

---------

Co-authored-by: novasama-bot <140433189+novasama-bot[bot]@users.noreply.github.com>
Co-authored-by: Stepan Lavrentev <[email protected]>
  • Loading branch information
novasama-bot[bot] and stepanLav authored Dec 4, 2024
1 parent 4e49852 commit 9566874
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/renderer/pages/Fellowship/model/fellowshipPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import { fellowshipNetworkFeature } from '@/features/fellowship-network';

export const COLLECTIVES_CHAIN_ID: ChainId = '0x46ee89aa2eedd13e988962630ec9fb7565964cf5023bb351f2b6b25c1b68b0b2';
export const COLLECTIVES_WESTEND_CHAIN_ID: ChainId =
'0x1eb6fb0ba5187434de017a70cb84d4f47142df1d571d0ef9e7e1407f2b80b93c';

'0x713daf193a6301583ff467be736da27ef0a72711b248927ba413f573d2b38e44';
export const COLLECTIVES_NOVASAMA_CHAIN_ID: ChainId =
'0xa35b4d0bf5767fcc3a4795aca93ef3b152c7c280d558d49eea535cae56a3a93e';
const flow = createGate<{ chainId: ChainId }>();

// We want to show main fellowship on specific chain - Polkadot Collectives
Expand Down
12 changes: 9 additions & 3 deletions src/renderer/pages/Fellowship/ui/Fellowship.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ import { fellowshipNetworkFeature } from '@/features/fellowship-network';
import { fellowshipProfileFeature } from '@/features/fellowship-profile';
import { fellowshipReferendumsFeature } from '@/features/fellowship-referendums';
import { navigationModel } from '@/features/navigation';
import { COLLECTIVES_CHAIN_ID, COLLECTIVES_WESTEND_CHAIN_ID, fellowshipPageModel } from '../model/fellowshipPage';
import {
COLLECTIVES_CHAIN_ID,
COLLECTIVES_NOVASAMA_CHAIN_ID,
COLLECTIVES_WESTEND_CHAIN_ID,
fellowshipPageModel,
} from '../model/fellowshipPage';

const { MembersCard } = fellowshipMembersFeature.views;
const { ProfileCard } = fellowshipProfileFeature.views;
Expand Down Expand Up @@ -63,8 +68,9 @@ export const Fellowship = () => {
navigationModel.events.navigateTo(generatePath(Paths.FELLOWSHIP_LIST, { chainId }))
}
>
<Select.Item value={COLLECTIVES_CHAIN_ID}>Polkadot People</Select.Item>
<Select.Item value={COLLECTIVES_WESTEND_CHAIN_ID}>Test People</Select.Item>
<Select.Item value={COLLECTIVES_CHAIN_ID}>Polkadot Collectives</Select.Item>
<Select.Item value={COLLECTIVES_WESTEND_CHAIN_ID}>Westend Collectives</Select.Item>
<Select.Item value={COLLECTIVES_NOVASAMA_CHAIN_ID}>Novasama Collectives</Select.Item>
</Select>
{/* eslint-enable i18next/no-literal-string */}
</div>
Expand Down
63 changes: 63 additions & 0 deletions src/renderer/shared/config/chains/chains_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -7815,5 +7815,68 @@
}
}
]
},
{
"name": "Novasama Testnet - Fellowship",
"specName": "collectives-westend",
"addressPrefix": 42,
"chainId": "0xa35b4d0bf5767fcc3a4795aca93ef3b152c7c280d558d49eea535cae56a3a93e",
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/chains/Westend_Testnet.svg",
"options": [
"testnet"
],
"nodes": [
{
"url": "wss://westend-collectives-a-parachain.novasama-tech.org",
"name": "Novasama node"
}
],
"assets": [
{
"name": "Westend",
"assetId": 0,
"symbol": "WND",
"precision": 12,
"type": "native",
"icon": {
"monochrome": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v2/assets/monochrome/WND.svg",
"colored": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v2/assets/colored/WND.svg"
}
}
]
},
{
"name": "Westend Collectives",
"specName": "westend",
"addressPrefix": 42,
"chainId": "0x713daf193a6301583ff467be736da27ef0a72711b248927ba413f573d2b38e44",
"parentId": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e",
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/chains/Westend_Testnet.svg",
"options": [
"testnet"
],
"nodes": [
{
"url": "wss://collectives-westend-rpc.dwellir.com",
"name": "Dwellir node"
},
{
"url": "wss://westend-collectives-rpc.polkadot.io",
"name": "Parity node"
}
],
"assets": [
{
"name": "Westend",
"assetId": 0,
"symbol": "WND",
"precision": 12,
"type": "native",
"icon": {
"monochrome": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v2/assets/monochrome/WND.svg",
"colored": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v2/assets/colored/WND.svg"
}
}
]
}
]
14 changes: 14 additions & 0 deletions src/renderer/shared/config/tokens/tokens_dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,20 @@
"assetId": 0,
"assetSymbol": "WND",
"type": "native"
},
{
"chainId": "0xa35b4d0bf5767fcc3a4795aca93ef3b152c7c280d558d49eea535cae56a3a93e",
"name": "Novasama Testnet - Fellowship",
"assetId": 0,
"assetSymbol": "WND",
"type": "native"
},
{
"chainId": "0x713daf193a6301583ff467be736da27ef0a72711b248927ba413f573d2b38e44",
"name": "Westend Collectives",
"assetId": 0,
"assetSymbol": "WND",
"type": "native"
}
]
},
Expand Down

0 comments on commit 9566874

Please sign in to comment.