Skip to content

v2.1.1 - Apache 2.0 Licensing

Latest

Choose a tag to compare

@salindne salindne released this 02 Nov 20:58
· 1 commit to main since this release
3feb530

The Daml code is unchanged from 2.1.0. This release ships it under the Apache License 2.0 (LICENSE,
NOTICE and SPDX headers, #43). It is the first GitHub release since v1.5.0, so the notes also cover
2.0.0 and 2.1.0.

Packages

Built with Daml SDK 3.4.8. The DARs build byte-for-byte reproducibly, so a rebuild from this tag gives
the same package IDs and checksums. The four DARs are attached below, with their checksums in SHA256SUMS.

Package Package ID DAR SHA-256
common 774bfc61c2fe7d5f472106a2539518a5d4d8093dd90456355783500f330ca1f4 c0eac39b7508135f1a037d1fbe922e962936d91d988ccf296cf8cdc9a38bfc1c
cip56-token b17adfeb9c93c73cbf914314751ce3a994974b629e5d425dd623775e8e6d35df cf256fbb62b8c8bb94f214cf95aedc655568348a49f5f58411d24bf20d24c0ad
bridge-core baf2d5ef49e7b35f221b489feed3670dcb7e92ed5007587e85282c4027ae5f25 591da671f6987ccab69a5c4c2928cb6c366896977d3848a4657daeb1e92d03c4
bridge-wayfinder ab8f35674c9502b3b85a44ddbc61082479327d24269b8eb08e6db44754f8404d 008f5dad3407f67a82391ebecc23853a3acb0b060a6dc126e690bfb21ef64b1f

Reproduce

Requires Daml SDK 3.4.8, the sdk-version in each daml.yaml.

git clone https://github.com/ChainSafe/canton-erc20.git && cd canton-erc20
git checkout v2.1.1
./scripts/build-all.sh --daml-only
for p in common cip56-token bridge-core bridge-wayfinder; do
  daml damlc inspect-dar --json daml/$p/.daml/dist/$p-2.1.1.dar \
    | python3 -c 'import json,sys; print(json.load(sys.stdin)["main_package_id"])'
done
shasum -a 256 daml/{common,cip56-token,bridge-core,bridge-wayfinder}/.daml/dist/*-2.1.1.dar
./scripts/test-all.sh --daml-only

Upgrading

Smart contract upgrade compatibility, checked with daml upgrade-check --both:

From To 2.1.1
2.1.0 Upgrades in place
2.0.0 built from main from e44fedc until the 2.1.0 bump Upgrades in place
v2.0.0 tag Not an upgrade: IssuerMint changed its return type
1.x (checked against 1.5.0) Not an upgrade: LockedAsset was removed

Contracts created under an incompatible version can't be used through the 2.1.x packages.

Changes since v1.5.0

2.1.1: Apache 2.0 licensing. The package IDs differ from 2.1.0 because the SPDX headers shift the
source locations compiled into each package.

2.1.0 (version bump on main, not released separately). After the v2.0.0 tag, main kept the
2.0.0 label while these changes landed, so two different builds called 2.0.0 existed. The bump gave
the later code its own version (#45).

  • TokenTransferEvent replaces MintEvent and BurnEvent. It mirrors ERC-20
    Transfer(from, to, value) and is emitted on every mint, burn and transfer.
  • TokenTransferEvent is chain-agnostic: instrumentId and an optional Splice meta replace the
    EVM-specific fields.
  • IssuerMint and IssuerBurn now return a TokenTransferEvent and take eventMeta.
  • CIP56TransferFactory gains an auditObservers field.
  • The pre-built Splice API DARs are tracked in git, so a clean clone builds.

2.0.0 (tagged, not released). The CIP-56 contracts were rewritten to the Splice token standard
(CIP-0056):

  • CIP56Holding implements HoldingV1.Holding.
  • CIP56TransferFactory implements the Splice TransferFactory.
  • TokenConfig and the Wayfinder PROMPT metadata use Splice Metadata.
  • LockedAsset and the direct Transfer, Lock, Unlock and CompleteTransfer choices are removed.
  • Fixes: transfers keep the first input holding's metadata, and burning rejects locked holdings.

Full details are in CHANGELOG.md.