Skip to content

Commit 94760ae

Browse files
committed
merge main and fi conflicts
2 parents c1c9cef + 81c0cbd commit 94760ae

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+3256
-493
lines changed

.github/workflows/python-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- uses: actions/checkout@v2
1414

1515
- name: Check formatting (black)
16-
run: black ./scripts/python --check
16+
run: black ./catalyst-toolbox/scripts/python --check

Cargo.lock

Lines changed: 143 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ OPTIONS:
380380
## Python scripts
381381
382382
Use an updated version of `python3` and either create a venv or just install the dependencies from the
383-
`requirements.txt` file inside the `/scripts/python` folder.
383+
`requirements.txt` file inside the `/catalyst-toolbox/scripts/python` folder.
384384
385385
#### Calculate proposers rewards
386386

catalyst-toolbox/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ regex = "1.5"
4545
serde = "1.0"
4646
serde_json = "1.0"
4747
structopt = "0.3"
48-
stderrlog = "0.5"
4948
serde_yaml = "0.8.17"
5049
sscanf = "0.1"
50+
color-eyre = "0.6"
5151
thiserror = "1.0"
5252
tokio = { version = "1.8", features = ["rt", "macros"] }
5353
url = "2.2"
@@ -59,6 +59,9 @@ symmetric-cipher = { git = "https://github.com/input-output-hk/chain-wallet-libs
5959
graphql_client = "0.10"
6060
gag = "1"
6161
vit-servicing-station-lib = { git = "https://github.com/input-output-hk/vit-servicing-station.git", branch = "master" }
62+
env_logger = "0.9"
63+
voting-hir = { path = "../voting-hir", features = ["serde"] }
64+
fraction = "0.10"
6265

6366
[dev-dependencies]
6467
rand_chacha = "0.3"
@@ -69,6 +72,7 @@ chain-vote = { git = "https://github.com/input-output-hk/chain-libs.git", branch
6972
proptest = { git = "https://github.com/input-output-hk/proptest", branch = "master" }
7073
test-strategy = "0.2"
7174
serde_test = "1"
75+
voting-hir = { path = "../voting-hir", features = ["serde", "proptest"] }
7276

7377
[build-dependencies]
7478
versionisator = "1.0.3"

catalyst-toolbox/doc/rewards.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ There are 2 (two) main input files needed for calculating the community advisors
7575
1. Proposers reward result output file (approved proposals): We need this to check which of the proposals were approved.
7676
Notice that the proposers rewards script output is per challenge. So in order to use it we need to aggregate all the csv
7777
into a single file (same headers, order is irrelevant). For this we can use the
78-
[`csv_merger.py`](https://github.com/input-output-hk/catalyst-toolbox/blob/main/scripts/python/csv_merger.py) script,
78+
[`csv_merger.py`](https://github.com/input-output-hk/catalyst-toolbox/blob/main/catalyst-toolbox/scripts/python/csv_merger.py) script,
7979
or any other handier tool.
8080
2.Assessments csv (assessments): This is a file that comes from the community. It holds the information with the reviews performed
8181
by the CAs.
@@ -104,4 +104,4 @@ For that we just need to know the amount of rewards done by each veteran:
104104

105105
### Output
106106

107-
A csv with pairs of anonymize veteran CA ids and the amount of the reward, `veteran_id -> total_rewards`.
107+
A csv with pairs of anonymize veteran CA ids and the amount of the reward, `veteran_id -> total_rewards`.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
query AllReps {
2+
representatives {
3+
data {
4+
attributes {
5+
address
6+
}
7+
}
8+
}
9+
}

0 commit comments

Comments
 (0)