-
Notifications
You must be signed in to change notification settings - Fork 2
/
L2NaffleView.sol
61 lines (52 loc) · 1.55 KB
/
L2NaffleView.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
49
50
51
52
53
54
55
56
57
58
59
60
61
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
import "./L2NaffleBaseInternal.sol";
import "../../../interfaces/naffle/zksync/IL2NaffleView.sol";
import "../../libraries/NaffleTypes.sol";
contract L2NaffleView is IL2NaffleView, L2NaffleBaseInternal {
/**
* @inheritdoc IL2NaffleView
*/
function getPlatformFee() external view returns (uint256) {
return _getPlatformFee();
}
/**
* @inheritdoc IL2NaffleView
*/
function getOpenEntryRatio() external view returns (uint256) {
return _getOpenEntryRatio();
}
/**
* @inheritdoc IL2NaffleView
*/
function getL1NaffleContractAddress() external view returns (address) {
return _getL1NaffleContractAddress();
}
/**
* @inheritdoc IL2NaffleView
*/
function getNaffleById(uint256 _id) external view returns (NaffleTypes.L2Naffle memory) {
return _getNaffleById(_id);
}
/**
* @inheritdoc IL2NaffleView
*/
function getAdminRole() external pure returns (bytes32) {
return _getAdminRole();
}
/**
* @inheritdoc IL2NaffleView
*/
function getPaidTicketContractAddress() external view returns (address) {
return _getPaidTicketContractAddress();
}
/**
* @inheritdoc IL2NaffleView
*/
function getOpenEntryTicketContractAddress() external view returns (address) {
return _getOpenEntryTicketContractAddress();
}
function getMaxPostponeTime() external view returns (uint256) {
return _getMaxPostponeTime();
}
}