Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
d1b7063d
Commit
d1b7063d
authored
Dec 22, 2022
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bmon: Move test command into a script
parent
a2efb2dc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
+17
-8
.env.example
packages/balance-monitor/.env.example
+6
-7
package.json
packages/balance-monitor/package.json
+1
-1
test.sh
packages/balance-monitor/scripts/test.sh
+10
-0
No files found.
packages/balance-monitor/.env.example
View file @
d1b7063d
export L1_RPC_URL=
export L1_RPC_URL=
# Prepopulated with test values.
export SEQUENCER_ADDRESS=
export SEQUENCER_ADDRESS=0xabba
export SEQUENCER_WARNING_THRESHOLD=
export SEQUENCER_WARNING_THRESHOLD=1000
export SEQUENCER_DANGER_THRESHOLD=
export SEQUENCER_DANGER_THRESHOLD=100
export PROPOSER_ADDRESS=
0xacdc
export PROPOSER_ADDRESS=
export PROPOSER_WARNING_THRESHOLD=
2000
export PROPOSER_WARNING_THRESHOLD=
export PROPOSER_DANGER_THRESHOLD=
200
export PROPOSER_DANGER_THRESHOLD=
packages/balance-monitor/package.json
View file @
d1b7063d
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
"tx"
:
"yarn run build && forta-agent run --tx"
,
"tx"
:
"yarn run build && forta-agent run --tx"
,
"block"
:
"yarn run build && forta-agent run --block"
,
"block"
:
"yarn run build && forta-agent run --block"
,
"range"
:
"yarn run build && forta-agent run --range"
,
"range"
:
"yarn run build && forta-agent run --range"
,
"test"
:
"
/bin/sh . .env.example && yarn ts-mocha src/*.spec.ts
"
,
"test"
:
"
./scripts/test.sh
"
,
"test:coverage"
:
"echo 'todo: configure test coverage' && yarn test"
,
"test:coverage"
:
"echo 'todo: configure test coverage' && yarn test"
,
"lint:check"
:
"eslint . --max-warnings=0"
,
"lint:check"
:
"eslint . --max-warnings=0"
,
"lint:fix"
:
"yarn lint:check --fix"
,
"lint:fix"
:
"yarn lint:check --fix"
,
...
...
packages/balance-monitor/scripts/test.sh
0 → 100755
View file @
d1b7063d
#!/bin/bash
export
SEQUENCER_ADDRESS
=
0xabba
export
SEQUENCER_WARNING_THRESHOLD
=
1000
export
SEQUENCER_DANGER_THRESHOLD
=
100
export
PROPOSER_ADDRESS
=
0xacdc
export
PROPOSER_WARNING_THRESHOLD
=
2000
export
PROPOSER_DANGER_THRESHOLD
=
200
yarn ts-mocha src/
*
.spec.ts
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment