Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions frontend/src/assets/environments/block_producers.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export default {
production: true,
globalConfig: {
features: {
'block-production': ['won-slots'],
'mempool': [],
'benchmarks': ['wallets'],
'snarks': ['scan-state', 'work-pool'],
},
canAddNodes: true,
},
configs: [
{
name: 'Producer 11010',
url: 'http://localhost:11010',
},
{
name: 'Producer 11012',
url: 'http://localhost:11012',
},
{
name: 'Producer 11014',
url: 'http://localhost:11014',
},
],
}
20 changes: 20 additions & 0 deletions frontend/src/assets/environments/compose.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
export default {
production: true,
identifier: 'Running in Docker',
globalConfig: {
features: {
dashboard: [],
nodes: ['overview', 'live', 'bootstrap'],
state: ['actions'],
network: ['node-dht', 'graph-overview', 'bootstrap-stats'],
snarks: ['scan-state'],
},
canAddNodes: true,
},
configs: [
{
name: 'Compose rust node',
url: '/openmina-node',
},
],
};
8 changes: 8 additions & 0 deletions frontend/src/assets/environments/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* This file is imported in the environment.prod.ts file
* The content of this file is replaced from a docker command
* => 1 Docker image = multiple environments
*/
export default {
production: true,
};
23 changes: 23 additions & 0 deletions frontend/src/assets/environments/producer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
export default {
production: true,
hideNodeStats: true,
globalConfig: {
features: {
'block-production': ['overview'],
},
},
configs: [
{
name: 'Producer-0',
url: 'https://staging-devnet-openmina-bp-0-dashboard.minaprotocol.network',
},
{
name: 'Producer-1',
url: 'https://staging-devnet-openmina-bp-1-dashboard.minaprotocol.network',
},
{
name: 'Producer-2',
url: 'https://staging-devnet-openmina-bp-2-dashboard.minaprotocol.network',
},
],
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
export default {
production: false,
production: true,
globalConfig: {
features: {
'dashboard': [],
'block-production': ['won-slots'],
'nodes': ['overview', 'live', 'bootstrap'],
'mempool': [],
'state': ['actions'],
'network': ['messages', 'connections', 'blocks', 'topology', 'node-dht', 'graph-overview', 'bootstrap-stats'],
'snarks': ['scan-state', 'work-pool'],
'testing-tool': ['scenarios'],
'resources': ['memory'],
'block-production': ['overview', 'won-slots'],
'mempool': [],
'benchmarks': ['wallets'],
},
canAddNodes: false,
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/environments/environment.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export const environment: Readonly<MinaEnv> = {
dashboard: [],
nodes: ['overview', 'live', 'bootstrap'],
state: ['actions'],
snarks: ['scan-state'],
snarks: ['scan-state', 'work-pool'],
mempool: [],
'block-production': ['won-slots'],
},
canAddNodes: true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MinaEnv } from '@shared/types/core/environment/mina-env.type';
import env from '../assets/env';
import env from '../assets/environments/env';

export const environment: Readonly<MinaEnv> = env as MinaEnv;
Loading