0.5.43 • Published 3 years ago

@liqnft/candy-shop v0.5.43

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
3 years ago

Solana Candy Shop

JavaScript library that allows any NFT project to host their own NFT marketplace easily

Installation

Using npm:

npm install @liqnft/candy-shop

Using yarn:

yarn add @liqnft/candy-shop

Usage

Show Orders and Buy

import { Orders } from '@liqnft/candy-shop';

<Orders
  storeId={'5wbadqR2UBmV8AUBKxAE64z5ASBorsUofoHQWhJSVYpZ'}
  connection={connection}
  walletPublicKey={publicKey}
  walletConnectComponent={<WalletMultiButton />}
/>

Sell

import { Sell } from '@liqnft/candy-shop';

<Sell
  storeId={'5wbadqR2UBmV8AUBKxAE64z5ASBorsUofoHQWhJSVYpZ'}
  connection={connection}
  walletPublicKey={publicKey}
  walletConnectComponent={<WalletMultiButton />}
/>

Custom Builds

import { CandyShop } from '@liqnft/candy-shop';

// Initialize your store
let candy = new CandyShop('4kBivZofAPfWFRYwgWrSbinB9XVFYSVYmB65mjmKCkpe');

// Fetch orders
candy.getOrders();

// Buy
candy.buy();

// Sell
candy.sell();

// Cancel sell order
candy.cancel();

// Get statistics
candy.getStats();

// Get transactions
candy.getTransactions();

For Contributors

Candy Shop is built with TSDX, which scaffolds the library inside /src, and also sets up a Parcel-based playground for it inside /example.

The recommended workflow is to run TSDX in one terminal:

npm start # or yarn start

This builds to /dist and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.

Then run the example inside another:

cd example
npm i # or yarn to install dependencies
npm start # or yarn start

The default example imports and live reloads whatever is in /dist, so if you are seeing an out of date component, make sure TSDX is running in watch mode like we recommend above. No symlinking required, we use Parcel's aliasing.

To do a one-off build, use npm run build or yarn build.

To run tests, use npm test or yarn test.

0.5.43

3 years ago

0.5.41

3 years ago

0.5.42

3 years ago

0.5.40

3 years ago

0.5.38

3 years ago

0.5.39

3 years ago

0.5.37

3 years ago

0.5.32

3 years ago

0.5.33

3 years ago

0.5.30

3 years ago

0.5.31

3 years ago

0.5.36

3 years ago

0.5.34

3 years ago

0.5.35

3 years ago

0.5.29

3 years ago

0.5.27

3 years ago

0.5.28

3 years ago

0.5.25

3 years ago

0.5.26

3 years ago

0.5.23

3 years ago

0.5.24

3 years ago

0.5.19

3 years ago

0.5.21

3 years ago

0.5.22

3 years ago

0.5.20

3 years ago

0.5.18

3 years ago

0.5.16

4 years ago

0.5.17

3 years ago

0.5.14

4 years ago

0.5.15

4 years ago

0.5.10

4 years ago

0.5.11

4 years ago

0.5.12

4 years ago

0.5.13

4 years ago

0.5.4

4 years ago

0.5.3

4 years ago

0.5.6

4 years ago

0.5.5

4 years ago

0.5.0

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.9

4 years ago

0.4.42

4 years ago

0.4.43

4 years ago

0.4.40

4 years ago

0.4.41

4 years ago

0.4.48

4 years ago

0.4.49

4 years ago

0.4.46

4 years ago

0.4.47

4 years ago

0.4.44

4 years ago

0.4.45

4 years ago

0.4.39

4 years ago

0.4.37

4 years ago

0.4.38

4 years ago

0.4.53

4 years ago

0.4.51

4 years ago

0.4.52

4 years ago

0.4.50

4 years ago

0.4.9

4 years ago

0.4.8

4 years ago

0.4.31

4 years ago

0.4.32

4 years ago

0.4.30

4 years ago

0.4.35

4 years ago

0.4.36

4 years ago

0.4.33

4 years ago

0.4.34

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.3

4 years ago

0.4.20

4 years ago

0.4.21

4 years ago

0.4.28

4 years ago

0.4.29

4 years ago

0.4.26

4 years ago

0.4.27

4 years ago

0.4.24

4 years ago

0.4.25

4 years ago

0.4.22

4 years ago

0.4.23

4 years ago

0.4.19

4 years ago

0.4.10

4 years ago

0.4.17

4 years ago

0.4.18

4 years ago

0.4.15

4 years ago

0.4.16

4 years ago

0.4.13

4 years ago

0.4.14

4 years ago

0.4.11

4 years ago

0.4.12

4 years ago

0.4.5

4 years ago

0.4.4

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago