Skip to content

Commit

Permalink
Code to generate a metadata file for a UI filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritium-VLK committed Aug 30, 2024
1 parent d448a90 commit 19cc050
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
29 changes: 29 additions & 0 deletions arbitrum_grants.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
"0x46472cba35e6800012aa9fcc7939ff07478c473e00020000000000000000056c",
"0xf890360473c12d8015da8dbf7af11da87337a065000000000000000000000570",
"0xdfa752ca3ff49d4b6dbe08e2d5a111f51773d3950000000000000000000004e8",
"0x59743f1812bb85db83e9e4ee061d124aaa64290000000000000000000000052b",
"0x2f0cdf8596be980ef24924ca7bf54e630ca526b2000000000000000000000529",
"0x315dd595e82bdc0c194f3a38a08fde480d7e5d2100020000000000000000056a",
"0xe8a6026365254f779b6927f00f8724ea1b8ae5e0000000000000000000000580",
"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)

0 comments on commit 19cc050

Please sign in to comment.