Skip to content

Commit e4e52bf

Browse files
authored
Merge pull request #409 from JithinKS97/dependency-upgrades
Dependency upgrades
2 parents 6fd3bb1 + fa30cfe commit e4e52bf

File tree

6 files changed

+641
-260
lines changed

6 files changed

+641
-260
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.19.3
1+
16.18.0

client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"dependencies": {
77
"@sentry/react": "^6.8.0",
88
"@truffle/contract": "^4.3.15",
9-
"bootstrap": "^4.6.0",
9+
"bootstrap": "^5.0.0",
1010
"contracts": "0.1.0",
11-
"cross-env": "5.0.5",
11+
"cross-env": "7.0.3",
1212
"devtools-detect": "^3.0.1",
1313
"highlight.js": "10.7.2-local",
1414
"html-react-parser": "^3.0.1",
@@ -17,7 +17,7 @@
1717
"react": "17.0.2",
1818
"react-dom": "17.0.2",
1919
"react-ga": "^3.3.0",
20-
"react-markdown": "^7.0.0",
20+
"react-markdown": "^8.0.0",
2121
"react-redux": "^7.2.4",
2222
"react-responsive": "^9.0.0-beta.10",
2323
"react-router": "^5.2.0",
@@ -27,7 +27,7 @@
2727
"react-sidebar": "^3.0.2",
2828
"redux-logger": "^3.0.6",
2929
"redux-thunk": "^2.3.0",
30-
"web3": "1.5.2"
30+
"web3": "1.8.0"
3131
},
3232
"scripts": {
3333
"start": "react-scripts start",

client/scripts/deploy_contracts.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import fs from 'fs';
55
import * as ethutil from '../src/utils/ethutil.js';
66
import * as constants from '../src/constants.js';
77
import HDWalletProvider from '@truffle/hdwallet-provider';
8-
import * as gamedata from '../src/gamedata/gamedata.json';
9-
import * as EthernautABI from 'contracts/build/contracts/Ethernaut.sol/Ethernaut.json';
8+
import * as gamedata from '../src/gamedata/gamedata.json' assert {type: "json"};
9+
import * as EthernautABI from 'contracts/build/contracts/Ethernaut.sol/Ethernaut.json' assert {type: "json"};
1010

1111
let web3;
1212
let ethernaut;

client/src/constants.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import dotenv from 'dotenv';
22
import pkgWeb3 from 'web3';
3-
import * as pkgJSON from '../package.json';
3+
44
dotenv.config()
55

66
export const DEBUG = process.env.NODE_ENV !== 'production'
@@ -12,7 +12,7 @@ export const NETWORKS = {
1212
UNDEFINED: undefined,
1313
LOCAL: {
1414
name: 'local',
15-
id: '*',
15+
id: '1337',
1616
url: 'http://localhost',
1717
port: 8545
1818
},
@@ -53,7 +53,7 @@ export const NETWORKS_INGAME = {
5353
UNDEFINED: undefined,
5454
LOCAL: {
5555
name: 'local',
56-
id: '*',
56+
id: '1337',
5757
url: 'http://localhost',
5858
port: 8545
5959
},
@@ -118,7 +118,7 @@ export const ADDRESSES = {
118118
}
119119

120120
// Storage
121-
export const VERSION = pkgJSON.default.version
121+
export const VERSION = "0.1.0"
122122
export const STORAGE_PLAYER_DATA_KEY = `ethernaut_player_data_${VERSION}_`
123123

124124
// Paths
@@ -144,7 +144,7 @@ export const SHOW_VERSION = true
144144
export const ACTIVE_NETWORK = NETWORKS.LOCAL
145145

146146
let id_to_network = {}
147-
Object.keys(NETWORKS).filter((network) => NETWORKS[network] && NETWORKS[network].name !== 'local').forEach(network => id_to_network[NETWORKS[network].id] = NETWORKS[network].name)
147+
Object.keys(NETWORKS).filter((network) => NETWORKS[network] /*&& NETWORKS[network].name !== 'local'*/).forEach(network => id_to_network[NETWORKS[network].id] = NETWORKS[network].name)
148148

149149

150150
export const ID_TO_NETWORK = id_to_network

contracts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"@openzeppelin/contracts": "3.2.0",
77
"@truffle/hdwallet-provider": "^1.3.0",
88
"colors": "^1.4.0",
9-
"cross-env": "5.0.5",
9+
"cross-env": "7.0.3",
1010
"ethereumjs-util": "^7.0.10",
1111
"hardhat": "^2.9.2",
1212
"openzeppelin-contracts-08": "npm:@openzeppelin/[email protected]",
1313
"openzeppelin-test-helpers": "^0.5.1",
1414
"prompt": "^1.1.0",
15-
"web3": "^1.3.5"
15+
"web3": "1.8.0"
1616
},
1717
"devDependencies": {
1818
"@nomiclabs/hardhat-truffle5": "^2.0.0",

0 commit comments

Comments
 (0)