Skip to content

Instantly share code, notes, and snippets.

@abarmat
abarmat / safe-add-delegate.py
Last active August 21, 2024 15:18
Add a delegate to a Gnosis Safe
import time
import requests
import click
from web3 import Web3
def create_message(delegate_address):
totp = int(time.time()) // 3600
return delegate_address + str(totp)
@axic
axic / Create2Proxy.sol
Created February 28, 2019 22:37
CREATE2 proxy for constantinople/petersburg
// CREATE2 proxy for constantinople/petersburg which allows easy deploying of
// contracts using the same address on multiple chains.
//
// Idea by @Arachnid. Some code by @axic.
pragma solidity ^0.5.0;
contract Create2Proxy {
function() external payable {
assembly {