Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.02 KB

README.md

File metadata and controls

36 lines (26 loc) · 1.02 KB

agama-wallet-lib

Build status

How to build Agama lib for client side

install browserify

browserify index.js --standalone agama > agamalib.js

How to add btc compatible pow coin

  • add coin network params to src/bitcoinjs-networks.js
  • add electrum servers list to src/electrum-servers.js
  • add tx fee to src/fees.js
  • add an explorer link to src/coin-helpers.js

How to add kmd asset chain

  • add electrum servers list to src/electrum-servers.js
  • add tx fee to src/fees.js
  • add asset chain ticker and an explorer link to src/coin-helpers.js

How to add ERC20 token

  • add token contract id to src/eth-erc20-contract-id.js
  • add token decimals value to src/eth-erc20-decimals.js, read instructions

How build for old browsers (ES5)

install babel cli

npm run build

example: var fromSats = require('agama-wallet-lib/build/utils').fromSats;