Skip to content

Commit

Permalink
version 3.5.1 (#109)
Browse files Browse the repository at this point in the history
- manage situation not handled in try/catch
  • Loading branch information
Joachim-Lebrun authored Aug 24, 2021
1 parent 516c5e2 commit 9f2ec99
Show file tree
Hide file tree
Showing 28 changed files with 106 additions and 26 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# Change Log
All notable changes to this project will be documented in this file.

## [3.5.1]

### Update
- updated licenses from 2019 to 2021

### Fix
- fix bug on the try/catch of `isVerified` function to return false if the verification of the claim returns an
error on the last claim checked on the ONCHAINID


## [3.5.0]

### Update
Expand Down
2 changes: 1 addition & 1 deletion contracts/DVD/DVDTransferManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/compliance/DefaultCompliance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/compliance/ICompliance.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/compliance/LimitHolder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
22 changes: 22 additions & 0 deletions contracts/proxy/ImplementationAuthority.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
// SPDX-License-Identifier: GPL-3.0
/**
* NOTICE
*
* The T-REX software is licensed under a proprietary license or the GPL v.3.
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity ^0.8.0;

Expand Down
22 changes: 22 additions & 0 deletions contracts/proxy/TokenProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
// SPDX-License-Identifier: GPL-3.0
/**
* NOTICE
*
* The T-REX software is licensed under a proprietary license or the GPL v.3.
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity ^0.8.0;

Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/ClaimTopicsRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/IClaimTopicsRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/IIdentityRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/IIdentityRegistryStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/ITrustedIssuersRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 6 additions & 2 deletions contracts/registry/IdentityRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -195,7 +195,11 @@ contract IdentityRegistry is IIdentityRegistry, AgentRole {
return false;
}
}
catch {}
catch {
if (j == (claimIds.length - 1)) {
return false;
}
}
}
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/IdentityRegistryStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/registry/TrustedIssuersRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/AgentManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/AgentRole.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/AgentRoleUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/AgentRoles.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/AgentRolesUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/OwnerManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/OwnerRoles.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/roles/OwnerRolesUpgradeable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/IToken.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
24 changes: 23 additions & 1 deletion contracts/token/Storage.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,26 @@
// SPDX-License-Identifier: GPL-3.0
/**
* NOTICE
*
* The T-REX software is licensed under a proprietary license or the GPL v.3.
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

pragma solidity ^0.8.0;
import '../compliance/ICompliance.sol';
Expand All @@ -15,7 +37,7 @@ contract TokenStorage {
string internal tokenSymbol;
uint8 internal tokenDecimals;
address internal tokenOnchainID;
string internal constant TOKEN_VERSION = '3.5.0';
string internal constant TOKEN_VERSION = '3.5.1';

/// @dev Variables of freeze and pause functions
mapping(address => bool) internal frozen;
Expand Down
2 changes: 1 addition & 1 deletion contracts/token/Token.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* If you choose to receive it under the GPL v.3 license, the following applies:
* T-REX is a suite of smart contracts developed by Tokeny to manage and transfer financial assets on the ethereum blockchain
*
* Copyright (C) 2019, Tokeny sàrl.
* Copyright (C) 2021, Tokeny sàrl.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tokenysolutions/t-rex",
"version": "3.5.0",
"version": "3.5.1",
"description": "A fully compliant environment for the issuance and use of tokenized securities.",
"main": "index.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion test/tokenTransfer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ contract('Token', (accounts) => {

it('version returns the version of the token', async () => {
const version1 = await token.version().should.be.fulfilled;
version1.toString().should.equal('3.5.0');
version1.toString().should.equal('3.5.1');
});

it('onchainID returns the onchainID address of the token', async () => {
Expand Down

0 comments on commit 9f2ec99

Please sign in to comment.