forked from iost-official/iost.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (27 loc) · 786 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const RPC = require('./lib/rpc');
const HTTPProvider = require('./lib/provider/HTTPProvider');
const IOST = require('./iost/iost');
const KeyPair = require('./lib/crypto/key_pair');
const Signature = require('./lib/crypto/signature');
const {Tx} = require('./lib/structs');
const Algorithm = require('./lib/crypto/algorithm');
const Account = require('./iost/account');
const TxHandler = require('./iost/tx_handler');
const base58 = require('bs58');
module.exports = {
IOST: IOST,
RPC: RPC,
HTTPProvider: HTTPProvider,
KeyPair: KeyPair,
Tx : Tx,
Algorithm: Algorithm,
Account: Account,
TxHandler: TxHandler,
Bs58: base58,
Signature: Signature,
};
(function(){
if(typeof window !== 'undefined'){
window.IOST = module.exports
}
})();