def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] prefix = kwargs.get("prefix", default_prefix) # handle beneficiaries if "beneficiaries" in kwargs and kwargs['beneficiaries']: kwargs['extensions'] = [[ 0, { 'beneficiaries': kwargs['beneficiaries'] } ]] extensions = Array([]) if "extensions" in kwargs and kwargs["extensions"]: extensions = Array( [CommentOptionExtensions(o) for o in kwargs["extensions"]]) super(Comment_options, self).__init__( OrderedDict([ ('author', String(kwargs["author"])), ('permlink', String(kwargs["permlink"])), ('max_accepted_payout', Amount(kwargs["max_accepted_payout"], prefix=prefix)), ('percent_crea_dollars', Uint16(int(kwargs["percent_crea_dollars"]))), ('allow_votes', Bool(bool(kwargs["allow_votes"]))), ('allow_curation_rewards', Bool(bool(kwargs["allow_curation_rewards"]))), ('extensions', extensions), ]))
def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] super(Decline_voting_rights, self).__init__( OrderedDict([ ('account', String(kwargs["account"])), ('decline', Bool(kwargs["decline"])), ]))
def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] super(Account_witness_vote, self).__init__( OrderedDict([ ('account', String(kwargs["account"])), ('witness', String(kwargs["witness"])), ('approve', Bool(bool(kwargs["approve"]))), ]))
def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] super(Set_withdraw_vesting_route, self).__init__( OrderedDict([ ('from_account', String(kwargs["from_account"])), ('to_account', String(kwargs["to_account"])), ('percent', Uint16((kwargs["percent"]))), ('auto_vest', Bool(kwargs["auto_vest"])), ]))
def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] super(Escrow_approve, self).__init__( OrderedDict([ ('from', String(kwargs["from"])), ('to', String(kwargs["to"])), ('agent', String(kwargs["agent"])), ('who', String(kwargs["who"])), ('escrow_id', Uint32(kwargs["escrow_id"])), ('approve', Bool(kwargs["approve"])), ]))
def __init__(self, *args, **kwargs): if check_for_class(self, args): return if len(args) == 1 and len(kwargs) == 0: kwargs = args[0] prefix = kwargs.get("prefix", default_prefix) super(Limit_order_create, self).__init__( OrderedDict([ ('owner', String(kwargs["owner"])), ('orderid', Uint32(kwargs["orderid"])), ('amount_to_sell', Amount(kwargs["amount_to_sell"], prefix=prefix)), ('min_to_receive', Amount(kwargs["min_to_receive"], prefix=prefix)), ('fill_or_kill', Bool(kwargs["fill_or_kill"])), ('expiration', PointInTime(kwargs["expiration"])), ]))