-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deactivate direct to delegation page if account is not connected or a… (
#48) Co-authored-by: Thibaut Sardan <33178835+Tbaut@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
630 additions
and
931 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
[ | ||
{ | ||
"name": "Polkadot", | ||
"specName": "polkadot", | ||
"addressPrefix": 0, | ||
"chainId": "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/chains/Polkadot.svg", | ||
"options": ["multisig"], | ||
"nodes": [ | ||
{ | ||
"url": "wss://polkadot.public.curie.radiumblock.co/ws", | ||
"name": "Radium node" | ||
}, | ||
{ | ||
"url": "wss://dot-rpc.stakeworld.io", | ||
"name": "Stakeworld node" | ||
}, | ||
{ | ||
"url": "wss://polkadot-rpc.dwellir.com", | ||
"name": "Dwellir node" | ||
}, | ||
{ | ||
"url": "wss://1rpc.io/dot", | ||
"name": "Automata 1RPC node" | ||
}, | ||
{ | ||
"url": "wss://rpc-polkadot.luckyfriday.io", | ||
"name": "LuckyFriday node" | ||
}, | ||
{ | ||
"url": "wss://rpc.ibp.network/polkadot", | ||
"name": "IBP network node" | ||
}, | ||
{ | ||
"url": "wss://rpc.dotters.network/polkadot", | ||
"name": "Dotters Net node" | ||
} | ||
], | ||
"assets": [ | ||
{ | ||
"assetId": 0, | ||
"symbol": "DOT", | ||
"precision": 10, | ||
"priceId": "polkadot", | ||
"staking": "relaychain", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/assets/white/Polkadot_(DOT).svg", | ||
"name": "Polkadot" | ||
} | ||
], | ||
"explorers": [ | ||
{ | ||
"name": "Subscan", | ||
"extrinsic": "https://polkadot.subscan.io/extrinsic/{hash}", | ||
"account": "https://polkadot.subscan.io/account/{address}", | ||
"multisig": "https://polkadot.subscan.io/multisig_extrinsic/{index}?call_hash={callHash}" | ||
}, | ||
{ | ||
"name": "Polkascan", | ||
"account": "https://polkascan.io/polkadot/account/{address}", | ||
"event": "https://polkascan.io/polkadot/event/{event}" | ||
}, | ||
{ | ||
"name": "Sub.ID", | ||
"account": "https://sub.id/{address}" | ||
}, | ||
{ | ||
"name": "Polkaholic", | ||
"account": "https://polkaholic.io/account/{address}", | ||
"extrinsic": "https://polkaholic.io/tx/{hash}" | ||
} | ||
], | ||
"externalApi": { | ||
"staking": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-polkadot" | ||
} | ||
], | ||
"history": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-polkadot" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "Kusama", | ||
"specName": "kusama", | ||
"addressPrefix": 2, | ||
"chainId": "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/chains/Kusama.svg", | ||
"options": ["multisig"], | ||
"nodes": [ | ||
{ | ||
"url": "wss://kusama-rpc.dwellir.com", | ||
"name": "Dwellir node" | ||
}, | ||
{ | ||
"url": "wss://rpc-kusama.luckyfriday.io", | ||
"name": "LuckyFriday node" | ||
}, | ||
{ | ||
"url": "wss://1rpc.io/ksm", | ||
"name": "Automata 1RPC node" | ||
}, | ||
{ | ||
"url": "wss://rpc.ibp.network/kusama", | ||
"name": "IBP network node" | ||
}, | ||
{ | ||
"url": "wss://rpc.dotters.network/kusama", | ||
"name": "Dotters Net node" | ||
}, | ||
{ | ||
"url": "wss://kusama.public.curie.radiumblock.co/ws", | ||
"name": "Radium node" | ||
}, | ||
{ | ||
"url": "wss://kusama.api.onfinality.io/public-ws", | ||
"name": "OnFinality node" | ||
} | ||
], | ||
"assets": [ | ||
{ | ||
"assetId": 0, | ||
"symbol": "KSM", | ||
"precision": 12, | ||
"priceId": "kusama", | ||
"staking": "relaychain", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/assets/white/Kusama_(KSM).svg", | ||
"name": "Kusama" | ||
} | ||
], | ||
"explorers": [ | ||
{ | ||
"name": "Subscan", | ||
"extrinsic": "https://kusama.subscan.io/extrinsic/{hash}", | ||
"account": "https://kusama.subscan.io/account/{address}", | ||
"multisig": "https://kusama.subscan.io/multisig_extrinsic/{index}?call_hash={callHash}" | ||
}, | ||
{ | ||
"name": "Polkascan", | ||
"account": "https://polkascan.io/kusama/account/{address}", | ||
"event": "https://polkascan.io/kusama/event/{event}" | ||
}, | ||
{ | ||
"name": "Sub.ID", | ||
"account": "https://sub.id/{address}" | ||
}, | ||
{ | ||
"name": "Polkaholic", | ||
"account": "https://polkaholic.io/account/{address}", | ||
"extrinsic": "https://polkaholic.io/tx/{hash}" | ||
} | ||
], | ||
"externalApi": { | ||
"staking": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-kusama" | ||
} | ||
], | ||
"history": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-kusama" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "Westend", | ||
"specName": "westend", | ||
"addressPrefix": 42, | ||
"chainId": "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/chains/Westend_Testnet.svg", | ||
"options": ["testnet", "multisig"], | ||
"nodes": [ | ||
{ | ||
"url": "wss://westend-rpc.dwellir.com", | ||
"name": "Dwellir node" | ||
}, | ||
{ | ||
"url": "wss://rpc.ibp.network/westend", | ||
"name": "IBP network node" | ||
}, | ||
{ | ||
"url": "wss://rpc.dotters.network/westend", | ||
"name": "Dotters Net node" | ||
}, | ||
{ | ||
"url": "wss://westend.public.curie.radiumblock.co/ws", | ||
"name": "RadiumBlock node" | ||
}, | ||
{ | ||
"url": "wss://westend.api.onfinality.io/public-ws", | ||
"name": "OnFinality node" | ||
} | ||
], | ||
"assets": [ | ||
{ | ||
"assetId": 0, | ||
"symbol": "WND", | ||
"precision": 12, | ||
"staking": "relaychain", | ||
"icon": "https://raw.githubusercontent.com/novasamatech/nova-spektr-utils/main/icons/v1/assets/white/Westend_(WND).svg", | ||
"name": "Westend" | ||
} | ||
], | ||
"explorers": [ | ||
{ | ||
"name": "Subscan", | ||
"extrinsic": "https://westend.subscan.io/extrinsic/{hash}", | ||
"account": "https://westend.subscan.io/account/{address}", | ||
"multisig": "https://westend.subscan.io/multisig_extrinsic/{index}?call_hash={callHash}" | ||
} | ||
], | ||
"externalApi": { | ||
"staking": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-westend" | ||
} | ||
], | ||
"history": [ | ||
{ | ||
"type": "subquery", | ||
"url": "https://api.subquery.network/sq/nova-wallet/nova-wallet-westend" | ||
} | ||
] | ||
} | ||
} | ||
] |
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,59 @@ | ||
import * as React from "react" | ||
import { cva, type VariantProps } from "class-variance-authority" | ||
|
||
import { cn } from "@/lib/utils" | ||
|
||
const alertVariants = cva( | ||
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", | ||
{ | ||
variants: { | ||
variant: { | ||
default: "bg-background text-foreground", | ||
destructive: | ||
"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive", | ||
}, | ||
}, | ||
defaultVariants: { | ||
variant: "default", | ||
}, | ||
} | ||
) | ||
|
||
const Alert = React.forwardRef< | ||
HTMLDivElement, | ||
React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> | ||
>(({ className, variant, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
role="alert" | ||
className={cn(alertVariants({ variant }), className)} | ||
{...props} | ||
/> | ||
)) | ||
Alert.displayName = "Alert" | ||
|
||
const AlertTitle = React.forwardRef< | ||
HTMLParagraphElement, | ||
React.HTMLAttributes<HTMLHeadingElement> | ||
>(({ className, ...props }, ref) => ( | ||
<h5 | ||
ref={ref} | ||
className={cn("mb-1 font-medium leading-none tracking-tight", className)} | ||
{...props} | ||
/> | ||
)) | ||
AlertTitle.displayName = "AlertTitle" | ||
|
||
const AlertDescription = React.forwardRef< | ||
HTMLParagraphElement, | ||
React.HTMLAttributes<HTMLParagraphElement> | ||
>(({ className, ...props }, ref) => ( | ||
<div | ||
ref={ref} | ||
className={cn("text-sm [&_p]:leading-relaxed", className)} | ||
{...props} | ||
/> | ||
)) | ||
AlertDescription.displayName = "AlertDescription" | ||
|
||
export { Alert, AlertTitle, AlertDescription } |
Oops, something went wrong.