You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contracts/handler/HandlerContext.sol
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,17 @@
2
2
pragma solidity>=0.7.0<0.9.0;
3
3
4
4
/**
5
-
* @title Handler Context - Allows the fallback handler to extract additional context from the calldata
5
+
* @title Handler Context
6
+
* @notice Allows the fallback handler to extract additional context from the calldata.
6
7
* @dev The fallback manager appends the following context to the calldata:
7
8
* 1. Fallback manager caller address (non-padded)
8
-
* based on https://github.com/OpenZeppelin/openzeppelin-contracts/blob/f8cc8b844a9f92f63dc55aa581f7d643a1bc5ac1/contracts/metatx/ERC2771Context.sol
9
+
* Based on <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/f8cc8b844a9f92f63dc55aa581f7d643a1bc5ac1/contracts/metatx/ERC2771Context.sol>
9
10
* @author Richard Meissner - @rmeissner
10
11
*/
11
12
abstractcontractHandlerContext {
12
13
/**
13
14
* @notice Allows fetching the original caller address.
14
-
* @dev This is only reliable with a FallbackManager supporting this (e.g. Safe contract >=1.3.0).
15
+
* @dev This is only reliable with a {FallbackManager} supporting this (e.g. Safe contract >=1.3.0).
15
16
* When using this functionality, ensure that the linked _manager (aka msg.sender) supports this.
16
17
* This function does not rely on a trusted forwarder. Use the returned value only to
Copy file name to clipboardExpand all lines: contracts/interfaces/ERC1155TokenReceiver.sol
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,14 @@
1
1
// SPDX-License-Identifier: LGPL-3.0-only
2
2
pragma solidity>=0.7.0<0.9.0;
3
3
4
-
// Note: The ERC-165 identifier for this interface is 0x4e2312e0.
4
+
/**
5
+
* @title ERC-1155 Token Receiver Interface
6
+
* @dev The ERC-165 identifier for this interface is 0x4e2312e0.
7
+
*/
5
8
interfaceERC1155TokenReceiver {
6
9
/**
7
-
* @notice Handle the receipt of a single ERC1155 token type.
8
-
* @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated.
10
+
* @notice Handle the receipt of a single ERC-1155 token type.
11
+
* @dev An ERC-1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeTransferFrom` after the balance has been updated.
9
12
* This function MUST return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` (i.e. 0xf23a6e61) if it accepts the transfer.
10
13
* This function MUST revert if it rejects the transfer.
11
14
* Return of any other value than the prescribed keccak256 generated value MUST result in the transaction being reverted by the caller.
* @notice Handle the receipt of multiple ERC1155 token types.
29
-
* @dev An ERC1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated.
31
+
* @notice Handle the receipt of multiple ERC-1155 token types.
32
+
* @dev An ERC-1155-compliant smart contract MUST call this function on the token recipient contract, at the end of a `safeBatchTransferFrom` after the balances have been updated.
30
33
* This function MUST return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` (i.e. 0xbc197c81) if it accepts the transfer(s).
31
34
* This function MUST revert if it rejects the transfer(s).
32
35
* Return of any other value than the prescribed keccak256 generated value MUST result in the transaction being reverted by the caller.
/// @notice More details at https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol
4
+
/**
5
+
* @title ERC-165 Inteface
6
+
* @dev More details at <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol>
7
+
*/
5
8
interfaceIERC165 {
6
9
/**
7
-
* @dev Returns true if this contract implements the interface defined by `interfaceId`.
0 commit comments