def nays(self): return Tributes(self.quorum - self.yays)
def __post_init__(self): self.tally = Tributes(self.tally) self.quorum = Tributes(self.quorum) self.fee = Tributes(self.fee)
def yays(self): return Tributes((self.quorum + self.tally) // 2)
def dispute_fee(self) -> Tributes: """ Deposit a reporter must put to open a dispute. If they lose the case, this deposit is forfeited and is given to the miner. """ return Tributes(self._uint_var('disputeFee'))
def total_supply(self) -> Tributes: """ Total supply of tributes. New tributes are printed every block. """ return Tributes(self.call.totalSupply())
def allowance(self, address, spender) -> Tributes: """ Returns: How many tributes spender is allowed to spend on behalf of address. """ return Tributes(self.call.allowance(address, spender))
def balance_of_at(self, address, block_number) -> Tributes: """ Returns: Tribute balance snapshot of address in wei. """ return Tributes(self.call.balanceOfAt(address, block_number))
def balance_of(self, address) -> Tributes: """ Returns: Tribute balance of address in wei. """ return Tributes(self.call.balanceOf(address))