File tree Expand file tree Collapse file tree 6 files changed +641
-260
lines changed Expand file tree Collapse file tree 6 files changed +641
-260
lines changed Original file line number Diff line number Diff line change 1
- 14.19.3
1
+ 16.18.0
Original file line number Diff line number Diff line change 6
6
"dependencies" : {
7
7
"@sentry/react" : " ^6.8.0" ,
8
8
"@truffle/contract" : " ^4.3.15" ,
9
- "bootstrap" : " ^4.6 .0" ,
9
+ "bootstrap" : " ^5.0 .0" ,
10
10
"contracts" : " 0.1.0" ,
11
- "cross-env" : " 5 .0.5 " ,
11
+ "cross-env" : " 7 .0.3 " ,
12
12
"devtools-detect" : " ^3.0.1" ,
13
13
"highlight.js" : " 10.7.2-local" ,
14
14
"html-react-parser" : " ^3.0.1" ,
17
17
"react" : " 17.0.2" ,
18
18
"react-dom" : " 17.0.2" ,
19
19
"react-ga" : " ^3.3.0" ,
20
- "react-markdown" : " ^7 .0.0" ,
20
+ "react-markdown" : " ^8 .0.0" ,
21
21
"react-redux" : " ^7.2.4" ,
22
22
"react-responsive" : " ^9.0.0-beta.10" ,
23
23
"react-router" : " ^5.2.0" ,
27
27
"react-sidebar" : " ^3.0.2" ,
28
28
"redux-logger" : " ^3.0.6" ,
29
29
"redux-thunk" : " ^2.3.0" ,
30
- "web3" : " 1.5.2 "
30
+ "web3" : " 1.8.0 "
31
31
},
32
32
"scripts" : {
33
33
"start" : " react-scripts start" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ import fs from 'fs';
5
5
import * as ethutil from '../src/utils/ethutil.js' ;
6
6
import * as constants from '../src/constants.js' ;
7
7
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 " } ;
10
10
11
11
let web3 ;
12
12
let ethernaut ;
Original file line number Diff line number Diff line change 1
1
import dotenv from 'dotenv' ;
2
2
import pkgWeb3 from 'web3' ;
3
- import * as pkgJSON from '../package.json' ;
3
+
4
4
dotenv . config ( )
5
5
6
6
export const DEBUG = process . env . NODE_ENV !== 'production'
@@ -12,7 +12,7 @@ export const NETWORKS = {
12
12
UNDEFINED : undefined ,
13
13
LOCAL : {
14
14
name : 'local' ,
15
- id : '* ' ,
15
+ id : '1337 ' ,
16
16
url : 'http://localhost' ,
17
17
port : 8545
18
18
} ,
@@ -53,7 +53,7 @@ export const NETWORKS_INGAME = {
53
53
UNDEFINED : undefined ,
54
54
LOCAL : {
55
55
name : 'local' ,
56
- id : '* ' ,
56
+ id : '1337 ' ,
57
57
url : 'http://localhost' ,
58
58
port : 8545
59
59
} ,
@@ -118,7 +118,7 @@ export const ADDRESSES = {
118
118
}
119
119
120
120
// Storage
121
- export const VERSION = pkgJSON . default . version
121
+ export const VERSION = "0.1.0"
122
122
export const STORAGE_PLAYER_DATA_KEY = `ethernaut_player_data_${ VERSION } _`
123
123
124
124
// Paths
@@ -144,7 +144,7 @@ export const SHOW_VERSION = true
144
144
export const ACTIVE_NETWORK = NETWORKS . LOCAL
145
145
146
146
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 )
148
148
149
149
150
150
export const ID_TO_NETWORK = id_to_network
Original file line number Diff line number Diff line change 6
6
"@openzeppelin/contracts" : " 3.2.0" ,
7
7
"@truffle/hdwallet-provider" : " ^1.3.0" ,
8
8
"colors" : " ^1.4.0" ,
9
- "cross-env" : " 5 .0.5 " ,
9
+ "cross-env" : " 7 .0.3 " ,
10
10
"ethereumjs-util" : " ^7.0.10" ,
11
11
"hardhat" : " ^2.9.2" ,
12
12
"openzeppelin-contracts-08" :
" npm:@openzeppelin/[email protected] " ,
13
13
"openzeppelin-test-helpers" : " ^0.5.1" ,
14
14
"prompt" : " ^1.1.0" ,
15
- "web3" : " ^1.3.5 "
15
+ "web3" : " 1.8.0 "
16
16
},
17
17
"devDependencies" : {
18
18
"@nomiclabs/hardhat-truffle5" : " ^2.0.0" ,
You can’t perform that action at this time.
0 commit comments