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

Method __init__

projects/Python/proto/proto.py:1657–1667  ·  view source on GitHub ↗
(self, id=0, name="", state=State.initialized | State.bad, wallet=None, asset=None, orders=None)

Source from the content-addressed store, hash-verified

1655 __slots__ = "id", "name", "state", "wallet", "asset", "orders",
1656
1657 def __init__(self, id=0, name="", state=State.initialized | State.bad, wallet=None, asset=None, orders=None):
1658 if wallet is None:
1659 wallet = Balance()
1660 if orders is None:
1661 orders = list()
1662 self.id = id
1663 self.name = name
1664 self.state = state
1665 self.wallet = wallet
1666 self.asset = asset
1667 self.orders = orders
1668
1669 # Struct shallow copy
1670 def copy(self, other):

Callers

nothing calls this directly

Calls 1

BalanceClass · 0.70

Tested by

no test coverage detected