forked from quicksilver-zone/quicksilver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'quicksilver-zone:main' into feat/751-handler-tokenized-…
…share-test
- Loading branch information
Showing
59 changed files
with
3,214 additions
and
1,054 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
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,29 @@ | ||
NEXT_PUBLIC_CHAIN_ENV="testnet" | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_QUICKSILVER="https://lcd.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_QUICKSILVER="https://rpc.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_COSMOSHUB=https://lcd.provider.test.quicksilver.zone | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_COSMOSHUB=https://rpc.provider.test.quicksilver.zone | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_OSMOSIS="https://lcd.osmo-test-5.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_OSMOSIS="https://rpc.osmo-test-5.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_STARGAZE="https://lcd.elgafar-1.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_STARGAZE="https://rpc.elgafar-1.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_REGEN="https://lcd.regen-redwood-1.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_REGEN="https://rpc.regen-redwood-1.test.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_LCD_ENDPOINT_SOMMELIER="https://lcd.sommelier-3.quicksilver.zone" | ||
NEXT_PUBLIC_TESTNET_RPC_ENDPOINT_SOMMELIER="https://rpc.sommelier-3.quicksilver.zone" | ||
NEXT_PUBLIC_QUICKSILVER_API="https://lcd.test.quicksilver.zone" | ||
NEXT_PUBLIC_QUICKSILVER_DATA_API="https://data.test.quicksilver.zone" | ||
ZONE_URL="quicksilver.zone" | ||
REACT_APP_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3" | ||
REACT_APP_ENABLE_UNBONDING="true" | ||
REACT_APP_ENABLE_SET_INTENT="true" | ||
REACT_APP_ENABLE_CLAIMS="true" | ||
APY_ZONES_ENDPOINT = "https://chains.cosmos.directory" | ||
NEXT_PUBLIC_OSMOSIS_API="https://api.osmosis.zone" | ||
NEXT_PUBLIC_WHITELISTED_DENOM="uatom,ustars,uosmo,usomm,uregen" | ||
NEXT_PUBLIC_WHITELISTED_ZONES="osmosis-1,stargaze-1,regen-1,cosmoshub-4,sommelier-3" | ||
NEXT_PUBLIC_COSMOSHUB_CHAIN_ID=provider | ||
NEXT_PUBLIC_OSMOSIS_CHAIN_ID=osmo-test-5 | ||
NEXT_PUBLIC_STARGAZE_CHAIN_ID=elgafar-1 | ||
NEXT_PUBLIC_REGEN_CHAIN_ID=regen-redwood-1 | ||
NEXT_PUBLIC_SOMMELIER_CHAIN_ID=sommelier-3 |
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.
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,111 @@ | ||
import { | ||
Accordion, | ||
AccordionItem, | ||
AccordionButton, | ||
AccordionPanel, | ||
AccordionIcon, | ||
Box, | ||
Button, | ||
Flex, | ||
Text, | ||
Progress, | ||
Tooltip, | ||
VStack, | ||
HStack, | ||
useColorModeValue, | ||
Icon, | ||
Badge, | ||
useDisclosure, | ||
} from '@chakra-ui/react'; | ||
import { CheckIcon, ChevronDownIcon, ChevronRightIcon, InfoOutlineIcon } from '@chakra-ui/icons'; | ||
import { useAccordionStyles } from '@chakra-ui/accordion'; | ||
import { useState } from 'react'; | ||
|
||
interface AirdropAccordionItemProps { | ||
index: number; | ||
defaultIsOpen?: boolean; | ||
} | ||
|
||
const AirdropAccordionItem: React.FC<AirdropAccordionItemProps> = ({ index, defaultIsOpen }) => { | ||
const { isOpen, onToggle } = useDisclosure({ defaultIsOpen }); | ||
|
||
return ( | ||
<AccordionItem | ||
mb="30px" | ||
borderRadius={isOpen ? '20px 20px 0 0' : '20px'} | ||
h="80px" | ||
borderBottomColor={'transparent'} | ||
zIndex={10 - index} | ||
borderTopColor={'transparent'} | ||
bgColor={'rgba(255, 128, 0, 1)'} | ||
shadow={'md'} | ||
position="relative" | ||
_hover={{ bgColor: 'rgba(255, 128, 0, 0.9)' }} | ||
> | ||
<h2> | ||
<AccordionButton onClick={onToggle} h="80px" justifyContent="space-between"> | ||
<Badge borderRadius="full" px={3} py={1.5} mr={3} colorScheme="orange"> | ||
{index + 1} | ||
</Badge> | ||
<Box flex="1" textAlign="left" alignItems={'center'} fontSize="lg" fontWeight="semibold"> | ||
<Text fontSize={'2xl'}>{index === 0 ? 'CLAIM INITIAL QCK AIRDROP' : 'ACTION DESCRIPTION'}</Text> | ||
</Box> | ||
<ChevronDownIcon /> | ||
</AccordionButton> | ||
</h2> | ||
{isOpen && ( | ||
<AccordionPanel p={4} borderBottomRadius="20px" h="120px" pb={'30px'} bgColor="rgba(255, 128, 0, 1)"> | ||
<Text> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
</Text> | ||
</AccordionPanel> | ||
)} | ||
</AccordionItem> | ||
); | ||
}; | ||
|
||
const AirdropSection = () => { | ||
const { isOpen, onToggle } = useDisclosure(); | ||
|
||
return ( | ||
<VStack spacing={4} align="stretch"> | ||
<Box bg={'rgba(255,255,255,0.1)'} p={5} shadow="md" borderRadius="lg"> | ||
<Flex justifyContent="space-between" alignItems="center" mb={5}> | ||
<Text fontSize="xl" fontWeight="bold"> | ||
Cosmos Hub Active Airdrop | ||
</Text> | ||
<Tooltip label="This is your total allocation" aria-label="A tooltip"> | ||
<Icon as={InfoOutlineIcon} /> | ||
</Tooltip> | ||
</Flex> | ||
<Progress colorScheme="orange" size="sm" value={40} mb={5} /> | ||
<Accordion allowToggle defaultIndex={[0]}> | ||
{Array.from({ length: 5 }).map((_, index) => ( | ||
<AirdropAccordionItem key={index} index={index} defaultIsOpen={index === 0} /> | ||
))} | ||
</Accordion> | ||
</Box> | ||
<Box bg={'rgba(255,255,255,0.1)'} p={5} shadow="md" borderRadius="lg"> | ||
<Flex justifyContent="space-between" alignItems="center" mb={5}> | ||
<Text fontSize="xl" fontWeight="bold"> | ||
Participate in Other Airdrops | ||
</Text> | ||
</Flex> | ||
<HStack overflow="auto"> | ||
{/* Replace these with actual chain data */} | ||
{['OSMOSIS', 'JUNO', 'STARGAZE', 'REGEN', 'COSMOS'].map((chain) => ( | ||
<VStack key={chain} spacing={3} align="center"> | ||
<Box w="100px" h="100px" bg="gray.100" borderRadius="md" /> | ||
<Text fontSize="md">{chain}</Text> | ||
<Button rightIcon={<ChevronRightIcon />} colorScheme="teal" variant="link"> | ||
View Airdrop | ||
</Button> | ||
</VStack> | ||
))} | ||
</HStack> | ||
</Box> | ||
</VStack> | ||
); | ||
}; | ||
|
||
export default AirdropSection; |
Oops, something went wrong.