Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Testnet Injector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EcoMobiCoin
Testnet Injector
Commits
c2d1e30b
Commit
c2d1e30b
authored
1 year ago
by
Anthony GRAIGNIC
Browse files
Options
Downloads
Patches
Plain Diff
Update README with updated components
parent
7b4a704f
No related branches found
No related tags found
1 merge request
!3
Change API to CLI
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+53
-3
53 additions, 3 deletions
README.md
with
53 additions
and
3 deletions
README.md
+
53
−
3
View file @
c2d1e30b
# Testnet injector
A
simple HTTP API
to inject transactions or behaviors in an EcoMobiCoin
test network
.
A
CLI tool
to inject transactions or behaviors in an EcoMobiCoin
blockchain
.
##
Feature
s
##
Component
s
This project heavily use the forked and adapted
[
ethers-rs
](
https://gitlab.limos.fr/ecomobicoin/ethers-rs
)
.
# Simulate tx & bx
### ETL
-
Extract CSV file e.g.
`dataset-extract.csv`
to
`MobilityRecord`
-
Transform it with simulation params (relative time from earliest entry and behavior attributes)
-
Load in local DB
### Sending Queue
## Usage
### Simulate tx & bx
To simulate Behaviors from a CSV Mobility dataset, run
`cargo run simulate-bx-from-csv < data/dataset-extract.csv`
Options:
-
dataset e.g. CSV file
-
`total_simulation_duration`
in seconds (or minutes ?)
### Send
Send tx or bx
Options:
-
`time_period`
in seconds
-
`n`
number e.g. 10
-
`tx | bx | txbx`
sending tx, bx or both
## Env vars
Copy the env example file to
`.env`
with the following command:
`cp .env.example .env`
## Ecomobicoin Simulation
> WORK IN PROGRESS
```
mermaid
flowchart LR
subgraph Configuration
A[CSV Dataset] --> B[Simulation config]
AA[Nodes & Miner config] --> B
AAA[Chainspec] --> B
end
subgraph S[Simulation]
subgraph D[Deployments]
B --> D1[Deploy nodes]
B --> D21[Deploy txbx CSV injector]
B --> D22[Deploy txbx injectors cli]
B --> D3[Deploy block explorer]
end
D --> E[Run]
end
subgraph R[Reporting]
E --> R1[Report]
end
```
## Development
### Auto-Reloading Development Server
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment