-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add people parachain #124
Merged
Merged
Add people parachain #124
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ea2abed
Add people parachain
wirednkod 355a179
remove clients file
wirednkod 3d73516
Fix the people chain
wirednkod b16d610
Merge branch 'main' of github.com:delegit-xyz/dashboard into nik-prep…
wirednkod 8cad8a2
Merge branch 'main' of github.com:delegit-xyz/dashboard into nik-prep…
wirednkod 9c2d118
Tmp people parachain
wirednkod 300cff9
minor
wirednkod 08344e8
Merge branch 'main' into nik-prepare-people-parachain
wirednkod 8fc78e9
Merge branch 'main' into nik-prepare-people-parachain
wirednkod 82d36e1
Fix merge
wirednkod 748e6fc
Finalize identity integration
wirednkod 2657f05
Merge branch 'main' into nik-prepare-people-parachain
wirednkod f447441
Address comments
wirednkod ab0bcfe
Merge branch 'nik-prepare-people-parachain' of github.com:delegit-xyz…
wirednkod 14d26ce
Fix RPCs for people chain
wirednkod e808560
Remove forgotten code :)
wirednkod 8bc86c1
Merge branch 'main' into nik-prepare-people-parachain
wirednkod 833072a
Address comments
wirednkod 3039a11
minor fix
wirednkod b61e66c
remove non-trusted endpoints
wirednkod 40033eb
leave only 1 endpoint for people chain
wirednkod 494b759
Merge branch 'main' into nik-prepare-people-parachain
wirednkod 339be23
Address comments
wirednkod d8db388
Merge branch 'nik-prepare-people-parachain' of github.com:delegit-xyz…
wirednkod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"polkadotPeople": { | ||
"nodes": [ | ||
{ | ||
"url": "wss://sys.ibp.network/people-polkadot", | ||
"name": "IBP1" | ||
}, | ||
{ | ||
"url": "wss://sys.dotters.network/people-polkadot", | ||
"name": "IBP2" | ||
}, | ||
{ | ||
"url": "wss://rpc-people-polkadot.luckyfriday.io", | ||
"name": "LuckyFriday" | ||
}, | ||
{ | ||
"url": "wss://polkadot-people-rpc.polkadot.io", | ||
"name": "Parity" | ||
}, | ||
{ | ||
"url": "wss://people-polkadot.public.curie.radiumblock.co/ws", | ||
"name": "RadiumBlock" | ||
} | ||
] | ||
}, | ||
"kusamaPeople": { | ||
"nodes": [ | ||
{ | ||
"url": "wss://people-kusama-rpc.dwellir.com", | ||
"name": "Dwellir" | ||
}, | ||
{ | ||
"url": "wss://sys.ibp.network/people-kusama", | ||
"name": "IBP1" | ||
}, | ||
{ | ||
"url": "wss://sys.dotters.network/people-kusama", | ||
"name": "IBP2" | ||
}, | ||
{ | ||
"url": "wss://rpc-people-kusama.luckyfriday.io", | ||
"name": "LuckyFriday" | ||
}, | ||
{ | ||
"url": "wss://kusama-people-rpc.polkadot.io", | ||
"name": "Parity" | ||
}, | ||
{ | ||
"url": "wss://ksm-rpc.stakeworld.io/people", | ||
"name": "Stakeworld" | ||
} | ||
] | ||
}, | ||
"westendPeople": { | ||
"nodes": [ | ||
{ | ||
"url": "wss://people-westend-rpc.dwellir.com", | ||
"name": "Dwellir" | ||
}, | ||
{ | ||
"url": "wss://sys.ibp.network/people-westend", | ||
"name": "IBP1" | ||
}, | ||
{ | ||
"url": "wss://sys.dotters.network/people-westend", | ||
"name": "IBP2" | ||
}, | ||
{ | ||
"url": "wss://westend-people-rpc.polkadot.io", | ||
"name": "Parity" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import { BsTwitterX } from 'react-icons/bs' | ||
import { IoCheckmarkCircle, IoMail } from 'react-icons/io5' | ||
import { TbWorld } from 'react-icons/tb' | ||
import { Button } from './ui/button' | ||
import { useIdentity } from '@/hooks/useIdentity' | ||
import { TbCircleDashedMinus } from 'react-icons/tb' | ||
|
||
interface Props { | ||
name: string | ||
address: string | ||
} | ||
|
||
export const IdentityInfo = ({ name, address }: Props) => { | ||
const identity = useIdentity(address) | ||
|
||
return ( | ||
<> | ||
{identity?.display ? ( | ||
<div className="flex items-center"> | ||
{identity?.display} | ||
{identity?.judgement ? ( | ||
<IoCheckmarkCircle className="ml-4 text-green-500" /> | ||
) : ( | ||
<TbCircleDashedMinus className="ml-4 text-gray-500" /> | ||
)} | ||
</div> | ||
) : ( | ||
name | ||
)} | ||
{identity && ( | ||
<div | ||
className={`flex items-center justify-around text-${identity?.judgement ? 'green' : 'gray'}-500`} | ||
> | ||
{identity?.web && ( | ||
<Button | ||
variant="ghost" | ||
onClick={() => window.open(identity?.web as string, '_blank')} | ||
size="icon" | ||
> | ||
<TbWorld /> | ||
</Button> | ||
)} | ||
{identity?.twitter && ( | ||
<Button | ||
variant="ghost" | ||
onClick={() => | ||
window.open( | ||
`https://twitter.com/@${identity?.twitter}`, | ||
'_blank', | ||
) | ||
} | ||
size="icon" | ||
> | ||
<BsTwitterX /> | ||
</Button> | ||
)} | ||
{identity?.email && ( | ||
<Button variant="ghost" size="icon"> | ||
<a href={`mailto:${identity?.email}`}> | ||
<IoMail /> | ||
</a> | ||
</Button> | ||
)} | ||
</div> | ||
)} | ||
</> | ||
) | ||
} |
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 | ||||
---|---|---|---|---|---|---|
|
@@ -21,6 +21,10 @@ export interface IAccountContext { | |||||
selectAccount: (account: InjectedPolkadotAccount | undefined) => void | ||||||
} | ||||||
|
||||||
type AccountAddressType = { | ||||||
address: string | ||||||
} | ||||||
|
||||||
const AccountContext = createContext<IAccountContext | undefined>(undefined) | ||||||
|
||||||
const AccountContextProvider = ({ children }: AccountContextProps) => { | ||||||
|
@@ -50,7 +54,7 @@ const AccountContextProvider = ({ children }: AccountContextProps) => { | |||||
useEffect(() => { | ||||||
if (localStorageAccount) { | ||||||
const account = accounts.find( | ||||||
(account) => account.address === localStorageAccount, | ||||||
({ address }: AccountAddressType) => address === localStorageAccount, | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this |
||||||
) | ||||||
if (account) { | ||||||
selectAccount(account) | ||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix this in a subsequent PR