|
25 | 25 | "pool1y0uxkqyplyx6ld25e976t0s35va3ysqcscatwvy2sd2cwcareq7", # HODLr |
26 | 26 | ) |
27 | 27 |
|
| 28 | +PREPROD_POOL_IDS = ( |
| 29 | + "pool1nmfr5j5rnqndprtazre802glpc3h865sy50mxdny65kfgf3e5eh", # GRADA |
| 30 | + "pool132jxjzyw4awr3s75ltcdx5tv5ecv6m042306l630wqjckhfm32r", # ADACT |
| 31 | + "pool10dtwvn64akqjdtn9d4pd2mnhpxfgp76hvsfkgmfwugrsxef3y2p", # RABIT |
| 32 | + "pool1tjc56tq7adk64nnq2ldu3f4nh6sxkphhmnejlu67ux7acq8y7rx", # PSBT |
| 33 | + "pool1z05xqzuxnpl8kg8u2wwg8ftng0fwtdluv3h20ruryfqc5gc3efl", # HODLr |
| 34 | +) |
| 35 | + |
28 | 36 |
|
29 | 37 | @dataclasses.dataclass(frozen=True, order=True) |
30 | 38 | class AddressRecordScript: |
@@ -77,10 +85,15 @@ def cluster_and_pool( |
77 | 85 | cluster_obj: clusterlib.ClusterLib = cluster_manager.get(use_resources=use_resources) |
78 | 86 |
|
79 | 87 | # Getting ledger state on official testnet is too expensive, |
80 | | - # use one of hardcoded pool IDs if possible |
| 88 | + # use one of hardcoded pool IDs if possible. |
| 89 | + testnet_pools = None |
81 | 90 | if cluster_type.testnet_type == cluster_nodes.Testnets.preview: |
| 91 | + testnet_pools = PREVIEW_POOL_IDS |
| 92 | + elif cluster_type.testnet_type == cluster_nodes.Testnets.preprod: |
| 93 | + testnet_pools = PREPROD_POOL_IDS |
| 94 | + if testnet_pools: |
82 | 95 | stake_pools = cluster_obj.g_query.get_stake_pools() |
83 | | - for pool_id in PREVIEW_POOL_IDS: |
| 96 | + for pool_id in testnet_pools: |
84 | 97 | if pool_id in stake_pools: |
85 | 98 | return cluster_obj, pool_id |
86 | 99 |
|
|
0 commit comments