viz.amount
¶
Module Contents¶
- private-bases
This class helps deal and calculate with the different assets on the chain.
- param str amount_string
Amount string as used by the backend (e.g. “10 VIZ”)
-
__repr__
¶
-
__truediv__
¶
-
__truemul__
¶
-
property
amount
(self)¶
-
property
symbol
(self)¶
-
property
asset
(self)¶
-
__str__
(self)¶
-
__float__
(self)¶
-
__int__
(self)¶
-
__add__
(self, other)¶
-
__sub__
(self, other)¶
-
__mul__
(self, other)¶
-
__floordiv__
(self, other)¶
-
__div__
(self, other)¶
-
__mod__
(self, other)¶
-
__pow__
(self, other)¶
-
__iadd__
(self, other)¶
-
__isub__
(self, other)¶
-
__imul__
(self, other)¶
-
__idiv__
(self, other)¶
-
__ifloordiv__
(self, other)¶
-
__imod__
(self, other)¶
-
__ipow__
(self, other)¶
-
__lt__
(self, other)¶
-
__le__
(self, other)¶
-
__eq__
(self, other)¶
-
__ne__
(self, other)¶
-
__ge__
(self, other)¶
-
__gt__
(self, other)¶
-
__contains__
()¶ True if the dictionary has the specified key, else False.
-
__delattr__
()¶ Implement delattr(self, name).
-
__delitem__
()¶ Delete self[key].
-
__dir__
()¶ Default dir() implementation.
-
__format__
()¶ Default object formatter.
-
__getattribute__
()¶ Return getattr(self, name).
-
__getitem__
()¶ x.__getitem__(y) <==> x[y]
-
__iter__
()¶ Implement iter(self).
-
__len__
()¶ Return len(self).
-
__reduce__
()¶ Helper for pickle.
-
__reduce_ex__
()¶ Helper for pickle.
-
__setattr__
()¶ Implement setattr(self, name, value).
-
__setitem__
()¶ Set self[key] to value.
-
__sizeof__
()¶ D.__sizeof__() -> size of D in memory, in bytes
-
__subclasshook__
()¶ Abstract classes can override this to customize issubclass().
This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).
-
clear
()¶ D.clear() -> None. Remove all items from D.
-
copy
()¶ D.copy() -> a shallow copy of D
-
get
()¶ Return the value for key if key is in the dictionary, else default.
-
items
()¶ D.items() -> a set-like object providing a view on D’s items
-
keys
()¶ D.keys() -> a set-like object providing a view on D’s keys
-
pop
()¶ D.pop(k[,d]) -> v, remove specified key and return the corresponding value. If key is not found, d is returned if given, otherwise KeyError is raised
-
popitem
()¶ D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty.
-
setdefault
()¶ Insert key with a value of default if key is not in the dictionary.
Return the value for key if key is in the dictionary, else default.
-
update
()¶ D.update([E, ]**F) -> None. Update D from dict/iterable E and F. If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
-
values
()¶ D.values() -> an object providing a view on D’s values