Skip to content

Commit

Permalink
Up library patch version >> 0.1.49: update CommitteeMemberUpdateGloba…
Browse files Browse the repository at this point in the history
…lParameters operation and relations

Up library patch version >> 0.1.49: update CommitteeMemberUpdateGlobalParameters operation and relations
  • Loading branch information
Eugene Vasilev authored Nov 26, 2019
1 parent fb009b6 commit a1cd4c8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
2 changes: 1 addition & 1 deletion echopy/echobase/feetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(self, *args, **kwargs):
operations["vesting_balance_withdraw"]: DefaultFee,
operations["balance_claim"]: NoFee,
operations["balance_freeze"]: DefaultFee,
operations["balance_unfreeze"]: DefaultFee,
operations["balance_unfreeze"]: NoFee,
operations["contract_create"]: DefaultFee,
operations["contract_call"]: DefaultFee,
operations["contract_internal_create"]: NoFee,
Expand Down
20 changes: 2 additions & 18 deletions echopy/echobase/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def __init__(self, *args, **kwargs):
("_time_net_256b", Uint32(kwargs["_time_net_256b"])),
("_creator_count", Uint32(kwargs["_creator_count"])),
("_verifier_count", Uint32(kwargs["_verifier_count"])),
("_ok_treshold", Uint32(kwargs["_ok_treshold"])),
("_ok_threshold", Uint32(kwargs["_ok_threshold"])),
("_max_bba_steps", Uint32(kwargs["_max_bba_steps"])),
("_gc1_delay", Uint32(kwargs["_gc1_delay"])),
("_round_attempts", Uint32(kwargs["_round_attempts"])),
Expand All @@ -443,22 +443,6 @@ def __init__(self, *args, **kwargs):
)


class Fines(EchoObject):
def __init__(self, *args, **kwargs):
if isArgsThisClass(self, args):
self.data = args[0].data
else:
if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0]
super().__init__(
OrderedDict(
[
("_eth_addr", Int64(kwargs["_eth_addr"]))
]
)
)


class EthAddress(EchoObject):
def __init__(self, *args, **kwargs):
if isArgsThisClass(self, args):
Expand Down Expand Up @@ -500,7 +484,7 @@ def __init__(self, *args, **kwargs):
("erc20_withdraw_topic", Bytes(kwargs["erc20_withdraw_topic"], 32)),
("ETH_asset_id", ObjectId(kwargs["ETH_asset_id"], "asset")),
("BTC_asset_id", ObjectId(kwargs["BTC_asset_id"], "asset")),
("fines", Fines(kwargs["fines"])),
("fines", EthAddress(kwargs["fines"])),
("gas_price", Uint64(kwargs["gas_price"])),
("satoshis_per_byte", Uint32(kwargs["satoshis_per_byte"])),
("coefficient_waiting_blocks", Uint32(kwargs["coefficient_waiting_blocks"]))
Expand Down
4 changes: 3 additions & 1 deletion echopy/echobase/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def __str__(self):
class Set(Array):
def __init__(self, d):
super().__init__(d)
self.data = sorted(self.data)

def __bytes__(self):
return bytes(self.length) + b"".join(sorted([bytes(a) for a in self.data]))


class FixedArray:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import setup, find_packages

VERSION = "0.1.48"
VERSION = "0.1.49"
packages = find_packages()
packages.remove('test')

Expand Down

0 comments on commit a1cd4c8

Please sign in to comment.