-
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.
* (feat): add migration to update chain ids, update packes, update hooks * (feat): add basic multichain support * (fix): add seeding and update for multichain sdk * (feat): add badges for chains and disable ui if connected to the wrong chain * (feat): use alpha version of hypercerts sdk, fix backwards compatibility for allowlists * (feat): updating seeding and multi-chain hyperboard fetching * (fix): ignore typing error for widget root rendering * (feat): multi-chain ui improvements * (feat): multi-chain marketplace compatibility * (feat): multi-chain marketplace compatibility * (feat): marketplace qa
- Loading branch information
Showing
28 changed files
with
4,220 additions
and
3,297 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Badge, BadgeProps } from "@chakra-ui/react"; | ||
import { chainIdToName } from "@/utils/formatting"; | ||
import { parseClaimOrFractionId } from "@hypercerts-org/sdk"; | ||
|
||
export const ChainBadge = ({ | ||
hypercertId, | ||
...badgeProps | ||
}: { hypercertId: string } & BadgeProps) => { | ||
const { chainId } = parseClaimOrFractionId(hypercertId); | ||
const name = chainIdToName(chainId); | ||
return ( | ||
<Badge width={"fit-content"} height={"fit-content"} {...badgeProps}> | ||
{name} | ||
</Badge> | ||
); | ||
}; |
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
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
Oops, something went wrong.