From b63d8c6932b6df62b6ad1623beefd7e36cfaeb41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Ace=C3=B1olaza?= Date: Mon, 2 Oct 2023 21:45:34 -0300 Subject: [PATCH] Renames events --- contracts/utils/TimestampedHashRegistry.sol | 4 ++-- contracts/utils/interfaces/ITimestampedHashRegistry.sol | 4 ++-- test/utils/TimestampedHashRegistry.sol.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contracts/utils/TimestampedHashRegistry.sol b/contracts/utils/TimestampedHashRegistry.sol index c983f1e6..e1bc846f 100644 --- a/contracts/utils/TimestampedHashRegistry.sol +++ b/contracts/utils/TimestampedHashRegistry.sol @@ -31,7 +31,7 @@ contract TimestampedHashRegistry is Ownable, EIP712, ITimestampedHashRegistry { for (uint256 ind = 0; ind < signers.length; ind++) { _hashTypeToSigners[hashType].add(signers[ind]); } - emit HashTypeSignersSet(hashType, signers); + emit SetHashTypeSigners(hashType, signers); } function registerSignedHash( @@ -67,7 +67,7 @@ contract TimestampedHashRegistry is Ownable, EIP712, ITimestampedHashRegistry { signedHash.hash, signedHash.timestamp ); - emit SignedHashRegistered( + emit RegisteredSignedHash( hashType, signedHash.hash, signedHash.timestamp, diff --git a/contracts/utils/interfaces/ITimestampedHashRegistry.sol b/contracts/utils/interfaces/ITimestampedHashRegistry.sol index 2be5f1e6..a1de5dbd 100644 --- a/contracts/utils/interfaces/ITimestampedHashRegistry.sol +++ b/contracts/utils/interfaces/ITimestampedHashRegistry.sol @@ -2,9 +2,9 @@ pragma solidity 0.8.17; interface ITimestampedHashRegistry { - event HashTypeSignersSet(bytes32 indexed hashType, address[] signers); + event SetHashTypeSigners(bytes32 indexed hashType, address[] signers); - event SignedHashRegistered( + event RegisteredSignedHash( bytes32 indexed hashType, bytes32 hash, uint256 timestamp, diff --git a/test/utils/TimestampedHashRegistry.sol.js b/test/utils/TimestampedHashRegistry.sol.js index 6baac42e..c0e1343a 100644 --- a/test/utils/TimestampedHashRegistry.sol.js +++ b/test/utils/TimestampedHashRegistry.sol.js @@ -100,7 +100,7 @@ describe('TimestampedHashRegistry', function () { ]; expect(await timestampedHashRegistry.getSigners(dapiFallbackHashType)).to.deep.equal([]); await expect(timestampedHashRegistry.connect(roles.owner).setHashTypeSigners(dapiFallbackHashType, signers)) - .to.emit(timestampedHashRegistry, 'HashTypeSignersSet') + .to.emit(timestampedHashRegistry, 'SetHashTypeSigners') .withArgs(dapiFallbackHashType, signers); expect(await timestampedHashRegistry.getSigners(dapiFallbackHashType)).to.deep.equal(signers); }); @@ -155,7 +155,7 @@ describe('TimestampedHashRegistry', function () { await expect( timestampedHashRegistry.registerSignedHash(dapiFallbackHashType, { hash: root, timestamp }, signatures) ) - .to.emit(timestampedHashRegistry, 'SignedHashRegistered') + .to.emit(timestampedHashRegistry, 'RegisteredSignedHash') .withArgs(dapiFallbackHashType, root, timestamp, signatures); expect(await timestampedHashRegistry.hashTypeToSignedHash(dapiFallbackHashType)).to.contain( root,