Skip to content

Commit a478d9f

Browse files
authored
[xc-admin] add proposals page (#570)
* add proposals page * address feedback * show program id for unknown ix * unwrap wormhole ixs * fix error * address feedback * address comments
1 parent 138fbd9 commit a478d9f

File tree

5 files changed

+972
-76
lines changed

5 files changed

+972
-76
lines changed

governance/xc_admin/packages/xc_admin_common/src/cluster.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,19 @@ export function getMultisigCluster(cluster: PythCluster): Cluster | "localnet" {
2121
return cluster;
2222
}
2323
}
24+
25+
/**
26+
* For cluster that are governed remotely (ex : Pythnet from Mainnet) return the network of the remote cluster
27+
*/
28+
export function getRemoteCluster(
29+
cluster: PythCluster
30+
): PythCluster | "localnet" {
31+
switch (cluster) {
32+
case "devnet":
33+
return "pythtest";
34+
case "mainnet-beta":
35+
return "pythnet";
36+
default:
37+
return cluster;
38+
}
39+
}

0 commit comments

Comments
 (0)