niftykit-inc / dropkit.js Goto Github PK
View Code? Open in Web Editor NEWJavaScript Client SDK library built with Typescript that provides an interface for NiftyKit Drops
Home Page: https://www.npmjs.com/package/dropkit.js
License: MIT License
JavaScript Client SDK library built with Typescript that provides an interface for NiftyKit Drops
Home Page: https://www.npmjs.com/package/dropkit.js
License: MIT License
How to integrate with:
Need to make sure that messages are human friendly, we can create our own mappings from Metamask errors
maxPerWallet
amount
Would be nice if the SDK also shows a toaster/snackbark with these errors, this will be noted on a different issue
It would be nice the warn the user that they are connected to the wrong network.
We could know which chainId
or networkId
is the current collection created on, by obtaining it from api/drops/address
endpoint.
As a first thought, we can distinguish the Collection state (presale or public sale) to determine which action to use: either mint
or presaleMint
:
The whole logic flow can be described as follow:
POST /api/drops/list
endpointpresaleMint
action gets invoked with its corresponding params: amount
, proof
mint
action gets invoked with amount
If we are able to do this separation we can save some extra calls to
POST /api/drops/list
which I think we are calling each time
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.