0.3.2 • Published 3 months ago

mquark-sdk v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

SDK User Guide

The inital alpha version of mQuark SDK! You can saved yourself hours of work by bootstrapping your entitys with mQuark SDK. Let’s get you oriented with what’s here and how to use it.

This SDK helps you with submitting your NFT metadata to IPFS and interact with the smart contracts more easily.

More features will be added , checkout the mQuark docs for additional information about the protocol and how to integrate with the smart contracts.

Please provide your feedbacks for our alpha SDK to our dev team member at:

dev@unbounded.vision

Installation

npm i mquark-sdk

SDK Developement Guide

Available Services

  • Registry Service

  • Entity Service

  • Collection Service

  • Subscriptions Service

  • IPFS Service

  • GraphQL API Service

Utility Functions

  • Merkle Proof Generator

  • Signature Generator

Registry Service

The Registry Service is used to interact with the mQuark Registry smart contract. It provides the following functions:

  • registerEntity
  • getLastEntityId
  • getEntitySubscriptionPrice
  • getRegisteredEntity
  • getSubscriber
  • getController
  • getImplementation
  • getEntityAddress
  • getEntityId
  • getEntityIsRegistered

Entity Service

The Entity Service is used to interact with the mQuark Entity smart contract. It provides the following functions:

  • createCollection
  • importExternalCollection
  • transferOwnershipOfCollection
  • collectFunds
  • withdraw
  • getEntityInfo
  • getBalance
  • getLastCollectionId
  • getCollectionAddress

Collection Service

The Collection Service is used to interact with the mQuark Collection smart contract. It provides the following functions:

  • mint
  • airdropMint
  • airdropBatchMint
  • mintBatch
  • airdropSubscriptionMint
  • airdropBatchSubscriptionMint
  • subscriptionMint
  • transferOwnership
  • getOwnerBalance
  • getProtocolBalance
  • getCollectionInfo
  • tokenEntityURI
  • tokenURI

Subscriptions Service

The Subscriptions Service is used to interact with the mQuark Subscriptions smart contract. It provides the following functions:

  • subscribeToEntity
  • updateURISlot
  • directUpdateURISlot
  • directUpdateURISlots
  • unlockToken
  • transferTokenEntityURI
  • setDefaultURI
  • withdraw
  • withdrawProtocol
  • getIsAddressRegisteredAsEntity
  • getEntityBalance
  • getEntityConfig
  • getIsUnlocked
  • getIsSubscribed
  • getCollection
  • calculateBatchSubscriptionPrice

IPFS Service

  • pinJSONToIPFS
  • pinFileToIPFS

GraphQL API Service

  • fetch_entity
  • fetch_entity_collections
  • fetch_entity_collection
  • fetch_all_entities
  • fetch_quark_owner
  • fetch_token
  • fetch_templates
  • fetch_collections_balance
  • fetch_contracts
  • fetch_controller
  • fetch_implementation
  • fetch_imported_collections
  • fetch_registry
  • fetch_subscriber

Conculsion

The SDK is still in alpha version, more features will be added in the future. Please provide your feedbacks to our dev team member at: dev@unbounded.vision It now supports mQuarkV2 NFT Implementations, they are brand new and brings new and extended functionalities. Checkout the mQuark docs for additional information about the protocol and how to integrate with the smart contracts. You're more than welcome to implement your own SDK and share it with the community.

0.3.2

3 months ago

0.3.1

4 months ago

0.3.0

4 months ago

0.2.9

4 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.8

5 months ago

0.1.52

7 months ago

0.1.53

7 months ago

0.1.54

6 months ago

0.1.55

6 months ago

0.1.56

6 months ago

0.1.57

6 months ago

0.1.58

6 months ago

0.1.51

7 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.2.3

5 months ago

0.2.2

5 months ago

0.2.5

5 months ago

0.2.4

5 months ago

0.1.50

8 months ago

0.1.49

8 months ago

0.1.48

9 months ago

0.1.47

9 months ago

0.1.46

9 months ago

0.1.45

9 months ago

0.1.44

9 months ago

0.1.43

9 months ago

0.1.42

9 months ago

0.1.41

9 months ago

0.1.40

9 months ago

0.1.39

9 months ago

0.1.38

9 months ago

0.1.37

9 months ago

0.1.36

9 months ago

0.1.35

10 months ago

0.1.34

10 months ago

0.1.33

10 months ago

0.1.32

10 months ago

0.1.31

10 months ago

0.1.30

10 months ago

0.1.29

10 months ago

0.1.28

10 months ago

0.1.27

10 months ago

0.1.26

10 months ago

0.1.25

10 months ago

0.1.24

10 months ago

0.1.23

10 months ago

0.1.22

10 months ago

0.1.21

10 months ago

0.1.20

10 months ago

0.1.19

10 months ago

0.1.18

10 months ago

0.1.17

10 months ago

0.1.16

10 months ago

0.1.15

10 months ago

0.1.14

10 months ago

0.1.13

10 months ago

0.1.12

10 months ago

0.1.11

10 months ago

0.1.10

10 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago