-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRetirementService.sol
More file actions
27 lines (21 loc) · 1.1 KB
/
IRetirementService.sol
File metadata and controls
27 lines (21 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0;
import { IERC1155ReceiverUpgradeable as IERC1155Receiver } from "@openzeppelin/contracts-upgradeable/token/ERC1155/IERC1155ReceiverUpgradeable.sol";
/**
* @title Retirement Service Interface
* @author Kai Aldag<kai.aldag@jasmine.energy>
* @notice The Retirement Service facilitates the formatting of ERC-1155 transfer data
* parsed by the bridge to attribute retirements to the correct user. It also
* permits users to register smart contracts to receive retirement hooks.
* @custom:security-contact dev@jasmine.energy
*/
interface IRetirementService is IERC1155Receiver {
/**
* @notice Allows user to designate an address to receive retirement hooks.
* @dev Contract must implement IRetirementRecipient's onRetirement function
* @param holder User address to notify recipient address of retirements
* @param recipient Smart contract to receive retirement hooks. Address
* must implement IRetirementRecipient interface.
*/
function registerRetirementRecipient(address holder, address recipient) external;
}