@trinkler/agora-swap
A collection of blockchain interactions for trade settlement.
Last updated 2 years ago by roninin .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @trinkler/agora-swap 
SYNC missed versions from official npm registry.

agora-swap

A collection of blockchain interactions for trade settlement.

Build Setup

# install dependencies
$ yarn # Or yarn install

To run the Bitcoin tests, download a Bitcoin client and run:

  1. run bitcoin client
    bitcoind -regtest -server -rpcuser=user -rpcpassword=pass -rpcport=18332 -txindex -deprecatedrpc=generate

  2. generate block from bitcoin-cli
    bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=18332 generate 101

  3. add alice's and bob's addresses to watch-only addresses (neccessary for some rpc calls, e.g. getTransaction)

  • bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=18332 importaddress mujWhAh5EC4ifXXvreLu7DmEyegzibAXsV "alice" true
  • bitcoin-cli -rpcuser=user -rpcpassword=pass -rpcport=18332 importaddress mtbiy4GTJ4qaePnrpe4Kn4Afex5sT6x1sq "bob" true

Test Setup

# in a separate console run
$ yarn run testnet:btc
# in a separate console run
$ yarn run testnet:eth
# to test run
$ yarn run test

Current Tags

  • 0.6.14                                ...           latest (2 years ago)

55 Versions

  • 0.6.14                                ...           2 years ago
  • 0.6.13                                ...           2 years ago
  • 0.6.12                                ...           2 years ago
  • 0.6.11                                ...           2 years ago
  • 0.6.10                                ...           2 years ago
  • 0.6.9                                ...           2 years ago
  • 0.6.8                                ...           2 years ago
  • 0.6.7                                ...           2 years ago
  • 0.6.6                                ...           2 years ago
  • 0.6.4                                ...           2 years ago
  • 0.6.3                                ...           2 years ago
  • 0.6.2                                ...           2 years ago
  • 0.6.1                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.4.13                                ...           2 years ago
  • 0.4.12                                ...           2 years ago
  • 0.4.11                                ...           2 years ago
  • 0.4.10                                ...           2 years ago
  • 0.4.9                                ...           2 years ago
  • 0.4.8                                ...           2 years ago
  • 0.4.7                                ...           2 years ago
  • 0.4.6                                ...           2 years ago
  • 0.4.5                                ...           2 years ago
  • 0.4.4                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.15                                ...           2 years ago
  • 0.3.14                                ...           2 years ago
  • 0.3.13                                ...           2 years ago
  • 0.3.12                                ...           2 years ago
  • 0.3.11                                ...           2 years ago
  • 0.3.10                                ...           2 years ago
  • 0.3.9                                ...           2 years ago
  • 0.3.8                                ...           2 years ago
  • 0.3.7                                ...           2 years ago
  • 0.3.6                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.9                                ...           2 years ago
  • 0.2.8                                ...           2 years ago
  • 0.2.7                                ...           2 years ago
  • 0.2.6                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.1.25                                ...           2 years ago
  • 0.1.24 [deprecated]           ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (12)
Dev Dependencies (15)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |