예제 #1
0
        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)
예제 #2
0
def buildAcmeWallet():
    return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
예제 #3
0
def buildThriftWallet():
    return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
예제 #4
0
def buildFaberWallet():
    return buildAgentWallet("FaberCollege",
                            b'Faber000000000000000000000000000')
예제 #5
0
                                           '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)
예제 #6
0
def buildThriftWallet():
    return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
예제 #7
0
def buildAcmeWallet():
    return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
예제 #8
0
def buildFaberWallet():
    return buildAgentWallet(
        "FaberCollege", b'Faber000000000000000000000000000')