Skip to content

Releases: trustlines-protocol/contracts

Version 3.0.0

16 Dec 15:23
Compare
Choose a tag to compare
  • Added: new contracts CurrencyNetworkV3, and CurrencyNetworkOwnableV3. They have a new transfer(address, value) function abused by Gnosis safes to track delegate debt. This functionally replaces the increaseDebt(address, value) function.
  • Updated: migration script to move users from one currency network to another now translates addresses of users from the TL-identity contract to the corresponding Gnosis-safe contract addresses with the same user. Migration script no longer freezes currency networks, as they will not be able to be frozen on tlbc.
  • Added: gnosis safe implementation and proxy factory added to test cli used in the TL e2e tests.

Version 2.0.0

27 Apr 16:30
Compare
Choose a tag to compare
  • Added: new contracts CurrencyNetworkV2, CurrencyNetworkOwnableV2 and CurrencyNetworkBasicV2.
    They have an option to add a payment request when opening a trustline via additional parameter int72 _transfer of
    function updateTrustline.
    The event TrustlineUpdateRequest now also has the additional corresponding argument int72 _transfer
  • Added: function in tlbin to load merged abi load_packaged_merged_abis. This return a dict object similar to
    a regular contracts.json file with a key MergedCurrencyNetworksAbi that contains the merged abi of networks
    version 1, version 2, and of proxies.

Version 1.3.0

12 Feb 10:57
Compare
Choose a tag to compare
  • Updated: properly get the isFrozen status for trustlines during migration, no longer resulting
    in constantly frozen trustlines.
  • Updated: now migrate pending trustline requests when migrating networks.
  • Updated: tl-deploy deploy-and-migrate will now output JSON a file with a mapping from old to new network
    see --output option
  • Updated: force the user to provide --gas-price when deploying contracts.
    Prevents the node from failing to provide a gas-price. (results from contract-deploy-tools dependency upgrade)
  • Updated: remove the --auto-nonce option, now used per default.
    The tool will query the node for the nonce unless explicitly provided with--nonce. (results from contract-deploy-tools dependency upgrade)
  • Added: Event NetworkUnfreeze emitted when unfreezing a network after migration
  • Added: Event OwnerRemoval emitted when removing the owner of a network after migration

Version 1.2.0

26 Jan 10:45
Compare
Choose a tag to compare
  • Updated: limit interest rates in currency networks to +-20%

  • Updated: limit balance with negative interests to old balance to avoid increasing the balance
    instead of lowering it when calculation fails

  • Updated: all contracts updated to solc 0.8.0

  • Updated: functions to deploy network now use tl-deploy.core.NetworkSettings object to be more explicit as to
    what settings it expects.

  • Added: function in currency network closeTrustlineByDirectTransfer to close a trustline
    by making a direct transfer of the balance if the balance is in between min and max arguments

  • Added: owned currency network able to set trustlines before giving up ownership. Usable to migrate old networks

  • Added: command in tl-deploy for migrating old contracts to new ones:
    tl-deploy migration and tl-deploy verify-migration

  • Added: Upgradeable currency networks via beacon and proxy pattern

  • Added: tl-deploy beacon command to deploy a beacon. Beacons are used as the source of information for the
    implementation address to be used by currency network proxies

  • Added: deploy-and-migrate command to deploy new currency network proxies and migrate old networks to new ones

Version 1.1.7

12 Oct 14:37
Compare
Choose a tag to compare
  • Fixed: packing of contracts in trustlines-contracts-bin,
    it was not working properly when installed in editable mode.
  • Added: Natspec missing to some contracts functions
  • Updated: dependencies updated, notably contract-deploy-tools==0.8.0 and web3==5.12.1

Version 1.1.6

17 Sep 10:56
Compare
Choose a tag to compare
  • Added: function for delegate to find the implementation address of an identity proxy: Delegate.get_implementation_address(identity_address)
  • Added: Deploy a second identity implementation contract in the the tldeploy test command. this can be used for testing the update of identity implementations.

Version 1.1.5

22 Jul 09:34
Compare
Choose a tag to compare
  • Add means to get contracts.json from py-bin: from tlbin import load_packaged_contracts
  • Fix logging of unknown events from proxied identities

Version 1.1.4

21 Apr 08:32
Compare
Choose a tag to compare
  • Fix bug in interests calculations that would cause the balance to flip sign for big values of negative interests.
    Set the balance to 0 when this should happen instead.

Version 1.1.3

28 Feb 11:39
Compare
Choose a tag to compare
  • Allow to set transaction options like gasLimit and gasPrice when deploying identity contracts

Version 1.1.2

26 Feb 13:50
Compare
Choose a tag to compare
  • Allow to set transaction options like gasLimit and gasPrice when sending a meta transaction