class Config(): wallet_host = "localhost" wallet_port = 8090 wallet_user = "" wallet_password = "" witness_url = "ws://localhost:11011" witness_user = "" witness_password = "" watch_markets = ["PEG.LAST:TEST"] market_separator = ":" if __name__ == '__main__': config = Config graphene = GrapheneClient(config) dex = GrapheneExchange(config) asset_symbol = "PEG.LAST" producers = [ "init0", "init1", "init2", "init3", "init4", "init5", "init6", "init7", "init8", "init9", "init10" ] ticker = None try: ticker = dex.returnTicker() except: pass if not ticker or config.watch_markets[0] not in ticker:
perm["disable_confidential"] = 0x40 perm["witness_fed_asset"] = 0x80 perm["committee_fed_asset"] = 0x100 GRAPHENE_100_PERCENT = 10000 GRAPHENE_1_PERCENT = GRAPHENE_100_PERCENT / 100 class Config(): wallet_host = "localhost" wallet_port = 8092 wallet_user = "" wallet_password = "" if __name__ == '__main__': graphene = GrapheneClient(Config) issuer = "nathan" symbol = "PMS.A" backing = "1.3.0" account = graphene.rpc.get_account(issuer) asset = graphene.rpc.get_asset(backing) permissions = { "charge_market_fee": True, "white_list": True, "override_authority": True, "transfer_restricted": True, "disable_force_settle": True, "global_settle": True,
ref_block_prefix=ref_block_prefix, expiration=expiration, operations=ops ) w = tx.sign(wifs, chain=client.getChainInfo()) return w #: Connetion Settings class Config(): witness_url = witness_url if __name__ == '__main__': config = Config client = GrapheneClient(config) issuer = client.ws.get_account(issuer) from_account = client.ws.get_account(from_account) to_account = client.ws.get_account(to_account) asset = client.ws.get_asset(asset) amount = int(amount * 10 ** asset["precision"]) ops = [] op = transactions.Override_transfer(**{ "fee": {"amount": 0, "asset_id": "1.3.0"}, "issuer": issuer["id"], "from": from_account["id"], "to": to_account["id"], "amount": {"amount": amount,