Run the following command to install the project dependencies:
npm i
The following command starts the development server, opening the project in your browser:
npm run dev -- --open
Connect components consists of a movable "Connect button" to allow users to connect their wallets to the InpulseX dApp.
The connect button uses the "Onboard" library to display a dialog for selecting and connecting wallets.
<ConnectButton />
Consists of three subcomponents:
PastClaim
component, displaying one unclaimed user bridge requestRequestSwap
component, to allow users to request a bridge from one chain to anotherSwap
component, which combines the two above components into one package
<Swap />
Four staking components are in this project:
ERC20Stake
allows the staking of ERC20 tokens.ERC1363Stake
allows the staking of ERC1363 tokens.ERC1155Stake
allows the staking of ERC1155 multi-token standard.ERC721Stake
allows the staking of ERC721 NFTs.
These components accept the following options:
title
: The title of the staking componentaddress
: The address of the staking contractmaxMinted
: Maximum number of minted NFTs in this collection (only for ERC721)bucketSize
: Maximum number of NFTs to query for finding user's NFTs (only for ERC721)nftId
: The NFT ID users should stake (only for ERC1155)stakeSymbol
: The symbol of the staking token/NFTstakeLogo
: The logo of the staking token/NFTrewardSymbol
: The symbol of the reward token/NFTrewardLogo
: The logo of the reward token/NFTstart
: The start date of staking
<ERC1363Stake
title="Stake IPX"
start={new Date('2023-03-31T18:22:07.831Z')}
address="0xb7D3C2825866D8523bE8B8aa4ad0eAbADc34B580"
rewardSymbol="GC"
rewardLogo="https://pools.outerringmmo.com/assets/images/gq.png"
stakeLogo="https://pools.outerringmmo.com/assets/images/IPX.png"
/>