* mark several javaapi.data models final
* PrimitiveValueDecoders are final; utility classes should not be constructed
* replace Bool constructor with new #of static method
CHANGELOG_BEGIN
- [Java bindings] Many classes in the ``javaapi.data`` package that were
*intended* to be ``final`` are now explicitly marked as such.
CHANGELOG_END
* turn on -Xlint -Werror for Java bindings
* remove unused locals
* remove raw casts for deprecated Record
* fix rawtypes
* don't check for serialVersionUID
* some javadoc for DefinedDataType
* add lint to bindings-rxjava; deprecate ledger identity client
* document DamlRecord
* fix rawtypes in Java codegen output
* fix unused cast in Java codegen output
* enable -Xlint for Java codegen output
CHANGELOG_BEGIN
- [Java codegen] Now outputs code that should pass ``-Xlint:rawtypes``
as well as other ``-Xlint`` warnings.
CHANGELOG_END
* note that makeExerciseCmd is not for application use
* notes on Contract, *Companion
* doc View type parameter
* fromContractId is also internal API
CHANGELOG_BEGIN
CHANGELOG_END
* passed value decoder to interface Companion
CHANGELOG_BEGIN
CHANGELOG_END
* throw IllegalArgumentException if view type not found for an interface
CHANGELOG_BEGIN
CHANGELOG_END
* address comments
* test
* test
Co-authored-by: Chun Lok Ling <lokling@gmail.com>
* drop payload and key instead of passing through
* build a "hidden" dar with a new template for build-and-lint-test
* test the events that come back; passing
* test key and that template is definitely not registered
* confirm test fails without changes to @daml/ledger
✕ undecodable exercise result event data is discarded (334 ms)
● interfaces › undecodable exercise result event data is discarded
Failed to look up template 24124e8b5ae6c7f06835529d5b7338ed32308cdcb6409ba72f88351da9145ff1:Hidden:NotVisibleInTs. Make sure your @daml/types version agrees with the used Daml SDK version.
at lookupTemplate (../../../../language-support/ts/daml-types/index.ts:269:11)
at ../../../../language-support/ts/daml-ledger/index.ts:196:59
at ../node_modules/@mojotech/json-type-validation/src/decoder.ts:795:31
at Result.andThen (../node_modules/@mojotech/json-type-validation/src/result.ts:130:19)
at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:795:7)
at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:312:37)
at Decoder.decode (../node_modules/@mojotech/json-type-validation/src/decoder.ts:501:31)
at decodeValue_1 (../node_modules/@mojotech/json-type-validation/src/decoder.ts:371:68)
at ../node_modules/@mojotech/json-type-validation/src/decoder.ts:375:65
at Array.reduce (<anonymous>)
CHANGELOG_BEGIN
- [JS codegen] Exercise no longer fails on unrecognized templates occurring in
create/archive events resulting from an exercise, such as may happen when
exercising interface choices; instead, any such "uninterpretable creates" have
their payloads changed to ``{}`` and their keys removed.
CHANGELOG_END
* FromValue Interface
* add deprecated and new fromvalue method
* debug log
* added apply
* no semicolon
* colon
* fix VariantConstructorClass
* fix VariantConstructorClass
* fix VariantConstructorClass
* fix VariantConstructorClass
* fix test cases
* add changelog
CHANGELOG_BEGIN
CHANGELOG_END
* For template, use the fromValue in contract companion
* Added private value decoder method for passing in to contract companion
* WIP
* move variant sub type decoder method to the base variant class
* remove debug log
* don't call deprecated value
* pass value decoder instead of lambda
* move PrimitiveValueDecoders to codegen package
* rename from FromValue to ValueDecoder
* rename from method fromValue to valueDecoder
* extract isVariantRecord
* remove unused import
* added java doc for valueDecoder method
* format
* address comments
* address comments
* use Objects.equals instead
CHANGELOG_BEGIN
CHANGELOG_END
* add () back
* specfy type of object to avoid java.io.Serializable being inferred which wartremover doesn't like it
* remove warnings
* address Stephen's comment
* address Stephen's comment
* Contract argument blob [DPP-1161].
CHANGELOG_BEGIN
[Ledger API]: Introduce an ability to expose contract arguments as blob if matched by the interface filter using `include_create_arguments_blob` flag in the ``InterfaceFilter``.
Introduce an ability to provide `DisclosedContract.arguments` as a blob instead of a typed `Record`.
CHANGELOG_END
Breaks-protobuf: true
Co-authored-by: Simon Meier <meiersi-da@users.noreply.github.com>
Co-authored-by: atriantafyllos-da <andreas.triantafyllos@digitalasset.com>
changelog_begin
[Ledger API Specification]:
1. Add 'is_deactivated' attribute to participant users.
2. Introduce participant server's local metadata for parties and participant users consisting of:
- a resource version for optional concurrent change control,
- modifiable key-value based annotations.
3. Add experimental update RPCs for parties and participant users:
- participant user's modifiable fields are: 'primary_party', 'is_deactivated', 'metadata.annotations',
- party's modifiable fields are 'local_metadata.annotations'.
4. Discourage use of 'party_details.display_name' in favor of using party's metadata annotations.
changelog_end
Other notes:
- no-op updates are allowed,
- update paths are resource relative,
- as annotation deletion is by providing an key with the empty string value,
- as a corollary, only non-empty strings are valid annotation values.
* new ContractDecoder
* change DecoderClass to use template companion for contract decoders
* add change log
CHANGELOG_BEGIN
CHANGELOG_END
* format
* Revert "add change log"
This reverts commit 6d59829883.
* Remove reliance on implict party allocation in the authorization tests of the sandbox-on-x
CHANGELOG_BEGIN
CHANGELOG_END
* Remove the HOCON and cli config parameters
* Remove implicit party allocation from the Submission Service
* Remove support for implicit parties from the bridge
* Fix codegen reliance on implicit party allocation
* Fix daml script tests
* Fix trigger tests
* format security-evidence.md post rebase
* Fix json-api tests
* One more json-api test
* Fix haskell tests
* Corrections post-review
* Cosmetic improvements
* Fix race condition in party allocation handling
* Add abstract class parents to generated ordinary records and variants
* Add common supertype for generated enums
* Add abstract class parents to generated ordinary records and variants
CHANGELOG_BEGIN
- Ordinary Records and Variants now have a super class defining toValue()
- Generated enums now have a common supertype, DamlEnum<T>
CHANGELOG_END
* ChoiceFrom intersection
* require ChoiceFrom in some functions
* codegen ChoiceFrom
CHANGELOG_BEGIN
- [TypeScript] Codegen output now uses the new ``ChoiceFrom`` interface;
prior output that does not use this interface will not work with this
version of ``@daml/types``. If you use the type ``Choice`` in your
own types and your code no longer type-checks, you must include
``ChoiceFrom`` in your declarations as well.
CHANGELOG_END
CHANGELOG_BEGIN
- [codegen js] Interface choices are no longer inherited by implementing
templates. Instead, refer to the choice directly on the interface.
CHANGELOG_END
* new types and companion derivation function for interfaces
* declare that interface companions are no longer Templates
* widen the type of Choice#template, experimentally
* widen some types to admit sync query
* declare that interfaces are allowed for fetch, WS query
CHANGELOG_BEGIN
- [codegen js] Support querying interface views and fetching by contract
ID retrieving the interface view rather than the template payload.
CHANGELOG_END
* Added ListUsersRequest
CHANGELOG_BEGIN
CHANGELOG_END
* Add code change
CHANGELOG_BEGIN
Allow to list all users by providing page token and page size in the Java bindings
CHANGELOG_END
* added test cases to cover the new method
* include retro-implements in TS interface type decls
* split interface exercise test into two sub-tests
* test that contract ID conversion resolves
CHANGELOG_BEGIN
- [TypeScript codegen] Support for retroactive interface implementations
included. Choice inheritance is deprecated and `will be removed
<https://github.com/digital-asset/daml/issues/14893>`__; to invoke an
interface choice on a template-typed contract ID, convert it to an
interface-typed ID with *TemplateName*``.toInterface``.
CHANGELOG_END
* declare Interface, ToInterface, FromInterface in @daml/types library
* generate ToInterface and FromTemplate companion declarations
* add toInterface and unsafeFromInterface to template companion implementations
* declare marker types for every interface
* remove type parameter from interface companions' types
* add the union for forward implements
CHANGELOG_BEGIN
- [TypeScript codegen] To exercise an interface choice on a
template-typed contract ID, you must now explicitly convert the
contract ID to an interface-typed ID. For example, where ``cid:
ContractId<TemplateName>``, you can use
``TemplateName.toInterface(InterfaceName, cid)`` to produce a
``ContractId<InterfaceName>``.
Interface contract IDs are also now typed as shown above; for example,
the former type ``ContractId<InterfaceNameInterface<TemplateName>>``
would now simply be ``ContractId<InterfaceName>``.
CHANGELOG_END
* fixes#14822, added test case to ensure retroactive implements works in java code gen
CHANGELOG_BEGIN
CHANGELOG_END
* fixes#14822, added test case to ensure retroactive implements works in java code gen
* format
* address Stephen's comment
* fmt
* new names in daml-script/runner
* new names in json-api
* new names in Scala bindings/codegen
* new names in Java bindings/codegen
* new names in daml-lf interpreter tests
* more new names in daml-script tests
* new names in navigator backend
* deprecate all iface symbols and old method names
CHANGELOG_BEGIN
- [Scala API] ``com.daml.lf.iface`` has been deprecated, as discussed
further in
`issue #14783 <https://github.com/digital-asset/daml/pull/14783>`__.
Use the deprecation warnings as guidance to the new names.
CHANGELOG_END
* prefix cases in OrderingSpec
- suggested by @remyhaemmerle-da; thanks
* use new names in json-api
* use new names in java codegen
* use new names in Scala codegen
* use new names in TypedValueGenerators
CHANGELOG_BEGIN
CHANGELOG_END
* move interface directory to api-type-signature; change bazel target; move scala files
* rename iface package to typesig; rename EnvironmentInterface to EnvironmentSignature
* rename Interface to PackageSignature
* rename fromReaderInterfaces to fromPackageSignatures
* rename InterfaceReader to SignatureReader
* rename InterfaceReader to SignatureReader in deprecation note
* rename readInterface to readPackageSignature
* rename InterfaceReaderError to Error
* rename InterfaceReaderMain to SignatureReaderMain
* rename InterfaceType to PackageSignature.TypeDecl
* rename astInterfaces to interfaces
* rename astInterfaces to interfaces in PackageSignature
* rename findAstInterface to findInterface
* rename a couple arguments
CHANGELOG_BEGIN
- [Scala API] The "quasi-public" API in ``com.daml.lf.iface`` has moved
to the new ``com.daml.lf.typesig`` package, with many accompanying
name changes as documented in `issue #13669
<https://github.com/digital-asset/daml/issues/13669>`__.
Daml 2.5.0 or later will remove the old names, and also rename the
Maven artifact from ``daml-lf-interface`` to
``daml-lf-api-type-signature``. We recommend that users of this API
use the deprecation guidance in 2.4.0 to port their applications
before this happens.
CHANGELOG_END
* Extract qualifyLocally in LFConversion
* Update ghc rev
* Add parent type argument to interface instance desugaring types
* Check interface instance parent in LFConversion
* Convert interface instances in interface declarations
* Update daml-test-files to use 'interface instance' syntax
* Update other tests to use 'interface instance' syntax
* Update interface reference docs to use 'interface instance' syntax
* Update other files to use 'interface instance' syntax
* Add todo in DA.Daml.LF.Ast.Pretty
* Add daml-test-files for retroactive interface instances
changelog_begin
changelog_end
* declare InterfaceFilter counterpart
* add interfaceIds to InclusiveFilter
* mark InclusiveFilter final
* add interface views to CreatedEvent
* there are only two Filter.Interfaces
- suggested by @stefanobaghino-da; thanks
CHANGELOG_BEGIN
- [Java bindings] The existing ``CreatedEvent`` constructor has been
deprecated in favor of a new one that includes new interface-related
arguments. Most users should not be using this constructor directly,
preferring ``fromProto`` instead, but the remainder should pass in
empty maps as the new arguments.
Likewise, the ``InclusiveFilter`` constructor has been deprecated.
Existing callers should use the ``ofTemplateIds`` static method
instead to replace current calls, keeping in mind that it will not be
valid to pass ``Identifier``s representing interface IDs to this
method.
CHANGELOG_END
* remove callers of deprecated InterfaceFilter constructor
* generate only valid InterfaceViews, include in Java data
* testing from value contract id
CHANGELOG_BEGIN
CHANGELOG_END
* delete commented code
CHANGELOG_BEGIN
CHANGELOG_END
* separate Bar template from Foo daml Modules
* Add DA_Internal_Interface to convertTypeDef exclusion check
* Move desugared types/values for interface views into DA.Internal.Desugar
* Convert viewtype and view method declarations
* Typecheck view types and view declarations
* Add unit viewtypes to InterfaceChoiceCollision tests
* Add unit viewtypes to more compiler/damlc tests
* Modify empty interfaces/implements to have viewtypes/views
* Add unit viewtypes to remaining Interface tests
* Test for error thrown when viewtype not specified
* Fix daml-lf/ interface tests to use new syntax / unit views
* Add placeholder view of type Unit to TestInterfaces
CHANGELOG_BEGIN
CHANGELOG_END
* Fix typescript interface tests with unit viewtype
* Add unit viewtype to Java & Scala codegen
* Add unit viewtype to triggers tests interface
* Add unit viewtypes to ledger/test-common
* Add unit viewtypes to ledger-service/http-json
* Fix some damlc tests
* Use viewtype syntax in InterfaceViewNonSerializable test
* Remove HasInferfaceView instances in convertBind
* Add unit view to QualifiedInterface.daml test
* Generate HasInterfaceView instances in DataDependencies
* Add unit viewtypes and views to compiler/damlc/tests
* Document reconstruction of HasInterfaceView
* Move desugared types/values for interface views into DA.Internal.Desugar
* Add desugarable function view w/ EViewInterface desugaring
* Remove templateName and viewtype from generated EViewInterface
* Update desugared-daml
* Proof of concept: use _view -> EViewInterface prim via HasInterfaceView
* Move view, HasInterfaceView to DA.Internal.Interface
* Update desugared-daml tests
* Stop removing and re-generating HasInterfaceView instances
* Do not generate docs for generated "_view_" methods
* Report errors with interface TypeConNames prettily
* Fix InterfaceViewNotSpecified @ERROR to reflect new error text
* Don't import magic `view` method from Prelude to avoid name clash
* Update shake interface goto definition test locations
* Temp disable view spec tests, will re-implement views in speedy
* Add unit viewtype to Java code snippet docs
* Update Interface syntax docs for views
* Add unit viewtype to Transferrable.daml
* Add back "empty" interface implementation to interfaces.rst
* Re-enable view tests by having _view methods on InterfaceViews.daml file
* Remove deprecated commented-out view desugaring code
* remove hasInterfaceId, add Optional to type
* add some missing properties in ExercisedEvent to equals, hashCode, toString
* mark ExercisedEvent final, as with other events
CHANGELOG_BEGIN
- [Java bindings] ``ExercisedEvent#getInterfaceId`` has a different type
since 2.3.x, indicating its optionality.
CHANGELOG_END
* add a test that breaks on missing identifier
* fix both hasInterfaceId boolean inversions
- confirmed that the test in parent breaks unless both changes are made
* add changelog
CHANGELOG_BEGIN
- [Java bindings] Fix a regression found in 2.3.0 RC with the
introduction of interface IDs in ``ExercisedEvent``s.
CHANGELOG_END
* add resolveRetroImplements to EnvironmentInterface
* test that resolveRetroImplements does nothing with no data
* resolve retroactive interfaces in Java codegen
* resolve retroactive interfaces in Scala codegen
* resolve retroactive interfaces in json-api
CHANGELOG_BEGIN
CHANGELOG_END
Fixes#14073.
CHANGELOG_BEGIN
- [js] Type ``LedgerOptions``, the type of `new Ledger` arguments, can
be imported by name from ``@daml/ledger``, and is included in the
documentation.
CHANGELOG_END