Skip to content

Commit

Permalink
Update CMTAT to the version 2.2, OZ to the version 4.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rya-sge committed Jan 22, 2023
1 parent eb87b18 commit 7b76518
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,11 @@

Please follow [https://changelog.md/](https://changelog.md/) conventions.

## 1.0.1 - 20230122

- Update the library CMTAT to the version [2.2](https://github.com/CMTA/CMTAT/releases/tag/2.2)
- Update the library OpenZeppelin to the version [4.8.1](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.1)
- Improve integration test with CMTAT

## 1.0.0 - 20221114
- 🎉 first release!
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# RuleEngine

This repository includes the RuleEngine contract for the [CMTAT](https://github.com/CMTA/CMTAT) token.
- The CMTAT version used is the version [2.1](https://github.com/CMTA/CMTAT/releases/tag/2.1)
- The OpenZeppelin version used is the version [4.8.0](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.0)
- The CMTAT version used is the version [2.2](https://github.com/CMTA/CMTAT/releases/tag/2.2)
- The OpenZeppelin version used is the version [4.8.1](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v4.8.1)

The CMTAT contracts and the OpenZeppelin library are included as a submodule of the present repository.

Expand Down
2 changes: 1 addition & 1 deletion lib/CMTAT
Submodule CMTAT updated 175 files
7 changes: 5 additions & 2 deletions script/CMTATWithRuleEngine.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract MyScript is Script {
address OWNER = vm.addr(deployerPrivateKey);
address trustedForwarder = address(0x0);
vm.startBroadcast(deployerPrivateKey);

uint256 flag = 5;
// CMTAT
CMTAT CMTAT_CONTRACT = new CMTAT(
trustedForwarder,
Expand All @@ -26,7 +26,10 @@ contract MyScript is Script {
"CMTA Token",
"CMTAT",
"CMTAT_ISIN",
"https://cmta.ch"
"https://cmta.ch",
IRuleEngine(address(0)),
'CMTAT_info',
flag
);
console.log("CMTAT CMTAT_CONTRACT : ", address(CMTAT_CONTRACT));
// whitelist
Expand Down
7 changes: 6 additions & 1 deletion test/CMTATIntegration.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ contract CMTATIntegration is Test, HelperContract, RuleWhitelist {
uint256 ADDRESS2_BALANCE_INIT = 32;
uint256 ADDRESS3_BALANCE_INIT = 33;

uint256 FLAG = 5;

// Arrange
function setUp() public {
vm.prank(DEFAULT_ADMIN_ADDRESS);
Expand All @@ -35,7 +37,10 @@ contract CMTATIntegration is Test, HelperContract, RuleWhitelist {
"CMTA Token",
"CMTAT",
"CMTAT_ISIN",
"https://cmta.ch"
"https://cmta.ch",
IRuleEngine(address(0)),
'CMTAT_info',
FLAG
);

// specific arrange
Expand Down

0 comments on commit 7b76518

Please sign in to comment.