├── .babelrc ├── .gitignore ├── README.md ├── node-src ├── actions │ ├── account.js │ ├── assets.js │ ├── connection.js │ ├── transactions.js │ └── user.js ├── assets │ └── lang │ │ ├── en.js │ │ └── zh.js ├── getters │ ├── account.js │ ├── assets.js │ ├── connection.js │ ├── setting.js │ └── user.js ├── lib │ ├── chain │ │ └── asset_constants.js │ └── common │ │ ├── MarketClasses.js │ │ ├── account_utils.js │ │ ├── asset_utils.js │ │ ├── helper.js │ │ ├── localStorage.js │ │ ├── localStorageImpl.js │ │ ├── market_utils.js │ │ ├── permission_utils.js │ │ ├── trxHelper.js │ │ └── utils.js ├── main.js ├── modules │ ├── NHAssets.js │ ├── PrivateKeyStore.js │ ├── WalletDb.js │ ├── account.js │ ├── assets.js │ ├── connection.js │ ├── contract.js │ ├── explorer.js │ ├── history.js │ ├── market.js │ ├── operations.js │ ├── proposals.js │ ├── setting.js │ ├── transactions.js │ ├── user.js │ └── vote.js ├── mutations.js ├── services │ ├── api.js │ ├── api │ │ ├── account.js │ │ ├── account0.js │ │ ├── assets.js │ │ ├── chain-listener.js │ │ ├── connection.js │ │ ├── contract.js │ │ ├── explorer.js │ │ ├── market.js │ │ ├── nh-assets.js │ │ ├── nodes-manager.js │ │ ├── operations.js │ │ ├── subscriptions.js │ │ ├── transactions.js │ │ ├── vote.js │ │ └── wallet │ │ │ ├── backup.js │ │ │ ├── idb-helper.js │ │ │ ├── idb-instance.js │ │ │ └── idb-root.js │ ├── persistent-storage.js │ └── workers │ │ ├── nodes-manager.js │ │ ├── pingWorker.js │ │ └── transactionWorker.js ├── store │ ├── AccountRefsStore.js │ ├── AccountStore.js │ ├── AddressIndex.js │ ├── BackupStore.js │ ├── CachedPropertyStore.js │ ├── WalletDb.js │ ├── WalletManagerStore.js │ └── tcomb_structs.js └── utils │ └── index.js ├── package.json └── webpack.pro.node.config.js /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/.babelrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | build/assets/ 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NodeJSSDK 2 | npm run release-node -------------------------------------------------------------------------------- /node-src/actions/account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/actions/account.js -------------------------------------------------------------------------------- /node-src/actions/assets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/actions/assets.js -------------------------------------------------------------------------------- /node-src/actions/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/actions/connection.js -------------------------------------------------------------------------------- /node-src/actions/transactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/actions/transactions.js -------------------------------------------------------------------------------- /node-src/actions/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/actions/user.js -------------------------------------------------------------------------------- /node-src/assets/lang/en.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/assets/lang/en.js -------------------------------------------------------------------------------- /node-src/assets/lang/zh.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/assets/lang/zh.js -------------------------------------------------------------------------------- /node-src/getters/account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/getters/account.js -------------------------------------------------------------------------------- /node-src/getters/assets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/getters/assets.js -------------------------------------------------------------------------------- /node-src/getters/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/getters/connection.js -------------------------------------------------------------------------------- /node-src/getters/setting.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/getters/setting.js -------------------------------------------------------------------------------- /node-src/getters/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/getters/user.js -------------------------------------------------------------------------------- /node-src/lib/chain/asset_constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/chain/asset_constants.js -------------------------------------------------------------------------------- /node-src/lib/common/MarketClasses.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/MarketClasses.js -------------------------------------------------------------------------------- /node-src/lib/common/account_utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/account_utils.js -------------------------------------------------------------------------------- /node-src/lib/common/asset_utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/asset_utils.js -------------------------------------------------------------------------------- /node-src/lib/common/helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/helper.js -------------------------------------------------------------------------------- /node-src/lib/common/localStorage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/localStorage.js -------------------------------------------------------------------------------- /node-src/lib/common/localStorageImpl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/localStorageImpl.js -------------------------------------------------------------------------------- /node-src/lib/common/market_utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/market_utils.js -------------------------------------------------------------------------------- /node-src/lib/common/permission_utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/permission_utils.js -------------------------------------------------------------------------------- /node-src/lib/common/trxHelper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/trxHelper.js -------------------------------------------------------------------------------- /node-src/lib/common/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/lib/common/utils.js -------------------------------------------------------------------------------- /node-src/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/main.js -------------------------------------------------------------------------------- /node-src/modules/NHAssets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/NHAssets.js -------------------------------------------------------------------------------- /node-src/modules/PrivateKeyStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/PrivateKeyStore.js -------------------------------------------------------------------------------- /node-src/modules/WalletDb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/WalletDb.js -------------------------------------------------------------------------------- /node-src/modules/account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/account.js -------------------------------------------------------------------------------- /node-src/modules/assets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/assets.js -------------------------------------------------------------------------------- /node-src/modules/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/connection.js -------------------------------------------------------------------------------- /node-src/modules/contract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/contract.js -------------------------------------------------------------------------------- /node-src/modules/explorer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/explorer.js -------------------------------------------------------------------------------- /node-src/modules/history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/history.js -------------------------------------------------------------------------------- /node-src/modules/market.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/market.js -------------------------------------------------------------------------------- /node-src/modules/operations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/operations.js -------------------------------------------------------------------------------- /node-src/modules/proposals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/proposals.js -------------------------------------------------------------------------------- /node-src/modules/setting.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/setting.js -------------------------------------------------------------------------------- /node-src/modules/transactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/transactions.js -------------------------------------------------------------------------------- /node-src/modules/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/user.js -------------------------------------------------------------------------------- /node-src/modules/vote.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/modules/vote.js -------------------------------------------------------------------------------- /node-src/mutations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/mutations.js -------------------------------------------------------------------------------- /node-src/services/api.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api.js -------------------------------------------------------------------------------- /node-src/services/api/account.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/account.js -------------------------------------------------------------------------------- /node-src/services/api/account0.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/account0.js -------------------------------------------------------------------------------- /node-src/services/api/assets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/assets.js -------------------------------------------------------------------------------- /node-src/services/api/chain-listener.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/chain-listener.js -------------------------------------------------------------------------------- /node-src/services/api/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/connection.js -------------------------------------------------------------------------------- /node-src/services/api/contract.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/contract.js -------------------------------------------------------------------------------- /node-src/services/api/explorer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/explorer.js -------------------------------------------------------------------------------- /node-src/services/api/market.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/market.js -------------------------------------------------------------------------------- /node-src/services/api/nh-assets.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/nh-assets.js -------------------------------------------------------------------------------- /node-src/services/api/nodes-manager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/nodes-manager.js -------------------------------------------------------------------------------- /node-src/services/api/operations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/operations.js -------------------------------------------------------------------------------- /node-src/services/api/subscriptions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/subscriptions.js -------------------------------------------------------------------------------- /node-src/services/api/transactions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/transactions.js -------------------------------------------------------------------------------- /node-src/services/api/vote.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/vote.js -------------------------------------------------------------------------------- /node-src/services/api/wallet/backup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/wallet/backup.js -------------------------------------------------------------------------------- /node-src/services/api/wallet/idb-helper.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/wallet/idb-helper.js -------------------------------------------------------------------------------- /node-src/services/api/wallet/idb-instance.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/wallet/idb-instance.js -------------------------------------------------------------------------------- /node-src/services/api/wallet/idb-root.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/api/wallet/idb-root.js -------------------------------------------------------------------------------- /node-src/services/persistent-storage.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/persistent-storage.js -------------------------------------------------------------------------------- /node-src/services/workers/nodes-manager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/workers/nodes-manager.js -------------------------------------------------------------------------------- /node-src/services/workers/pingWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/workers/pingWorker.js -------------------------------------------------------------------------------- /node-src/services/workers/transactionWorker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/services/workers/transactionWorker.js -------------------------------------------------------------------------------- /node-src/store/AccountRefsStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/AccountRefsStore.js -------------------------------------------------------------------------------- /node-src/store/AccountStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/AccountStore.js -------------------------------------------------------------------------------- /node-src/store/AddressIndex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/AddressIndex.js -------------------------------------------------------------------------------- /node-src/store/BackupStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/BackupStore.js -------------------------------------------------------------------------------- /node-src/store/CachedPropertyStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/CachedPropertyStore.js -------------------------------------------------------------------------------- /node-src/store/WalletDb.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/WalletDb.js -------------------------------------------------------------------------------- /node-src/store/WalletManagerStore.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/WalletManagerStore.js -------------------------------------------------------------------------------- /node-src/store/tcomb_structs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/store/tcomb_structs.js -------------------------------------------------------------------------------- /node-src/utils/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/node-src/utils/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/package.json -------------------------------------------------------------------------------- /webpack.pro.node.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Cocos-BCX/NodeJSSDK/HEAD/webpack.pro.node.config.js --------------------------------------------------------------------------------