New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nftvillage/presale-sdk

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nftvillage/presale-sdk

Presale Hooks and functions to interect with Presale contract.

  • 0.1.17
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

@nftvillage/presale-sdk

Presale Hooks and functions to interect with Presale contract.

Dependencies

"@react-dapp/utils": "^0.0.20",
"bignumber.js": "^9.0.1",
"ethereum-multicall": "^2.9.0",
"ethers": "^5.5.1",
"react": "^17.0.2",

Presale Hooks

useBuyPack

  • buy

this hook takes packId as numbeer

  • Return values

this hook returns createState enum

Enum STATE {
   IDLE = 0,
   BUSY = 1,
   FAILED = 2,
   SUCCEED = 3
}

useGetPackInfo

  • getPackInfo

this hook takes packId as numbeer

  • Return values

this hook returns Packs interface and getState enum

Packs {
   nft:string
   tokenIds:number[]
   nftType: TokenStandard
   paymentToken:string
   price:string,
   displayPrice:string
   enabled:boolean
}

TokenStandard { ERC721, ERC1155 }

useGetAllPacks

  • getAllPacks

  • Return values

this hook returns array of Packs interface and getState enum

[
Packs {
   nft:string
   tokenIds:number[]
   nftType: TokenStandard
   paymentToken:string
   price:string,
   displayPrice:string
   enabled:boolean
}
]

FAQs

Package last updated on 14 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc