No description, website, or topics provided.
Branch: master
Clone or download
Latest commit d36d6c8 Jan 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build docs Jan 16, 2019
docs docs Jan 16, 2019
src docs Jan 16, 2019
usage docs Jan 16, 2019
.gitignore docs Jan 16, 2019
README.md docs Jan 15, 2019
package-lock.json docs Jan 16, 2019
package.json docs Jan 16, 2019
tsconfig.json docs Jan 16, 2019
yarn.lock refactoring items & minor fixes Dec 14, 2018

README.md

@waves/waves-games npm version

Create and deliver game assets through Waves Platform

This library provides a hight level abstraction over NODE REST API and MATCHER REST API and enables game developers to do the following:

  • Create an item on blockchain with arbitrary metadata
  • Track an item among players (wallets)
  • Sell an item via Waves DEX
  • Buy an item via Waves DEX
  • List items assosiated with a particular game (address)
  • List items for sale by players or developers

Usage

async function howToCreateAnItem(creatorSeed) {

    const { Items } = require('@waves/waves-games')
    const { create } = Items(ChainId.Testnet)
   
    const items = Items(ChainId.Testnet)
    const request = create(100, true, { version: 1, main: { name: 'The sword of pain', img: 'img_url' }, misc: {} creatorSeed)
    const item = await request.execute()
   
}