Daml finance - Reference to /Daml/Finance/Interface/Holding/Account is missing
- bartcantOP
Hi Daml finance team
I experimenting with your daml-finance-app …
github.comdigital-asset/daml-finance-app/blob/7f6cfc21fc26a96bd5c3191bc55ec58c64de3215/ui/src/pages/issuance/New.tsx
This file has been truncated. show original// Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import classnames from "classnames"; import { useLedger, useParty, useStreamQueries } from "@daml/react"; import { Typography, Grid, Paper, Button, Checkbox, FormGroup, FormControlLabel } from "@mui/material"; import useStyles from "../styles"; import { Spinner } from "../../components/Spinner/Spinner"; import { Reference as AccountReference } from "@daml.js/daml-finance-interface-holding/lib/Daml/Finance/Interface/Holding/Account"; import { useServices } from "../../context/ServiceContext"; import { useInstruments } from "../../context/InstrumentContext"; import { Service as BackToBack } from "@daml.js/daml-finance-app/lib/Daml/Finance/App/BackToBack/Service"; import { Service as IssuanceAuto } from "@daml.js/daml-finance-app/lib/Daml/Finance/App/Issuance/Auto/Service"; import { Service as Issuance } from "@daml.js/daml-finance-app/lib/Daml/Finance/App/Issuance/Service"; import { Message } from "../../components/Message/Message"; import { TextInput } from "../../components/Form/TextInput"; import { SelectInput, toValues } from "../../components/Form/SelectInput";I noticed on Line 11 the following…
import { Reference as AccountReference } from "@daml.js/daml-finance-interface-holding/lib/Daml/Finance/Interface/Holding/Account"Where can I find this in Daml-finance ?
It seems to be missing …
github.comdaml-finance/src/main/daml/Daml/Finance/Interface/Holding at main ·...
main/src/main/daml/Daml/Finance/Interface/Holding
Contribute to digital-asset/daml-finance development by creating an account on GitHub.
Maybe I am looking at this the wrong way.
- Brian_Weir
Hi @bartcant,
The line you are referring to is here in Daml-Finance.
This import is from the library
Daml.Finance.Interface.Holding. If you refer to the script which downloads this dependency here, you will notice that the version is specified as0.1.4. As the codebase is being actively worked upon in this “Early Access” phase, its possible that major modifications to the code occur and that theDaml Finance Appneeds to be updated to catch up with the underlying changes to theDaml Financelibrary.For your reference, this
Account.damlfile has been moved into its own module here and will be part of theDaml.Finance.Interface.Accountlibrary upon the next release. - bartcant
Thanks for the insights
Is there an easy way to get all the daml source files listed hereget_dependency daml-finance-holding Daml.Finance.Holding 0.1.4 get_dependency daml-finance-instrument-bond Daml.Finance.Instrument.Bond 0.1.5 get_dependency daml-finance-instrument-equity Daml.Finance.Instrument.Equity 0.1.5 get_dependency daml-finance-instrument-generic Daml.Finance.Instrument.Generic 0.1.5 get_dependency daml-finance-instrument-swap Daml.Finance.Instrument.Swap 0.1.5 get_dependency daml-finance-instrument-token Daml.Finance.Instrument.Token 0.1.4 get_dependency daml-finance-interface-claims Daml.Finance.Interface.Claims 0.1.4 get_dependency daml-finance-interface-data Daml.Finance.Interface.Data 0.1.4 get_dependency daml-finance-interface-holding Daml.Finance.Interface.Holding 0.1.4 get_dependency daml-finance-interface-instrument-base Daml.Finance.Interface.Instrument.Base 0.1.4 get_dependency daml-finance-interface-instrument-bond Daml.Finance.Interface.Instrument.Bond 0.1.4 get_dependency daml-finance-interface-instrument-equity Daml.Finance.Interface.Instrument.Equity 0.1.5 get_dependency daml-finance-interface-instrument-generic Daml.Finance.Interface.Instrument.Generic 0.1.5 get_dependency daml-finance-interface-instrument-swap Daml.Finance.Interface.Instrument.Swap 0.1.4 get_dependency daml-finance-interface-instrument-token Daml.Finance.Interface.Instrument.Token 0.1.4 get_dependency daml-finance-interface-lifecycle Daml.Finance.Interface.Lifecycle 0.1.5 get_dependency daml-finance-interface-settlement Daml.Finance.Interface.Settlement 0.1.5 get_dependency daml-finance-interface-types Daml.Finance.Interface.Types 0.1.4 get_dependency daml-finance-interface-util Daml.Finance.Interface.Util 0.1.4 get_dependency daml-finance-lifecycle Daml.Finance.Lifecycle 0.1.5 get_dependency daml-finance-settlement Daml.Finance.Settlement 0.1.5 get_dependency daml-finance-util Daml.Finance.Util 0.1.4this will help us to study the code a bit better
- Matteo_Limberto 1
Hi @bartcant,
When a package is released we apply a tag to the corresponding commit in the Daml Finance repo.
The package versions you mention have been all released at this commit.
The easiest for now is for you to check that commit out and open up Daml Studio.
Matteo