Skip to content

Commit

Permalink
Add beta network to dfx.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dskloetd committed Nov 7, 2024
1 parent 94df88c commit b1e7e63
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
29 changes: 28 additions & 1 deletion dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"remote": {
"id": {
"app": "qhbym-qaaaa-aaaaa-aaafq-cai",
"beta": "qhbym-qaaaa-aaaaa-aaafq-cai",
"mainnet": "qhbym-qaaaa-aaaaa-aaafq-cai",
"local": "q3fc5-haaaa-aaaaa-aaahq-cai"
}
Expand Down Expand Up @@ -63,6 +64,7 @@
"remote": {
"id": {
"app": "xnjld-hqaaa-aaaal-qb56q-cai",
"beta": "qsnoo-jiaaa-aaaal-amsea-cai",
"ic": "qoctq-giaaa-aaaaa-aaaea-cai",
"mainnet": "qoctq-giaaa-aaaaa-aaaea-cai"
}
Expand All @@ -75,7 +77,8 @@
"build": "curl --fail -sSL \"https://github.com/dfinity/internet-identity/releases/download/release-2023-01-31/internet_identity_dev.wasm\" -o internet_identity_dev.wasm",
"url": {
"mainnet": "https://identity.internetcomputer.org/",
"app": "https://identity.internetcomputer.org/"
"app": "https://identity.internetcomputer.org/",
"beta": "https://identity.internetcomputer.org/"
},
"remote": {
"id": {
Expand Down Expand Up @@ -155,6 +158,7 @@
"remote": {
"id": {
"app": "otgyv-wyaaa-aaaak-qcgba-cai",
"beta": "3r4gx-wqaaa-aaaaq-aaaia-cai",
"mainnet": "3r4gx-wqaaa-aaaaq-aaaia-cai"
}
}
Expand All @@ -176,6 +180,7 @@
"remote": {
"id": {
"app": "mxzaz-hqaaa-aaaar-qaada-cai",
"beta": "mxzaz-hqaaa-aaaar-qaada-cai",
"mainnet": "mxzaz-hqaaa-aaaar-qaada-cai"
}
}
Expand All @@ -190,6 +195,7 @@
"remote": {
"id": {
"app": "mqygn-kiaaa-aaaar-qaadq-cai",
"beta": "mqygn-kiaaa-aaaar-qaadq-cai",
"mainnet": "mqygn-kiaaa-aaaar-qaadq-cai"
}
}
Expand All @@ -204,6 +210,7 @@
"remote": {
"id": {
"app": "n5wcd-faaaa-aaaar-qaaea-cai",
"beta": "n5wcd-faaaa-aaaar-qaaea-cai",
"mainnet": "n5wcd-faaaa-aaaar-qaaea-cai"
}
}
Expand All @@ -218,6 +225,7 @@
"remote": {
"id": {
"app": "ss2fx-dyaaa-aaaar-qacoq-cai",
"beta": "ss2fx-dyaaa-aaaar-qacoq-cai",
"mainnet": "ss2fx-dyaaa-aaaar-qacoq-cai"
}
}
Expand All @@ -232,6 +240,7 @@
"remote": {
"id": {
"app": "s3zol-vqaaa-aaaar-qacpa-cai",
"beta": "s3zol-vqaaa-aaaar-qacpa-cai",
"mainnet": "s3zol-vqaaa-aaaar-qacpa-cai"
}
}
Expand All @@ -246,6 +255,7 @@
"remote": {
"id": {
"app": "xevnm-gaaaa-aaaar-qafnq-cai",
"beta": "xevnm-gaaaa-aaaar-qafnq-cai",
"mainnet": "xevnm-gaaaa-aaaar-qafnq-cai"
}
}
Expand All @@ -260,6 +270,7 @@
"remote": {
"id": {
"app": "xrs4b-hiaaa-aaaar-qafoa-cai",
"beta": "xrs4b-hiaaa-aaaar-qafoa-cai",
"mainnet": "xrs4b-hiaaa-aaaar-qafoa-cai"
}
}
Expand All @@ -274,6 +285,7 @@
"remote": {
"id": {
"app": "qoctq-giaaa-aaaaa-aaaea-cai",
"beta": "qoctq-giaaa-aaaaa-aaaea-cai",
"mainnet": "qoctq-giaaa-aaaaa-aaaea-cai"
}
}
Expand Down Expand Up @@ -310,6 +322,21 @@
],
"type": "persistent"
},
"beta": {
"config": {
"FETCH_ROOT_KEY": false,
"API_HOST": "https://icp-api.io",
"STATIC_HOST": "https://icp0.io",
"FEATURE_FLAGS": {
"ENABLE_CKBTC": true,
"ENABLE_CKTESTBTC": false
}
},
"providers": [
"https://icp0.io"
],
"type": "persistent"
},
"devenv_llorenc": {
"config": {
"HOST": "https://llorenc-ingress.devenv.dfinity.network",
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/lib/constants/environment.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ export const IS_TESTNET: boolean =
!(HOST.includes(".icp-api.io") || HOST.includes(".ic0.app"));

// This is the network name used in the dfx.json file
const BETA_TEST_DFX_NETWORK = "app";
const APP_TEST_DFX_NETWORK = "app";
const BETA_TEST_DFX_NETWORK = "beta";

export const IS_TEST_MAINNET = envVars.dfxNetwork === BETA_TEST_DFX_NETWORK;
export const IS_TEST_MAINNET = [
APP_TEST_DFX_NETWORK,
BETA_TEST_DFX_NETWORK,
].includes(envVars.dfxNetwork);

0 comments on commit b1e7e63

Please sign in to comment.