@@ -6,6 +6,13 @@ pragma solidity ^0.8.0;
6
6
import "./IERC20.sol " ;
7
7
import "./IERC165.sol " ;
8
8
9
+ /**
10
+ * @dev Interface of an ERC1363 compliant contract, as defined in the
11
+ * https://eips.ethereum.org/EIPS/eip-1363[EIP].
12
+ *
13
+ * Defines a interface for ERC20 tokens that supports executing recipient
14
+ * code after `transfer` or `transferFrom`, or spender code after `approve`.
15
+ */
9
16
interface IERC1363 is IERC165 , IERC20 {
10
17
/*
11
18
* Note: the ERC-165 identifier for this interface is 0xb0202a11.
@@ -21,53 +28,53 @@ interface IERC1363 is IERC165, IERC20 {
21
28
/**
22
29
* @dev Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
23
30
* @param to address The address which you want to transfer to
24
- * @param value uint256 The amount of tokens to be transferred
31
+ * @param amount uint256 The amount of tokens to be transferred
25
32
* @return true unless throwing
26
33
*/
27
- function transferAndCall (address to , uint256 value ) external returns (bool );
34
+ function transferAndCall (address to , uint256 amount ) external returns (bool );
28
35
29
36
/**
30
37
* @dev Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
31
38
* @param to address The address which you want to transfer to
32
- * @param value uint256 The amount of tokens to be transferred
39
+ * @param amount uint256 The amount of tokens to be transferred
33
40
* @param data bytes Additional data with no specified format, sent in call to `to`
34
41
* @return true unless throwing
35
42
*/
36
- function transferAndCall (address to , uint256 value , bytes memory data ) external returns (bool );
43
+ function transferAndCall (address to , uint256 amount , bytes memory data ) external returns (bool );
37
44
38
45
/**
39
46
* @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver
40
47
* @param from address The address which you want to send tokens from
41
48
* @param to address The address which you want to transfer to
42
- * @param value uint256 The amount of tokens to be transferred
49
+ * @param amount uint256 The amount of tokens to be transferred
43
50
* @return true unless throwing
44
51
*/
45
- function transferFromAndCall (address from , address to , uint256 value ) external returns (bool );
52
+ function transferFromAndCall (address from , address to , uint256 amount ) external returns (bool );
46
53
47
54
/**
48
55
* @dev Transfer tokens from one address to another and then call `onTransferReceived` on receiver
49
56
* @param from address The address which you want to send tokens from
50
57
* @param to address The address which you want to transfer to
51
- * @param value uint256 The amount of tokens to be transferred
58
+ * @param amount uint256 The amount of tokens to be transferred
52
59
* @param data bytes Additional data with no specified format, sent in call to `to`
53
60
* @return true unless throwing
54
61
*/
55
- function transferFromAndCall (address from , address to , uint256 value , bytes memory data ) external returns (bool );
62
+ function transferFromAndCall (address from , address to , uint256 amount , bytes memory data ) external returns (bool );
56
63
57
64
/**
58
65
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
59
66
* and then call `onApprovalReceived` on spender.
60
67
* @param spender address The address which will spend the funds
61
- * @param value uint256 The amount of tokens to be spent
68
+ * @param amount uint256 The amount of tokens to be spent
62
69
*/
63
- function approveAndCall (address spender , uint256 value ) external returns (bool );
70
+ function approveAndCall (address spender , uint256 amount ) external returns (bool );
64
71
65
72
/**
66
73
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
67
74
* and then call `onApprovalReceived` on spender.
68
75
* @param spender address The address which will spend the funds
69
- * @param value uint256 The amount of tokens to be spent
76
+ * @param amount uint256 The amount of tokens to be spent
70
77
* @param data bytes Additional data with no specified format, sent in call to `spender`
71
78
*/
72
- function approveAndCall (address spender , uint256 value , bytes memory data ) external returns (bool );
79
+ function approveAndCall (address spender , uint256 amount , bytes memory data ) external returns (bool );
73
80
}
0 commit comments