Skip to content
Open
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
File renamed without changes.
File renamed without changes.
49 changes: 29 additions & 20 deletions .env
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
# DCKR
COMPOSE_PROJECT_NAME=lattice-connect

# MQTT
ERLANG_COOKIE='erlang-cookie'
MQTT_HOST=localhost
MQTT_HTTP_PORT=1883
MQTT_USER=lattice_user
MQTT_PASS=lattice_pass

# Lattice Configuration
LATTICE_CONNECT_URL=https://signing.gridpl.us
APP_SERVICE_PORT=8080
APP_WORKER_COUNT=2

# Admin Client Configuration
ADMIN_CLIENT_HOST=http://localhost:15672
ADMIN_CLIENT_USER=guest
ADMIN_CLIENT_PASS=guest

# DCKR
COMPOSE_PROJECT_NAME=lattice-connect

# MQTT
ERLANG_COOKIE='erlang-cookie'
MQTT_HOST=localhost
MQTT_HTTP_PORT=1883
MQTT_USER=lattice_user
MQTT_PASS=lattice_pass

# Lattice Configuration
LATTICE_CONNECT_URL=https://signing.gridpl.us
APP_SERVICE_PORT=8080
APP_WORKER_COUNT=2

# Admin Client Configuration
ADMIN_CLIENT_HOST=http://localhost:15672
ADMIN_CLIENT_USER=guest
ADMIN_CLIENT_PASS=guest

# Docker configuration overrides
# These values are used in docker-compose environments
# MQTT_HOST=mqtt
# APP_SERVICE_PORT=8080
# MQTT_HTTP_PORT=1883

LATTICE_BASE_URL=http://localhost:8080
LATTICE_DEVICE_ID=sc6J1U
LATTICE_PASSWORD=asdfasdf
19 changes: 19 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Test environment variables
GRIDPLUS_CONNECT_URL=http://localhost:3000
MQTT_HOST=localhost
MQTT_HTTP_PORT=8883
MQTT_USER=lattice_user
MQTT_PASS=lattice_pass
APP_SERVICE_PORT=8080
APP_WORKER_COUNT=2
ADMIN_CLIENT_HOST=localhost
ADMIN_CLIENT_USER=admin
ADMIN_CLIENT_PASS=admin
EXPECTED_WALLET_ACCOUNT_ETH_ADDRESS=0x1234567890123456789012345678901234567890
TEST_DEVICE_ID=test-device
TEST_DEVICE_NAME=Test Device
TEST_DEVICE_PASSWORD=test-password

# Anvil test network configuration
ANVIL_RPC_URL=http://localhost:8545
ANVIL_CHAIN_ID=31337
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
docker-compose.y*ml

dist/
node_modules/
coverage
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 100,
"tabWidth": 2,
"useTabs": false
}
19 changes: 9 additions & 10 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug EIP1193 Tests",
"runtimeExecutable": "yarn",
"name": "Debug Lattice Connect Server",
"runtimeArgs": [
"test",
"src/services/useEIP1193Provider.integration.test.ts",
"--runInBand"
"-r",
"ts-node/register"
],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"NODE_ENV": "test"
"NODE_ENV": "development"
},
"sourceMaps": true,
"cwd": "${workspaceFolder}/connect"
"program": "${workspaceFolder}/src/index.ts",
"cwd": "${workspaceFolder}",
"skipFiles": ["<node_internals>/**"]
}
]
}
17 changes: 0 additions & 17 deletions .vscode/tasks.json

This file was deleted.

Loading