Skip to content
IoT solutions on Byteball platform
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib
.env
.gitignore
LICENSE
README.md
conf.js
core.js
package.json
testnetify.sh

README.md

biot-core

How to experience it?
$ npm install
$ cd examples
$ node balance.js
Docs
$ npm run docs


Steps of channel work.

A -> B

Opening of channel

  1. A: await_get1Contract_initiator
  2. B: await_createChannel
  3. A: waiting_transfers
  4. B: waiting_transfers

Transfer

  1. A: waiting_reverse_transfer
  2. B: waiting_transfer
  3. B: waiting_reverse_transfer
  4. A: waiting_transfer
  5. A: waiting_transfers
  6. B: waiting_transfers

closeOneSide

  1. A: waiting_mci
  2. A: close

closeMutually

  1. B: await_closing
  2. A: mutualClose
  3. B: mutualClose

Messages in channel

Opening of channel

  1. A: get1Contract
  2. B: 1Contract
  3. A: getInputsAndAddresses
  4. B: inputsAndAddresses
  5. A: addressesAndContract

Opening of channel

  1. A: get1Contract
  2. B: 1Contract
  3. A: addressesAndContract

Transfer

  1. A: transfer_start
  2. B: transfer_end
  3. A: pass
  4. B: pass

closeOneSide

Nothing is sent

closeMutually

  1. A: close
You can’t perform that action at this time.