aira-js
v0.3.1
Published
Aira-js ========
Downloads
5
Readme
Aira-js
Простая Javascript библиотека для работы с данными сети Robonomics
Установка
npm install aira-js --save
или
yarn add aira-js
Зависимости
Использование
ES6 import
import Aira, { Provider } from 'aira-js'
const aira = new Aira({
provider: new Provider(ipfs)
})
const chanel = aira.chanel('aira')
chanel.asks(msg => {
const account = msg.recover()
console.log(msg, account)
})
chanel.bids(msg => {
const account = msg.recover()
console.log(msg, account)
})
Доступно
- прослушка канала сообщений спроса и предложения
- отправка сообщения о спросе или предложения в канал
- подписка на событие о появлении нового обязательства