text: #
  # Copyright Soramitsu Co., Ltd. All Rights Reserved.
  # SPDX-License-Identifier: Apache-2.0
  #
  
  from iroha import Iroha, IrohaCrypto
  from iroha import primitive_pb2
  import commons
  
  admin = commons.new_user('admin@test')
  alice = commons.new_user('alice@test')
  iroha = Iroha(admin['id'])
  
  
  @commons.hex
  def genesis_tx():
      test_permissions = [primitive_pb2.can_get_domain_acc_detail]
      genesis_commands = commons.genesis_block(admin, alice, test_permissions)
      tx = iroha.transaction(genesis_commands)
      IrohaCrypto.sign_transaction(tx, admin['key'])
      return tx
  
  
  @commons.hex
  def account_detail_query():
      query = iroha.query('GetAccountDetail', creator_account=alice['id'], account_id=admin['id'])
      IrohaCrypto.sign_query(query, alice['key'])
      return query
  