Skip to content

Commit a1c97a5

Browse files
committed
Remove testworld2 config
1 parent 7ac559c commit a1c97a5

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

config.example.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ export const BerkeleyUrlConfig = {
3030
tx: "",
3131
};
3232
/**testworld2.0 net url */
33-
export const Testworld2UrlConfig = {
34-
gql: "",
35-
explorer: "",
36-
tx: "",
37-
};
33+
// export const Testworld2UrlConfig = {
34+
// gql: "",
35+
// explorer: "",
36+
// tx: "",
37+
// };
3838
/**
3939
* The current network configuration version number. If cached locally, increase the current version.
4040
*/

src/background/DappService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class DappService {
155155
reject({ code:errorCodes.invalidParams, message: getMessageFromCode(errorCodes.invalidParams)})
156156
return
157157
}
158-
const supportNetType = [NET_CONFIG_TYPE.Berkeley,NET_CONFIG_TYPE.Testworld2]
158+
const supportNetType = [NET_CONFIG_TYPE.Berkeley]
159159
let netConfig = await getCurrentNetConfig()
160160
if(supportNetType.indexOf(netConfig.netType)===-1){
161161
reject({ code:errorCodes.unsupportMethod, message: getMessageFromCode(errorCodes.unsupportMethod)})

src/constant/network.js

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import {
22
BerkeleyUrlConfig,
33
DevnetUrlConfig,
44
MainnetUrlConfig,
5-
Testworld2UrlConfig,
5+
// Testworld2UrlConfig,
66
} from "../../config";
77

88
/** all network type contain unknown */
99
export const NET_CONFIG_TYPE = {
1010
Mainnet: "mainnet",
1111
Devnet: "devnet",
1212
Berkeley: "berkeley",
13-
Testworld2: "testworld2",
13+
// Testworld2: "testworld2",
1414
Unknown: "unknown",
1515
};
1616
/** main net config */
@@ -41,14 +41,14 @@ const base_berkeley_config = {
4141
name: "Berkeley",
4242
};
4343
/** testworld2 net config */
44-
const base_testworld2_config = {
45-
netType: NET_CONFIG_TYPE.Testworld2,
46-
url: Testworld2UrlConfig.gql,
47-
explorer: Testworld2UrlConfig.explorer,
48-
gqlTxUrl: Testworld2UrlConfig.tx,
49-
id: 12,
50-
name: "Testworld2",
51-
};
44+
// const base_testworld2_config = {
45+
// netType: NET_CONFIG_TYPE.Testworld2,
46+
// url: Testworld2UrlConfig.gql,
47+
// explorer: Testworld2UrlConfig.explorer,
48+
// gqlTxUrl: Testworld2UrlConfig.tx,
49+
// id: 12,
50+
// name: "Testworld2",
51+
// };
5252
/** unknown net config */
5353
export const BASE_unknown_config = {
5454
netType: NET_CONFIG_TYPE.Unknown,
@@ -58,7 +58,7 @@ export const NETWORK_CONFIG_LIST = [
5858
base_mainnet_config,
5959
base_dev_config,
6060
base_berkeley_config,
61-
base_testworld2_config,
61+
// base_testworld2_config,
6262
];
6363

6464
/** support network config */
@@ -75,10 +75,10 @@ export const NET_CONFIG_MAP = {
7575
type_id: "11",
7676
config: base_berkeley_config,
7777
},
78-
[NET_CONFIG_TYPE.Testworld2]: {
79-
type_id: "12",
80-
config: base_testworld2_config,
81-
},
78+
// [NET_CONFIG_TYPE.Testworld2]: {
79+
// type_id: "12",
80+
// config: base_testworld2_config,
81+
// },
8282
[NET_CONFIG_TYPE.Unknown]: {
8383
type_id: "10999",
8484
config: BASE_unknown_config,
@@ -88,7 +88,6 @@ export const NET_CONFIG_MAP = {
8888
/** not support transaction history */
8989
export const NET_CONFIG_NOT_SUPPORT_TX_HISTORY = [
9090
// NET_CONFIG_TYPE.Unknown,
91-
// NET_CONFIG_TYPE.Testworld2,
9291
// NET_CONFIG_TYPE.Devnet,
9392
];
9493
/** not support stake */
@@ -100,5 +99,4 @@ export const NET_CONFIG_NOT_SUPPORT_STAKING = [
10099
/** the netType that support zkapp */
101100
export const NET_CONFIG_SUPPORT_ZKAPP = [
102101
NET_CONFIG_TYPE.Berkeley,
103-
NET_CONFIG_TYPE.Testworld2,
104102
];

0 commit comments

Comments
 (0)