mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Link to safes
This commit is contained in:
@@ -81,6 +81,14 @@ export function explorerLink(addr: string, config: Config): string {
|
||||
return `https://etherscan.io/address/${addr}`;
|
||||
}
|
||||
|
||||
// Get the Gnosis Safe link of an address, eg. Etherscan.
|
||||
export function safeLink(addr: string, config: Config): string {
|
||||
if (config.safe.viewer) {
|
||||
return `${config.safe.viewer}/${addr}`;
|
||||
}
|
||||
return explorerLink(addr, config);
|
||||
}
|
||||
|
||||
// Query a subgraph.
|
||||
export async function querySubgraph(
|
||||
query: string,
|
||||
|
||||
Reference in New Issue
Block a user