Improve commit history and detail view

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2022-04-08 15:36:47 +02:00
parent fabb90f91e
commit 0cced197ba
11 changed files with 265 additions and 112 deletions
+10
View File
@@ -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,