Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return res
class Denoms():
def __init__(self):
self.wei = 1
self.babbage = 10 ** 3
self.lovelace = 10 ** 6
self.shannon = 10 ** 9
self.szabo = 10 ** 12
self.finney = 10 ** 15
self.ether = 10 ** 18
self.turing = 2 ** 256
denoms = Denoms()
address = Binary.fixed_length(20, allow_empty=True)
int20 = BigEndianInt(20)
int32 = BigEndianInt(32)
int256 = BigEndianInt(256)
hash32 = Binary.fixed_length(32)
trie_root = Binary.fixed_length(32, allow_empty=True)
class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[91m'
FAIL = '\033[91m'