Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Oct 23, 2024
1 parent 1414c88 commit 3325abc
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 75 deletions.
2 changes: 1 addition & 1 deletion analysis/description-table/SampleContract.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| File Name | SHA-1 Hash |
|-------------|--------------|
| dist/SampleContract.dist.sol | 199a7fa75f0719a5f45be6077a295f7400a9aa8a |
| dist/SampleContract.dist.sol | 3a4dd0c5a1120a9d68ba53cefa07f9c85f8ec4d1 |


### Contracts Description Table
Expand Down
53 changes: 27 additions & 26 deletions dist/SampleContract.dist.sol
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Sources flattened with hardhat v2.22.13 https://hardhat.org
// Sources flattened with hardhat v2.22.14 https://hardhat.org

// SPDX-License-Identifier: MIT

// File @openzeppelin/contracts/utils/Context.sol@v5.0.2
// File @openzeppelin/contracts/utils/Context.sol@v5.1.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
Expand Down Expand Up @@ -34,7 +34,7 @@ abstract contract Context {
}


// File @openzeppelin/contracts/access/Ownable.sol@v5.0.2
// File @openzeppelin/contracts/access/Ownable.sol@v5.1.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
Expand Down Expand Up @@ -136,16 +136,16 @@ abstract contract Ownable is Context {
}


// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.0.2
// File @openzeppelin/contracts/utils/introspection/IERC165.sol@v5.1.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
Expand All @@ -156,7 +156,7 @@ interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
Expand All @@ -165,15 +165,15 @@ interface IERC165 {
}


// File @openzeppelin/contracts/token/ERC721/IERC721.sol@v5.0.2
// File @openzeppelin/contracts/token/ERC721/IERC721.sol@v5.1.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

/**
* @dev Required interface of an ERC721 compliant contract.
* @dev Required interface of an ERC-721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
Expand Down Expand Up @@ -223,7 +223,7 @@ interface IERC721 is IERC165 {

/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
* are aware of the ERC-721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
Expand All @@ -242,7 +242,7 @@ interface IERC721 is IERC165 {
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
* WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721
* or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
* understand this adds an external call which potentially creates a reentrancy vulnerability.
*
Expand Down Expand Up @@ -302,15 +302,15 @@ interface IERC721 is IERC165 {
}


// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.0.2
// File @openzeppelin/contracts/token/ERC20/IERC20.sol@v5.1.0

// Original license: SPDX_License_Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)
// OpenZeppelin Contracts (last updated v5.1.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
* @dev Interface of the ERC20 standard as defined in the EIP.
* @dev Interface of the ERC-20 standard as defined in the ERC.
*/
interface IERC20 {
/**
Expand Down Expand Up @@ -385,19 +385,19 @@ interface IERC20 {
}


// File eth-token-recover/contracts/recover/RecoverERC20.sol@v6.3.0
// File eth-token-recover/contracts/recover/RecoverERC20.sol@v6.4.0

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.20;

/**
* @title RecoverERC20
* @dev Allows to recover any ERC20 token sent into the contract and send them to a receiver.
* @dev Allows to recover any ERC-20 token sent into the contract and sends them to a receiver.
*/
abstract contract RecoverERC20 {
/**
* @dev Recovers a `tokenAmount` of the ERC20 `tokenAddress` locked into this contract
* @dev Recovers a `tokenAmount` of the ERC-20 `tokenAddress` locked into this contract
* and sends them to the `tokenReceiver` address.
*
* WARNING: it allows everyone to recover tokens. Access controls MUST be defined in derived contracts.
Expand All @@ -413,19 +413,19 @@ abstract contract RecoverERC20 {
}


// File eth-token-recover/contracts/recover/RecoverERC721.sol@v6.3.0
// File eth-token-recover/contracts/recover/RecoverERC721.sol@v6.4.0

// Original license: SPDX_License_Identifier: MIT

pragma solidity ^0.8.20;

/**
* @title RecoverERC721
* @dev Allows to recover any ERC721 token sent into the contract and send them to a receiver.
* @dev Allows to recover any ERC-721 token sent into the contract and sends them to a receiver.
*/
abstract contract RecoverERC721 {
/**
* @dev Recovers the `tokenId` of the ERC721 `tokenAddress` locked into this contract
* @dev Recovers the `tokenId` of the ERC-721 `tokenAddress` locked into this contract
* and sends it to the `tokenReceiver` address.
*
* WARNING: it allows everyone to recover tokens. Access controls MUST be defined in derived contracts.
Expand All @@ -446,7 +446,7 @@ abstract contract RecoverERC721 {
}


// File eth-token-recover/contracts/TokenRecover.sol@v6.3.0
// File eth-token-recover/contracts/TokenRecover.sol@v6.4.0

// Original license: SPDX_License_Identifier: MIT

Expand All @@ -455,7 +455,8 @@ pragma solidity ^0.8.20;

/**
* @title TokenRecover
* @dev Allows the contract owner to recover any ERC20 or ERC721 token sent into the contract and send them to a receiver.
* @dev Allows the contract owner to recover any ERC-20 or ERC-721 token sent into the contract
* and sends them to a receiver.
*/
abstract contract TokenRecover is Ownable, RecoverERC20, RecoverERC721 {
/**
Expand All @@ -464,7 +465,7 @@ abstract contract TokenRecover is Ownable, RecoverERC20, RecoverERC721 {
constructor(address initialOwner) Ownable(initialOwner) {}

/**
* @dev Recovers a `tokenAmount` of the ERC20 `tokenAddress` locked into this contract
* @dev Recovers a `tokenAmount` of the ERC-20 `tokenAddress` locked into this contract
* and sends them to the `tokenReceiver` address.
*
* NOTE: restricting access to owner only. See `RecoverERC20::_recoverERC20`.
Expand All @@ -478,7 +479,7 @@ abstract contract TokenRecover is Ownable, RecoverERC20, RecoverERC721 {
}

/**
* @dev Recovers the `tokenId` of the ERC721 `tokenAddress` locked into this contract
* @dev Recovers the `tokenId` of the ERC-721 `tokenAddress` locked into this contract
* and sends it to the `tokenReceiver` address.
*
* NOTE: restricting access to owner only. See `RecoverERC721::_recoverERC721`.
Expand Down
92 changes: 47 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3325abc

Please sign in to comment.