Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
6618f9f1
Commit
6618f9f1
authored
Aug 06, 2021
by
Francisco Giordano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation of functions in interfaces directory
parent
7fcacb54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
IERC1363.sol
contracts/interfaces/IERC1363.sol
+6
-6
IERC2981.sol
contracts/interfaces/IERC2981.sol
+1
-1
No files found.
contracts/interfaces/IERC1363.sol
View file @
6618f9f1
...
@@ -23,7 +23,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -23,7 +23,7 @@ interface IERC1363 is IERC165, IERC20 {
*/
*/
/**
/**
* @
notice
Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
* @
dev
Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
* @param to address The address which you want to transfer to
* @param to address The address which you want to transfer to
* @param value uint256 The amount of tokens to be transferred
* @param value uint256 The amount of tokens to be transferred
* @return true unless throwing
* @return true unless throwing
...
@@ -31,7 +31,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -31,7 +31,7 @@ interface IERC1363 is IERC165, IERC20 {
function transferAndCall(address to, uint256 value) external returns (bool);
function transferAndCall(address to, uint256 value) external returns (bool);
/**
/**
* @
notice
Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
* @
dev
Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver
* @param to address The address which you want to transfer to
* @param to address The address which you want to transfer to
* @param value uint256 The amount of tokens to be transferred
* @param value uint256 The amount of tokens to be transferred
* @param data bytes Additional data with no specified format, sent in call to `to`
* @param data bytes Additional data with no specified format, sent in call to `to`
...
@@ -44,7 +44,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -44,7 +44,7 @@ interface IERC1363 is IERC165, IERC20 {
) external returns (bool);
) external returns (bool);
/**
/**
* @
notice
Transfer tokens from one address to another and then call `onTransferReceived` on receiver
* @
dev
Transfer tokens from one address to another and then call `onTransferReceived` on receiver
* @param from address The address which you want to send tokens from
* @param from address The address which you want to send tokens from
* @param to address The address which you want to transfer to
* @param to address The address which you want to transfer to
* @param value uint256 The amount of tokens to be transferred
* @param value uint256 The amount of tokens to be transferred
...
@@ -57,7 +57,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -57,7 +57,7 @@ interface IERC1363 is IERC165, IERC20 {
) external returns (bool);
) external returns (bool);
/**
/**
* @
notice
Transfer tokens from one address to another and then call `onTransferReceived` on receiver
* @
dev
Transfer tokens from one address to another and then call `onTransferReceived` on receiver
* @param from address The address which you want to send tokens from
* @param from address The address which you want to send tokens from
* @param to address The address which you want to transfer to
* @param to address The address which you want to transfer to
* @param value uint256 The amount of tokens to be transferred
* @param value uint256 The amount of tokens to be transferred
...
@@ -72,7 +72,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -72,7 +72,7 @@ interface IERC1363 is IERC165, IERC20 {
) external returns (bool);
) external returns (bool);
/**
/**
* @
notice
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
* @
dev
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
* and then call `onApprovalReceived` on spender.
* and then call `onApprovalReceived` on spender.
* @param spender address The address which will spend the funds
* @param spender address The address which will spend the funds
* @param value uint256 The amount of tokens to be spent
* @param value uint256 The amount of tokens to be spent
...
@@ -80,7 +80,7 @@ interface IERC1363 is IERC165, IERC20 {
...
@@ -80,7 +80,7 @@ interface IERC1363 is IERC165, IERC20 {
function approveAndCall(address spender, uint256 value) external returns (bool);
function approveAndCall(address spender, uint256 value) external returns (bool);
/**
/**
* @
notice
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
* @
dev
Approve the passed address to spend the specified amount of tokens on behalf of msg.sender
* and then call `onApprovalReceived` on spender.
* and then call `onApprovalReceived` on spender.
* @param spender address The address which will spend the funds
* @param spender address The address which will spend the funds
* @param value uint256 The amount of tokens to be spent
* @param value uint256 The amount of tokens to be spent
...
...
contracts/interfaces/IERC2981.sol
View file @
6618f9f1
...
@@ -9,7 +9,7 @@ import "./IERC165.sol";
...
@@ -9,7 +9,7 @@ import "./IERC165.sol";
*/
*/
interface IERC2981 is IERC165 {
interface IERC2981 is IERC165 {
/**
/**
* @
notice
Called with the sale price to determine how much royalty is owed and to whom.
* @
dev
Called with the sale price to determine how much royalty is owed and to whom.
* @param tokenId - the NFT asset queried for royalty information
* @param tokenId - the NFT asset queried for royalty information
* @param salePrice - the sale price of the NFT asset specified by `tokenId`
* @param salePrice - the sale price of the NFT asset specified by `tokenId`
* @return receiver - address of who should be sent the royalty payment
* @return receiver - address of who should be sent the royalty payment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment