schema_id = await bootstrap_schema(agent, 'Transcript', 'Transcript', '1.9', primes["prime1"][0], primes["prime1"][1]) await agent._set_available_claim_by_internal_id(1, schema_id) await agent._set_available_claim_by_internal_id(2, schema_id) await agent._set_available_claim_by_internal_id(3, schema_id) await agent._set_available_claim_by_internal_id(4, schema_id) if __name__ == "__main__": args = RunnableAgent.parser_cmd_args() name = "Faber College" port = args.port if port is None: port = 5555 network = args.network or 'sandbox' with_cli = args.withcli config = getConfig() base_dir_path = os.path.expanduser( os.path.join(config.CLI_NETWORK_DIR, network)) agent = create_faber(name=name, wallet=buildAgentWallet(name, FABER_SEED), base_dir_path=base_dir_path, port=port) RunnableAgent.run_agent(agent, bootstrap=bootstrap_faber(agent), with_cli=with_cli)
def buildAcmeWallet(): return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
def buildThriftWallet(): return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
def buildFaberWallet(): return buildAgentWallet("FaberCollege", b'Faber000000000000000000000000000')
'Transcript', '1.2', primes["prime1"][0], primes["prime1"][1]) await agent._set_available_claim_by_internal_id(1, schema_id) await agent._set_available_claim_by_internal_id(2, schema_id) await agent._set_available_claim_by_internal_id(3, schema_id) await agent._set_available_claim_by_internal_id(4, schema_id) if __name__ == "__main__": args = RunnableAgent.parser_cmd_args() name = "Faber College" port = args.port if port is None: port = 5555 network = args.network or 'sandbox' with_cli = args.withcli config = getConfig() base_dir_path = os.path.expanduser( os.path.join( config.CLI_NETWORK_DIR, network )) agent = create_faber(name=name, wallet=buildAgentWallet( name, FABER_SEED), base_dir_path=base_dir_path, port=port) RunnableAgent.run_agent( agent, bootstrap=bootstrap_faber(agent), with_cli=with_cli)
def buildThriftWallet(): return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
def buildAcmeWallet(): return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
def buildFaberWallet(): return buildAgentWallet( "FaberCollege", b'Faber000000000000000000000000000')