MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / __init__

Method __init__

projects/Python/proto/protoex.py:1774–1784  ·  view source on GitHub ↗
(self, id=0, name="", state=StateEx.initialized | StateEx.bad | StateEx.sad, wallet=None, asset=None, orders=None)

Source from the content-addressed store, hash-verified

1772 __slots__ = "id", "name", "state", "wallet", "asset", "orders",
1773
1774 def __init__(self, id=0, name="", state=StateEx.initialized | StateEx.bad | StateEx.sad, wallet=None, asset=None, orders=None):
1775 if wallet is None:
1776 wallet = Balance()
1777 if orders is None:
1778 orders = list()
1779 self.id = id
1780 self.name = name
1781 self.state = state
1782 self.wallet = wallet
1783 self.asset = asset
1784 self.orders = orders
1785
1786 # Struct shallow copy
1787 def copy(self, other):

Callers

nothing calls this directly

Calls 1

BalanceClass · 0.70

Tested by

no test coverage detected