This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 { |