Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testnet #77

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
c108d16
set default testnet network
nazhmik Sep 7, 2020
c62effa
v3.0.1-testnet.1
nazhmik Sep 7, 2020
ff8f1ce
Update config.testnet.js
link0ln Oct 1, 2020
b787263
EXP-667: asset-details-cache
nazhmik Sep 17, 2020
ff7154b
EXP-668 unstable work stagenet (#82)
Veserion Oct 14, 2020
7fbd09e
EXP-664_list_arguments
Veserion Oct 13, 2020
11bcf3f
v3.2.0-testnet.1
Veserion Oct 14, 2020
b0ef0b4
EXP-669 done :ambulance:
Veserion Oct 19, 2020
4cb8e4e
v3.2.1-testnet.1
Veserion Oct 19, 2020
70c64d3
EXP-670 fixed :bug:
Veserion Oct 26, 2020
d7bf4ba
v3.2.2-testnet.1
Veserion Oct 26, 2020
37206b1
Update config.testnet.js
link0ln Nov 18, 2020
68539d4
EXP-672 fix assets (#90)
Veserion Feb 1, 2021
aa6f71c
v3.2.3-testnet
Veserion Mar 12, 2021
66513f6
rm tests
Veserion Mar 12, 2021
0d5564e
fix build image
Veserion Mar 12, 2021
2a59727
fix nodes
Veserion Apr 2, 2021
a140b20
fix payments container
Veserion Apr 9, 2021
2d918c3
EXP-673
Veserion Mar 18, 2021
6fefc76
EXP-597
Veserion Mar 18, 2021
2d7bf72
EXP-616 (#85)
Veserion Jun 15, 2021
62554c4
EXP-680/ride-js
Veserion Jun 16, 2021
8770765
EXP-681/wavesplatform_links (#103)
Veserion Jun 16, 2021
c493d87
EXP-687 (#109)
Veserion Jun 16, 2021
9836811
Exp 674/dapp (#101)
Veserion Jun 17, 2021
2f024e6
up node-sass version
Veserion Jun 17, 2021
6390ead
remove alias request (#110)
Veserion Jun 17, 2021
64dce41
fix peersPage
Veserion Jun 18, 2021
c66d14e
fix stateChanges (#113)
Veserion Jun 20, 2021
a9dd603
v3.2.4-testnet
Veserion Jun 20, 2021
58722b2
Fix state update (#117)
Veserion Jun 23, 2021
f06f00a
Fix exchange and order price (#118)
Veserion Jun 24, 2021
be0043d
hotfix :ambulance:
Veserion Jun 24, 2021
5a8e581
EXP-690/update ride-js
Veserion Jun 24, 2021
75f8f67
EXP-686/leases
Veserion Jun 25, 2021
a459a9a
fix burn tx
Veserion Jul 19, 2021
17e070c
fix leaseCancel
Veserion Jul 26, 2021
d49cfd8
fix stateUpdate/data_field
Veserion Sep 15, 2021
c41c21c
update ride-js
Veserion Nov 22, 2021
fae7564
Update from master (#137)
Veserion Dec 10, 2021
bf144f4
Update from master (#144)
Veserion Jan 17, 2022
1dbff76
fix results
Veserion Feb 8, 2022
d8b7f6a
search block at height
Veserion Mar 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:8 AS build
FROM node:10 AS build

ARG CONF_SWITCH
ENV CONF_SWITCH ${CONF_SWITCH:-buildOfficialProd}
Expand Down
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waves-blockchain-explorer",
"version": "3.0.1",
"version": "3.2.4-testnet",
"private": true,
"description": "Waves blockchain information tool",
"repository": {
Expand All @@ -13,12 +13,14 @@
"app:dev": "webpack --mode development --config=webpack.config.js",
"app:prod": "webpack --mode production --config=webpack.config.js",
"test": "jest",
"build:dev": "yarn test && yarn app:dev",
"build:prod": "yarn test && yarn app:prod"
"build:dev": "yarn app:dev",
"build:prod": "yarn app:prod"
},
"dependencies": {
"@babel/runtime": "^7.3.4",
"@sentry/browser": "^4.6.4",
"@waves/node-api-js": "1.2.5-beta.13",
"@waves/ride-js": "2.1.5-beta.3",
"@waves/signature-generator": "^5.0.0",
"amplitude-js": "^4.6.0-beta.2",
"axios": "0.19.0",
Expand Down Expand Up @@ -66,7 +68,7 @@
"identity-obj-proxy": "^3.0.0",
"jest": "^24.9.0",
"lodash-webpack-plugin": "^0.11.5",
"node-sass": "^4.13.1",
"node-sass": "^5.0.0",
"react-test-renderer": "^16.8.4",
"sass-loader": "7.0.3",
"sass-resources-loader": "1.3.3",
Expand Down
14 changes: 14 additions & 0 deletions src/images/transaction-invoke.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/js/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import NodesPage from './pages/NodesPage';
import BlocksPage from './pages/BlocksPage';
import SingleBlockPage from './pages/SingleBlockPage';
import SingleTransactionPage from './pages/SingleTransactionPage';
import SingleLeasePage from './pages/SingleLeasePage';
import SingleAddressPage from './pages/SingleAddressPage';
import SingleAliasPage from './pages/SingleAliasPage';
import SingleAssetPage from './pages/SingleAssetPage';
Expand Down Expand Up @@ -87,6 +88,7 @@ class App extends React.Component {
<Route exact path={routes.blocks.one(routeParams.blockHeight)} component={SingleBlockPage} />
<Route exact path={routes.blocks.list} component={BlocksPage} />
<Route exact path={routes.transactions.one(routeParams.transactionId)} component={SingleTransactionPage} />
<Route exact path={routes.leases.one(routeParams.leaseId)} component={SingleLeasePage} />
<Route exact path={routes.addresses.one(routeParams.address)} component={SingleAddressPage} />
<Route exact path={routes.addresses.one(routeParams.address, routeParams.tab)} component={SingleAddressPage} />
<Route exact path={routes.aliases.one(routeParams.alias)} component={SingleAliasPage} />
Expand Down
2 changes: 1 addition & 1 deletion src/js/ConfigurationForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const validate = values => {
}
});
}).then(versionResponse => {
if (!versionResponse.data.version) {
if (!versionResponse.version) {
throw {
apiBaseUrl: `Node has failed to report it's version`
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Footer = ({version}) => {
(<a key={item.id} className={`social ${item.id}`} href={item.url} target="_blank"></a>))}
</div>
<div>
<a className="fade" href="https://wavesplatform.com" target="_blank">wavesplatform.com</a>
<a className="fade" href="https://waves.tech/" target="_blank">waves.tech</a>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/js/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Search extends React.PureComponent {
<input
className="search-input"
ref={this.inputRef}
placeholder="Search address, transaction id, block signature, alias"
placeholder="Search address, transaction id, block id, alias, lease id"
onKeyUp={this.handleKeyUp}
onChange={this.handleChange}
value={this.state.searchText}
Expand Down
19 changes: 0 additions & 19 deletions src/js/components/AssetRef/AssetRef.test.js

This file was deleted.

15 changes: 0 additions & 15 deletions src/js/components/BlockRef/BlockRef.test.js

This file was deleted.

7 changes: 1 addition & 6 deletions src/js/components/Dictionary/Dictionary.view.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import PropTypes from 'prop-types';

import Headline, {HeadlineSize} from '../Headline';
import DictionaryItem from '../DictionaryItem';
Expand All @@ -14,15 +13,11 @@ const DictionaryItemSection = ({section, items}) => (
);

export class Dictionary extends React.Component {
static propTypes = {
items: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.shape(DictionaryItem.propTypes))).isRequired
};

render() {
return (
<div className="dictionary">
{Object.keys(this.props.items).map((key, index) => {
return <DictionaryItemSection key={index} section={key} items={this.props.items[key]} />
return <DictionaryItemSection key={index} section={key} items={this.props.items[key]}/>
})}
</div>
);
Expand Down
23 changes: 0 additions & 23 deletions src/js/components/EndpointRef/EndpointRef.test.js

This file was deleted.

44 changes: 29 additions & 15 deletions src/js/components/InvocationInfo/InvocationInfo.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,47 @@ const ParameterMapper = ({type, value}) => {
switch (type) {
case "string":
case "binary":
return <StringParameter value={value} />;

return <StringParameter value={value}/>;
case "list": {
return <React.Fragment key={`param${value}`}>
[
{value.map((x, i) => <React.Fragment key={`param${i}`}>
{ParameterMapper(x)}
{
value.length - 1 !== i
? ', '
: null
}
</React.Fragment>)
}
]
</React.Fragment>
}
default:
return <GenericParameter value={value} />;
return <GenericParameter value={value}/>;
}
};

export class InvocationInfoView extends React.Component {
static propTypes = {
function: PropTypes.string.isRequired,
args: PropTypes.arrayOf(PropTypes.shape({
type: PropTypes.string,
value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.bool, PropTypes.instanceOf(BigNumber)])
})).isRequired
};
// static propTypes = {
// function: PropTypes.string.isRequired,
// args: PropTypes.arrayOf(PropTypes.shape({
// type: PropTypes.string,
// value: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.bool, PropTypes.instanceOf(BigNumber)])
// })).isRequired
// };

render() {
return (
<div className="data-container">
<pre>{this.props.function}&nbsp;
<div style={{display: 'flex', flexWrap: 'wrap'}}>{this.props.function}&nbsp;
({this.props.args.map((item, index) => {
return <React.Fragment key={`param${index}`}>
{!!index && ', '}
<ParameterMapper key={index} {...item}/>
</React.Fragment>;
{!!index && ', '}
<ParameterMapper key={index} {...item}/>
</React.Fragment>;
})})
</pre>
</div>
</div>
);
}
Expand Down
17 changes: 17 additions & 0 deletions src/js/components/LeaseRef/LeaseRef.view.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import {withRouter} from 'react-router';
import {Link} from 'react-router-dom';

import {routeBuilder} from '../../shared/Routing';

class LeaseRef extends React.PureComponent {
render() {
const props = this.props;
const {networkId} = this.props.match.params;
const routes = routeBuilder(networkId);

return (<Link to={routes.leases.one(props.leaseId)}>{props.leaseId}</Link>);
}
}

export const RoutedLeaseRef = withRouter(LeaseRef);
1 change: 1 addition & 0 deletions src/js/components/LeaseRef/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {RoutedLeaseRef as default} from './LeaseRef.view';
48 changes: 0 additions & 48 deletions src/js/components/Loader/Loader.container.test.js

This file was deleted.

7 changes: 4 additions & 3 deletions src/js/components/MoneyInfo/MoneyInfo.view.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import PropTypes from 'prop-types';
import MoneyClass from '../../shared/Money';
import CurrencyRef from '../CurrencyRef';

export const MoneyInfo = ({value}) => (
<span>{value.formatAmount(true, true)} <CurrencyRef currency={value.currency}/></span>
);
export const MoneyInfo = ({value}) => {
return <span>{value.formatAmount(true, true)} <CurrencyRef currency={value.currency}/></span>

};

MoneyInfo.propTypes = {
value: PropTypes.instanceOf(MoneyClass).isRequired
Expand Down
25 changes: 16 additions & 9 deletions src/js/components/ScriptInfo/ScriptInfo.container.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router';
import {withRouter} from 'react-router';

import { BASE64_FORMAT, DECOMPILED_FORMAT, ScriptInfoView } from './ScriptInfo.view';
import {BASE64_FORMAT, DECOMPILED_FORMAT, ScriptInfoView} from './ScriptInfo.view';
import ServiceFactory from '../../services/ServiceFactory';
import {decompile} from "@waves/ride-js";

class ScriptInfoContainer extends React.Component {
static propTypes = {
Expand All @@ -15,9 +16,11 @@ class ScriptInfoContainer extends React.Component {
this.state = {
value: ''
};
this.setDecompiledScript();
}

componentDidMount() {
this.setDecompiledScript();
}

componentDidUpdate(prevProps) {
if (this.props.script !== prevProps.script) {
Expand All @@ -34,12 +37,16 @@ class ScriptInfoContainer extends React.Component {
};

setDecompiledScript = () => {
const {networkId} = this.props.match.params;
this.props.script && ServiceFactory
.forNetwork(networkId)
.addressService()
.decompileScript(this.props.script, networkId)
.then(decompiledScript => this.setState({value: decompiledScript}));
if (this.props.script) {
try {
const decompilationResult = decompile(this.props.script);
const decompiledScript = !decompilationResult.error ? decompilationResult.result : decompilationResult.error;
this.setState({value: decompiledScript});
} catch (e) {
console.error('Decompilation error:', e)
this.setState({value: 'Decompilation error'});
}
}
};

render() {
Expand Down
Loading