Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

Commit

Permalink
Merge pull request #438 from etclabscore/fix/update-service-runner
Browse files Browse the repository at this point in the history
fix: update service runner client + eth client + core-geth
  • Loading branch information
shanejonas authored Nov 7, 2020
2 parents 1ec523e + 56a67e7 commit 27d6f76
Show file tree
Hide file tree
Showing 18 changed files with 175 additions and 52 deletions.
161 changes: 142 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"dependencies": {
"@etclabscore/eserialize": "^1.0.2",
"@etclabscore/ethereum-json-rpc": "1.2.2",
"@etclabscore/ethereum-json-rpc": "^1.3.13",
"@etclabscore/ethereum-json-rpc-specification": "git+https://github.com/etclabscore/ethereum-json-rpc-specification.git",
"@etclabscore/jade-service-runner-client": "^1.9.0",
"@etclabscore/jade-service-runner-client": "^1.10.5",
"@material-ui/core": "^4.5.2",
"@material-ui/icons": "^4.5.1",
"@material-ui/styles": "^4.5.2",
Expand Down
8 changes: 4 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Brightness3Icon from "@material-ui/icons/Brightness3";
import NotesIcon from "@material-ui/icons/Notes";
import WbSunnyIcon from "@material-ui/icons/WbSunny";
import CodeIcon from "@material-ui/icons/Code";
import ServiceRunner, { ObjectT84Ta8SE as IAvailableServices } from "@etclabscore/jade-service-runner-client";
import ServiceRunner, { ObjectOfStringDoaGddGAStringVp8AIgHFStringDoaGddGAUnorderedSetOfObjectOfStringDoaGddGAStringDoaGddGAKieCSt44UIuKSje3YY1BLmC3 as IAvailableServices } from "@etclabscore/jade-service-runner-client"; //tslint:disable-line
import availableServiceToNetwork from "./helpers/availableServiceToNetwork";

import useInterval from "use-interval";
Expand Down Expand Up @@ -137,9 +137,9 @@ function App(props: any) {
return re.test(q);
};

const handleSearch = async (query: string | undefined) => {
if (query === undefined) { return; }
const q = query.trim();
const handleSearch = async (qry: string | undefined) => {
if (qry === undefined) { return; }
const q = qry.trim();
if (isAddress(q)) {
history.push(`/address/${q}`);
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/AddressTransactions/AddressTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Typography, IconButton, Grid } from "@material-ui/core";
import { useTranslation } from "react-i18next";
import TxList from "../TxList";
import { ArrowBackIos, ArrowForwardIos } from "@material-ui/icons";
import {ObjectUAh7GW7V as Transaction} from "@etclabscore/ethereum-json-rpc";
import { Transaction } from "@etclabscore/ethereum-json-rpc";

export interface IProps {
transactions: Transaction[];
Expand Down Expand Up @@ -33,7 +33,7 @@ const AddressTransactions: React.FC<IProps> = (props) => {
</Grid>
<TxList transactions={props.transactions || []} showBlockNumber={true}></TxList>
{(!props.transactions || props.transactions.length === 0) &&
<Grid container style={{padding: "15px"}}>
<Grid container style={{ padding: "15px" }}>
<Typography>{t("No Transactions for this block range.")}</Typography>
</Grid>
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/BlockCard/BlockCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Link from "@material-ui/core/Link";
import { Link as RouterLink } from "react-router-dom";
import { Card, CardHeader, CardContent, Typography, Chip } from "@material-ui/core";
import { hexToDate, hexToString, hexToNumber } from "@etclabscore/eserialize";
import { GetBlockByNumberResult as IBlock } from "@etclabscore/ethereum-json-rpc";
import { Block as IBlock } from "@etclabscore/ethereum-json-rpc";
import { useTranslation } from "react-i18next";

interface IProps {
Expand Down
8 changes: 4 additions & 4 deletions src/components/TxRaw/TxRaw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useHistory } from "react-router-dom";
import { Button, Typography } from "@material-ui/core";
import Editor from "@monaco-editor/react";
import useDarkMode from "use-dark-mode";
import { ObjectUAh7GW7V as ITransaction} from "@etclabscore/ethereum-json-rpc";
import { Transaction } from "@etclabscore/ethereum-json-rpc";

interface IProps {
tx: ITransaction;
tx: Transaction;
receipt: any;
}

Expand All @@ -24,7 +24,7 @@ const TxRaw: React.FC<IProps> = (props) => {
style={{ position: "absolute", right: "10px", top: "75px", zIndex: 1 }}
>View Transaction</Button>
<br />
<Typography variant="h5" gutterBottom style={{marginLeft: "10px"}}>Transaction</Typography>
<Typography variant="h5" gutterBottom style={{ marginLeft: "10px" }}>Transaction</Typography>
<br />
<Editor
options={{
Expand All @@ -44,7 +44,7 @@ const TxRaw: React.FC<IProps> = (props) => {
value={JSON.stringify(tx, null, 4)}
/>
<br />
<Typography variant="h6" gutterBottom style={{marginLeft: "10px"}}>Receipt</Typography>
<Typography variant="h6" gutterBottom style={{ marginLeft: "10px" }}>Receipt</Typography>
<br />
<Editor
options={{
Expand Down
14 changes: 7 additions & 7 deletions src/containers/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import EthereumJSONRPC from "@etclabscore/ethereum-json-rpc";
import { hexToNumber } from "@etclabscore/eserialize";
import AddressTransactions from "../components/AddressTransactions";
import { History } from "history";
import {ObjectUAh7GW7V as Transaction} from "@etclabscore/ethereum-json-rpc";
import { Transaction } from "@etclabscore/ethereum-json-rpc";

const unit = require("ethjs-unit"); //tslint:disable-line

Expand Down Expand Up @@ -58,13 +58,13 @@ const Address: React.FC<IProps> = ({ match, history }) => {
return txCount;
}).then((txCountRes: string | undefined) => {
if (txCountRes) {
erpc.eth_getBalance(address, hexBlockNumber).then((balance) => {
if (balance === null) { return; }
setBalance(balance);
erpc.eth_getBalance(address, hexBlockNumber).then((b) => {
if (b === null) { return; }
setBalance(b);
});
erpc.eth_getCode(address, hexBlockNumber).then((code) => {
if (code === null) { return; }
setCode(code);
erpc.eth_getCode(address, hexBlockNumber).then((c) => {
if (c === null) { return; }
setCode(c);
});
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { CircularProgress } from "@material-ui/core";
import useCoreGethStore from "../stores/useCoreGethStore";
import * as React from "react";
import BlockView from "../components/BlockView";
import EthereumJSONRPC, { ObjectW9HVodO0 as IBlock } from "@etclabscore/ethereum-json-rpc";
import EthereumJSONRPC, { Block as IBlock } from "@etclabscore/ethereum-json-rpc";

export default function Block(props: any) {
const { match: { params: { hash } } } = props;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/BlockCardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import getBlocks from "../helpers";
import BlockCard from "../components/BlockCard";
import { hexToNumber } from "@etclabscore/eserialize";
import EthereumJSONRPC, { ObjectW9HVodO0 as IBlock } from "@etclabscore/ethereum-json-rpc";
import EthereumJSONRPC, { Block as IBlock } from "@etclabscore/ethereum-json-rpc";

interface IProps {
from: number;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/BlockList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as React from "react";
import BlockList from "../components/BlockList";
import getBlocks from "../helpers";
import { ArrowForwardIos, ArrowBackIos } from "@material-ui/icons";
import EthereumJSONRPC, { ObjectW9HVodO0 as IBlock } from "@etclabscore/ethereum-json-rpc";
import EthereumJSONRPC, { Block as IBlock } from "@etclabscore/ethereum-json-rpc";

interface IProps {
from: number;
Expand Down
Loading

0 comments on commit 27d6f76

Please sign in to comment.