0.4.4 • Published 7 years ago
bitcoin-sfox-client v0.4.4
Bitcoin SFOX Javascript Client

This is used by My-Wallet-V3.
Install
npm install bitcoin-sfox-client --save
Usage
Three things are needed:
delegateobject (see example) with functions that provide the following:
- save() -> e.g.
function () { return JSON.stringify(this._sfox);} email()-> String : the users email addressisEmailVerified()-> Boolean : whether the users email is verifiedgetEmailToken()-> stringify : JSON web token {email: 'me@example.com'}monitorAddress(address, callback):callback(amount)if btc receivedcheckAddress(address): look for existing transaction at addressgetReceiveAddress(trade): return the trades receive addressreserveReceiveAddress()commitReceiveAddress()releaseReceiveAddress()serializeExtraFields(obj, trade): e.g.obj.account_index = ...deserializeExtraFields(obj, trade)
- SFOX API key
var object = {user: 1, offline_token: 'token'};
var sfox = new SFOX(object, delegate);
sfox.api.apiKey = ...;
sfox.delegate.save.bind(sfox.delegate)();
// "{"user":1, ...}"Development
Modifying bitcoin-exchange-client
To use a local version of bitcoin-exchange-client, create a symlink:
cd ..
rm -rf bitcoin-coinify-client/node_modules/bitcoin-exchange-client
ln -s ../../bitcoin-exchange-client bitcoin-coinify-client/node_modules/bitcoin-exchange-clientTesting inside my-wallet-v3
To use a local version of this repo inside my-wallet-v3, create a symlink:
cd ..
rm -rf My-Wallet-V3/node_modules/bitcoin-sfox-client
ln -s ../../bitcoin-sfox-client My-Wallet-V3/node_modules/bitcoin-sfox-clientNote that Grunt won't detect these changes.
Release
Change version in package.json.
git commit -a -m "v0.1.0"
git push
git tag -s v0.1.0
git push --tags0.4.4
7 years ago
0.4.3
7 years ago
0.4.2
7 years ago
0.4.1
7 years ago
0.4.0
7 years ago
0.3.2
8 years ago
0.3.1
8 years ago
0.2.7
8 years ago
0.3.0
8 years ago
0.2.6
8 years ago
0.2.5
8 years ago
0.2.4
8 years ago
0.2.3
8 years ago
0.2.2
8 years ago
0.2.1
8 years ago
0.2.0
8 years ago
0.1.16
8 years ago
0.1.15
8 years ago
0.1.12
8 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.5
9 years ago