npm install @leapwallet/elements
import { Swaps, ElementsProvider } from '@leapwallet/elements'
import '@leapwallet/elements/styles.css'
import { useElementsWalletConfig } from './wallet-client-config'
const YourDapp = () => {
return (
<div className="leap-ui">
<ElementsProvider
primaryChainId="cosmoshub-4"
connectWallet={connectWallet}
connectedWalletType={walletType}
>
<LiquidityView />
</ElementsProvider>
</div>
)
}
yarn install
Run the following two commands in the project root:
yarn dev
Go to http://localhost:5173/ to see the development page.