From ac8e56e15c9eb123db9766da8947c1f9552ba7d8 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 14:56:01 +0200 Subject: [PATCH 1/7] fix typo UltraLightNode.sol --- contracts/UltraLightNode.sol | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/UltraLightNode.sol b/contracts/UltraLightNode.sol index 653ba3b..c190896 100644 --- a/contracts/UltraLightNode.sol +++ b/contracts/UltraLightNode.sol @@ -106,15 +106,15 @@ contract UltraLightNode is ILayerZeroMessagingLibrary, ILayerZeroUltraLightNodeV //---------------------------------------------------------------------------------- // PROTOCOL - // This function completes delivery of a LayerZero message. + // This function completes the delivery of a LayerZero message. // // In order to deliver the message, this function: // (a) takes the _transactionProof submitted by UA's relayer, and // (b) retrieve UA's validation library - // (c) takes the _blockData submitted by the UA's oracle given the their configuration (and blockConfirmations), + // (c) takes the _blockData submitted by the UA's oracle given their configuration (and blockConfirmations), // (d) decodes using UA's validation library using (a) and (c) - // then, this functions asserts that - // (e) the payload originated from the known Ultra Light Node from source chain, and + // then, this function asserts that + // (e) the payload originated from the known Ultra Light Node from the source chain, and // (f) the _dstAddress the specified destination contract function validateTransactionProof(uint16 _srcChainId, address _dstAddress, uint _gasLimit, bytes32 _lookupHash, bytes calldata _transactionProof) external override { // retrieve UA's configuration using the _dstAddress from arguments. From 3ff06b258666a27eb14e58ee63973eef21c0a675 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:12:48 +0200 Subject: [PATCH 2/7] fix typo index.js --- tasks/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/index.js b/tasks/index.js index 73719d7..de56ddd 100644 --- a/tasks/index.js +++ b/tasks/index.js @@ -116,5 +116,5 @@ task("filterHashReceived", "filter on recent UltraLightNode HashReceived events" task("deleteAndRedeploy", "remove contracts from folder and redeploy", require("./deleteAndRedeploy")) .addParam("e", "the environment ie: mainnet, testnet or sandbox") - .addParam("contract", "the contrac tto delete and redeploy") + .addParam("contract", "the contract to delete and redeploy") .addOptionalParam("ignore", "csv of network names to ignore", "", types.string) From 1d5aaf22b07d2eac3b2e2727979adfd769f15e60 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:39:11 +0200 Subject: [PATCH 3/7] fix typo README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4b265d9..66ef96e 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ ethereum: { } ``` -Example: More than one LayerZero Network on same chain (using expandNetwork) +Example: More than one LayerZero Network on the same chain (using expandNetwork) ``` //hardhat.config.ts ...expandNetwork({ From 3dba838e762e52664d0cd9f776221674d288ac13 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:43:16 +0200 Subject: [PATCH 4/7] fix typo ILayerZeroEndpoint.sol --- contracts/interfaces/ILayerZeroEndpoint.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/interfaces/ILayerZeroEndpoint.sol b/contracts/interfaces/ILayerZeroEndpoint.sol index e2c3bd1..880e5b9 100644 --- a/contracts/interfaces/ILayerZeroEndpoint.sol +++ b/contracts/interfaces/ILayerZeroEndpoint.sol @@ -7,7 +7,7 @@ import "./ILayerZeroUserApplicationConfig.sol"; interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice send a LayerZero message to the specified address at a LayerZero endpoint. // @param _dstChainId - the destination chain identifier - // @param _destination - the address on destination chain (in bytes). address length/format may vary by chains + // @param _destination - the address on the destination chain (in bytes). address length/format may vary by chains // @param _payload - a custom bytes payload to send to the destination contract // @param _refundAddress - if the source transaction is cheaper than the amount of value passed, refund the additional amount to this address // @param _zroPaymentAddress - the address of the ZRO token holder who would pay for the transaction @@ -17,7 +17,7 @@ interface ILayerZeroEndpoint is ILayerZeroUserApplicationConfig { // @notice used by the messaging library to publish verified payload // @param _srcChainId - the source chain identifier // @param _srcAddress - the source contract (as bytes) at the source chain - // @param _dstAddress - the address on destination chain + // @param _dstAddress - the address on the destination chain // @param _nonce - the unbound message ordering nonce // @param _gasLimit - the gas limit for external contract execution // @param _payload - verified payload to send to the destination contract From ec6a81c400a4420add8dbce2ff38ab36ea4eb573 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:51:41 +0200 Subject: [PATCH 5/7] fix typo ILayerZeroOracle.sol --- contracts/interfaces/ILayerZeroOracle.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/interfaces/ILayerZeroOracle.sol b/contracts/interfaces/ILayerZeroOracle.sol index 98512fb..ea73285 100644 --- a/contracts/interfaces/ILayerZeroOracle.sol +++ b/contracts/interfaces/ILayerZeroOracle.sol @@ -11,7 +11,7 @@ interface ILayerZeroOracle { // @notice Ultra-Light Node notifies the Oracle of a new block information relaying request // @param _dstChainId the destination endpoint identifier // @param _outboundProofType the proof type identifier to specify the data to be relayed - // @param _outboundBlockConfirmations the number of source chain block confirmation needed + // @param _outboundBlockConfirmations the number of source chain block confirmations needed function notifyOracle(uint16 _dstChainId, uint16 _outboundProofType, uint64 _outboundBlockConfirmations) external; // @notice query if the address is an approved actor for privileges like data submission and fee withdrawal etc. From 292c12e0d5a053176f12ca8368883b80246d3e94 Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:59:20 +0200 Subject: [PATCH 6/7] fix typo LayerZeroOracleBadMock.sol --- contracts/mocks/LayerZeroOracleBadMock.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mocks/LayerZeroOracleBadMock.sol b/contracts/mocks/LayerZeroOracleBadMock.sol index b48dcab..f8eabef 100644 --- a/contracts/mocks/LayerZeroOracleBadMock.sol +++ b/contracts/mocks/LayerZeroOracleBadMock.sol @@ -14,7 +14,7 @@ contract LayerZeroOracleBadMock is ILayerZeroOracle, Ownable, ReentrancyGuard { mapping(uint16 => mapping(uint16 => uint)) public chainPriceLookup; uint public fee; ILayerZeroUltraLightNodeV1 public uln; // ultraLightNode instance - ILayerZeroEndpoint public endpoint; // for bad oracles trying to talk to endpoint + ILayerZeroEndpoint public endpoint; // for bad oracles trying to talk to the endpoint event OracleNotified(uint16 dstChainId, uint16 _outboundProofType, uint blockConfirmations); event Withdraw(address to, uint amount); From 106fb05432e2735b16cf2ced71687b955e843fca Mon Sep 17 00:00:00 2001 From: iwantanode <87604944+tudorpintea999@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:07:10 +0200 Subject: [PATCH 7/7] fix typo LayerZeroOracleMock.sol --- contracts/mocks/LayerZeroOracleMock.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mocks/LayerZeroOracleMock.sol b/contracts/mocks/LayerZeroOracleMock.sol index c47ecbc..bd68688 100644 --- a/contracts/mocks/LayerZeroOracleMock.sol +++ b/contracts/mocks/LayerZeroOracleMock.sol @@ -25,7 +25,7 @@ contract LayerZeroOracleMock is ILayerZeroOracle, Ownable, ReentrancyGuard { } function updateHash(uint16 _remoteChainId, bytes32 _blockHash, uint _confirmations, bytes32 _data) external { - require(approvedAddresses[msg.sender], "LayerZeroOracleMock: caller must be approved"); + require(approvedAddresses[msg.sender], "LayerZeroOracleMock: the caller must be approved"); uln.updateHash(_remoteChainId, _blockHash, _confirmations, _data); }