Skip to content

Commit

Permalink
Replace graphenejs-lib by bitsharesjs
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Jan 19, 2017
1 parent e5b619c commit 2f7398f
Show file tree
Hide file tree
Showing 97 changed files with 117 additions and 117 deletions.
2 changes: 1 addition & 1 deletion bloom_filter/bloom_filter_wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var fs = require('fs')

require('coffee-script/register') // npm install coffee-script

var graphenejs = require("graphenejs-lib");
var graphenejs = require("bitsharesjs");
var h = graphenejs.hash;
var key_utils = graphenejs.key;
const chainPrefix = "BTS";
Expand Down
2 changes: 1 addition & 1 deletion bloom_filter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"license": "ISC",
"devDependencies": {
"coffee-script": "^1.12.2",
"graphenejs-lib": "^0.4.10"
"bitsharesjs": "^0.4.10"
}
}
4 changes: 2 additions & 2 deletions release-notes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ Release 2.0.160629

New features
--------
- Api code moved to new [graphenejs-ws](https://github.com/svk31/graphenejs-ws) library
- Crypto and blockchain state code moved to [graphenejs-lib](https://github.com/svk31/graphenejs-lib) library
- Api code moved to new [bitsharesjs-ws](https://github.com/svk31/bitsharesjs-ws) library
- Crypto and blockchain state code moved to [bitsharesjs](https://github.com/svk31/bitsharesjs) library
- Add OPEN.MKR deposit/withdrawal
- Limit chat messages to 140 characters
- Refactor MyMarkets selection to tabbed layout
Expand Down
4 changes: 2 additions & 2 deletions web/app/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChainStore} from "graphenejs-lib/es";
import {Apis} from "graphenejs-ws";
import {ChainStore} from "bitsharesjs/es";
import {Apis} from "bitsharesjs-ws";
import React from "react";
import IntlStore from "stores/IntlStore";
import AccountStore from "stores/AccountStore";
Expand Down
2 changes: 1 addition & 1 deletion web/app/Routes-dev.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";

import { Router, Route, IndexRoute, browserHistory } from "react-router/es";
import App from "./App";
Expand Down
2 changes: 1 addition & 1 deletion web/app/Routes.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";

import { Route, IndexRoute } from "react-router/es";
import App from "./App";
Expand Down
4 changes: 2 additions & 2 deletions web/app/actions/AssetActions.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
var alt = require("alt-instance");
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";
import utils from "common/utils";
import WalletApi from "api/WalletApi";
import ApplicationApi from "api/ApplicationApi";
import WalletDb from "stores/WalletDb";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import big from "bignumber.js";

let wallet_api = new WalletApi();
Expand Down
2 changes: 1 addition & 1 deletion web/app/actions/BackupActions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import alt from "alt-instance";
import iDB from "idb-instance";
import {compress, decompress} from "lzma";
import {PrivateKey, PublicKey, Aes, key} from "graphenejs-lib/es";
import {PrivateKey, PublicKey, Aes, key} from "bitsharesjs/es";
import WalletActions from "actions/WalletActions";

class BackupActions {
Expand Down
2 changes: 1 addition & 1 deletion web/app/actions/BlockchainActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var alt = require("alt-instance");
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";

let latestBlocks = {};

Expand Down
4 changes: 2 additions & 2 deletions web/app/actions/MarketsActions.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var alt = require("alt-instance");
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb";
import {ChainStore} from "graphenejs-lib/es";
import {Apis} from "graphenejs-ws";
import {ChainStore} from "bitsharesjs/es";
import {Apis} from "bitsharesjs-ws";
import marketUtils from "common/market_utils";
import accountUtils from "common/account_utils";
import Immutable from "immutable";
Expand Down
2 changes: 1 addition & 1 deletion web/app/actions/TransactionConfirmActions.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import alt from "alt-instance";
import {ChainConfig} from "graphenejs-ws";
import {ChainConfig} from "bitsharesjs-ws";

class TransactionConfirmActions {

Expand Down
4 changes: 2 additions & 2 deletions web/app/actions/WalletActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import WalletDb from "stores/WalletDb";
import WalletUnlockActions from "actions/WalletUnlockActions";
import CachedPropertyActions from "actions/CachedPropertyActions";
import ApplicationApi from "api/ApplicationApi";
import {TransactionBuilder, FetchChain} from "graphenejs-lib/es";
import {Apis} from "graphenejs-ws";
import {TransactionBuilder, FetchChain} from "bitsharesjs/es";
import {Apis} from "bitsharesjs-ws";
import alt from "alt-instance";
import SettingsStore from "stores/SettingsStore";

Expand Down
2 changes: 1 addition & 1 deletion web/app/api/ApplicationApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import WalletUnlockActions from "actions/WalletUnlockActions";
import WalletDb from "stores/WalletDb";
import {Aes, ChainValidation, TransactionBuilder, TransactionHelper, FetchChain} from "graphenejs-lib/es";
import {Aes, ChainValidation, TransactionBuilder, TransactionHelper, FetchChain} from "bitsharesjs/es";

class ApplicationApi {

Expand Down
2 changes: 1 addition & 1 deletion web/app/api/DebugApi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SerializerValidation, types} from "graphenejs-lib/es";
import { SerializerValidation, types} from "bitsharesjs/es";
var config = require("chain/serializer_config");

class DebugApi {
Expand Down
2 changes: 1 addition & 1 deletion web/app/api/WalletApi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {SerializerValidation, TransactionBuilder, TransactionHelper} from "graphenejs-lib/es";
import {SerializerValidation, TransactionBuilder, TransactionHelper} from "bitsharesjs/es";
import ApplicationApi from "./ApplicationApi";

class WalletApi {
Expand Down
2 changes: 1 addition & 1 deletion web/app/api/accountApi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";

class Api {

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountAssetCreate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from "classnames";
import AssetActions from "actions/AssetActions";
import HelpContent from "../Utility/HelpContent";
import utils from "common/utils";
import {ChainStore, ChainValidation} from "graphenejs-lib/es";
import {ChainStore, ChainValidation} from "bitsharesjs/es";
import FormattedAsset from "../Utility/FormattedAsset";
import counterpart from "counterpart";
import ChainTypes from "../Utility/ChainTypes";
Expand Down
3 changes: 2 additions & 1 deletion web/app/components/Account/AccountAssetUpdate.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import classnames from "classnames";
import AssetActions from "actions/AssetActions";
import HelpContent from "../Utility/HelpContent";
import utils from "common/utils";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import FormattedAsset from "../Utility/FormattedAsset";
import FormattedFee from "../Utility/FormattedFee";
import counterpart from "counterpart";
Expand Down Expand Up @@ -597,6 +597,7 @@ class AccountAssetUpdate extends React.Component {
</div>
<div>
<h5><Translate content="exchange.price" />: <FormattedPrice
invert
style={{fontWeight: "bold"}}
quote_amount={cr_quote_amount}
quote_asset={core_exchange_rate.quote.asset_id}
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountMembership.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import {Link} from "react-router/es";
import Translate from "react-translate-component";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import Statistics from "./Statistics";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountOrders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {OrderRow, TableHeader} from "../Exchange/MyOpenOrders";
import market_utils from "common/market_utils";
import counterpart from "counterpart";
import MarketsActions from "actions/MarketsActions";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import MarketLink from "../Utility/MarketLink";

class AccountOrders extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountOverview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import AssetName from "../Utility/AssetName";
import CollateralPosition from "../Blockchain/CollateralPosition";
import { RecentTransactions } from "./RecentTransactions";
import Proposals from "components/Account/Proposals";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import SettingsActions from "actions/SettingsActions";
import assetUtils from "common/asset_utils";
import counterpart from "counterpart";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountPermissions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import utils from "common/utils";
import accountUtils from "common/account_utils";
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb.js";
import {PublicKey} from "graphenejs-lib/es";;
import {PublicKey} from "bitsharesjs/es";;
import AccountPermissionsList from "./AccountPermissionsList";
import PubKeyInput from "../Forms/PubKeyInput";
import {Tabs, Tab} from "../Utility/Tabs";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import utils from "common/utils";
import AccountImage from "../Account/AccountImage";
import Translate from "react-translate-component";
import {ChainStore, PublicKey, ChainValidation} from "graphenejs-lib/es";
import {ChainStore, PublicKey, ChainValidation} from "bitsharesjs/es";
import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import classnames from "classnames";
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/Account/AccountVesting.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import Translate from "react-translate-component";
import FormattedAsset from "../Utility/FormattedAsset";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import utils from "common/utils";
import WalletActions from "actions/WalletActions";
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";

class VestingBalance extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountVoting.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import counterpart from "counterpart";
import accountUtils from "common/account_utils";
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb.js";
import {ChainStore, FetchChainObjects} from "graphenejs-lib/es";
import {ChainStore, FetchChainObjects} from "bitsharesjs/es";
import WorkerApproval from "./WorkerApproval";
import AccountVotingProxy from "./AccountVotingProxy";
import AccountsList from "./AccountsList";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountVotingProxy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ChainTypes from "../Utility/ChainTypes";
import Translate from "react-translate-component";
import AccountImage from "../Account/AccountImage";
import LinkToAccountById from "../Blockchain/LinkToAccountById";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";

class AccountVotingProxy extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/AccountsList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import AccountSelector from "./AccountSelector";
import Translate from "react-translate-component";
import AccountImage from "./AccountImage";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import ChainTypes from "../Utility/ChainTypes";
import FormattedAsset from "../Utility/FormattedAsset";
import BindToChainState from "../Utility/BindToChainState";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/CreateAccount.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import TransactionConfirmStore from "stores/TransactionConfirmStore";
import LoadingIndicator from "../LoadingIndicator";
import WalletActions from "actions/WalletActions";
import Translate from "react-translate-component";
import {ChainStore, FetchChain} from "graphenejs-lib/es";
import {ChainStore, FetchChain} from "bitsharesjs/es";
import {BackupCreate} from "../Wallet/Backup";
import ReactTooltip from "react-tooltip";
import utils from "common/utils";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/NestedApprovalState.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Icon from "../Icon/Icon";
import LinkToAccountById from "../Blockchain/LinkToAccountById";
import pu from "common/permission_utils";
import {cloneDeep} from "lodash";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";

class AccountPermissionTree extends React.Component {

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/Proposals.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import ChainTypes from "components/Utility/ChainTypes";
import utils from "common/utils";
import ProposalApproveModal from "../Modal/ProposalApproveModal";
import NestedApprovalState from "../Account/NestedApprovalState";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import counterpart from "counterpart";

class Proposals extends Component {
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Account/RecentTransactions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Operation from "../Blockchain/Operation";
import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import utils from "common/utils";
import {ChainTypes as grapheneChainTypes} from "graphenejs-lib/es";
import {ChainTypes as grapheneChainTypes} from "bitsharesjs/es";
import TransitionWrapper from "../Utility/TransitionWrapper";
import ps from "perfect-scrollbar";
import counterpart from "counterpart";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/Asset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import HelpContent from "../Utility/HelpContent";
import Icon from "../Icon/Icon";
import assetUtils from "common/asset_utils";
import utils from "common/utils";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";

class AssetFlag extends React.Component {
render()
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/Fees.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import FormattedAsset from "../Utility/FormattedAsset";
import {EquivalentValueComponent} from "../Utility/EquivalentValueComponent";
import {ChainStore, ChainTypes as grapheneChainTypes} from "graphenejs-lib/es";
import {ChainStore, ChainTypes as grapheneChainTypes} from "bitsharesjs/es";
const {operations} = grapheneChainTypes;
let ops = Object.keys(operations);

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/Operation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import LinkToAssetById from "../Blockchain/LinkToAssetById";
import BindToChainState from "../Utility/BindToChainState";
import ChainTypes from "../Utility/ChainTypes";
import TranslateWithLinks from "../Utility/TranslateWithLinks";
import {ChainStore, ChainTypes as grapheneChainTypes} from "graphenejs-lib/es";
import {ChainStore, ChainTypes as grapheneChainTypes} from "bitsharesjs/es";
import account_constants from "chain/account_constants";
import MemoText from "./MemoText";
import ProposedOperation from "./ProposedOperation";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/ProposedOperation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import LinkToAccountById from "../Blockchain/LinkToAccountById";
import LinkToAssetById from "../Blockchain/LinkToAssetById";
import BindToChainState from "../Utility/BindToChainState";
import FormattedPrice from "../Utility/FormattedPrice";
import {ChainStore, ChainTypes as grapheneChainTypes} from "graphenejs-lib/es";
import {ChainStore, ChainTypes as grapheneChainTypes} from "bitsharesjs/es";
import account_constants from "chain/account_constants";
import MemoText from "./MemoText";
import TranslateWithLinks from "../Utility/TranslateWithLinks";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/Transaction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Icon from "../Icon/Icon";
import PrivateKeyStore from "stores/PrivateKeyStore";
import WalletUnlockActions from "actions/WalletUnlockActions";
import ProposedOperation from "./ProposedOperation";
import {ChainTypes} from "graphenejs-lib/es";
import {ChainTypes} from "bitsharesjs/es";
let {operations} = ChainTypes;
import ReactTooltip from "react-tooltip";

Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Blockchain/TransactionConfirm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import LoadingIndicator from "../LoadingIndicator";
import WalletDb from "stores/WalletDb";
import AccountStore from "stores/AccountStore";
import AccountSelect from "components/Forms/AccountSelect";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import utils from "common/utils";

class TransactionConfirm extends React.Component {
Expand Down
4 changes: 2 additions & 2 deletions web/app/components/Chat/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { connect } from "alt-react";
import AccountStore from "stores/AccountStore";
import Translate from "react-translate-component";
import Icon from "../Icon/Icon";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import {debounce} from "lodash";
import SettingsActions from "actions/SettingsActions";
import SettingsStore from "stores/SettingsStore";
Expand All @@ -13,7 +13,7 @@ import counterpart from "counterpart";
import LoadingIndicator from "../LoadingIndicator";
import AccountActions from "actions/AccountActions";
import TransactionConfirmStore from "stores/TransactionConfirmStore";
import {FetchChainObjects} from "graphenejs-lib/es";;
import {FetchChainObjects} from "bitsharesjs/es";;

const PROD = true;
const hostConfig = PROD ? { // Prod config
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Console/Console.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {Component} from "react";
import {Apis} from "graphenejs-ws";
import {Apis} from "bitsharesjs-ws";
import ApplicationApi from "api/ApplicationApi";
import WalletApi from "api/WalletApi";
import DebugApi from "api/DebugApi";
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Dashboard/AccountCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import AccountImage from "../Account/AccountImage";
import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import AccountStore from "stores/AccountStore";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";

/**
* @brief displays the summary of a given account in a condenced view (for the dashboard)
Expand Down
2 changes: 1 addition & 1 deletion web/app/components/Dashboard/DashboardList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ChainTypes from "../Utility/ChainTypes";
import BindToChainState from "../Utility/BindToChainState";
import SettingsActions from "actions/SettingsActions";
import Icon from "../Icon/Icon";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import TotalBalanceValue from "../Utility/TotalBalanceValue";
import AccountStore from "stores/AccountStore";
import counterpart from "counterpart";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import Translate from "react-translate-component";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import ChainTypes from "components/Utility/ChainTypes";
import BindToChainState from "components/Utility/BindToChainState";
import WithdrawModalBlocktrades from "./WithdrawModalBlocktrades";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import Trigger from "react-foundation-apps/src/trigger";
import Translate from "react-translate-component";
import ChainTypes from "components/Utility/ChainTypes";
import {ChainStore} from "graphenejs-lib/es";
import {ChainStore} from "bitsharesjs/es";
import BindToChainState from "components/Utility/BindToChainState";
import utils from "common/utils";
import BalanceComponent from "components/Utility/BalanceComponent";
Expand Down
Loading

0 comments on commit 2f7398f

Please sign in to comment.