Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@insomnialab/mintstack-sdk-react
Advanced tools
Luna NFT project's React plugin library published by creator's portal.
Built with React and TypeScript. Check out the Demo!
yarn add @insomnialab/mintstack-sdk-react
npm install @insomnialab/mintstack-sdk-react
You can import component and style:
import { CheckoutWidget } from '@insomnialab/mintstack-sdk-react';
import '@insomnialab/mintstack-sdk-react/lib/esm/styles/style.css';
and use with collection id, api key and secret key:
<CheckoutWidget collectionId="<id>" libraryType="web3 | ethers" />
note: Don't forget specify library type(whether web3 or ethers)! by default it's ethers.
You can import DetailBox compoent and use directly in your front-end code.
import { DetailBox } from "@insomnialab/mintstack-sdk-react";
...
<DetailBox
active={active}
nftImgUrl={mintInfo.image}
nftTitle={mintInfo.name}
nftDescription={mintInfo.description}
projectAbout={mintInfo.about}
price={mintPrice}
maxSupply={maxSupply}
mintsRemain={mintRemain}
mintBtnDisabled={false}
bgColor={mintInfo.checkout_background_color}
font={mintInfo.checkout_font}
fontColor={mintInfo.checkout_font_color}
tcLink={mintInfo.terms_and_condition_link}
termsProcess={termsProcess}
onCancelTerms={handleCancelTerms}
questions={mintInfo.first_party_data.map((item: any) => item.question)}
socialLinks={{
twitter: twitterEnabled,
discord: discordEnabled,
facebook: facebookEnabled,
instagram: instagramEnabled
}}
nftCount={nftCount}
nftCountError={nftCountError}
onNftCountChange={onNftCountChange}
answers={answers}
setAnswers={setAnswers}
answersError={answersError}
onAnswersChange={onAnswersChange}
onConnectWallet={handleConnectMetamask}
onDisconnectWallet={handleDisconnectMetamask}
onMintNft={handleMintBtn}
onHandleMint={handleMint}
mintProcessing={mintProcessing}
mintSucceed={mintSucceed}
setMintSucceed={setMintSucceed}
chain={mintInfo.chain}
/>
active: boolean;
nftImgUrl?: string;
nftTitle: string;
nftDescription: string;
projectAbout: string;
price: number;
maxSupply: number;
mintsRemain: number | undefined;
mintBtnDisabled: boolean;
bgColor: string | undefined;
font: string | undefined;
fontColor: string | undefined;
termsProcess?: boolean;
onCancelTerms?: () => void;
tcLink: string | undefined;
questions: string[];
socialLinks: { [key: string]: boolean };
onConnectWallet?: () => void;
onDisconnectWallet?: () => void;
onMintNft?: (termsProcess: boolean) => void;
onHandleMint?: () => void;
className?: string;
nftCount: string;
nftCountError?: boolean;
onNftCountChange: (value: string) => void;
answers: string[];
setAnswers: (answers: string[]) => void;
answersError?: boolean[];
onAnswersChange: (index: number, value: string) => void;
mintProcessing: boolean;
mintSucceed: boolean;
setMintSucceed: (value: boolean) => void;
chain: string;
FAQs
Library based on Typescript to mint Luna NFT!
The npm package @insomnialab/mintstack-sdk-react receives a total of 1 weekly downloads. As such, @insomnialab/mintstack-sdk-react popularity was classified as not popular.
We found that @insomnialab/mintstack-sdk-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.