-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
20 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.22; | ||
|
||
import {IFollow} from "./interfaces/IFollow.sol"; | ||
import {ERC20} from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
|
||
//contract Follow is IFollow, ERC20 {} |
This file was deleted.
Oops, something went wrong.
28 changes: 13 additions & 15 deletions
28
src/interfaces/IEntryPoint.sol → src/interfaces/IFollow.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,47 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity 0.8.22; | ||
|
||
interface IEntryPoint { | ||
interface IFollow { | ||
/** | ||
* @notice Creates a new contract account. | ||
* @notice Register a new account. | ||
* @dev Only ADMIN_ROLE is allowed to call this method. | ||
* @param owner The account owner. | ||
* @param userId The new user ID to register. | ||
*/ | ||
function createAccount(address owner) external returns (address); | ||
function register(bytes32 userId, address account) external returns (address); | ||
|
||
/** | ||
* @notice Creates a new contract account. | ||
* @notice Mints new tokens. | ||
* @param to The account to receive the tokens. | ||
*/ | ||
function claimTokens(address to) external; | ||
function mint(address to) external; | ||
|
||
/** | ||
* @notice Creates a feed. | ||
* @dev Only ADMIN_ROLE is allowed to call this method. | ||
* @param feedId The feed id. | ||
* @param account The account who owns the feed. | ||
* @param userId The user ID who owns the feed. | ||
*/ | ||
function createFeed(bytes32 feedId, address account) external; | ||
function createFeed(bytes32 feedId, bytes32 userId) external; | ||
|
||
/** | ||
* @notice Returns the feed owner. | ||
* @param feedId The feed id. | ||
* @return The feed owner. | ||
* @return userId The user ID who owns the feed. | ||
*/ | ||
function getFeedOwner(bytes32 feedId) external view returns (address); | ||
function getFeedOwner(bytes32 feedId) external view returns (bytes32 userId); | ||
|
||
/** | ||
* @notice Tips the recipient feed. | ||
* @param from The address who sends the tip. | ||
* @param amount The amount of the tip. | ||
* @param feedId The feed id. | ||
* @param entryId The entry id. | ||
*/ | ||
function tip(address from, uint256 amount, bytes32 feedId, uint256 entryId) external; | ||
function tip(address from, uint256 amount, bytes32 feedId) external; | ||
|
||
/** | ||
* @notice Transfer tokens. | ||
* @param from The address who sends the tokens. | ||
* @notice Withdraws tokens. | ||
* @param to The address who receives the tokens. | ||
* @param amount The amount of the tokens. | ||
*/ | ||
function transfer(address from, address to, uint256 amount) external; | ||
function withdraw(address to, uint256 amount) external; | ||
} |