mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Improve commit history and detail view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { ethers } from "ethers";
|
||||
import md5 from "md5";
|
||||
import { BigNumber } from "ethers";
|
||||
import multibase from 'multibase';
|
||||
import multihashes from 'multihashes';
|
||||
@@ -482,6 +483,15 @@ export function isDomain(input: string): boolean {
|
||||
|| (! import.meta.env.PROD && /^0.0.0.0$/.test(input));
|
||||
}
|
||||
|
||||
|
||||
// Get the gravatar URL of an email.
|
||||
export function gravatarURL(email: string): string {
|
||||
const address = email.trim().toLowerCase();
|
||||
const hash = md5(address);
|
||||
|
||||
return `https://www.gravatar.com/avatar/${hash}`;
|
||||
}
|
||||
|
||||
// Propose a Gnosis Safe multi-sig transaction.
|
||||
export async function proposeSafeTransaction(
|
||||
safeTx: SafeTransaction,
|
||||
|
||||
Reference in New Issue
Block a user