Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(README): suggestions #6

Open
wants to merge 1 commit into
base: feat/validator-redirects
Choose a base branch
from
Open
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
45 changes: 24 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,33 +70,36 @@ mechanics:
# ...
- max_participants: 30000
apr_boost: 0.05

# Redirect rewards to different addresses. The left-hand side is the owner address,
# and the right-hand side is the reward recipient address. Do not specify deployer
# addresses on the left-hand side, only owner addresses.
owner_redirects:
"0x1234567890abcdef1234567890abcdef12345678": "0x1234567890abcdef1234567890abcdef12345678"
# Redirect rewards to different addresses by validator public key. The left-hand side is the validator public key,
# and the right-hand side is the reward recipient address.

# Redirect rewards to different addresses by validator public key. The left-hand side is the validator
# public key, and the right-hand side is the reward recipient address.
validator_redirects:
"0x1234500012345000123450001234500012345000123450001234500012345000123450001234500012345000123450001234": "0x1234567890abcdef1234567890abcdef12345678"

# Alternatively, you can specify redirects using external CSV files:
# - You cannot use both `owner_redirects` and `owner_redirects_file` simultaneously. Choose one method.
# - You cannot use both `validator_redirects` and `validator_redirects_file` simultaneously. Choose one method.
# - Each file must have a header row with "from" and "to" as column names.

# For owner redirects, the "from" column contains owner addresses, and the "to" column contains recipient addresses.
# Example of owner_redirects_file content:
# from,to
# 0x1234567890abcdef1234567890abcdef12345678,0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef
# 0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef,0x1234567890abcdef1234567890abcdef12345678
owner_redirects_file: owner_redirects_2023_11.csv
# For validator redirects, the "from" column contains validator public keys, and the "to" column contains recipient addresses.
# Example of validator_redirects_file content:
# from,to
# 0x1234500012345000123450001234500012345000123450001234500012345000123450001234500012345000123450001234,0x1234567890abcdef1234567890abcdef12345678
# 0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef,0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef
validator_redirects_file: validator_redirects_2023_11.csv
"0x1234500012345000123450001234500012345000123450001234500012345000123450001234500012345000123450001234": "0x1234567890abcdef1234567890abcdef12345678"

# Alternatively, you can specify redirects using external CSV files instead, for example:
# owner_redirects_file: owner_redirects_2023_11.csv
# validator_redirects_file: validator_redirects_2023_11.csv
#
# Example for `owner_redirects_file`:
# from,to
# 0x1234567890abcdef1234567890abcdef12345678,0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef
# 0xabcdefabcdefabcdefabcdefabcdefabcdefabcdef,0x1234567890abcdef1234567890abcdef12345678
#
# Example for `validator_redirects_file`:
# from,to
# 0x1234500012345000123450001234500012345000123450001234500012345000123450001234500012345000123450001234,0x1234567890abcdef1234567890abcdef12345678
# 0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef,0xabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef
#
# Notes:
# - Header is required.
# - File redirects are mutually exclusive with inline redirects: only one can be specified.
# - Files are copied to the `inputs` directory during `calc` for preservation and reproducibility.

rounds:
- period: 2023-07 # Designated period (year-month)
Expand Down