# Copyright (c) 2025 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

sdk-version: 3.3.0-snapshot.20250502.13767.0.v2fc6c7e2
name: splice-token-standard-test
description: |
  Test infrastructure for the token standard.

  Includes the setup for an amulet-based test registry; and tests
  that showcase using that one to interact via Amulet using the token standard APIs.

  Also includes an OTC Trading app that demos how to use the allocation APIs to
  settle DvP obligations.

  Must be consumed by copying the source-code into the downstream project,
  as Daml script code can currently not be shared via .dars across SDKs. The dependencies
  are normal .dar files and can be shared by copying the .dars.
  (TODO(#594): remove this limitation)
version: 1.0.7
source: daml
dependencies:
  - daml-prim
  - daml-stdlib
  - daml-script
data-dependencies:
  - ../splice-api-token-metadata-v1/.daml/dist/splice-api-token-metadata-v1-current.dar
  - ../splice-api-token-holding-v1/.daml/dist/splice-api-token-holding-v1-current.dar
  - ../splice-api-token-transfer-instruction-v1/.daml/dist/splice-api-token-transfer-instruction-v1-current.dar
  - ../splice-api-token-allocation-v1/.daml/dist/splice-api-token-allocation-v1-current.dar
  - ../splice-api-token-allocation-request-v1/.daml/dist/splice-api-token-allocation-request-v1-current.dar
  - ../splice-api-token-allocation-instruction-v1/.daml/dist/splice-api-token-allocation-instruction-v1-current.dar
  - ../examples/splice-token-test-trading-app/.daml/dist/splice-token-test-trading-app-current.dar
  - ../../daml/splice-util/.daml/dist/splice-util-current.dar
  - ../../daml/splice-amulet/.daml/dist/splice-amulet-current.dar
build-options:
  - --target=2.1
  - --ghc-option=-Wunused-binds
  - --ghc-option=-Wunused-matches
codegen:
  java:
    package-prefix: org.lfdecentralizedtrust.splice.codegen.java
    decoderClass: org.lfdecentralizedtrust.splice.codegen.java.DecoderSpliceTokenTransferTest
    output-directory: target/daml-codegen-java
