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

Code to generate a metadata file for a UI filter. #45

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
37 changes: 37 additions & 0 deletions arbitrum_grants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[
"0x46472cba35e6800012aa9fcc7939ff07478c473e00020000000000000000056c",
"0xf890360473c12d8015da8dbf7af11da87337a065000000000000000000000570",
"0xdeeaf8b0a8cf26217261b813e085418c7dd8f1ee00020000000000000000058f",
"0xa899c63ba9ff275d6bfc83e43ee8e58ff6987584000200000000000000000594",
"0x71c64ac8ec1da03f8a05c3cfeb6493e6dad54a6f000200000000000000000592",
"0x36c2f879f446c3b6533f9703745c0504f3a84885000200000000000000000591",
"0xf13758d6edd1937dcb3f4fe75889b579d400299a000000000000000000000595",
"0x8d58755ca11d2c7273fed72aeb637e38a66c228c00000000000000000000058c",
"0xff38cc0ce0de4476c5a3e78675b48420a851035b000200000000000000000593",
"0xdfa752ca3ff49d4b6dbe08e2d5a111f51773d3950000000000000000000004e8",
"0x59743f1812bb85db83e9e4ee061d124aaa64290000000000000000000000052b",
"0x2f0cdf8596be980ef24924ca7bf54e630ca526b2000000000000000000000529",
"0x315dd595e82bdc0c194f3a38a08fde480d7e5d2100020000000000000000056a",
"0xe8a6026365254f779b6927f00f8724ea1b8ae5e0000000000000000000000580",
"0x69d9bc07a19caad9ae4ca40af18d5a688839a29900020000000000000000058e",
"0x90e6cb5249f5e1572afbf8a96d8a1ca6acffd73900000000000000000000055c",
"0xcdcef9765d369954a4a936064535710f7235110a000200000000000000000558",
"0x7967fa58b9501600d96bd843173b9334983ee6e600020000000000000000056e",
"0x5b89dc91e5a4dc6d4ab0d970af6a7f981971a443000000000000000000000572",
"0xb8cb384e65096386c1edaaf784e842c957fa3645000000000000000000000571",
"0x7b54c44fbe6db6d97fd22b8756f89c0af16202cc00000000000000000000053c",
"0x7272163a931dac5bbe1cb5fefaf959bb65f7346f000200000000000000000549",
"0x6e822c64c00393b2078f2a5bb75c575ab505b55c000200000000000000000548",
"0x125bc5a031b2db6733bfa35d914ffa428095978b000200000000000000000514",
"0x260dbd54d87a10a0fc9d08622ebc969a3bf4e6bb000200000000000000000536",
"0x2ce4457acac29da4736ae6f5cd9f583a6b335c270000000000000000000004dc",
"0x2d6ced12420a9af5a83765a8c48be2afcd1a8feb000000000000000000000500",
"0x3fd4954a851ead144c2ff72b1f5a38ea5976bd54000000000000000000000480",
"0x451b0afd69ace11ec0ac339033d54d2543b088a80000000000000000000004d5",
"0x9791d590788598535278552eecd4b211bfc790cb000000000000000000000498",
"0xb61371ab661b1acec81c699854d2f911070c059e000000000000000000000516",
"0xc2598280bfea1fe18dfcabd21c7165c40c6859d30000000000000000000004f3",
"0xd0ec47c54ca5e20aaae4616c25c825c7f48d40690000000000000000000004ef",
"0xef0c116a2818a5b1a5d836a291856a321f43c2fb00020000000000000000053a",
"0x9f8ed1acfe0c863381b9081aff2144fc867aa7730002000000000000000004d4"
]
17 changes: 17 additions & 0 deletions dump_stip_pool_json_list.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from automation.arbitrum_stip_bridge_start_q2_2024 import ACTIVE_POOLS_AND_OVERRIDES
import json

# Run this script, generate an up to date json file, then open a PR in the metadata repo to replace the existing file
# https://github.com/balancer/metadata/blob/main/pools/categories/arbitrum_grants.json

# Start with a list of custom pools/overrtides
pool_list = [
"0x46472cba35e6800012aa9fcc7939ff07478c473e00020000000000000000056c", ## Tokenlogic direct incentives, no yield fees, not on whitelist
"0xf890360473c12d8015da8dbf7af11da87337a065000000000000000000000570", ## Tokenlogic direct incentives, no yield fees, not on whitelist
]

# Add everything from our whitelist
for pool in ACTIVE_POOLS_AND_OVERRIDES:
pool_list.append(pool["pool_id"])
with open("arbitrum_grants.json", "w") as f:
json.dump(pool_list, f, indent=1)