-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathIIdentityContract.sol
48 lines (28 loc) · 1.97 KB
/
IIdentityContract.sol
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.1;
interface IIdentityContract {
function selfdestructIdc() external;
// ########################
// # Functions ERC-725
// ########################
function changeOwner(address _owner) external;
function getData(bytes32 _key) external view returns (bytes memory _value);
function setData(bytes32 _key, bytes calldata _value) external;
function execute(uint256 _operationType, address _to, uint256 _value, bytes calldata _data) external;
// ########################
// # Functions ERC-735 and related
// ########################
function getClaim(uint256 _claimId) external view returns(uint256 __topic, uint256 __scheme, address __issuer, bytes memory __signature, bytes memory __data, string memory __uri);
function getClaimIdsByTopic(uint256 _topic) external view returns(uint256[] memory claimIds);
function addClaim(uint256 _topic, uint256 _scheme, address _issuer, bytes memory _signature, bytes memory _data, string memory _uri) external returns (uint256 claimRequestId);
function removeClaim(uint256 _claimId) external returns (bool success);
function burnClaimId(uint256 _topic) external;
function reinstateClaimId(uint256 _topic) external;
// ########################
// # Funtions ERC-1155 and related
// ########################
function onERC1155Received(address /*_operator*/, address _from, uint256 _id, uint256 _value, bytes calldata /*_data*/) external returns(bytes4);
function onERC1155BatchReceived(address /*_operator*/, address _from, uint256[] calldata _ids, uint256[] calldata _values, bytes calldata /*_data*/) external returns(bytes4);
function approveSender(address _energyToken, address _sender, uint64 _expiryDate, uint256 _value, uint256 _id) external;
function approveBatchSender(address _energyToken, address _sender, uint64 _expiryDate, uint256[] calldata _values, uint256[] calldata _ids) external;
}